body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.dream-hero {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, #eff6ff 0%, #fff1f2 52%, #fff7ed 100%);
}

.dream-hero::before {
    content: "";
    position: absolute;
    inset: auto auto 10px 50%;
    width: min(72vw, 780px);
    height: 120px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.16) 0%, rgba(251, 191, 36, 0.12) 42%, rgba(255, 247, 237, 0) 74%);
    filter: blur(24px);
    z-index: -1;
}

.dream-hero-card {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(65, 6, 6, 0.92) 0%, rgba(247, 15, 15, 0.9) 48%, rgba(196, 140, 0, 0.84) 100%);
    padding: 28px;
    color: #fff;
    box-shadow: 0 28px 80px rgba(127, 29, 29, 0.3);
}

.dream-hero-accent {
    background: linear-gradient(90deg, #fde68a 0%, #fbbf24 55%, rgba(255, 255, 255, 0.95) 100%);
}

.dream-hero-heading {
    margin: 0;
    color: #fff;
    text-wrap: balance;
}

.dream-hero-description {
    color: rgba(255, 245, 245, 0.96);
    line-height: 1.75;
}

.ultimatedropdown,
.responsive,
#news-left,
#news-right,
#news-center,
.art-header,
.ali-pages,
.art-footer,
#mioi,
.hotnews,
.art-page-footer {
    display: none;
}

#art-main {
    width: 100%;
}

.art-sheet {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    padding: 1.25rem;
}

#showdreamforecast {
    padding: 1.25rem;
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.art-layout-cell.layout-item-1[style*="width:25%"],
.art-layout-cell.layout-item-1[style*="width: 25%"] {
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
}

#homedreamforecast {
    padding: 0%;
}

.dream-home-card {
    display: grid;
    gap: 1rem;
    border-radius: 24px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top left, #fff7ed 0%, #ffffff 55%, #fff1f2 100%);
    padding: 1.5rem;
    text-align: left;
}

.dream-home-card h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.2;
    color: #111827;
}

.dream-home-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.dream-home-card-media {
    display: flex;
    justify-content: center;
}

.dream-home-card-image {
    width: min(100%, 760px);
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.dream-home-card ul {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dream-home-card li {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: #9a3412;
}

.dream-empty-card {
    display: grid;
    gap: 0.85rem;
    border-radius: 24px;
    border: 1px solid #fecdd3;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    padding: 1.35rem;
    text-align: left;
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.08);
}

.dream-empty-card h3,
.dream-empty-card p {
    margin: 0;
}

.dream-empty-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #9f1239;
}

.dream-empty-card p {
    line-height: 1.7;
    color: #475569;
}

.dream-home-badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.dream-home-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #c2410c;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.art-content-layout-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.art-content-layout-row > * {
    min-width: 0;
}

.art-layout-cell.art-content,
.art-post,
.art-postcontent,
.art-content-layout,
.art-layout-wrapper {
    width: 100%;
}

.art-layout-cell[style*="width: 75%"],
.art-layout-cell[style*="width:75%"] {
    flex: 1 1 720px;
}

.art-layout-cell[style*="width:25%"],
.art-layout-cell[style*="width: 25%"] {
    flex: 0 0 320px;
}

.border,
.box {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    padding: 1rem;
}

.box + .box,
.border + .border {
    margin-top: 1rem;
}

.h1_gipse_2 h2,
.h1_gipse h2,
.h1_gipse_3 h3,
.h1__3 h3 {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.toolbar {
    list-style: none;
    margin: 0;
    padding: 0;
}

#searchdreamsul li {
    margin-top: 0.75rem;
}

#searchdreamsul li:first-child {
    margin-top: 0;
}

#searchdreamsul a {
    display: block;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#searchdreamsul a:hover {
    transform: translateY(-1px);
    border-color: #f97316;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.12);
}

.choicedreamforecastul .toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: auto;
    max-width: 100%;
}

.choicedreamforecastul li {
    display: inline-flex;
    margin: 0;
    flex: 0 0 auto;
}

