/* =============================================================
   BS2C 2027 — One-Page Conference Website
   Custom Stylesheet
   ============================================================= */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:       #0f1a3d;
    --primary-dark:  #0a0f24;
    --primary-light: #3a4a7a;
    --accent:        #b34fe0;
    --accent-dark:   #8b3dc4;
    --accent-light:  #d199f0;
    --text-dark:     #16182e;
    --text-muted:    #6b7280;
    --bg-light:      #eef3fd;
    --bg-white:      #ffffff;
    --border:        #e5e7eb;
    --navbar-h:      68px;
    --radius:        12px;
    --shadow-sm:     0 1px 4px rgba(0,0,0,.07);
    --shadow-md:     0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 10px 32px rgba(0,0,0,.12);
    --transition:    all .28s ease;
    --font-thai:     'Sarabun', sans-serif;
    --font-en:       'Inter', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 112.5%; }

body {
    font-family: var(--font-thai);
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.75;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-thai); font-weight: 700; }

/* ── Navbar ─────────────────────────────────────────────────── */
.site-navbar {
    background: transparent;
    height: var(--navbar-h);
    box-shadow: none;
    padding: 0 1rem;
    transition: var(--transition);
}
.site-navbar.navbar--scrolled {
    background: var(--primary-dark);
    backdrop-filter: none;
    box-shadow: 0 4px 24px rgba(0,0,0,.28);
}

/* Brand */
.site-brand { text-decoration: none; display: flex; align-items: center; gap: 3px; }
.brand-logo { height: 48px; width: auto; object-fit: contain; }
.brand-abbr {
    font-family: var(--font-en);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.brand-year {
    font-family: var(--font-en);
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent);
}

/* Nav links */
.site-navbar .nav-link {
    color: rgba(255,255,255,.82) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: .45rem .75rem !important;
    border-radius: 5px;
    white-space: nowrap;
    transition: var(--transition);
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--accent) !important;
    background: rgba(255,255,255,.08);
}

/* Desktop: true-center the menu regardless of the width of the
   lang/CTA cluster on the right, using a 3-column grid so the
   menu column stays centered in the navbar. */
@media (min-width: 1400px) {
    .site-navbar .navbar-collapse {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: .5rem;
    }
    .site-navbar .navbar-nav {
        grid-column: 2;
        margin: 0 !important;
    }
    .site-navbar .navbar-cta {
        grid-column: 3;
        justify-self: end;
        margin-left: 0 !important;
    }
}

/* CTA buttons in navbar */
.btn-cta-submit {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: .82rem;
    padding: .42rem 1rem;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    transition: var(--transition);
}
.btn-cta-submit:hover {
    background: var(--accent-light);
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(224,76,200,.45);
}

.btn-cta-register {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.55);
    font-weight: 700;
    font-size: .82rem;
    padding: .42rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: var(--transition);
}
.btn-cta-register:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Hide CTA from navbar on <xxl (shown in offcanvas instead) */
@media (max-width: 1399px) { .navbar-cta { display: none !important; } }

.navbar-cta .dropdown-menu {
    min-width: 280px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .5rem;
    margin-top: .6rem !important;
}
.navbar-cta .dropdown-item {
    border-radius: 8px;
    padding: .6rem .75rem;
    font-size: .85rem;
    white-space: normal;
    transition: var(--transition);
}
.navbar-cta .dropdown-item:hover,
.navbar-cta .dropdown-item:focus {
    background: rgba(179,79,224,.08);
    color: var(--accent);
}

/* ── Offcanvas ──────────────────────────────────────────────── */
.site-offcanvas {
    background: var(--primary-dark);
    color: #fff;
    width: 280px !important;
}
.site-offcanvas .offcanvas-title {
    font-size: 1.25rem;
    font-weight: 800;
}
.offcanvas-nav-link {
    color: rgba(255,255,255,.82) !important;
    font-size: .97rem;
    padding: .55rem 1rem;
    border-radius: 7px;
    transition: var(--transition);
}
.offcanvas-nav-link:hover {
    background: rgba(255,255,255,.1);
    color: var(--accent) !important;
}
.site-offcanvas .offcanvas-body > .mt-auto {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.25rem;
}
.site-offcanvas .mt-auto .btn {
    border-radius: 10px;
    padding: .7rem 1rem;
    font-size: .9rem;
}
.site-offcanvas .btn-cta-submit { box-shadow: 0 6px 18px rgba(224,76,200,.3); }

