/* ============ Graduate Voter Registration Portal ============ */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --accent: #ff6f00;
  --success: #2e7d32;
  --danger: #c62828;
  --whatsapp: #25d366;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5f6b7a;
  --border: #dde3ec;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(26, 35, 126, .10);
  --font: "Segoe UI", system-ui, -apple-system, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* the hidden attribute must always win, even over display:flex classes */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.topbar { background: linear-gradient(120deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: var(--shadow); }
.topbar-inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.logo { font-size: 2rem; }
.topbar h1 { font-size: 1.25rem; font-weight: 600; letter-spacing: .2px; }
.topbar p { font-size: .8rem; opacity: .85; }

/* ---------- layout ---------- */
.container { max-width: 860px; width: 100%; margin: 0 auto; padding: 24px 16px 64px; flex: 1; }
.footer { background: #0f1533; color: #aab; text-align: center; font-size: .78rem; padding: 18px 16px; }

/* ---------- stepper ---------- */
.stepper { margin: 6px 0 26px; }
.stepper-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.stepper-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffa040); border-radius: 3px; transition: width .5s ease; }
.stepper ol { display: flex; justify-content: space-between; list-style: none; margin-top: 10px; }
.stepper li { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; position: relative; text-align: center; flex: 1; }
.stepper li.done { color: var(--success); font-weight: 600; }
.stepper li.current { color: var(--primary); font-weight: 700; }

