/* =====================================================================
   APSPGHAN/PedNAT 2027 — theme
   Palette from the event banner: deep navy, violet ribbons, gold accents.
   Loaded LAST so it overrides Bootstrap and (later) the Envens template.
   ===================================================================== */
:root {
  --navy-900: #070f2e;
  --navy-800: #0b1a4a;
  --navy-700: #132766;
  --navy-600: #1d3580;
  --violet-700: #4a2380;
  --violet-600: #5b2d90;
  --violet-500: #7b3fbf;
  --violet-400: #9b5de5;
  --violet-300: #c9a8ff;
  --gold-600: #b8891c;
  --gold-500: #d4a627;
  --gold-400: #e8c04a;
  --gold-300: #f3d98a;
  --ink: #0b1a4a;
  --ink-muted: #5a627f;
  --on-dark: #ffffff;
  --on-dark-muted: #c9cfe3;
  --surface: #ffffff;
  --surface-alt: #f4f5fa;
  --line: #e3e6f0;
  --font-sans: 'DM Sans', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(7, 15, 46, .18);
  --shadow-lg: 0 24px 60px rgba(7, 15, 46, .35);

  --bs-primary: var(--violet-600);
  --bs-primary-rgb: 91, 45, 144;
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: #1f2544;
  --bs-link-color: var(--violet-600);
  --bs-link-hover-color: var(--violet-500);
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { font-family: var(--font-sans); background: var(--surface); color: var(--bs-body-color); }
body.lang-th { font-family: 'Noto Sans Thai', 'DM Sans', system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.serif { font-family: var(--font-serif); font-weight: 400; }
.btn { border-radius: 999px; font-weight: 700; padding: .65rem 1.4rem; }
.btn-primary { --bs-btn-bg: var(--violet-600); --bs-btn-border-color: var(--violet-600); --bs-btn-hover-bg: var(--violet-500); --bs-btn-hover-border-color: var(--violet-500); --bs-btn-active-bg: var(--violet-700); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); border: 0; box-shadow: 0 6px 18px rgba(212, 166, 39, .35); }
.btn-gold:hover { color: var(--navy-900); filter: brightness(1.07); transform: translateY(-1px); }
.btn-outline-light:hover { color: var(--navy-900); }
.text-gold { color: var(--gold-400) !important; }
.text-violet { color: var(--violet-500) !important; }
.text-muted-light { color: var(--on-dark-muted) !important; }
.bg-navy { background: var(--navy-800); color: var(--on-dark); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5 { color: var(--on-dark); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-500); margin-bottom: .6rem; }
.bg-navy .eyebrow, .hero .eyebrow { color: var(--gold-400); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 20px rgba(7, 15, 46, .35); }
.topbar { background: var(--navy-900); color: var(--on-dark-muted); font-size: .82rem; padding: .35rem 0; }
.topbar-link { color: var(--on-dark-muted); text-decoration: none; }
.topbar-link:hover { color: var(--gold-400); }
.main-nav { background: var(--navy-800); padding: .55rem 0; }
.brand-logos { display: inline-flex; gap: 6px; align-items: center; }
.brand-logos img { height: 42px; width: 42px; object-fit: cover; border-radius: 50%; background: #fff; border: 2px solid #fff; }
.brand-logos img.wide { width: auto; height: 42px; border-radius: 10px; object-fit: contain; padding: 2px 6px; }
.brand-text { color: #fff; font-weight: 800; line-height: 1.05; font-size: .95rem; }
.brand-text small { display: block; font-weight: 500; color: var(--gold-400); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav .nav-link { color: var(--on-dark-muted); font-weight: 600; padding: .5rem .85rem; border-radius: 999px; }
.main-nav .nav-link:hover { color: #fff; }
.main-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 -2px 0 var(--gold-400); }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 700; }
.lang-switch a { color: var(--on-dark-muted); padding: .25rem .6rem; text-decoration: none; }
.lang-switch a.on { background: var(--gold-500); color: var(--navy-900); }
@media (max-width: 991.98px) { .main-nav .navbar-collapse { padding: .75rem 0 .5rem; } .lang-switch { margin: .5rem .85rem 0; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 70% -10%, #1b2f7a 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: #fff; padding: 5.5rem 0 0; }
.hero .container { position: relative; z-index: 2; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.hero-title .slash { color: var(--gold-400); }
.hero-sub { font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 700; color: #fff; margin-top: .4rem; }
.hero-meta { font-family: var(--font-serif); font-size: 1.1rem; color: var(--on-dark-muted); }
.hero-lead { max-width: 640px; color: var(--on-dark-muted); font-size: 1.05rem; }
.hero-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logos img { height: 64px; background: #fff; border-radius: 14px; padding: 6px; object-fit: contain; box-shadow: var(--shadow); }
.hero-logos img.round { width: 64px; border-radius: 50%; object-fit: cover; padding: 0; border: 3px solid #fff; }
.hero-date-card { background: rgba(11, 26, 74, .78); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.hero-date-card .big { font-size: clamp(1.9rem, 2.4vw, 2.6rem); font-weight: 800; line-height: 1; color: var(--gold-400); white-space: nowrap; letter-spacing: -.02em; }
.hero-date-card .big .dash { font-size: .6em; vertical-align: .12em; color: #fff; margin: 0 .05em; }
.hero-skyline { position: relative; margin-top: 3rem; height: 180px; }
.hero-skyline svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.ribbon-wave { position: absolute; left: 0; right: 0; bottom: -2px; height: 90px; }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown .cd { min-width: 78px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: .6rem .4rem; }
.countdown .cd b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--gold-400); }
.countdown .cd span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); }

/* ---------- sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: 3rem 0; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; margin: 0; }
.page-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 60%, var(--violet-700)); color: #fff; padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.page-hero p { color: var(--on-dark-muted); margin: .5rem 0 0; font-size: 1.05rem; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; height: 200%; background: radial-gradient(closest-side, rgba(155, 93, 229, .35), transparent 70%); }

/* day cards — header band + body, no side bar */
.day-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0; height: 100%; overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.day-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.day-card .day-head { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; background: linear-gradient(135deg, var(--navy-800), var(--violet-600)); color: #fff; }
.day-card .day-num { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.day-card .day-n { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-300); }
.day-card .day-date { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.2; }
.day-card .day-body { padding: 1.1rem 1.4rem 1.3rem; }
.day-card .day-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.day-card.is-main .day-head { background: linear-gradient(135deg, var(--gold-500), #a87a12); color: var(--navy-900); }
.day-card.is-main .day-n { color: rgba(7, 15, 46, .65); }
.day-card.is-main .day-date { color: var(--navy-900); }
.badge-event { display: inline-block; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: #efe6ff; color: var(--violet-700); }
.badge-event.main { background: #fff3cf; color: #8a6510; }

/* topics */
.topic { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; height: 100%; transition: box-shadow .2s, transform .2s; }
.topic:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.topic .ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--violet-500), var(--navy-600)); }
.topic h5 { font-size: 1rem; margin: 0 0 .25rem; }
.topic p { font-size: .88rem; color: var(--ink-muted); margin: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--surface-alt); color: var(--violet-600); border: 1px solid var(--line); }
.tag.hands_on { background: #fff3cf; color: #8a6510; border-color: #f3d98a; }
.tag.case_based { background: #e9f5ff; color: #1b5e9c; border-color: #cfe7ff; }
.tag.demo { background: #eafaf0; color: #1d7a45; border-color: #c9efd7; }
.bg-navy .tag { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }

/* call for papers */
.cfp { background: linear-gradient(135deg, var(--navy-800), var(--violet-700)); color: #fff; border-radius: 24px; padding: 3rem; position: relative; overflow: hidden; }
.cfp::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 192, 74, .35), transparent); }
.cfp h2 { color: #fff; }
.cfp .soon { display: inline-block; transform: rotate(-4deg); background: var(--gold-400); color: var(--navy-900); font-weight: 800; padding: .5rem 1.2rem; border-radius: 10px; box-shadow: var(--shadow); }
.cfp ul li { color: var(--violet-300); font-weight: 600; }

/* pricing */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; height: 100%; position: relative; }
.price-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--shadow); }
.price-card .tier { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-500); }
.price-card .amount { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; margin: .6rem 0 .2rem; }
.price-card .amount small { font-size: 1.1rem; font-weight: 700; color: var(--ink-muted); }
.price-card .when { color: var(--ink-muted); font-size: .9rem; }
.price-card .ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: var(--gold-500); color: var(--navy-900); font-size: .68rem; font-weight: 800; padding: .25rem 2.6rem; letter-spacing: .08em; }

/* logos row */
.logo-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: center; }
.logo-row img { height: 84px; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px 12px; border: 1px solid var(--line); }
.logo-row img.round { width: 84px; border-radius: 50%; padding: 0; object-fit: cover; }
.logo-row .lbl { width: 100%; text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }

/* programme */
.schedule-tabs .nav-link { border-radius: 12px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: .8rem 1.1rem; text-align: left; }
.schedule-tabs .nav-link small { display: block; font-weight: 500; color: var(--ink-muted); font-size: .78rem; }
.schedule-tabs .nav-link.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.schedule-tabs .nav-link.active small { color: var(--gold-400); }
.sess { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: .6rem; align-items: start; }
.sess .t { font-weight: 800; color: var(--violet-600); font-variant-numeric: tabular-nums; }
.sess .ttl { font-weight: 700; color: var(--ink); }
.sess .sp { color: var(--ink-muted); font-size: .9rem; }
.sess.break { background: var(--surface-alt); border-style: dashed; }
.sess.break .ttl { font-weight: 600; color: var(--ink-muted); }
@media (max-width: 575.98px) { .sess { grid-template-columns: 1fr; gap: .3rem; } }

/* speakers */
.speaker-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; height: 100%; transition: transform .2s, box-shadow .2s; }
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.speaker-card .avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-weight: 800; font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--violet-500), var(--navy-700)); border: 4px solid var(--gold-300); }
.speaker-card h5 { font-size: 1.05rem; margin-bottom: .2rem; }
.speaker-card p { color: var(--ink-muted); font-size: .9rem; margin: 0; }