.site-offcanvas .dropdown-menu {
    background: var(--primary-dark);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    padding: .5rem;
    margin-top: .6rem !important;
}
.site-offcanvas .dropdown-item {
    color: rgba(255,255,255,.85);
    border-radius: 7px;
    padding: .6rem .75rem;
    font-size: .85rem;
    transition: var(--transition);
}
.site-offcanvas .dropdown-item:hover,
.site-offcanvas .dropdown-item:focus {
    background: rgba(255,255,255,.1);
    color: var(--accent);
}
.site-offcanvas .dropdown-divider { border-color: rgba(255,255,255,.15); }
.site-offcanvas .text-muted { color: rgba(255,255,255,.55); }

.offcanvas-note {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(35,12,40,.45);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: .38rem 1.2rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-top: .5rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: clamp(.95rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: rgba(255,255,255,.85);
    letter-spacing: .5px;
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

.hero-meta {
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.btn-hero-submit {
    background: var(--accent);
    color: var(--primary-dark) !important;
    border: none;
    font-weight: 700;
    padding: .75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
.btn-hero-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(224,76,200,.42);
}

.btn-hero-register {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.65);
    font-weight: 700;
    padding: .75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
.btn-hero-register:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.hero-note {
    color: rgba(255,255,255,.8);
    font-size: .855rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.hero-theme-quote {
    max-width: 640px;
    margin: 0 auto;
    padding: .9rem 1.6rem;
    border-left: 3px solid var(--accent);
    background: rgba(255,255,255,.07);
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(4px);
}
.hero-theme-quote p {
    color: rgba(255,255,255,.92);
    font-style: italic;
    font-size: .98rem;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.hero-stats { gap: .9rem; }
.hero-stat-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(35,12,40,.45);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
}
.hero-stat-chip:hover {
    background: rgba(35,12,40,.65);
    border-color: rgba(255,255,255,.4);
    transform: translateY(-2px);
}
.hero-stat-chip i { font-size: 1.05rem; color: var(--accent); }
.hero-stat-chip .hsc-num {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: .95rem;
    white-space: nowrap;
}
.hero-stat-chip .hsc-label {
    font-size: .76rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}

/* ── Section Commons ────────────────────────────────────────── */
.site-section { padding: 88px 0; }
.bg-light-section { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 1.5rem; }

.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: .4rem;
}

.section-title {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: .3rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: .93rem;
}

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: .7rem auto 0;
}

/* ── Poster Popup ──────────────────────────────────────────── */
.poster-modal-dialog {
    max-width: 480px;
}
.poster-modal-content {
    background: transparent;
    border: none;
}
.poster-modal-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(15,26,61,.35);
}
.poster-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ── Download Gate (bot-protection countdown) ────────────────── */
.download-card--counting {
    pointer-events: none;
    opacity: .8;
}
.download-card--counting .download-badge {
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* ── Info: Theme Spotlight ─────────────────────────────────── */
.info-theme-spotlight {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, rgba(11,37,69,.79), rgba(11,37,69,.94)), url('../images/Picture1.webp') center/cover no-repeat;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 16px 44px rgba(15,26,61,.35);
}
.info-theme-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.info-theme-eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--accent-light);
    font-family: var(--font-en);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.info-theme-quote {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(1.35rem, 3.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.info-theme-sub {
    position: relative;
    max-width: 620px;
    margin: 1rem auto 0;
    color: rgba(255,255,255,.78);
    font-size: .92rem;
    line-height: 1.7;
}

/* ── Info: Quick Facts ─────────────────────────────────────── */
.info-facts-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: -1.75rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.info-fact-chip {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1.3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.info-fact-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-fact-chip i {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 1.05rem;
}
.info-fact-label {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.info-fact-value {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ── Info: Objectives ──────────────────────────────────────── */
.info-objective-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.3rem 1.4rem;
    height: 100%;
    overflow: hidden;
    transition: var(--transition);
}
.info-objective-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(15,26,61,.25);
}

.info-objective-num {
    position: absolute;
    top: -.3rem;
    right: .5rem;
    font-family: var(--font-en);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: .08;
    line-height: 1;
}

.info-objective-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.info-objective-text {
    position: relative;
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Sponsor Tiers ──────────────────────────────────────────── */
.sponsor-tier-card {
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    border: 2px solid;
    transition: var(--transition);
}
.sponsor-tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.sponsor-tier-card.platinum { border-color: #7bafd4; background: #eaf1fb; }
.sponsor-tier-card.gold     { border-color: var(--accent); background: #fff8e0; }
.sponsor-tier-card.silver   { border-color: #b0b0b0; background: #f2f2f2; }

.tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: .28rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 1px;
}
.platinum .tier-badge { background: #4a90d9; color: #fff; }
.gold     .tier-badge { background: var(--accent); color: var(--primary-dark); }
.silver   .tier-badge { background: #888; color: #fff; }

.sponsor-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    color: var(--text-muted);
    gap: .5rem;
    margin-top: 1rem;
    font-size: .875rem;
}
.sponsor-logo-placeholder i { font-size: 3rem; opacity: .35; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline-group + .timeline-group { margin-top: 3rem; }

.timeline-group-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--bg-light);
    border-left: 5px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: .75rem 1.25rem;
    margin-bottom: 1.75rem;
}
.timeline-group-title i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(15,26,61,.3);
}

.timeline { position: relative; padding-left: 0; }

.timeline::before {
    content: '';
    position: absolute;
    left: 104px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--primary);
    opacity: .25;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.75rem;
    position: relative;
}

.timeline-date {
    min-width: 90px;
    text-align: right;
    padding-top: .1rem;
    padding-right: 1rem;
}
.tl-month { display: block; font-weight: 700; color: var(--primary); font-size: 1rem; }
.tl-year  { display: block; font-size: .78rem; color: var(--text-muted); font-family: var(--font-en); }

.timeline-dot {
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    margin-top: .3rem;
    z-index: 1;
    transition: var(--transition);
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(224,76,200,.28); }
    50%       { box-shadow: 0 0 0 9px rgba(224,76,200,.07); }
}
.timeline-dot--active {
    background: var(--accent);
    border-color: var(--accent);
    animation: dot-pulse 2.2s ease-in-out infinite;
}

.timeline-content {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .9rem 1.2rem;
    margin-left: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.timeline-content--active {
    border-color: var(--accent);
    background: var(--bg-light);
}

.timeline-content h5 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.timeline-content p  { font-size: .855rem; color: var(--text-muted); margin: 0; }

/* ── Fee Table ──────────────────────────────────────────────── */
.fee-table-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.fee-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    padding: 1rem;
    border: none;
    vertical-align: middle;
}

.fee-table tbody tr:nth-child(even) { background: var(--bg-light); }

.fee-table tbody td {
    padding: .9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}

.fee-amount {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

/* Period indicator bar */
.fee-period-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 575px) { .fee-period-bar { flex-direction: column; } }

.fee-period-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: var(--transition);
}
.fee-period-card--active {
    border-color: var(--primary);
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.fee-period-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}

.fee-period-label {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: var(--primary);
}
.fee-period-date {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .1rem;
}
.fee-period-now {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(162,70,176,.12);
    padding: .22rem .7rem;
    border-radius: 50px;
    white-space: nowrap;
}
.fee-period-now i { font-size: .55rem; }

/* Active column highlight */
.fee-table thead th.fee-col--active {
    background: var(--primary-dark);
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}
.fee-table tbody td.fee-col--active {
    background: rgba(162,70,176,.08);
}

.fee-col-badge {
    display: inline-block;
    margin-left: .4rem;
    font-size: .65rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: .1rem .45rem;
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: .5px;
}

/* Row icon */
.fee-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 7px;
    color: #fff;
    font-size: .85rem;
    margin-right: .55rem;
    vertical-align: middle;
    flex-shrink: 0;
}
.fee-row-icon--free {
    background: #059669;
    color: #fff;
}

.fee-unit {
    font-size: .78rem;
    color: var(--text-muted);
    margin-left: .2rem;
}

/* Free badge */
.fee-badge-free {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(5,150,105,.1);
    color: #059669;
    border: 1.5px solid rgba(5,150,105,.25);
    border-radius: 50px;
    padding: .28rem 1rem;
    font-size: .87rem;
    font-weight: 700;
}

.fee-row-free td { vertical-align: middle; }

/* Footnotes */
.fee-footnotes {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.fee-footnote-item {
    display: flex;
    gap: .6rem;
    font-size: .845rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding: .25rem 0;
}
.fee-footnote-item + .fee-footnote-item { border-top: 1px solid var(--border); }
.fee-footnote-mark {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--primary);
    min-width: 24px;
    flex-shrink: 0;
    margin-top: .05rem;
}

/* ── Topic Flip Cards ───────────────────────────────────────── */
.topic-col {
    display: flex;
    flex-direction: column;
}

.topic-flip-card {
    width: 100%;
    aspect-ratio: 350/680;
    max-width: 240px;
    flex-shrink: 0;
    margin: 0 auto;
    perspective: 1400px;
}

.topic-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .7s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}
.topic-flip-card:hover .topic-flip-inner,
.topic-flip-card.is-flipped .topic-flip-inner {
    transform: rotateY(180deg);
}

