/* ==========================================================================
   LIUminate — site styles
   Brand: deep blue #0F4C92 · orange #F7931E · white · grey #5B6573
   Type: Montserrat (headings, display) + Inter (body)
   ========================================================================== */

:root {
  --blue: #0f4c92;
  --blue-dark: #0a3468;
  --blue-ink: #0b2a4f; /* text on orange: 6.4:1 contrast */
  --blue-tint: #eaf1fa;
  --orange: #f7931e;
  --orange-dark: #e07c06;
  --orange-tint: #fff3e3;
  --white: #ffffff;
  --grey: #5b6573;
  --grey-light: #d9dee6;
  --bg-soft: #f5f7fb;
  --danger: #c0262d;
  --success: #17803d;

  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 76, 146, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 76, 146, 0.1);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--blue-ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }

/* Display elements share the heading face */
.btn, .wordmark, .eyebrow, .step-num, .timer-value, .timer-label, .cal-m, .cal-d, .trophy, legend,
.date-chip span, .school-chip, .stat b, .admin-badge, .ph-title { font-family: var(--font-head); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--blue-ink); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--grey); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.5em;
  border: 2px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-orange { background: var(--orange); color: var(--blue-ink); }
.btn-orange:hover { color: var(--blue-ink); background: #ffa33a; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { color: var(--white); background: #1559a8; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { color: var(--blue); background: var(--blue-tint); }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: var(--white); background: var(--danger); }
.btn-lg { min-height: 60px; font-size: 1.2rem; padding: 0.8em 2em; }
.btn-sm { min-height: 40px; padding: 0.4em 1.1em; font-size: 0.95rem; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--grey-light);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 40px; }
/* Matches the LIUminate logo: bold "LIU" + lighter "minate", both blue */
.wordmark { font-weight: 800; font-size: 1.5rem; color: var(--blue); letter-spacing: -0.02em; }
.wordmark span { font-weight: 500; }

.partner-logos {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  padding-left: 14px; border-left: 2px solid var(--grey-light);
}
.partner-logos img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--blue-ink); text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--blue-tint); color: var(--blue); }
.site-nav a[aria-current='page']:not(.btn) { color: var(--blue); background: var(--blue-tint); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: var(--blue-tint); cursor: pointer; place-items: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--blue);
  position: relative; transition: transform 0.2s ease;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .header-inner { gap: 10px; }
  .wordmark { font-size: 1.25rem; }
  .brand-mark { height: 34px; }
  .partner-logos { gap: 8px; padding-left: 10px; }
  .partner-logos img { height: 34px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px; background: var(--white);
    border-bottom: 1px solid var(--grey-light); box-shadow: var(--shadow-sm);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; }
  .site-nav .btn { margin-top: 6px; }
}
@media (max-width: 359px) {
  .wordmark { display: none; }
}

/* ---------- Sections & S-curve dividers ---------- */
.section { position: relative; padding-block: clamp(56px, 9vw, 104px); }
.section-blue { background: var(--blue); color: var(--white); }
.section-soft { background: var(--bg-soft); }
.section-blue a:not(.btn) { color: var(--white); }

.wave { position: absolute; left: 0; right: 0; width: 100%; height: clamp(48px, 7vw, 110px); pointer-events: none; }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; transform: scaleY(-1); }
.wave .fill-white { fill: var(--white); }
.wave .fill-soft { fill: var(--bg-soft); }
.wave .fill-blue { fill: var(--blue); }
.wave .stroke-orange { fill: none; stroke: var(--orange); stroke-width: 6; }

.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--orange-tint); color: var(--blue-ink);
}
.section-blue .eyebrow { background: rgba(255, 255, 255, 0.14); color: var(--white); }

.section-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.section-title .hl { color: var(--orange); }
.section-lead { font-size: 1.15rem; color: var(--grey); max-width: 680px; }
.section-blue .section-lead { color: rgba(255, 255, 255, 0.88); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, #1a63b8 0%, transparent 60%), var(--blue);
  color: var(--white);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(110px, 14vw, 190px);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--orange); }
