/* ==========================================================================
   Adventist Design module (SDA Design System) for the ministry website.
   Colours, fonts and corner radius come from /theme.css (Admin → Appearance).
   Built on Bootstrap 5.3. This file holds components only, no hard-coded brand colours.
   ========================================================================== */
:root { --sda-ink: #1b2433; --sda-muted: #5b6678; --sda-line: #e3e8f0; --sda-shadow: 0 1px 2px rgba(11, 31, 63, .06), 0 10px 28px rgba(11, 31, 63, .08); }
html { scroll-behavior: smooth; }
body { font-family: var(--sda-font-body); color: var(--sda-ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--sda-font-heading); color: var(--sda-navy); font-weight: 700; letter-spacing: -.01em; }
a { text-underline-offset: 3px; }
.text-body-secondary { color: var(--sda-muted) !important; }
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }

/* ---- buttons ---- */
.btn { font-weight: 600; border-radius: var(--sda-radius); padding: .6rem 1.3rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .85rem; }
.btn-primary { --bs-btn-bg: var(--sda-blue); --bs-btn-border-color: var(--sda-blue); --bs-btn-hover-bg: var(--sda-blue-dark); --bs-btn-hover-border-color: var(--sda-blue-dark); --bs-btn-active-bg: var(--sda-blue-dark); --bs-btn-active-border-color: var(--sda-blue-dark); --bs-btn-disabled-bg: var(--sda-blue); --bs-btn-disabled-border-color: var(--sda-blue); --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb); }
.btn-outline-primary { --bs-btn-color: var(--sda-blue); --bs-btn-border-color: var(--sda-blue); --bs-btn-hover-bg: var(--sda-blue); --bs-btn-hover-border-color: var(--sda-blue); --bs-btn-active-bg: var(--sda-blue-dark); --bs-btn-active-border-color: var(--sda-blue-dark); --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb); }
.btn-gold { --bs-btn-color: var(--sda-navy); --bs-btn-bg: var(--sda-gold); --bs-btn-border-color: var(--sda-gold); --bs-btn-hover-color: var(--sda-navy); --bs-btn-hover-bg: var(--sda-gold-dark); --bs-btn-hover-border-color: var(--sda-gold-dark); --bs-btn-active-color: var(--sda-navy); --bs-btn-active-bg: var(--sda-gold-dark); --bs-btn-active-border-color: var(--sda-gold-dark); }
.btn-light { --bs-btn-color: var(--sda-navy); }
.btn-outline-light { --bs-btn-hover-color: var(--sda-navy); }
.text-bg-primary { background-color: var(--sda-blue) !important; }
.form-control, .form-select { border-radius: var(--sda-radius); padding: .65rem .9rem; border-color: #cfd7e3; }
.form-control:focus, .form-select:focus { border-color: var(--sda-blue); box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .16); }