.topic-flip-front,
.topic-flip-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 10px 28px rgba(15,26,61,.3);
}

.topic-flip-front {
    border: 1.5px solid rgba(255,255,255,.5);
}

.topic-img-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.topic-flip-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: rgba(15,26,61,.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: .78rem;
    padding: .2rem .55rem;
    border-radius: 50px;
}

.topic-flip-back {
    transform: rotateY(180deg);
    background: var(--primary-dark);
    color: #fff;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.topic-flip-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-light);
    margin-bottom: .6rem;
}

.topic-flip-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .5rem;
}

.topic-flip-desc {
    font-size: .72rem;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
    margin: 0;
}

.topic-caption {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: .9rem auto 0;
    max-width: 240px;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem .85rem .9rem;
    text-align: center;
    background: linear-gradient(160deg, #fff, #f6eefb);
    border: 1px solid rgba(179,79,224,.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.topic-caption-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 4px 10px rgba(179,79,224,.35);
}

.topic-caption-text {
    display: block;
    width: 100%;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: var(--primary-dark);
}

.topic-caption:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Payment Cards ──────────────────────────────────────────── */
.pay-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}
.pay-card:hover { box-shadow: var(--shadow-md); }

.pay-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-dark);
    padding: 1.1rem 1.4rem;
}
.pay-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--accent);
    flex-shrink: 0;
}
.pay-card-icon--qr { color: #fbedfc; }
.pay-card-title { font-size: 1rem; font-weight: 700; color: #fff; }
.pay-card-sub   { font-size: .8rem; color: rgba(255,255,255,.65); }

.pay-card-body { padding: 1.25rem 1.4rem; }

.pay-field {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
}
.pay-field:last-child { border-bottom: none; }
.pay-field--accent { background: rgba(162,70,176,.04); margin: 0 -1.4rem; padding: .65rem 1.4rem; border-radius: 8px; border: none; margin-top: .4rem; }

.pay-label {
    min-width: 90px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: .8rem;
}
.pay-value {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}
.pay-value small { font-weight: 400; color: var(--text-muted); font-size: .78rem; }

.pay-accno {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}
.pay-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 7px;
    color: var(--primary);
    cursor: pointer;
    font-size: .9rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.pay-copy-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.pay-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    border: 2px dashed rgba(162,70,176,.3);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: .875rem;
    background: rgba(162,70,176,.03);
}
.pay-qr-box i { font-size: 4rem; color: var(--primary); opacity: .3; }

/* Payment Notes */
.pay-notes {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pay-notes-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--primary-dark);
    color: #fff;
    padding: .75rem 1.4rem;
    font-size: .9rem;
    font-weight: 700;
}
.pay-notes-title i { color: var(--accent); font-size: 1rem; }
.pay-notes-list {
    margin: 0;
    padding: 1rem 1.4rem 1rem 2.6rem;
}
.pay-notes-list li {
    font-size: .875rem;
    color: var(--text-muted);
    padding: .3rem 0;
    line-height: 1.65;
}
.pay-notes-list li + li { border-top: 1px dashed var(--border); }