.choicedreamforecastul a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    width: fit-content;
    max-width: min(100%, 18rem);
    min-height: 2.9rem;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    padding: 0.68rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    color: #9a3412;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.08);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.choicedreamforecastul a:hover {
    transform: translateY(-1px);
    border-color: #f97316;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.14);
}

#searchdreamsul span {
    margin-left: 0.35rem;
    font-weight: 700;
    color: #be123c;
}

#searchdreaminput {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    outline: none;
}

#searchdreaminput:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.dream-sidebar {
    display: grid;
    gap: 1rem;
}

.dream-sidebar-panel {
    display: grid;
    gap: 1rem;
}

.dream-sidebar-panel .h1__3 {
    text-align: left;
}

.dream-guide-panel {
    display: grid;
    gap: 1rem;
}

.dream-section-header {
    display: grid;
    gap: 0.8rem;
}

.dream-section-header.centered {
    justify-items: center;
    text-align: center;
}

.dream-section-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dream-guide-intro {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
    text-align: center;
}

.dream-guide-list {
    display: grid;
    gap: 0.85rem;
}

.dream-guide-item {
    display: grid;
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.dream-guide-preview-wrap {
    display: flex;
    justify-content: center;
}

.dream-guide-copy {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1e293b;
}

.dream-info-section {
    display: grid;
    gap: 1.35rem;
    padding: 1.25rem;
}

.dream-info-header {
    display: grid;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dream-info-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dream-info-intro {
    margin: 0;
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.dream-info-body {
    display: grid;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

.dream-info-body p {
    margin: 0;
}

.dream-article-subtitle {
    margin: 0.35rem 0 0;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.35;
    color: #9a3412;
}

.dream-usage-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding-left: 1.35rem;
}

.dream-usage-list li {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

.dream-info-table {
    margin-top: 0.35rem;
}

.dream-sidebar-copy {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
}

.dream-search-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a3412;
}

.dream-letter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.dream-letter-spacer {
    display: block;
}

.dream-sidebar-actions {
    padding-top: 0.25rem;
}

.choicedreamforecast,
.activedreamforecast,
.dreamforecast-start {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.choicedreamforecast {
    background: #e2e8f0;
    color: #0f172a;
}

.activedreamforecast {
    background: linear-gradient(135deg, #b91c1c, #ea580c);
    color: #fff;
}

.dreamforecast-start {
    background: linear-gradient(135deg, #b91c1c, #ea580c);
    color: #fff;
    padding: 0.85rem 1rem;
}

#resultsearchdreams {
    padding-top: 0.4rem;
    text-align: left;
}

.dream-result-table {
    width: 100%;
    display: grid;
    gap: 1.15rem;
}

.dream-result-summary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.dream-result-summary-cell,
.dream-result-detail-shell {
    min-width: 0;
}

.dream-result-card {
    display: grid;
    gap: 0.95rem;
    min-height: 100%;
    position: relative;
    border-radius: 24px;
    border: 1px solid #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    padding: 1.2rem 1.25rem 1.1rem;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.08);
    text-align: left;
}

.dream-result-card::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fb923c 0%, #f59e0b 100%);
}

.dream-result-card-number {
    border-color: #fecdd3;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.dream-result-card-number::before {
    background: linear-gradient(90deg, #fb7185 0%, #e11d48 100%);
}

.dream-result-label {
    display: flex; /* เปลี่ยนเป็น flex */
    align-items: center;
    justify-content: center;

    width: 100%; /* 👈 ให้กินเต็มแถว จะได้จัดกลางจริง */
    
    padding: 0.6rem 1rem; /* ขยาย padding นิด */
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);

    font-size: 1.25rem; /* 👈 ใหญ่ขึ้น (ประมาณ text-xl) */
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a3412;
}

.dream-result-detail-label {
    margin-bottom: 0.2rem;
}

.dreamdetail,
.dreamresult,
.dreamresultnumber {
    border-radius: 16px;
    border: 1px solid #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
    text-align: center; 
}

.dreamdetail {
    border-color: #fecdd3;
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
    padding: 1.2rem 1.3rem;
    border-radius: 22px;
    font-size: 1.02rem;
    line-height: 1.9;
    color: #1e293b;
    text-align: left;
}

.dreamdetail b {
    display: block;
    margin-bottom: 0.7rem;
    color: #9f1239;
}

.dreamresult {
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    color: #9a3412;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.dreamresultnumber {
    font-size: clamp(2rem, 3.4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #be123c;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.detaildreamforecastul,
.choicedreamforecastul {
    border-radius: 20px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    padding: 1rem;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.choicedreamforecastul {
    display: block;
    text-align: center;
}

.dream-result-media-row {
    display: none !important;
}

#homedreamforecast img,
.art-content-layout-row1 img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
}

.dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #f97316;
}

.dream-side-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.box a {
    color: #0f172a;
    text-decoration: none;
}

.box p {
    margin: 0.65rem 0;
}

.art-layout-cell.layout-item-1 .box:first-of-type {
    padding: 1.1rem;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.art-layout-cell.layout-item-1 .box:first-of-type table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.45rem;
}

.art-layout-cell.layout-item-1 .box:first-of-type td {
    padding: 0;
}

.art-layout-cell.layout-item-1 .box:first-of-type input.choicedreamforecast,
.art-layout-cell.layout-item-1 .box:first-of-type input.activedreamforecast {
    min-height: 3rem;
    font-size: 1rem;
}

.tborder {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.tborder th,
.tborder td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.85rem 1rem;
    text-align: left;
}

.tborder th {
    background: #fff7ed;
    font-weight: 800;
    color: #9a3412;
}

.tborder tr:last-child td {
    border-bottom: 0;
}

.dream-help-preview {
    display: inline-flex;
    min-width: 170px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed, #ffe4e6);
    padding: 0.85rem 1rem;
    font-weight: 800;
    color: #9a3412;
    text-align: center;
}

@media (max-width: 1024px) {
    .dream-hero-card {
        padding: 24px;
    }

    .art-layout-cell[style*="width:25%"],
    .art-layout-cell[style*="width: 25%"],
    .art-layout-cell[style*="width:75%"],
    .art-layout-cell[style*="width: 75%"] {
        flex: 1 1 100%;
    }

    .dream-guide-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dream-info-section {
        padding: 1rem;
    }

    .art-layout-cell.layout-item-1[style*="width:25%"],
    .art-layout-cell.layout-item-1[style*="width: 25%"] {
        position: static;
    }

    .art-sheet {
        padding: 1rem;
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .dream-hero {
        padding-top: 2rem !important;
        padding-bottom: 2.4rem !important;
    }

    .dream-hero-card {
        border-radius: 26px;
        padding: 22px 18px;
    }

    .dream-hero-heading {
        font-size: 2rem !important;
        line-height: 1.08 !important;
    }

    .dream-hero-description {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .dream-home-badge-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        width: 100%;
        align-items: stretch;
    }

    .dream-home-badge {
        width: 100%;
        min-height: 2.55rem;
        padding: 0.58rem 0.72rem;
        text-align: center;
        line-height: 1.3;
        font-size: 0.8rem;
        font-weight: 900;
        letter-spacing: -0.01em;
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.08), inset 0 0 0 1px #fdba74;
    }

    .dream-home-badge-row .dream-home-badge:last-child {
        grid-column: 1 / -1;
        max-width: 14rem;
        justify-self: center;
    }

    .dream-result-summary-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .dream-result-card {
        border-radius: 20px;
        padding: 1rem;
    }

    .dream-result-label {
        font-size: 1.00rem;
        letter-spacing: 0.06em;
        padding: 0.34rem 0.62rem;
    }

    .dreamresult {
        font-size: 1.45rem;
    }

    .dreamresultnumber {
        font-size: 1.9rem;
    }

    .dreamdetail {
        padding: 1rem;
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .dream-home-card h2 {
        font-size: 1.55rem;
    }

    .choicedreamforecastul .toolbar {
        justify-content: flex-start;
    }
    .dream-home-card-media {
    margin-bottom: 8px; /* ลดช่องว่างด้านล่างรูป */
    }
    .dream-home-card-image {
        margin: 0 auto;
        display: block;
        max-width: 100%;
        height: auto;
    }
    .dream-home-card {
        padding: 12px; /* ลด padding ในมือถือ */
    }
}