.hero-sub { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.hero-sub strong { color: var(--white); font-weight: 700; }
.hero-tagline {
  margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; /* large text: orange-on-blue needs >=18.66px bold */
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.date-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.date-chip {
  display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
}
.date-chip small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.date-chip span { font-weight: 700; font-size: 1.08rem; }

/* Decorative 5-minute timer */
.timer {
  position: relative; width: min(100%, 340px); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--orange) 0 300deg, rgba(255, 255, 255, 0.16) 300deg 360deg);
  animation: timer-in 1.2s ease-out both;
}
.timer::before { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--blue); }
.timer-inner { position: relative; text-align: center; }
.timer-value { font-size: clamp(3.4rem, 9vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.timer-label { font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-size: 0.95rem; }
@keyframes timer-in { from { transform: rotate(-90deg) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

.page-hero { padding-bottom: clamp(90px, 11vw, 150px); }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .timer { width: 170px; }
  .timer::before { inset: 14px; }
  .timer-value { font-size: 2.6rem; }
  .timer-label { font-size: 0.7rem; letter-spacing: 0.14em; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm); border: 1px solid #e6ebf2;
}
.card h3 { font-size: 1.3rem; color: var(--blue); }
.card p:last-child { margin-bottom: 0; }

.step { position: relative; padding-top: clamp(28px, 4vw, 36px); }
.step-num {
  position: absolute; top: -22px; left: clamp(20px, 3vw, 30px);
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 600; font-size: 1.35rem; background: var(--orange); color: var(--blue-ink);
}
.steps { margin-top: 30px; row-gap: 44px; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 14px;
}
.icon-badge svg { width: 28px; height: 28px; }

.school-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0; margin: 28px 0 0; list-style: none; }
.school-chip {
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
  background: var(--white); color: var(--blue); border: 2px solid var(--blue);
}
.school-chip b { color: var(--orange-dark); margin-right: 6px; }

.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: var(--orange-tint); border-left: 6px solid var(--orange); margin-top: 30px;
}
.callout svg { flex: none; width: 26px; height: 26px; color: var(--orange-dark); margin-top: 2px; }

/* ---------- Key dates / countdown ---------- */
.dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.date-card {
  display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.date-card .cal {
  flex: none; width: 74px; border-radius: 14px; overflow: hidden; text-align: center; background: var(--blue-tint);
}
.date-card .cal-m { display: block; background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; padding: 4px 0; }
.date-card .cal-d { display: block; font-size: 1.9rem; font-weight: 700; color: var(--blue); padding: 4px 0 6px; }
.date-card.accent .cal-m { background: var(--orange); color: var(--blue-ink); }
.date-card h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--blue-ink); }
.date-card p { margin: 0; color: var(--grey); }
.countdown { font-weight: 700; color: var(--orange-dark); }

/* ---------- Archive teaser ---------- */
.teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.teaser-art {
  aspect-ratio: 16 / 10; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, #ffb25c 100%); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.teaser-art .play {
  width: 84px; height: 84px; border-radius: 50%; background: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.teaser-art .play svg { width: 34px; height: 34px; color: var(--blue); margin-left: 6px; }
.teaser-art .tag {
  position: absolute; top: 16px; left: 16px; background: var(--blue); color: var(--white);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- Talk cards (archive) ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip {
  min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--grey-light);
  background: var(--white); color: var(--blue-ink); font-weight: 600; cursor: pointer;
}
.filter-chip:hover { border-color: var(--blue); }
.filter-chip[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.talk-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid #e6ebf2; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.talk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.talk-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  background: var(--blue); overflow: hidden;
}
.talk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.talk-thumb .play-badge {
  position: absolute; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange); color: var(--blue-ink); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform 0.18s ease;
}
.talk-thumb .play-badge svg { width: 20px; height: 20px; margin-left: 3px; }
.talk-thumb:hover .play-badge, .talk-thumb:focus-visible .play-badge { transform: scale(1.1); }
.talk-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.talk-body h3 { font-size: 1.15rem; margin: 0; color: var(--blue-ink); }
.talk-speaker { margin: 0; color: var(--grey); font-weight: 600; }
.school-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--blue-tint); color: var(--blue);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.award-tag {
  padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--orange-tint); color: var(--blue-ink);
  border: 1px solid #f9c27f;
}
.award-tag.winner { background: var(--orange); border-color: var(--orange); }