/* ── Journal Notice ─────────────────────────────────────────── */
.journal-notice {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    background: var(--bg-light);
    border: 1px solid rgba(162,70,176,.25);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    font-size: .9rem;
    color: var(--text-dark);
    line-height: 1.7;
}
.journal-notice-icon {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

/* ── Journal Table ───────────────────────────────────────────── */
.journal-table thead th {
    background: var(--primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    padding: .85rem 1rem;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.journal-table tbody tr:nth-child(even) { background: rgba(162,70,176,.03); }
.journal-table tbody tr:hover { background: rgba(162,70,176,.06); }

.journal-table tbody td {
    padding: .85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-size: .87rem;
}

.journal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    font-family: var(--font-en);
}

.journal-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}
.journal-name-link {
    display: block;
    text-decoration: none;
}
.journal-name-link:hover .journal-name,
.journal-name-link:focus .journal-name {
    color: var(--accent);
}
.journal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}
.journal-database {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(179,79,224,.08);
    border: 1px solid rgba(179,79,224,.2);
    border-radius: 6px;
    padding: .22rem .7rem;
}
.journal-issn {
    font-size: .72rem;
    color: var(--text-muted);
    font-family: var(--font-en);
}
.journal-note {
    display: block;
    margin-top: .3rem;
    font-size: .77rem;
    color: #c85db8;
    font-style: italic;
}