/* registration form */
.reg-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; }
.reg-step h4 { display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; margin-bottom: 1.25rem; }
.reg-step h4 .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-size: .9rem; flex: 0 0 32px; }
.form-label { font-weight: 600; font-size: .92rem; }
.req { color: #d63384; }
.form-control, .form-select { border-radius: 10px; padding: .6rem .85rem; border-color: #d5d9e6; }
.form-control:focus, .form-select:focus { border-color: var(--violet-400); box-shadow: 0 0 0 .2rem rgba(123, 63, 191, .15); }
.choice { display: block; cursor: pointer; border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1rem; height: 100%; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--violet-400); }
.choice input { margin-right: .5rem; accent-color: var(--violet-600); }
.choice.on { border-color: var(--violet-600); background: #f6f0ff; }
.choice .hint { display: block; font-size: .8rem; color: var(--ink-muted); margin-left: 1.45rem; }
.card-ticket { position: relative; display: block; cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.1rem 3.2rem; background: #fff; transition: border-color .15s, box-shadow .15s; height: 100%; }
.card-ticket:hover { border-color: var(--violet-400); }
.card-ticket.on { border-color: var(--violet-600); box-shadow: 0 0 0 3px rgba(123, 63, 191, .12); background: #faf7ff; }
.card-ticket input { position: absolute; left: 1.1rem; top: 1.3rem; width: 20px; height: 20px; accent-color: var(--violet-600); }
.card-ticket .d { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-500); }
.card-ticket.main .d { color: var(--gold-600); }
.card-ticket .l { font-weight: 800; color: var(--ink); }
.card-ticket .p { font-size: 1.35rem; font-weight: 800; color: var(--navy-700); margin-top: .35rem; }
.card-ticket .p small { font-size: .8rem; color: var(--ink-muted); font-weight: 600; text-decoration: line-through; margin-left: .35rem; }
.summary { position: sticky; top: 96px; background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.summary h5 { color: #fff; }
.summary .line { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-size: .95rem; }
.summary .line.disc { color: var(--violet-300); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .75rem; }
.summary .total b { font-size: 2rem; color: var(--gold-400); }
.summary .period { font-size: .8rem; color: var(--on-dark-muted); }
.summary .bundle { background: rgba(232, 192, 74, .15); border: 1px solid rgba(232, 192, 74, .4); color: var(--gold-300); border-radius: 10px; padding: .5rem .75rem; font-size: .85rem; margin-top: .75rem; }
.mock-note { font-size: .8rem; color: var(--ink-muted); }
.pay-opt img { height: 26px; }

/* abstract timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.2rem; margin-bottom: 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--violet-500); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--violet-500); }
.timeline li.gold::before { background: var(--gold-500); box-shadow: 0 0 0 2px var(--gold-500); }
.timeline b { display: block; color: var(--ink); }
.timeline span { color: var(--ink-muted); font-size: .9rem; }

/* venue */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
.info-list li { display: flex; gap: .75rem; margin-bottom: .7rem; }
.info-list i { color: var(--violet-500); font-size: 1.15rem; }

/* footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding: 4rem 0 1.5rem; margin-top: 0; }
.footer-logos img { height: 52px; background: #fff; border-radius: 10px; padding: 4px 8px; object-fit: contain; }
.footer-logos img:not(.wide) { width: 52px; border-radius: 50%; padding: 0; object-fit: cover; }
.footer-title { color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; font-size: .92rem; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; }

/* small screens */
@media (max-width: 575.98px) {
  .countdown .cd { min-width: 0; flex: 1 1 0; padding: .5rem .2rem; }
  .countdown .cd b { font-size: 1.35rem; }
  .hero { padding-top: 3.5rem; }
  .hero-logos img { height: 52px; }
  .hero-logos img.round { width: 52px; }
  .cfp { padding: 2rem 1.5rem; }
  .price-card .amount { font-size: 2.4rem; }
}

/* welcome message */
.welcome { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 3rem; box-shadow: var(--shadow); position: relative; }
.welcome::before { content: "\201C"; position: absolute; top: -10px; left: 28px; font-family: var(--font-serif); font-size: 7rem; line-height: 1; color: var(--gold-300); }
.welcome p { font-size: 1.05rem; line-height: 1.75; color: #2a3050; }
.welcome .sig { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.welcome .sig b { display: block; color: var(--ink); font-size: 1.05rem; }
.welcome .sig span { color: var(--ink-muted); font-size: .92rem; }
@media (max-width: 575.98px) { .welcome { padding: 2rem 1.25rem; } }

/* sponsors */
.sponsor-tier { margin-bottom: 2.25rem; }
.tier-name { text-align: center; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.tier-platinum .tier-name { color: var(--violet-600); }
.tier-gold .tier-name { color: var(--gold-600); }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.sponsor-logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 110px; width: 240px; padding: 1rem; text-decoration: none; color: var(--ink-muted); font-weight: 700; transition: box-shadow .2s, transform .2s; }
.sponsor-logo:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.sponsor-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.tier-platinum .sponsor-logo { height: 140px; width: 300px; border-color: var(--violet-300); }
.tier-gold .sponsor-logo { height: 120px; width: 260px; border-color: var(--gold-300); }
.tier-silver .sponsor-logo { height: 96px; width: 200px; }
@media (max-width: 575.98px) { .sponsor-logo, .tier-platinum .sponsor-logo, .tier-gold .sponsor-logo { width: calc(50% - .5rem); height: 90px; } }

/* hero with banner artwork */
.hero--banner { padding: 0; background: var(--navy-900); }
.hero-banner { position: relative; line-height: 0; }
.hero-banner img { width: 100%; height: auto; display: block; }
.hero-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(to bottom, transparent, var(--navy-900)); }
.hero-bar { background: var(--navy-900); padding: 1.5rem 0 3rem; position: relative; }
.hero--banner .hero-date-card { padding: 1.1rem 1.4rem; }
@media (min-width: 576px) { .border-start-sm { border-left: 1px solid rgba(255,255,255,.15); padding-left: 1.25rem; } }
@media (min-width: 1200px) { .hero-bar { margin-top: -6rem; background: transparent; padding-bottom: 2.5rem; } .hero--banner .hero-date-card { background: rgba(7, 15, 46, .85); } }

/* welcome signatures with photo */
.sig-person { display: flex; align-items: center; gap: 1rem; }
.sig-person img, .sig-person .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px; border: 3px solid var(--gold-300); box-shadow: var(--shadow); }
.sig-person .avatar { display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--violet-500), var(--navy-700)); }

/* abstract template card */
.tpl-card { background: linear-gradient(160deg, var(--navy-800), var(--violet-700)); color: #fff; border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.tpl-card h4 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.tpl-card p { color: var(--on-dark-muted); font-size: .92rem; }
.tpl-card h6 { color: var(--gold-300); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.tpl-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 1.6rem; color: var(--gold-400); margin-bottom: 1rem; }
.tpl-guide { padding-left: 1.1rem; margin: 0; font-size: .88rem; color: var(--on-dark-muted); }
.tpl-guide li { margin-bottom: .3rem; }

/* invitation letters */
.inv-card { display: flex; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; transition: box-shadow .2s; }
.inv-card:hover { box-shadow: var(--shadow); }
.inv-card h5 { margin-bottom: .25rem; font-size: 1.05rem; }
.inv-card p { margin: 0 0 .25rem; color: var(--ink-muted); font-size: .92rem; }
.inv-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--violet-500), var(--navy-600)); }
@media (max-width: 575.98px) { .inv-card { flex-wrap: wrap; } .inv-card .btn { width: 100%; } }

/* countdown: always 4 tiles in one row, scaled to the card width */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex-wrap: nowrap; }
.countdown .cd { min-width: 0; padding: .55rem .2rem; }
.countdown .cd b { font-size: clamp(1.2rem, 1.6vw, 1.7rem); font-variant-numeric: tabular-nums; }
.countdown .cd span { font-size: .62rem; letter-spacing: .06em; white-space: nowrap; }
.hero--banner .hero-date-card .big { font-size: clamp(1.8rem, 2.2vw, 2.4rem); }
@media (max-width: 575.98px) { .countdown .cd b { font-size: 1.4rem; } .border-start-sm { margin-top: .5rem; } }

