@font-face { font-family: 'DB Heavent'; src: url('../fonts/DBHeavent-Thin.ttf') format('truetype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'DB Heavent'; src: url('../fonts/DBHeavent-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'DB Heavent'; src: url('../fonts/DBHeavent-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DB Heavent'; src: url('../fonts/DBHeavent-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DB Heavent'; src: url('../fonts/DBHeavent-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DB Heavent'; src: url('../fonts/DBHeavent-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
    --brand: #ED1B34;
    --brand-dark: #B5111F;
    --ink: #111111;
    --ink-soft: #2a2a2a;
    --paper: #ffffff;
    --cream: #F7F5F2;
    --gold: #D4A94A;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'DB Heavent', 'Noto Sans Thai', sans-serif;
    background: var(--cream);
    color: var(--ink);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--ink);
    padding: 14px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: center; }
.topbar img { height: 30px; width: auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero-banner { width: 100%; display: block; }
.hero-body { padding: 34px 20px 42px; }
.hero-eyebrow {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 6px;
}
.hero-title {
    font-weight: 900;
    font-size: clamp(30px, 6vw, 52px);
    line-height: 1.15;
    margin: 0 0 10px;
    text-shadow: 0 2px 18px rgba(237,27,52,.45);
}
.hero-subtitle {
    font-weight: 400;
    font-size: 22px;
    color: #ddd;
    max-width: 620px;
    margin: 0 auto 18px;
}
.hero-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 18px;
    color: #fff;
}
.hero-period b { color: var(--gold); }

/* ---------- Sections ---------- */
section.block { padding: 46px 0; }
section.block:nth-of-type(even) { background: var(--paper); }
.block-title {
    font-weight: 900;
    font-size: clamp(24px, 4vw, 32px);
    text-align: center;
    margin: 0 0 28px;
    color: var(--ink);
    position: relative;
}
.block-title::after {
    content: '';
    display: block;
    width: 64px; height: 5px;
    background: var(--brand);
    border-radius: 4px;
    margin: 12px auto 0;
}

/* rich text */
.richtext { font-size: 19px; }
.richtext ul, .richtext ol { padding-left: 22px; }
.richtext li { margin-bottom: 8px; }
.richtext p { margin: 0 0 14px; }
.richtext b, .richtext strong { color: var(--brand-dark); }
.richtext h2, .richtext h3 { color: var(--brand-dark); font-weight: 700; margin: 26px 0 12px; }
.richtext table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.richtext table th, .richtext table td { padding: 10px 12px; border: 1px solid rgba(0,0,0,.1); text-align: left; }
.richtext table th { background: rgba(237,27,52,.06); }

/* CKEditor-authored content (admin content editor output) */
.ck-content figure.image {
    margin: 1em 0;
    display: table;
    clear: both;
}
.ck-content figure.image img {
    display: block;
    height: auto;
    max-width: 100%;
    min-width: 50px;
    border-radius: 8px;
}
.ck-content figure.image.image-style-align-left,
.ck-content figure.image.image-style-side {
    float: left;
    margin-right: 1.5em;
    max-width: 50%;
}
.ck-content figure.image.image-style-align-right {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
}
.ck-content figure.image.image-style-align-center,
.ck-content figure.image.image_resized {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.ck-content .image.image_resized { display: block; box-sizing: border-box; }
.ck-content .image.image_resized img { width: 100%; }
.ck-content::after { content: ''; display: table; clear: both; }
.ck-content .media { margin: 20px 0; clear: both; }
.ck-content .media iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    border: none;
}
@media (max-width: 560px) {
    .ck-content figure.image.image-style-align-left,
    .ck-content figure.image.image-style-align-right {
        float: none;
        margin: 1em auto;
        max-width: 100%;
    }
}

/* sticky LINE button */
.sticky-line {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    background: #06C755;
    color: #fff;
    font-weight: 700;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(6,199,85,.4);
    display: flex; align-items: center; gap: 8px;
    font-size: 17px;
}

/* footer */
footer.site-footer {
    background: var(--ink);
    color: #999;
    text-align: center;
    padding: 30px 20px 90px;
    font-size: 14px;
}
footer.site-footer img { height: 22px; margin: 0 auto 12px; opacity: .85; }


/* empty state */
.empty-state {
    min-height: 70vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px 20px;
}
.empty-state img { height: 40px; margin-bottom: 20px; }
.empty-state h2 { font-weight: 700; color: #444; }

@media (max-width: 560px) {
    body { font-size: 17px; }
    section.block { padding: 34px 0; }
}