.journal-slots {
    display: block;
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.journal-slots-unit { font-size: .72rem; color: var(--text-muted); }
.journal-slots--unlimited { font-size: .85rem; font-weight: 700; }

.journal-fee-free {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 700;
    color: #059669;
    background: rgba(5,150,105,.08);
    border: 1px solid rgba(5,150,105,.2);
    border-radius: 6px;
    padding: .22rem .7rem;
}
.journal-fee-paid {
    font-size: .82rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.journal-issue {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Download Cards ─────────────────────────────────────────── */
.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    text-decoration: none;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: inherit;
}
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }

.download-card--disabled {
    cursor: not-allowed;
    opacity: .55;
    filter: grayscale(.3);
}
.download-card--disabled:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
    transform: none;
}

.download-icon { font-size: 2rem; min-width: 38px; text-align: center; }
.download-icon--word  { color: #2b579a; }
.download-icon--pdf   { color: #c0392b; }
.download-icon--excel { color: #217346; }
.download-icon--ppt   { color: #d04423; }
.download-icon--drive { color: #0f9d58; }
.download-icon--form  { color: #673ab7; }

.download-info { flex: 1; }
.download-info h6    { font-size: .875rem; font-weight: 700; color: var(--primary); margin-bottom: .1rem; }
.download-info small { font-family: var(--font-en); font-size: .75rem; color: var(--text-muted); }

.download-arrow { font-size: 1.1rem; color: var(--primary); transition: var(--transition); }
.download-card:hover .download-arrow { color: var(--accent-dark); transform: translateY(1px); }

/* ── Supporter Banner ───────────────────────────────────────── */
.supporter-banner {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.supporter-banner:hover { box-shadow: var(--shadow-md); }

.supporter-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.82);
    padding: 60px 0 0;
}

.footer-brand { font-size: 1.35rem; font-weight: 800; }
.footer-brand .brand-abbr { color: #fff; }
.footer-brand .brand-year { color: var(--accent); }

.footer-desc { font-size: .875rem; color: rgba(255,255,255,.58); line-height: 1.85; }

.footer-heading {
    color: var(--accent);
    font-weight: 600;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { padding: .28rem 0; font-size: .86rem; color: rgba(255,255,255,.60); }
.footer-links a  { color: rgba(255,255,255,.60); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    background: rgba(0,0,0,.22);
    padding: 1.1rem 0;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.42); margin: 0; }

/* ── Scroll Reveal Animation ────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-fade {
    opacity: 0;
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.reveal       { transform: translateY(34px); }
.reveal-left  { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-zoom  { transform: scale(.86); }
.reveal-fade  { transform: none; }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible,
.reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger helpers — combine with a reveal variant class */
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .4s; }
.reveal-d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-zoom, .reveal-fade {
        transition: opacity .3s ease;
        transform: none;
    }
}

/* ── Language Switching ─────────────────────────────────────── */

/*
 * Default: Thai is shown, English is hidden.
 * When <body> has class "lang-en", English is shown and Thai is hidden.
 * Uses the semantic HTML `lang` attribute on each span.
 */
body [lang="en"]    { display: none; }
body.lang-en [lang="th"] { display: none; }
body.lang-en [lang="en"] { display: inline; }

/* For block-level contexts (p, div, li that use lang spans) */
body.lang-en p > [lang="en"],
body.lang-en td > [lang="en"],
body.lang-en li > [lang="en"],
body.lang-en h5 > [lang="en"],
body.lang-en h6 > [lang="en"] { display: inline; }

/* Preserve block display for elements that use display:block by class */
body.lang-en .tl-month[lang="en"],
body.lang-en .tl-year[lang="en"],
body.lang-en .journal-name[lang="en"],
body.lang-en .journal-note[lang="en"] { display: block; }

/* ── Fee table: national / international blocks (shown separately) ── */
.fee-block-en { margin-top: 3rem; }
.fee-block-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

/* USD sub-label in English fee table */
.fee-usd {
    font-size: .76rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

/* Column date label in English fee table header */
.fee-col-date {
    font-size: .72rem;
    font-weight: 400;
    opacity: .75;
    margin-top: 2px;
}

/* Language toggle button */
.btn-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    font-family: var(--font-en);
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.btn-lang-toggle:hover { border-color: rgba(255,255,255,.6); }
.btn-lang-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lt-item {
    display: inline-block;
    padding: .3rem .65rem;
    border-radius: 50px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}
.lt-item.lt-active {
    background: var(--accent);
    color: var(--primary-dark);
}

/* ── Countdown / Contact FAB Widget ─────────────────────────── */
.cd-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
}

/* Popups stack (same position, one at a time) */
.cd-fab-popups { display: grid; }
.cd-fab-popups > * { grid-area: 1 / 1; align-self: end; }

/* FAB buttons column */
.cd-fab-btns {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: center;
}

/* FAB button base */
.cd-fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
}
.cd-fab-btn:hover { transform: scale(1.09); }
.cd-fab-btn--cd { background: #0d3b6e; box-shadow: 0 4px 18px rgba(13,59,110,.45); }
.cd-fab-btn--ct { background: #198754; box-shadow: 0 4px 18px rgba(25,135,84,.4); }
.cd-fab-btn--cd:hover { box-shadow: 0 6px 24px rgba(13,59,110,.55); }
.cd-fab-btn--ct:hover { box-shadow: 0 6px 24px rgba(25,135,84,.5); }

.cd-pulse-ring {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(13,59,110,.4);
    animation: cdRing 2s ease-out infinite;
    pointer-events: none;
}
.cd-fab-btn--ct .cd-pulse-ring { border-color: rgba(25,135,84,.4); }
@keyframes cdRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* Popup base */
.cd-popup, .ct-popup {
    border-radius: 18px;
    padding: 1.25rem 1.4rem 1rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    width: 270px;
    transform-origin: bottom right;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
    color: #fff;
}
.cd-popup { background: #0d3b6e; }
.ct-popup { background: #155724; }
.cd-popup.cd-hidden, .ct-popup.ct-hidden {
    transform: scale(.7) translateY(12px);
    opacity: 0;
    pointer-events: none;
}

/* Popup header */
.cd-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: .9rem;
}
.cd-popup-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    opacity: .55;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.cd-popup-label i { animation: cdPulse 2s ease-in-out infinite; }
@keyframes cdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.cd-popup-title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: .2rem;
}
.cd-close-btn {
    background: rgba(255,255,255,.12);
    border: none;
    color: rgba(255,255,255,.7);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: .75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: .5rem;
    transition: background .2s;
}
.cd-close-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Countdown timer */
.cd-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .3rem;
    margin-bottom: 1rem;
}
.cd-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: .55rem .25rem .4rem;
}
.cd-box-num {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-box-label {
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .5;
    margin-top: .2rem;
}
.cd-colon {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: .3;
    padding-bottom: .8rem;
    flex-shrink: 0;
}

/* Milestone list */
.cd-list { list-style: none; padding: 0; margin: 0; }
.cd-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    padding: .35rem 0;
    border-top: 1px solid rgba(255,255,255,.07);
    opacity: .55;
}
.cd-list li:first-child { border-top: none; }
.cd-list li.cd-li--active { opacity: 1; font-weight: 600; }
.cd-list li.cd-li--past  { opacity: .25; text-decoration: line-through; }
.cd-list li i { font-size: .8rem; flex-shrink: 0; }
.cd-li-date { margin-left: auto; opacity: .6; font-size: .7rem; white-space: nowrap; }
.cd-li--active .cd-li-badge {
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    font-size: .6rem;
    padding: .1rem .35rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Contact list */
.ct-list { list-style: none; padding: 0; margin: 0; }
.ct-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .82rem;
}
.ct-list li:first-child { border-top: none; }
.ct-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background .2s;
}
.ct-list a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .75rem; width: 100%; }
.ct-list a:hover .ct-icon { background: rgba(255,255,255,.25); }
.ct-info-label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .5;
    display: block;
    line-height: 1;
    margin-bottom: .1rem;
}
.ct-info-value { font-weight: 600; line-height: 1.2; }