/* ---- top bar + header ---- */
.sda-topbar { background: var(--sda-navy); color: rgba(255, 255, 255, .85); font-size: .8rem; padding: .4rem 0; }
.topbar-social a { color: #fff; text-decoration: none; margin-left: 1rem; opacity: .85; }
.topbar-social a:hover { opacity: 1; color: var(--sda-gold); }
.sda-header { background: #fff; border-bottom: 1px solid var(--sda-line); box-shadow: 0 2px 14px rgba(11, 31, 63, .06); padding: .35rem 0; }
.brand-logo { object-fit: contain; }
.brand-text strong { font-family: var(--sda-font-heading); font-size: 1.3rem; color: var(--sda-navy); letter-spacing: -.01em; }
.brand-text small { color: var(--sda-muted); font-size: .68rem; max-width: 330px; letter-spacing: .01em; }
.navbar-toggler { border-color: var(--sda-line); }
.sda-header .nav-link, .sda-header .dropdown-item { font-weight: 600; font-size: .93rem; color: var(--sda-navy); }
.sda-header .nav-link { padding: .75rem .8rem; position: relative; }
.sda-header .nav-link::before { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 3px; border-radius: 3px; background: var(--sda-gold); transform: scaleX(0); transition: transform .18s; }
.sda-header .nav-link:hover, .sda-header .nav-link.active, .sda-header .nav-link.active-parent { color: var(--sda-blue); }
.sda-header .nav-link:hover::before, .sda-header .nav-link.active::before, .sda-header .nav-link.active-parent::before { transform: scaleX(1); }
.sda-header .dropdown-item.active, .sda-header .dropdown-item:active { background: var(--sda-blue); color: #fff; }
.sda-header .dropdown-item:hover { background: var(--sda-blue-soft); }
.sda-header .dropdown-item.active-parent { color: var(--sda-blue); }
.sda-header .has-sub { position: relative; }
.sda-header .sub-row { display: flex; align-items: center; }
.sda-header .sub-row > a { flex: 1; }
.sda-header .dropdown-toggle::after { display: none; }
.submenu-toggle { color: var(--sda-muted); background: none; border: 0; padding: .5rem .75rem; line-height: 1; cursor: pointer; }
.submenu-toggle span { display: inline-block; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.has-sub.open > .sub-row .submenu-toggle span { transform: rotate(-135deg); }
@media (min-width: 992px) {
  .sda-header .nav-link { padding-left: .55rem; padding-right: .2rem; }
  .sda-header .nav-item:not(.has-sub) .nav-link { padding-right: .8rem; }
  .sda-header .submenu-toggle { padding: .5rem .5rem .5rem .1rem; pointer-events: none; }
  .sda-header .dropdown-submenu .submenu-toggle { padding-right: .9rem; }
  .sda-header .dropdown-submenu .submenu-toggle span { transform: rotate(-45deg); }
  .sda-header .has-sub > .dropdown-menu { margin-top: 0; border: 1px solid var(--sda-line); border-radius: var(--sda-radius); padding: .4rem; box-shadow: 0 14px 32px rgba(11, 31, 63, .14); min-width: 230px; }
  .sda-header .has-sub:hover > .dropdown-menu, .sda-header .has-sub:focus-within > .dropdown-menu, .sda-header .has-sub.open > .dropdown-menu { display: block; animation: dd-fade .15s ease; }
  .sda-header .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -.45rem; }
  .sda-header .dropdown-item { border-radius: calc(var(--sda-radius) - 2px); padding: .5rem .8rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .sda-header .nav-link { font-size: .88rem; } }
@media (max-width: 991.98px) {
  .sda-header .has-sub.open > .dropdown-menu { display: block; }
  .sda-header .dropdown-menu { border: 0; border-left: 2px solid var(--sda-line); border-radius: 0; margin-left: 1rem; padding: 0; background: transparent; }
  .sda-header .navbar-collapse { max-height: 78vh; overflow-y: auto; padding-bottom: .75rem; }
  .sda-header .nav-link::before { display: none; }
}
@keyframes dd-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- type helpers ---- */
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--sda-gold-text, var(--sda-gold-dark)); margin-bottom: .65rem; }
.eyebrow-light, .sec-navy .eyebrow, .sec-blue .eyebrow { color: var(--sda-gold); }
.accent-bar { display: block; width: 56px; height: 4px; background: var(--sda-gold); border-radius: 4px; margin: .9rem auto 0; }
.text-start .accent-bar, .page-hero .accent-bar { margin-left: 0; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose-narrow { max-width: 760px; margin-inline: auto; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8rem; margin-bottom: .75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin-bottom: .3rem; }
.prose > :last-child { margin-bottom: 0; }
.prose blockquote { border-left: 4px solid var(--sda-gold); padding: .25rem 1rem; color: var(--sda-muted); }
.divider-accent { height: 4px; width: 120px; margin: 2rem auto; border: 0; opacity: 1; background: linear-gradient(90deg, var(--sda-gold), var(--sda-red)); border-radius: 4px; }
.divider-line { margin: 2rem 0; border-color: var(--sda-line); opacity: 1; }

/* ---- sections ---- */
.sda-section { padding: 4.5rem 0; } .sda-section-tight { padding: 2.5rem 0; }
.sec-surface { background: var(--sda-surface); }
.sec-navy { background: var(--sda-navy); color: #fff; } .sec-blue { background: var(--sda-blue); color: #fff; }
.sec-navy h1, .sec-navy h2, .sec-navy h3, .sec-navy h4, .sec-blue h1, .sec-blue h2, .sec-blue h3, .sec-blue h4 { color: #fff; }
.sec-navy .text-body-secondary, .sec-blue .text-body-secondary, .sec-navy .sec-sub, .sec-blue .sec-sub { color: rgba(255, 255, 255, .78) !important; }
.sec-navy .sda-card, .sec-blue .sda-card { color: var(--sda-ink); }
.sec-navy .sda-card h1, .sec-navy .sda-card h2, .sec-navy .sda-card h3, .sec-blue .sda-card h3 { color: var(--sda-navy); }
.sec-navy .sda-card .text-body-secondary, .sec-blue .sda-card .text-body-secondary { color: var(--sda-muted) !important; }
.sec-head { max-width: 780px; margin: 0 auto 2.6rem; }
.sec-head.text-start { margin-left: 0; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0; }
.sec-sub { color: var(--sda-muted); font-size: 1.1rem; margin: 1rem 0 0; }

.page-hero { position: relative; color: #fff; padding: 3.6rem 0 3.2rem; background: linear-gradient(135deg, var(--sda-navy), var(--sda-blue-dark)); overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; position: relative; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .8); font-size: .85rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; } .page-hero .breadcrumb a:hover { color: var(--sda-gold); }

/* ---- hero slider ---- */
.hero { position: relative; background: var(--sda-navy); overflow: hidden; min-height: 380px; }
.hero-md { height: min(60vh, 460px); } .hero-lg { height: min(78vh, 640px); } .hero-xl { height: calc(100vh - 110px); min-height: 520px; }
.hero-slide { height: 100%; background-size: cover; background-position: center; background-color: var(--sda-navy); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(var(--sda-navy-rgb), calc(var(--sda-overlay) * .6)), rgba(var(--sda-navy-rgb), var(--sda-overlay))); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: rise .8s ease both; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-content h1 { color: #fff; max-width: 920px; font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.08; margin: 0; }
.hero-sub { max-width: 720px; font-size: clamp(1.02rem, 2vw, 1.3rem); opacity: .92; margin: 1.1rem 0 0; }
.hero .carousel-indicators { z-index: 3; margin-bottom: 1.2rem; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; border: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- cards ---- */
.sda-card { background: #fff; border-radius: calc(var(--sda-radius) + 4px); box-shadow: var(--sda-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; color: var(--sda-ink); }
a.sda-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 31, 63, .08), 0 18px 38px rgba(11, 31, 63, .14); }
.sda-card .card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--sda-blue-soft); margin-bottom: 1rem; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.event-card { border-top: 4px solid var(--c, var(--sda-blue)); }
.date-badge { flex: none; width: 58px; height: 62px; border-radius: 12px; background: var(--c, var(--sda-blue)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge b { font-size: 1.45rem; font-family: var(--sda-font-heading); } .date-badge small { text-transform: uppercase; font-size: .65rem; letter-spacing: .1em; margin-top: 3px; }
.event-list .list-group-item { border-left: 4px solid var(--c, var(--sda-blue)); }
.event-list .event-row { color: var(--sda-ink); } .event-list .event-row:hover { background: var(--sda-surface); }
.person-photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--sda-blue), var(--sda-navy)); color: #fff; font: 700 3rem var(--sda-font-heading); }
.news-card .card-img { transition: transform .4s; } .news-card:hover .card-img { transform: scale(1.03); }

/* ---- feature blocks ---- */
.scripture { position: relative; background: linear-gradient(135deg, var(--sda-navy), var(--sda-blue-dark)); color: #fff; padding: 4.5rem 0; }
.scripture-mark { font-family: var(--sda-font-heading); font-size: 6rem; line-height: .6; color: var(--sda-gold); display: block; }
.scripture-text { font-family: var(--sda-font-heading); font-size: clamp(1.3rem, 2.6vw, 1.95rem); max-width: 880px; margin: 1rem auto; line-height: 1.5; }
.scripture-ref { color: var(--sda-gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0; } .scripture-ref span { opacity: .8; }
.quote-block { max-width: 880px; }
.quote-block blockquote { font-family: var(--sda-font-heading); font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.55; color: var(--sda-navy); margin-bottom: 1rem; }
.sec-navy .quote-block blockquote, .sec-blue .quote-block blockquote { color: #fff; }
.quote-block figcaption { color: var(--sda-muted); } .sec-navy .quote-block figcaption { color: rgba(255, 255, 255, .8); }
.schedule-item { background: var(--sda-surface); border: 1px solid var(--sda-line); border-radius: calc(var(--sda-radius) + 2px); padding: 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; }
.schedule-item small { color: var(--sda-gold-text, var(--sda-gold-dark)); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .72rem; }
.schedule-item b { font-family: var(--sda-font-heading); font-size: 1.7rem; color: var(--sda-navy); } .schedule-item span { color: var(--sda-muted); }
.sec-navy .schedule-item, .sec-blue .schedule-item { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.sec-navy .schedule-item small, .sec-blue .schedule-item small { color: var(--sda-gold); } .sec-navy .schedule-item b, .sec-blue .schedule-item b { color: #fff; } .sec-navy .schedule-item span, .sec-blue .schedule-item span { color: rgba(255, 255, 255, .8); }
.stat b { display: block; font-family: var(--sda-font-heading); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--sda-blue); line-height: 1.1; } .stat span { color: var(--sda-muted); font-weight: 600; }
.sec-navy .stat b, .sec-blue .stat b { color: var(--sda-gold); } .sec-navy .stat span, .sec-blue .stat span { color: rgba(255, 255, 255, .8); }
.sda-accordion .accordion-item { border-radius: var(--sda-radius) !important; border: 1px solid var(--sda-line); margin-bottom: .6rem; overflow: hidden; }
.sda-accordion .accordion-button { font-weight: 600; color: var(--sda-navy); } .sda-accordion .accordion-button:not(.collapsed) { background: var(--sda-blue-soft); color: var(--sda-navy); box-shadow: none; }
.countdown-card { background: linear-gradient(135deg, var(--sda-navy), var(--sda-blue) 78%); border-radius: 24px; padding: 3rem 1.5rem; box-shadow: var(--sda-shadow); }
.countdown-card h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.cd-box { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: .8rem .25rem; }
.cd-box b { display: block; font-size: clamp(1.5rem, 5vw, 2.1rem); font-variant-numeric: tabular-nums; line-height: 1.2; font-family: var(--sda-font-heading); }
.cd-box span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.map-block iframe { display: block; }
.form-wrap { max-width: 780px; }
.sec-navy .form-wrap h2, .sec-blue .form-wrap h2 { color: #fff; }
.contact-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact-list .ci { width: 46px; height: 46px; border-radius: 14px; background: var(--sda-blue-soft); display: grid; place-items: center; flex: none; }
.contact-list small { display: block; color: var(--sda-muted); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 700; }
.figure-narrow { max-width: 520px; } .figure-wide { max-width: 900px; } .figure-full { max-width: 100%; }
dl dt { color: var(--sda-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .8rem; } dl dd { margin: 0; font-weight: 600; }

/* ---- gallery / lightbox ---- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 55s linear infinite; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.thumb { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: calc(var(--sda-radius) + 2px); overflow: hidden; }
.marquee .thumb { width: 300px; height: 200px; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .thumb:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: grid; place-items: center; z-index: 2000; padding: 20px; }
.lightbox img { max-height: 88vh; max-width: 94vw; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; font-size: 1.6rem; width: 44px; height: 44px; border-radius: 99px; cursor: pointer; }
.lightbox .x { top: 16px; right: 16px; } .lightbox .prev { left: 16px; } .lightbox .next { right: 16px; }

/* ---- calendar ---- */
.chip { --c: var(--sda-blue); border: 1px solid var(--c); color: var(--c); background: #fff; font-weight: 600; }
.chip:hover { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); } .chip.active { background: var(--c); color: #fff; border-color: var(--c); }
.calendar { border: 1px solid var(--sda-line); border-radius: calc(var(--sda-radius) + 4px); overflow: hidden; background: #fff; box-shadow: var(--sda-shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: var(--sda-navy); color: #fff; }
.cal-head h3 { margin: 0; font-size: 1.25rem; color: #fff; }
.cal-head button { border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; border-radius: 8px; padding: .2rem .8rem; cursor: pointer; }
.cal-head button:hover { background: rgba(255, 255, 255, .15); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grid .dow { text-align: center; font-size: .72rem; padding: .45rem; color: var(--sda-muted); border-bottom: 1px solid var(--sda-line); text-transform: uppercase; letter-spacing: .08em; background: var(--sda-surface); }
.cal-cell { min-height: 96px; border-right: 1px solid var(--sda-line); border-bottom: 1px solid var(--sda-line); padding: 4px; font-size: .75rem; overflow: hidden; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: var(--sda-surface); color: #aab4c3; }
.cal-cell.today .n { background: var(--sda-gold); color: var(--sda-navy); font-weight: 700; border-radius: 99px; padding: 0 6px; }
.cal-ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; background: var(--c); color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-list li[hidden] { display: none; }
@media (max-width: 575.98px) { .cal-cell { min-height: 60px; } .cal-ev { font-size: 0; padding: 3px; height: 8px; } }

/* ---- landing & maintenance ---- */
.landing { position: relative; min-height: 100vh; display: grid; place-items: center; background: var(--sda-navy) center / cover no-repeat; padding-bottom: 2.5rem; }
.landing-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(var(--sda-navy-rgb), .9), rgba(var(--sda-navy-rgb), .74)); }
.landing-inner { max-width: 920px; animation: rise .8s ease both; }
.landing-logo { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); object-fit: contain; }
.landing h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.1; margin: 0 0 1rem; }
.landing-sub { max-width: 640px; font-size: clamp(1rem, 2vw, 1.2rem); opacity: .92; }
.landing-cd { max-width: 640px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); border-radius: 20px; padding: 1.4rem 1rem; }
.landing-cd h2 { color: #fff; }
.landing-link { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1rem .5rem; border-radius: calc(var(--sda-radius) + 4px); background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 600; transition: background .15s, transform .15s; height: 100%; }
.landing-link:hover, .landing-link:focus-visible { background: rgba(255, 255, 255, .24); color: #fff; transform: translateY(-2px); }
.landing-foot { position: absolute; bottom: .9rem; left: 0; right: 0; text-align: center; }

/* ---- footer ---- */
.sda-footer { background: var(--sda-navy); color: #fff; margin-top: 0; }
.sda-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; } .sda-footer a:hover, .sda-footer a:focus-visible { color: var(--sda-gold); text-decoration: underline; }
.footer-brand { font-family: var(--sda-font-heading); color: #fff; }
.footer-muted { color: rgba(255, 255, 255, .72); }
.footer-h { font-family: var(--sda-font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; color: var(--sda-gold); margin-bottom: 1rem; }
.sda-footer li { margin-bottom: .45rem; }
.footer-social a { margin-right: 1.1rem; }
.footer-bar { background: rgba(0, 0, 0, .28); font-size: .85rem; padding: .95rem 0; color: rgba(255, 255, 255, .72); }

/* ---- utility chrome ---- */
.admin-pill { position: fixed; right: 16px; bottom: 16px; background: var(--sda-navy); color: #fff; padding: .55rem 1.05rem; border-radius: 99px; font-weight: 600; text-decoration: none; z-index: 1030; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font-size: .9rem; }
.admin-pill:hover { background: var(--sda-blue); color: #fff; }
.preview-bar { background: var(--sda-gold); color: var(--sda-navy); text-align: center; padding: .4rem 1rem; font-weight: 600; font-size: .9rem; position: sticky; top: 0; z-index: 1100; }
.preview-bar a { color: var(--sda-navy); }
.bare .landing { min-height: 100vh; }

@media (prefers-reduced-motion: reduce) { .track { animation: none; } * { transition: none !important; scroll-behavior: auto !important; animation: none !important; } }

/* ---- polish ---- */
.sda-section-tight .sec-head { margin-bottom: 0; }
.sda-section-tight + .sda-section { padding-top: 2.5rem; }
.landing-logo { display: block; margin-left: auto; margin-right: auto; }
.landing .eyebrow { display: block; }
.hero-content .eyebrow { display: block; }
.signin-btn { white-space: nowrap; padding: .5rem 1.2rem; font-weight: 700; align-self: center; }

/* public header: compact spacing on mid-size desktops so the menu, Register and Sign in never overflow */
@media (min-width: 1200px) and (max-width: 1499px) {
  .sda-header .nav-link { padding: .75rem .45rem; font-size: .88rem; }
  .sda-header .nav-link::before { left: .45rem; right: .45rem; }
  .sda-header .signin-btn, .sda-header .btn-gold { padding-left: .8rem; padding-right: .8rem; font-size: .88rem; }
}

/* ---- managed hero slides ---- */
.hs { position: relative; width: 100%; height: clamp(320px, 55vh, 680px); overflow: hidden; background: linear-gradient(135deg, #0a2a4a, #14477a); color: #fff; }
.hs-loading { background: #0a2a4a; }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; } .hs-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hs-slide picture, .hs-img { display: block; width: 100%; height: 100%; } .hs-img { object-fit: cover; }
.hs-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 20, 40, .35) 0%, rgba(5, 20, 40, .15) 40%, rgba(5, 20, 40, .72) 100%); }
.hs-text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 6vw, 5rem) clamp(2.2rem, 6vw, 3.5rem); max-width: 980px; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hs-text h1, .hs-text h2 { font-size: clamp(1.6rem, 4.6vw, 3.1rem); line-height: 1.1; margin: 0 0 .5rem; color: #fff; overflow-wrap: anywhere; } .hs-text p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 62ch; margin: 0 0 1rem; overflow-wrap: anywhere; }
.hs-btns { display: flex; flex-wrap: wrap; gap: .6rem; text-shadow: none; } .hs-btns .btn { min-height: 44px; }
.hs-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10, 42, 74, .55); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; } .hs-nav:hover { background: rgba(10, 42, 74, .85); } .hs-prev { left: 10px; } .hs-next { right: 10px; }
.hs-dots { position: absolute; z-index: 3; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; } .hs-dots button { width: 44px; height: 24px; border: 0; background: none; position: relative; cursor: pointer; } .hs-dots button::after { content: ''; position: absolute; left: 8px; right: 8px; top: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .5); } .hs-dots button.is-on::after { background: #f2b807; }
@media (max-width: 639px) { .hs-nav { display: none; } .hs-text { padding-bottom: 2.6rem; } }
@media (prefers-reduced-motion: reduce) { .hs-slide { transition: none; } }
/* ---- event page media ---- */
.event-banner { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; display: block; background: #eef2f8; }
.event-logo { width: clamp(64px, 10vw, 120px); aspect-ratio: 1; object-fit: contain; display: block; }
.event-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.evg-btn { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 10px rgba(10, 42, 74, .12); text-align: left; } .evg-btn img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; } .evg-cap { display: block; padding: .5rem .7rem; font-size: .85rem; overflow-wrap: anywhere; }
.evg-lb { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 15, 30, .92); display: grid; place-items: center; padding: 1rem; } .evg-lb figure { margin: 0; max-width: min(96vw, 1100px); text-align: center; } .evg-lb img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; } .evg-lb figcaption { color: #fff; margin-top: .6rem; overflow-wrap: anywhere; }
.evg-x, .evg-n { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; cursor: pointer; } .evg-x { top: 12px; right: 12px; } .evg-n { top: 50%; transform: translateY(-50%); } .evg-p { left: 10px; } .evg-nx { right: 10px; }

/* Navigation fit: many items plus the Sign in button must not overflow between 1200 and 1599px */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .sda-header .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .88rem; white-space: nowrap; }
  .sda-header .nav-item:not(.has-sub) .nav-link { padding-right: .5rem; }
  .sda-header .nav-link::before { left: .5rem; right: .5rem; }
  .sda-header .btn-gold { white-space: nowrap; padding-left: .9rem; padding-right: .9rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .sda-header .nav-link { padding-left: .3rem; padding-right: .3rem; font-size: .82rem; }
  .sda-header .nav-item:not(.has-sub) .nav-link { padding-right: .3rem; }
  .sda-header .nav-link::before { left: .3rem; right: .3rem; }
  .sda-header .navbar-brand small, .sda-header .brand-sub { display: none; }
  .sda-header .btn-gold, .sda-header .signin-btn { padding-left: .65rem; padding-right: .65rem; font-size: .82rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) { .sda-header > .container, .sda-header .navbar > .container { max-width: 100%; padding-left: .75rem; padding-right: .75rem; } .sda-header .navbar-brand { margin-right: .5rem; } }

/* ---- hero upgrade: depth, motion that respects the visitor, a progress cue, public totals and a scroll cue ---- */
.hs { height: clamp(380px, 72vh, 760px); }
.hs-shade { background: linear-gradient(90deg, rgba(8, 30, 58, .78) 0%, rgba(8, 30, 58, .45) 45%, rgba(8, 30, 58, .08) 100%), linear-gradient(180deg, rgba(5, 20, 40, .25) 0%, rgba(5, 20, 40, 0) 35%, rgba(5, 20, 40, .7) 100%); }
.hs-slide.is-on .hs-img { animation: hs-zoom 9s ease-out both; }
@keyframes hs-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hs-text { top: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(3rem, 8vw, 5rem); }
.hs-slide.is-on .hs-text > * { animation: hs-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hs-slide.is-on .hs-text > :nth-child(2) { animation-delay: .12s; } .hs-slide.is-on .hs-text > :nth-child(3) { animation-delay: .24s; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hs-text h1, .hs-text h2 { letter-spacing: -.01em; }
.hs-text h1::after, .hs-text h2::after { content: ''; display: block; width: 72px; height: 4px; border-radius: 4px; margin-top: .7rem; background: var(--sda-gold, #d4a017); }
.hs-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .18); }
.hs-progress i { display: block; height: 100%; width: 100%; background: var(--sda-gold, #d4a017); transform-origin: left; animation: hs-fill linear both; }
.hs.is-paused .hs-progress i { animation-play-state: paused; }
@keyframes hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hs-play { position: absolute; z-index: 3; top: 12px; right: 12px; min-width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(10, 42, 74, .6); color: #fff; font-size: .8rem; cursor: pointer; backdrop-filter: blur(6px); }
.hs-play:hover { background: rgba(10, 42, 74, .9); } .hs-play:focus-visible, .hs-nav:focus-visible, .hs-cue:focus-visible { outline: 3px solid var(--sda-gold, #d4a017); outline-offset: 2px; }
.pstats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem 1.5rem; }
.pstats div { display: flex; flex-direction: column-reverse; } .pstats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; } .pstats dd { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hs-stats { position: absolute; z-index: 2; right: clamp(1rem, 4vw, 3.5rem); bottom: 3rem; width: min(440px, 44vw); padding: 1rem 1.25rem; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(14px); text-shadow: none; }
.hs-cue { position: absolute; z-index: 3; left: 50%; bottom: 14px; width: 28px; height: 44px; margin-left: -14px; display: grid; place-items: start center; padding-top: 10px; } .hs-cue span { width: 4px; height: 10px; border-radius: 4px; background: #fff; opacity: .85; animation: hs-cue 1.8s ease-in-out infinite; } .hs-cue::before { content: ''; position: absolute; inset: 8px 4px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
@keyframes hs-cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0; } }
@media (max-width: 899px) { .hs-stats, .hs-cue { display: none; } .hs { height: clamp(360px, 62vh, 560px); } .hs-shade { background: linear-gradient(180deg, rgba(5, 20, 40, .3) 0%, rgba(5, 20, 40, .25) 40%, rgba(5, 20, 40, .8) 100%); } }
@media (prefers-reduced-motion: reduce) { .hs-slide.is-on .hs-img, .hs-slide.is-on .hs-text > *, .hs-cue span { animation: none; } .hs-progress { display: none; } }