/* ---------- panels ---------- */
.panel { display: none; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; animation: rise .35s ease; }
.panel.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: 1.45rem; color: var(--primary); margin-bottom: 6px; }
.muted { color: var(--muted); margin-bottom: 20px; }
.lead { font-size: 1.05rem; margin: 14px 0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 28px 8px; }
.hero h2 { font-size: 1.9rem; }
.hero-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 30px; }
.chip { background: #eef1fb; color: var(--primary); font-size: .82rem; padding: 8px 14px; border-radius: 999px; }

/* ---------- forms ---------- */
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=password], select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(57, 73, 171, .15); background: #fff; }
input[disabled] { background: #eef0f5; color: var(--muted); }
input.invalid, select.invalid { border-color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error { display: block; color: var(--danger); font-size: .8rem; min-height: 1em; margin-top: 5px; }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.check:hover { background: #f2f5fc; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.check.small { padding: 4px 0; font-size: .82rem; color: var(--muted); }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.option { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 14px; cursor: pointer; transition: all .15s; background: #fbfcfe; }
.option:hover { border-color: var(--primary-light); }
.option:has(input:checked) { border-color: var(--primary); background: #eef1fb; box-shadow: 0 0 0 2px rgba(26,35,126,.12); }
.option input { accent-color: var(--primary); width: 18px; height: 18px; }

/* ---------- address proof: three independent upload slots ---------- */
.hint { color: var(--muted); font-size: .85rem; margin: -4px 0 12px; }
.proof-list { display: flex; flex-direction: column; gap: 12px; }
.proof-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 6px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s; }
.proof-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,35,126,.12); }
.proof-card .option { border: none; background: none; box-shadow: none; padding: 9px 10px; }
.proof-card .option:hover { border: none; }
.proof-card:has(input:checked) .option { background: none; box-shadow: none; }
.proof-upload { padding: 0 10px 10px; }
.proof-upload .dropzone { padding: 20px 14px; }
.proof-upload .error { min-height: 0; }
.proof-upload .file-info.stored { background: #eef1fb; border-color: var(--primary-light); }

/* ---------- buttons ---------- */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.btn { border: none; border-radius: 10px; padding: 13px 26px; font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s; text-decoration: none; display: inline-block; text-align: center; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-light)); color: #fff; box-shadow: 0 4px 14px rgba(26,35,126,.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(26,35,126,.4); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary-light); }
.btn-outline:hover { background: #eef1fb; }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 4px 14px rgba(46,125,50,.3); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-link { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; margin-top: 14px; }

/* ---------- center cards ---------- */
.center-card { text-align: center; padding: 18px 6px; }
.big-icon { font-size: 3.2rem; margin-bottom: 10px; }
.confetti { font-size: 3.6rem; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.info-box { text-align: left; background: #fff8ef; border: 1px solid #ffd9a8; border-radius: 12px; padding: 18px 22px; margin: 20px auto 26px; max-width: 480px; font-size: .93rem; }
.info-box ol { margin: 10px 0 0 20px; }
.info-box li { margin-bottom: 6px; }
.small-print { font-size: .8rem; margin-top: 22px; }

/* ---------- OTP ---------- */
.otp-input { max-width: 220px; margin: 16px auto 4px; text-align: center; font-size: 1.6rem; letter-spacing: .5em; padding: 12px; }

/* ---------- dropzone ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px dashed var(--primary-light); border-radius: 12px; background: #f7f9ff; padding: 32px 18px; text-align: center; cursor: pointer; transition: all .2s; }
.dropzone:hover, .dropzone.drag { background: #eef1fb; border-color: var(--accent); }
.dz-icon { font-size: 2rem; }
.dz-text small { color: var(--muted); }
.file-info { display: flex; align-items: center; gap: 10px; background: #e8f5e9; border: 1px solid #b7dfb9; border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: .9rem; }
.file-info .remove { margin-left: auto; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.1rem; }

/* ---------- toast & loader ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px); background: #263238; color: #fff; padding: 13px 22px; border-radius: 10px; font-size: .92rem; opacity: 0; transition: all .3s; z-index: 60; max-width: 92vw; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
.loader-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.65); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 50; }
.spinner { width: 48px; height: 48px; border: 5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; flex: 1; width: 100%; }
.login-card { max-width: 400px; margin: 8vh auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 34px; border-top: 5px solid var(--primary); }
.login-head { text-align: center; margin-bottom: 26px; }
.login-logo { font-size: 2.8rem; display: block; margin-bottom: 8px; }
.login-head h2 { color: var(--primary); font-size: 1.4rem; margin-bottom: 4px; }
.login-head p { color: var(--muted); font-size: .85rem; margin: 0; }
.login-card .btn { width: 100%; margin-top: 8px; padding: 14px; font-size: 1rem; }
.login-card .field { margin-bottom: 18px; }
tbody tr:nth-child(even) td { background: #fafbfe; }
.stat-card { transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,35,126,.16); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 18px; text-align: center; border-top: 4px solid var(--primary-light); }
.stat-card .ic { font-size: 1.3rem; margin-bottom: 2px; }
.stat-card .num { font-size: 1.9rem; font-weight: 700; color: var(--primary); }
.stat-card .lbl { font-size: .78rem; color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.stat-card .sub { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.stat-card.pending { border-top-color: var(--accent); }
.stat-card.completed { border-top-color: var(--success); }
.stat-card.verified { border-top-color: #6a1b9a; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.card h3 { color: var(--primary); margin-bottom: 4px; font-size: 1.05rem; }
.card-desc { color: var(--muted); font-size: .85rem; margin-bottom: 16px; line-height: 1.5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
tr:hover td { background: #f7f9ff; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.badge.Draft { background: #eceff1; color: #455a64; }
.badge.PendingEci { background: #fff3e0; color: #e65100; }
.badge.Completed { background: #e8f5e9; color: var(--success); }
.badge.Verified { background: #f3e5f5; color: #6a1b9a; }
.badge.Rejected, .badge.Ineligible { background: #ffebee; color: var(--danger); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { flex: 1; min-width: 140px; }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: .85rem; }
.icon-btn:hover { background: #eef1fb; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.pager .icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-size { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.page-size select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }

/* ---------- admin: video upload form ---------- */
.video-form { display: grid; grid-template-columns: 2fr 2fr minmax(120px, .8fr); gap: 14px 16px; align-items: end; margin: 4px 0 16px; padding: 16px; background: #f7f9ff; border: 1px solid var(--border); border-radius: 12px; }
.vf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vf-field label { font-size: .78rem; font-weight: 600; color: var(--text); }
.vf-field input[type=text] { width: 100%; }
.vf-field input[type=file] { width: 100%; font-size: .82rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.vf-field input[type=file]::file-selector-button { border: none; background: var(--primary-light); color: #fff; border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; font: inherit; font-size: .8rem; }
.vf-submit .btn { width: 100%; white-space: nowrap; }
@media (max-width: 760px) { .video-form { grid-template-columns: 1fr; } }
.trend { display: flex; align-items: stretch; gap: 6px; height: 170px; padding-top: 8px; }
.trend .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.trend .bar { width: 70%; max-width: 34px; background: linear-gradient(180deg, var(--primary-light), var(--primary)); border-radius: 4px 4px 0 0; }
.trend .bar-val { font-size: .72rem; color: var(--muted); line-height: 1; min-height: .72rem; }
.trend .bar-day { font-size: .68rem; color: var(--muted); border-top: 1px solid var(--border); width: 100%; text-align: center; padding-top: 4px; white-space: nowrap; }
.total-row td { font-weight: 700; background: #eef1fb !important; }

/* ---------- brand & language ---------- */
.brand-logo { height: 60px; width: auto; object-fit: contain; filter: drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(255,255,255,.45)); }
.brand-link { display: flex; }
.lang-switch { margin-left: auto; display: flex; background: rgba(255,255,255,.15); border-radius: 999px; padding: 3px; }
.lang-switch button { border: none; background: transparent; color: #fff; font: inherit; font-size: .8rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.lang-switch button.active { background: #fff; color: var(--primary); font-weight: 700; }
.home-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: .85rem; margin-bottom: 12px; }
.home-link:hover { color: var(--primary); }
.footer-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(255,255,255,.4)); }

/* ---------- landing: hero (campaign banner + overlaid welcome text) ---------- */
.hero-banner { position: relative; background: #eef4fc; overflow: hidden; }
.hero-bg { display: block; width: 100%; height: auto; }
/* welcome block sits in the banner's empty area, under "Learn | Upskill | Connect | Succeed" */
.hero-text { position: absolute; left: 43.5%; width: 47%; top: 64.5%; text-align: center; }
.hero-kicker { font-size: clamp(.7rem, 1.1vw, 1rem); color: #e65100; letter-spacing: 1px; margin-bottom: .3vw; font-weight: 600; }
.hero-text h2 { font-size: clamp(1rem, 2vw, 1.8rem); line-height: 1.25; margin-bottom: .6vw; color: var(--primary); }
.hero-sub { font-size: clamp(.72rem, 1.15vw, 1rem); color: #2a3158; max-width: 34em; margin: 0 auto; }
.hero-sub strong { color: #e65100; }
.hero-cta { display: flex; gap: 14px; margin-top: 1.2vw; flex-wrap: wrap; justify-content: center; }
.btn-accent { background: linear-gradient(120deg, var(--accent), #ff9800); color: #fff; box-shadow: 0 6px 20px rgba(255,111,0,.45); }
.btn-accent:hover { box-shadow: 0 8px 26px rgba(255,111,0,.6); }
.btn-ghost { background: rgba(255,255,255,.65); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: #fff; }
.hero-cta .btn { font-size: clamp(.72rem, 1.05vw, .95rem); padding: .55vw 1.4vw; }
.hero-cta .btn-lg { font-size: clamp(.78rem, 1.15vw, 1.05rem); }

/* Brand-poster mode (set by branding.js when BRAND_FOLDER is active):
   the poster is a complete artwork with its own headline and messaging,
   so hide the overlay copy and show the live buttons in a band below it. */
.hero-banner.brand-hero .hero-text { position: static; left: auto; top: auto; width: auto; padding: 0; }
.hero-banner.brand-hero .hero-kicker,
.hero-banner.brand-hero .hero-text h2,
.hero-banner.brand-hero .hero-sub { display: none; }
.hero-banner.brand-hero .hero-cta { margin: 0; padding: 18px 16px 22px; background: #eef4fc; }
/* when the poster's painted buttons are live (hotspots), drop the extra band.
   The hotspots render as real localized buttons covering the painted ones. */
.hero-banner.brand-hero-hotspots .hero-cta { display: none; }
.hero-hotspot {
  position: absolute; z-index: 4; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  /* size + font set by branding.js from the image's rendered box */
}
.hero-hotspot { transition: transform .15s ease, box-shadow .15s ease; }
.hero-hotspot:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.hero-hotspot-reg {
  background: linear-gradient(180deg, #ff9a2e, #f26a0c);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.hero-hotspot-reg:hover { background: linear-gradient(180deg, #ff8c12, #e65100); }
.hero-hotspot-vid { background: #fff; color: #16255e; border: 2px solid #16255e; }
.hero-hotspot-vid:hover { background: #eef4fc; }

/* ---------- landing: sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 48px 20px; }
.section-alt { max-width: none; background: #eef1fb; }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; color: var(--primary); font-size: 1.6rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 26px; }
.why-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; border-top: 4px solid var(--accent); }
.why-icon { font-size: 2.2rem; margin-bottom: 10px; }
.why-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .93rem; }
.how-strip { display: flex; align-items: center; justify-content: center; gap: 36px; padding: 34px 20px 12px; flex-wrap: wrap; }
.how-step { text-align: center; max-width: 220px; }
.how-n { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.45rem; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(26,35,126,.3); }
.how-step p { font-size: 1.05rem; color: var(--text); }
.how-arrow { color: var(--accent); font-size: 2rem; font-weight: 700; }
#btnEligSubmit:disabled { cursor: not-allowed; }
.cta-band { text-align: center; padding-top: 8px; }

/* ---------- landing: videos (lazy) ---------- */
#videos { background: linear-gradient(180deg, #f4f6fb 0%, #e8ecf9 100%); max-width: none; }
#videos > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 30px; }
.video-card { border: none; background: var(--surface); border-radius: 18px; box-shadow: 0 6px 26px rgba(26,35,126,.13); overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,35,126,.25); }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--primary-light)); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,16,50,.55) 100%); pointer-events: none; }
.video-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.video-play { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ff9800); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; padding-left: 5px; box-shadow: 0 6px 22px rgba(255,111,0,.55), 0 0 0 8px rgba(255,255,255,.28); transition: transform .25s ease, box-shadow .25s ease; z-index: 1; }
.video-card:hover .video-play { transform: scale(1.15); box-shadow: 0 8px 28px rgba(255,111,0,.7), 0 0 0 12px rgba(255,255,255,.35); }
.video-card-title { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--text); }
.video-card-title::before { content: "🎬"; font-size: 1.2rem; flex-shrink: 0; }
.videos-none { text-align: center; color: var(--muted); padding: 20px; }
.video-modal { position: fixed; inset: 0; background: rgba(10,14,40,.88); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal-box { width: 100%; max-width: 860px; position: relative; }
.video-modal-box video { width: 100%; border-radius: 12px; background: #000; max-height: 72vh; }
.video-modal-title { color: #fff; text-align: center; margin-top: 12px; font-size: 1rem; }
.video-close { position: absolute; top: -44px; right: 0; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.video-close:hover { background: rgba(255,255,255,.3); }

/* ---------- responsive ---------- */
/* narrow screens: banner on top, welcome text below it in normal flow */
@media (max-width: 860px) {
  .hero-text { position: static; width: auto; padding: 26px 18px 34px; }
  .hero-kicker { font-size: .95rem; margin-bottom: 6px; }
  .hero-text h2 { font-size: 1.55rem; margin-bottom: 12px; }
  .hero-sub { font-size: .98rem; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { font-size: .95rem; padding: 12px 22px; }
  .hero-cta .btn-lg { font-size: 1rem; }
}

@media (max-width: 640px) {
  .panel { padding: 24px 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  /* on phones show only the current step name, large and centered */
  .stepper li { display: none; }
  .stepper li.current { display: block; font-size: .8rem; letter-spacing: .8px; }
  .hero h2 { font-size: 1.5rem; }
  .lead { font-size: .98rem; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; }
  .btn-lg { width: 100%; padding: 15px 20px; }
  .topbar-inner { flex-wrap: wrap; padding: 12px 14px; }
  .topbar h1 { font-size: 1.05rem; }
  .info-box { padding: 14px 16px; }
  .stat-card .num { font-size: 1.5rem; }
  .pager { flex-wrap: wrap; }
  .section { padding: 34px 16px; }
  .section-title { font-size: 1.3rem; }
  .video-grid { grid-template-columns: 1fr; gap: 20px; }
  .video-play { width: 58px; height: 58px; font-size: 1.3rem; }
  .how-arrow { display: none; }
  .how-strip { gap: 18px; }
  .lang-switch { margin-left: auto; }
  .lang-switch button { padding: 5px 10px; font-size: .74rem; }
  .brand-logo { height: 48px; }
}