/* ── Registration Step Cards ────────────────────────────────── */
.rs-steps-track { position: relative; }

.rs-step-col {
    position: relative;
    display: flex;
    align-items: center;
}

.rs-step-arrow {
    display: none;
    position: absolute;
    top: 68px;
    right: -.65rem;
    z-index: 2;
    color: var(--accent);
    font-size: 1.1rem;
    opacity: .55;
}
@media (min-width: 992px) { .rs-step-arrow { display: block; } }

.rs-step-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.8rem 1rem 1.3rem;
    text-align: center;
    height: 100%;
    width: 100%;
    position: relative;
    transition: var(--transition);
}
.rs-step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.rs-step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(15,26,61,.2);
}
.rs-step-card:hover::before { transform: scaleX(1); }
.rs-step-card:hover .rs-step-icon { transform: scale(1.1) rotate(-6deg); box-shadow: 0 8px 22px rgba(15,26,61,.4); }

.rs-step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(179,79,224,.4), 0 0 0 4px var(--bg-white);
}

.rs-step-icon {
    position: relative;
    width: 54px;
    height: 54px;
    margin: .5rem auto .9rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(15,26,61,.3);
    transition: var(--transition);
}
.rs-step-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(15,26,61,.3);
}

.rs-step-label { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── Expandable table rows (mobile) ────────────────────────────
   On small screens, secondary columns are hidden via Bootstrap's
   d-none d-md-table-cell and revealed per-row through this toggle. */
.tbl-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: .4rem;
    background: rgba(162,70,176,.08);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    font-size: .8rem;
    vertical-align: middle;
    transition: var(--transition);
}
.tbl-toggle:hover { background: rgba(162,70,176,.14); }
.tbl-toggle i { transition: transform .25s ease; }
.tbl-toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.tbl-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.tbl-detail-row td { padding: 0 !important; border-bottom: 1px solid var(--border); }
.tbl-detail-body {
    padding: .25rem 1rem .85rem 1rem;
    background: rgba(162,70,176,.035);
}
.tbl-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: .82rem;
}
.tbl-detail-item:last-child { border-bottom: none; }
.tbl-detail-label { font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.tbl-detail-value { text-align: right; color: var(--text-dark); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-section { padding: 60px 0; }

    .timeline::before { left: 74px; }
    .timeline-date { min-width: 64px; }

    .fee-table thead th small { display: none; }
}

@media (max-width: 575px) {
    .timeline::before,
    .timeline-dot { display: none; }

    .timeline-item { flex-direction: column; gap: .3rem; }
    .timeline-date { text-align: left; padding: 0; }
    .timeline-content { margin-left: 0; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-hero-submit,
    .btn-hero-register { text-align: center; }

    .hero-theme-quote { padding: .8rem 1.1rem; }
    .hero-stat-chip { padding: .5rem .9rem; }
}