.tpl-pending { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; color: var(--gold-300); }
.summary .line.fee { color: var(--gold-300); }

/* upload slip block */
.slip-block { background: var(--surface-alt); border: 1px dashed #c9cde0; border-radius: var(--radius); padding: 1.25rem; }
.bank-box .bank-title { font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 0; font-size: .92rem; }
.bank-box dt { color: var(--ink-muted); font-weight: 600; }
.bank-box dd { margin: 0; color: var(--ink); }
.bank-box dd.acct { font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; color: var(--violet-600); }

/* notice above the registration form (image + html) */
.reg-notice { display: flex; gap: 1.5rem; align-items: flex-start; background: linear-gradient(180deg, #f7f4ff, #f1f3fb); border: 1px solid #dcd6f2; border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.reg-notice-body h5 { display: flex; align-items: center; gap: .6rem; }
.reg-notice-body h5::before { content: "\F33E"; font-family: 'bootstrap-icons'; font-size: 1.1rem; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--violet-600); color: #fff; }
.reg-notice-img { flex: 0 0 280px; max-width: 40%; }
.reg-notice-img img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.reg-notice-body { flex: 1 1 auto; font-size: .95rem; }
.reg-notice-body h5 { font-size: 1.1rem; margin-bottom: .6rem; }
.reg-notice-body ul { padding-left: 1.2rem; margin: 0; }
.reg-notice-body li { margin-bottom: .35rem; }
.reg-notice-body :last-child { margin-bottom: 0; }
@media (max-width: 767.98px) { .reg-notice { flex-direction: column; } .reg-notice-img { flex-basis: auto; max-width: 100%; } }
.speaker-card img.avatar { object-fit: cover; display: block; }

/* Program page: a day shown as an uploaded image instead of the text schedule */
.prog-image{background:#fff;border:1px solid var(--line, #e5e7f0);border-radius:14px;padding:12px;text-align:center;box-shadow:0 6px 20px rgba(11,26,74,.06)}
.prog-image img{max-width:100%;height:auto;border-radius:8px}

/* registration: highlight the step that still needs attention */
.reg-step.step-flag, .slip-block.step-flag{box-shadow:0 0 0 2px var(--gold, #d4a627);transition:box-shadow .3s ease}
.reg-step .form-control.is-invalid, .reg-step .form-select.is-invalid{border-color:#dc3545;box-shadow:0 0 0 .2rem rgba(220,53,69,.15)}