/* Generated placeholder thumbnail (when no image uploaded yet) */
.thumb-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 18px 20px; color: var(--white); text-align: left;
  background:
    radial-gradient(circle at 110% 120%, var(--orange) 0 32%, transparent 33%),
    radial-gradient(circle at -10% -20%, #1d66bb 0 40%, transparent 41%),
    var(--blue);
}
.thumb-placeholder.has-avatar .ph-school, .thumb-placeholder.has-avatar .ph-title { max-width: 52%; }
.thumb-placeholder .ph-avatar {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  width: auto; height: 74%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.thumb-placeholder .ph-title { font-weight: 700; font-size: 1.15rem; line-height: 1.15; max-width: 80%; }
.thumb-placeholder .ph-school { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; margin-bottom: 6px; }

/* Winner highlight */
.winner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; overflow: hidden;
  border-radius: calc(var(--radius) + 6px); background: var(--white); color: var(--blue-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); border: 4px solid var(--orange);
}
.winner-media { position: relative; min-height: 280px; background: var(--blue-dark); }
.winner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.winner-media img.portrait { object-fit: contain; padding: clamp(16px, 4vw, 36px); }
.winner-media:has(img.portrait) {
  background: radial-gradient(circle at 50% 50%, #1a63b8 0%, var(--blue-dark) 70%);
}
.winner-media .photo-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.85);
  font-weight: 700; letter-spacing: 0.1em; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #0d4280 0 14px, #0f4c92 14px 28px);
}
.winner-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.trophy {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--orange); color: var(--blue-ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
}
.trophy svg { width: 18px; height: 18px; }
.winner h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 4px 0 0; color: var(--blue); }
.winner .winner-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.winner .winner-desc { color: var(--grey); margin: 0; }
.winner .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 760px) {
  .winner { grid-template-columns: 1fr; }
  .winner-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Gallery placeholders */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); display: grid; place-items: center;
  border: 3px dashed #b9c6d8; color: var(--grey); font-weight: 700; background: var(--white);
}
.gallery figure:nth-child(3n + 1) .ph { border-color: #f9c27f; }

/* Photo carousel */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 16px; margin: 0; padding: 4px 0 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; }
.carousel-slide { flex: 0 0 88%; scroll-snap-align: center; transition: opacity 0.3s ease; }
@media (min-width: 760px) { .carousel-slide { flex-basis: 64%; } }
.carousel-slide:not(.is-active) { opacity: 0.55; }
.carousel-slide img, .carousel-slide .ph {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft);
}
.carousel-slide .ph {
  display: grid; place-items: center; border: 3px dashed #b9c6d8; color: var(--grey); font-weight: 600;
}
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--blue); background: var(--white); color: var(--blue);
}
.carousel-btn:hover { background: var(--blue); color: var(--white); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn .i-play, .carousel-btn.is-paused .i-pause { display: none; }
.carousel-btn.is-paused .i-play { display: block; }
.carousel-dots { display: flex; gap: 4px; }
.carousel-count { min-width: 76px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.carousel-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.carousel-dot::before {
  content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--grey-light); transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dot[aria-current='true']::before { width: 22px; background: var(--orange); }

/* ---------- Modal (video player) ---------- */
dialog.modal {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--white); color: var(--blue-ink); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
dialog.modal::backdrop { background: rgba(6, 26, 52, 0.78); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.modal-head h2 { font-size: 1.25rem; margin: 0; flex: 1; }
.modal-head p { margin: 2px 0 0; }
.modal-close {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg-soft); display: grid; place-items: center;
}
.modal-close:hover { background: var(--blue-tint); }
.modal-close svg { width: 20px; height: 20px; }
.player-wrap { background: #000; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.player-wrap video { width: 100%; height: 100%; }
.player-empty { color: var(--white); text-align: center; padding: 24px; font-weight: 600; }
.modal-desc { padding: 16px 18px 22px; margin: 0; color: var(--grey); }

/* ---------- Forms ---------- */
.form-card { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; margin-top: clamp(-110px, -10vw, -70px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend {
  font-weight: 700; font-size: 1.25rem; color: var(--blue); margin-bottom: 14px; padding: 0;
  display: flex; align-items: center; gap: 10px;
}
legend .num {
  width: 30px; height: 30px; border-radius: 9px; background: var(--orange); color: var(--blue-ink);
  display: inline-grid; place-items: center; font-size: 0.95rem;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; color: var(--blue-ink); }
.req { color: var(--danger); margin-left: 2px; }
.hint { font-size: 0.9rem; color: var(--grey); font-weight: 400; }
.input, .field input[type='text'], .field input[type='email'], .field input[type='tel'], .field input[type='password'],
.field input[type='number'], .field input[type='search'], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 2px solid #c9d2de; background: var(--white); font-weight: 500; color: var(--blue-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C92' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 76, 146, 0.18); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.92rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.counter { font-size: 0.9rem; font-weight: 600; color: var(--grey); text-align: right; }
.counter.over { color: var(--danger); }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.form-alert {
  padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 18px;
  background: #fdecec; color: var(--danger); border: 2px solid #f5c2c4;
}
.turnstile-box { min-height: 65px; }

.status-panel { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 2; margin-top: clamp(-110px, -10vw, -70px); }
.status-panel .big-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
}
.status-panel .big-icon svg { width: 42px; height: 42px; }
.status-panel.success .big-icon { background: #e3f6ea; color: var(--success); }
.status-panel.closed .big-icon { background: var(--orange-tint); color: var(--orange-dark); }
.status-panel h2 { color: var(--blue); font-size: clamp(1.6rem, 4vw, 2.2rem); }

.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--grey); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255, 255, 255, 0.85); padding: 48px 0 32px; font-weight: 500; }
.site-footer a { color: var(--white); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand .wordmark { color: var(--white); font-size: 1.6rem; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.footer-logos li { background: var(--white); border-radius: 14px; padding: 6px; display: grid; place-items: center; }
.footer-logos li.wide { padding-inline: 12px; }
.footer-logos img { height: 52px; width: auto; border-radius: 8px; }

/* Official LIUminate logo shown on a white tile (it has blue text, so it needs a light background) */
.logo-card {
  background: var(--white); border-radius: calc(var(--radius) + 6px); padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); max-width: 300px; margin-inline: auto;
}
.logo-card img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .logo-card { max-width: 190px; padding: 12px; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.9rem; color: rgba(255,255,255,0.7); }
