/* ==========================================================================
   Christu Jyoti Convent Sr. Sec. School — website styles
   Colours are taken from the school logo:
   banner maroon, "Love Service" indigo, flame gold, lotus magenta, shield lavender
   ========================================================================== */
:root {
  --maroon: #7A1A0C;
  --maroon-dark: #5C1309;
  --indigo: #23256B;
  --indigo-2: #2E3282;
  --gold: #F2C230;
  --on-gold: #241600;
  --magenta: #C4006A;
  --red: #D20214;
  --ground: #FAF9FD;
  --soft: #EEEDF8;
  --line: #DEDCEE;
  --ink: #1C1A33;
  --muted: #4F4D68;
  --white: #FFFFFF;
  --radius: 14px;
  --heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.65; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--indigo-2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.ic { flex-shrink: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.req { color: var(--red); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 10px 16px; z-index: 100; font-weight: 700; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hide-sm { }

/* Type */
.h1 { font-family: var(--heading); font-weight: 600; }
.h2 { font-family: var(--heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; margin: 8px 0 14px; }
.h3 { font-family: var(--heading); font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; margin: 6px 0 18px; }
/* Label badge: same size as the heading that follows it */
.eyebrow { display: inline-flex; align-items: center; gap: .4em; padding: .28em .75em .28em .55em; border-radius: 999px; background: #FBEDE9; border: 1px solid #F2D6CE; color: var(--maroon); font-family: var(--heading); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.eyebrow:has(+ .h3), .eyebrow:has(+ h2.h3), .hero-text .eyebrow { font-size: clamp(20px, 2vw, 24px); }
.eyebrow::before { content: ""; width: .9em; height: .16em; border-radius: 4px; flex-shrink: 0; background: linear-gradient(90deg, var(--maroon) 0 25%, var(--gold) 25% 50%, var(--magenta) 50% 75%, var(--indigo-2) 75%); }
.eyebrow-gold { color: var(--gold); background: rgba(255,255,255,.1); border-color: rgba(242,194,48,.45); }
.eyebrow-gold::before { background: linear-gradient(90deg, var(--gold) 0 50%, #fff 50%); }
.lead { font-size: 16px; }
.narrow-text { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 11px 22px; border-radius: 8px; border: 2px solid transparent; text-decoration: none; cursor: pointer; min-height: 44px; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { font-size: 15px; padding: 13px 28px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #E0AF1B; color: var(--on-gold); }
.btn-dark { background: var(--indigo); color: var(--white); }
.btn-dark:hover { background: #15174A; color: var(--white); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--maroon); }
.btn-outline-dark { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-outline-dark:hover { background: var(--indigo); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--maroon); }

/* Top bar */
.topbar { background: var(--indigo); color: var(--white); font-size: 13px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-in { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar-contact, .topbar-right { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.topbar-contact a { display: inline-flex; gap: 6px; align-items: center; }
.topbar-right a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.badge-cbse { background: var(--gold); color: var(--on-gold); padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.badge-udise { border: 1px solid var(--gold); color: var(--white); padding: 1px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }

/* Header */
.header { background: var(--white); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 62px; height: 70px; object-fit: contain; flex-shrink: 0; }
.brand-name { display: block; font-family: var(--heading); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--maroon); }
.brand-sub { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; padding: 12px 10px; background: none; border: 0; cursor: pointer; border-radius: 6px; min-height: 44px; }
.nav-link:hover, .nav-item.active > .nav-link { color: var(--maroon); }
.nav-item.active > .nav-link { box-shadow: inset 0 -3px 0 var(--gold); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(35,37,107,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 50; }
.sub a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 500; }
.sub a:hover, .sub a[aria-current] { background: var(--soft); color: var(--maroon); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
/* Third level: fly-out to the right of a dropdown item */
.sub-parent { position: relative; }
.sub-row { display: flex; align-items: center; border-radius: 8px; }
.sub-row > a { flex: 1; }
.sub-row:hover, .sub-parent.active > .sub-row { background: var(--soft); }
.sub-row:hover > a, .sub-parent.active > .sub-row > a { color: var(--maroon); }
.sub-row:hover > a { background: none; }
.sub-caret, .sub-label { background: none; border: 0; cursor: pointer; color: var(--ink); font: inherit; display: inline-flex; align-items: center; }
.sub-caret { padding: 10px 10px; border-radius: 8px; }
.sub-label { flex: 1; justify-content: space-between; padding: 10px 12px; font-size: 14px; font-weight: 500; text-align: left; }
.sub-caret .ic, .sub-label .ic { transform: rotate(-90deg); transition: transform .15s; }
.sub-3 { top: -9px; left: 100%; margin-left: 6px; transform: none; }
@media (min-width: 1181px) {
  /* Menus near the right edge open their fly-out to the left so it stays on screen */
  .nav-item:nth-last-child(-n+3) .sub-3 { left: auto; right: 100%; margin: 0 6px 0 0; }
}
.nav-erp { padding: 11px 18px; min-height: 44px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--maroon); cursor: pointer; padding: 8px; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
.nav-toggle .nt-close { display: none; }
.nav-toggle[aria-expanded="true"] .nt-open { display: none; }
.nav-toggle[aria-expanded="true"] .nt-close { display: inline; }

.logo-stripe { display: flex; height: 5px; }
.logo-stripe i { flex: 1; }
.logo-stripe i:nth-child(1) { flex: 3; background: var(--maroon); }
.logo-stripe i:nth-child(2) { background: var(--red); }
.logo-stripe i:nth-child(3) { background: var(--gold); }
.logo-stripe i:nth-child(4) { background: #D4006F; }
.logo-stripe i:nth-child(5) { flex: 2; background: var(--indigo-2); }

/* Ticker */
.ticker { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.ticker-in { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.ticker-label { flex-shrink: 0; background: var(--magenta); color: var(--white); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; }
.ticker-track { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 32s linear infinite; padding-left: 8px; }
.ticker-move a { color: var(--ink); font-weight: 500; text-decoration: none; }
.ticker-move a:hover { color: var(--maroon); text-decoration: underline; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.hero { background: var(--maroon); color: var(--white); }
.hero .wrap { padding-top: 56px; padding-bottom: 80px; }
.hero-slides { position: relative; display: grid; }
.hero-slide { grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-text h1, .hero-text .h1 { font-family: var(--heading); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; margin: 12px 0 16px; }
.hero-lead { font-size: 16px; color: rgba(255,255,255,.88); max-width: 540px; margin-bottom: 30px; }
.hero-media { flex: 1 1 420px; min-width: 0; }
.hero-media > img, .hero-media > .ph { width: 100%; height: 430px; object-fit: cover; border-radius: 18px; }
.hero-card { position: absolute; right: 24px; bottom: -32px; z-index: 3; display: flex; gap: 14px; align-items: center; background: var(--white); color: var(--ink); border-radius: 12px; padding: 14px 20px; box-shadow: 0 14px 34px rgba(0,0,0,.22); text-decoration: none; max-width: calc(100% - 48px); }
.hero-card:hover { color: var(--ink); transform: translateY(-2px); }
.hero-card strong { display: block; }
.hero-card small { color: var(--muted); font-size: 13px; }
.hero-card-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-dots { position: absolute; left: 0; bottom: -56px; display: flex; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: width .2s, background .2s; }
.hero-dots button.is-active { width: 32px; background: var(--gold); }
.hero-dots button::after { content: ''; position: absolute; inset: -16px -6px; }
.hero-dots button { position: relative; }

/* Placeholder blocks (shown until photos are uploaded) */
.ph { display: flex; align-items: center; justify-content: center; }
.ph img { width: 30%; max-width: 140px; opacity: .9; }
.ph-dark { background: var(--maroon-dark); border: 1px solid rgba(255,255,255,.15); }
.ph-soft { background: var(--soft); color: var(--indigo-2); width: 100%; height: 100%; }
.ph-soft img { opacity: .55; }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 0; padding-top: 48px; padding-bottom: 44px; }
.stat { text-align: center; padding: 6px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1.05; letter-spacing: -.01em; color: var(--maroon); }
.stat-suffix { color: #D9A514; font-weight: 400; margin-left: 2px; }
.stat-label { margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 420px) { .stat-label { font-size: 12px; letter-spacing: .1em; } }

/* Board results (home) */
.results-badge { display: inline-flex; align-items: center; gap: 16px; margin: 4px 0 28px; padding: 10px 22px 10px 10px; border-radius: 999px; background: var(--indigo); color: var(--white); }
.results-badge-num { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #FFE27A, var(--gold) 60%, #D9A514); color: var(--on-gold); font-family: var(--heading); font-weight: 700; font-size: 24px; box-shadow: 0 0 0 4px rgba(242,194,48,.3); }
.results-badge-text { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-weight: 600; font-size: 16px; }
.results-badge-text .ic { color: var(--gold); flex-shrink: 0; }
.results-posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 460px; }
.results-poster { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.results-poster:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(35,37,107,.14); }
.results-poster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; }
.results-poster span { display: block; padding: 10px 12px 12px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.results-poster small { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--maroon); font-size: 12.5px; font-weight: 700; }
.results-panel { flex: 1 1 400px; min-width: 0; max-width: 520px; margin-left: auto; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(35,37,107,.14); }
.results-panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: linear-gradient(90deg, var(--maroon), #A8321D); color: var(--white); }
.results-panel-head .ic { color: var(--gold); }
.results-panel-head strong { font-family: var(--heading); font-weight: 600; font-size: 17px; }
.results-panel-head small { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.8); }
.tscroll { height: 460px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.tscroll-track { animation: tscroll-up var(--tscroll-dur, 50s) linear infinite; }
.tscroll:hover .tscroll-track, .tscroll:focus-within .tscroll-track { animation-play-state: paused; }
@keyframes tscroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tscroll-list { list-style: none; margin: 0; padding: 0 16px; }
.tscroll-group { margin: 0 -16px; padding: 8px 20px; background: var(--soft); color: var(--indigo); font-family: var(--heading); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.topper { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.topper:last-child { border-bottom: 0; }
.topper-photo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--soft); color: var(--indigo-2); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 600; font-size: 20px; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--gold); }
.topper-photo img { width: 100%; height: 100%; object-fit: cover; }
.topper-info { flex: 1; min-width: 0; }
.topper-info strong { display: block; font-weight: 600; font-size: 15px; }
.topper-info small { color: var(--muted); font-size: 13px; }
.topper-pct { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; background: var(--maroon); color: var(--gold); font-family: var(--heading); font-weight: 700; font-size: 15px; }
@media (max-width: 560px) {
  .results-badge { gap: 12px; padding-right: 16px; }
  .results-badge-num { width: 68px; height: 68px; font-size: 19px; }
  .results-badge-text { font-size: 14px; }
  .tscroll { height: 400px; }
  .results-panel-head small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tscroll { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .tscroll-list[aria-hidden] { display: none; }
  .results-panel-head small { display: none; }
  .results-poster { transition: none; }
  .results-poster:hover { transform: none; }
}

/* Full marks scorers (home) */
.hscroll { overflow: hidden; padding: 8px 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.hscroll-track { display: flex; align-items: stretch; width: max-content; animation: hscroll-left var(--hscroll-dur, 40s) linear infinite; }
.hscroll:hover .hscroll-track, .hscroll:focus-within .hscroll-track { animation-play-state: paused; }
@keyframes hscroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.perfect-card { position: relative; width: 250px; flex-shrink: 0; margin-right: 20px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 40px 18px 18px; text-align: center; }
.perfect-tag { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.perfect-tag-xii { background: var(--indigo); color: var(--white); }
.perfect-tag-x { background: var(--magenta); color: var(--white); }
@media (max-width: 560px) { .perfect-card { width: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .hscroll { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hscroll .perfect-card[aria-hidden] { display: none; }
}
.perfect-row-title { margin: 0 0 6px; font-family: var(--heading); font-weight: 700; font-size: 18px; color: var(--indigo); letter-spacing: .04em; text-transform: uppercase; }
.hscroll + .perfect-row-title { margin-top: 28px; }
.perfect-photo { width: 84px; height: 84px; margin: 0 auto 12px; font-size: 28px; }
.perfect-card h4 { margin: 0 0 12px; font-family: var(--heading); font-weight: 600; font-size: 16px; }
.perfect-marks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.perfect-marks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 12px; border-radius: 10px; background: var(--ground); font-size: 14px; text-align: left; }
.perfect-marks strong { flex-shrink: 0; padding: 3px 10px; border-radius: 8px; background: var(--maroon); color: var(--gold); font-family: var(--heading); font-weight: 700; font-size: 14px; }
.perfect-marks small { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 600; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head.section-head-wide { max-width: 900px; }
.split-head { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-end; }
.split-head > p { margin: 0; max-width: 420px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-media { flex: 1 1 420px; min-width: 0; position: relative; }
.split-text { flex: 1 1 460px; min-width: 0; }
.rounded-img { width: 100%; height: 460px; object-fit: cover; border-radius: 18px; }
.split-media .ph { height: 460px; }
.est-badge { position: absolute; right: 20px; top: 20px; background: var(--indigo); color: var(--white); border-radius: 12px; padding: 14px 18px; text-align: center; }
.est-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.est-badge strong { font-family: var(--heading); font-weight: 600; font-size: 24px; line-height: 1.1; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.ticks .ic { color: var(--maroon); margin-top: 3px; }

/* Leadership desks */
.desk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.desk { background: var(--white); border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.desk-photo { width: 120px; height: 140px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--soft); color: var(--indigo-2); display: flex; align-items: center; justify-content: center; }
.desk-photo img { width: 100%; height: 100%; object-fit: cover; }
.desk-photo-lg { width: 150px; height: 175px; }
.desk-body { flex: 1 1 220px; min-width: 0; }
.desk-role { color: var(--maroon); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.desk h3 { font-family: var(--heading); font-weight: 600; font-size: 19px; margin: 4px 0 10px; }
.desk p { font-size: 14px; text-align: justify; }

/* Principal / Manager desk page: photo left, message right */
.desk-msg { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 32px; align-items: start; }
.desk-msg-photo { border-radius: 16px; overflow: hidden; background: var(--soft); color: var(--indigo-2); display: flex; align-items: center; justify-content: center; min-height: 260px; }
.desk-msg-photo img { width: 100%; height: auto; display: block; }
.desk-msg-text { text-align: justify; color: #6b6b72; font-size: 17px; line-height: 1.8; }
.desk-msg-text p { margin: 0; }
.desk-msg-sign { margin: 4px 0 0; display: flex; flex-direction: column; color: var(--ink); }
.desk-msg-sign span { font-weight: 600; }
.desk-msg-sign strong { font-weight: 700; }
@media (max-width: 860px) {
  .desk-msg { grid-template-columns: 1fr; gap: 22px; }
  .desk-msg-photo { max-width: 520px; }
  .desk-msg-text { font-size: 16px; }
}

/* Facilities */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.fac { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.fac:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(35,37,107,.12); }
.fac-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--white); }
.fac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fac:hover .fac-media img { transform: scale(1.06); }
.fac-media .ic { opacity: .95; transition: transform .3s ease; }
.fac:hover .fac-media .ic { transform: scale(1.1); }
.fac-tone-0 { background: linear-gradient(135deg, var(--maroon), #A8321D); }
.fac-tone-1 { background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); }
.fac-tone-2 { background: linear-gradient(135deg, #9E0057, var(--magenta)); }
.fac-tone-3 { background: linear-gradient(135deg, #D9A514, var(--gold)); color: var(--on-gold); }
.fac-num { position: absolute; top: 12px; left: 12px; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 9px; background: rgba(255,255,255,.94); color: var(--maroon); display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 600; font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.fac-body { padding: 16px 20px 20px; }
.fac h3, .fac-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; font-family: var(--heading); }
.fac p { margin: 0; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .fac, .fac-media img, .fac-media .ic { transition: none; } .fac:hover { transform: none; } }

/* Events & notices */
.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.two-col > div { flex: 1 1 420px; min-width: 0; }
.event-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.event { display: flex; gap: 18px; align-items: center; background: var(--ground); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.event:hover { border-color: var(--line); color: var(--ink); }
.event-date { width: 68px; flex-shrink: 0; text-align: center; background: var(--maroon); color: var(--white); border-radius: 10px; padding: 8px 0; line-height: 1.1; }
.event-date strong { display: block; font-family: var(--heading); font-weight: 600; font-size: 20px; }
.event-date small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.event-info strong { display: block; font-size: 15px; font-weight: 600; }
.event-info small { color: var(--muted); font-size: 13px; }
.notice-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.notice { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.notice:hover { background: var(--ground); color: var(--ink); }
.notice strong { display: block; font-weight: 600; font-size: 14px; }
.notice small { color: var(--muted); font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.notice-empty { padding: 16px 20px; margin: 0; }
.tag-new { flex-shrink: 0; background: var(--magenta); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; }
.notice-all { display: block; padding: 14px 20px; background: var(--soft); color: var(--maroon); font-weight: 700; text-decoration: none; }
.notice-box-page .notice { align-items: center; }
.notice-date-badge { width: 72px; flex-shrink: 0; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.notice-date-badge strong { font-family: var(--heading); font-weight: 600; font-size: 19px; color: var(--maroon); }
.notice-date-badge small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.notice-main { flex: 1; min-width: 0; }

/* CBSE band */
.mpd-band { background: var(--indigo); color: var(--white); padding: 72px 0; }
.mpd-band p { color: rgba(255,255,255,.86); margin-bottom: 24px; }
.mpd-grid { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mpd-cell { border: 1px solid rgba(255,255,255,.24); border-radius: 12px; padding: 18px; }
.mpd-cell small { display: block; font-size: 13px; color: rgba(255,255,255,.78); }
.mpd-cell strong { font-family: var(--heading); font-weight: 600; font-size: 18px; line-height: 1.3; word-break: break-word; }
.mpd-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 32px 0 16px; }
.mpd-summary .mpd-cell { background: var(--indigo); color: var(--white); border: 0; }
.mpd-section { margin-top: 44px; }

/* Gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 5px; }
.tab { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 7px; background: transparent; color: var(--ink); min-height: 44px; }
.tab.is-active { background: var(--maroon); color: var(--white); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.media-card, .event-card { display: block; text-decoration: none; color: var(--ink); }
.media-card:hover, .event-card:hover { color: var(--maroon); }
.media-img { position: relative; display: block; height: 210px; border-radius: 14px; overflow: hidden; background: var(--soft); }
.media-img-tall { height: 300px; }
.media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.media-card:hover .media-img img, .event-card:hover .media-img img { transform: scale(1.04); }
.media-card strong, .event-card strong { display: block; margin-top: 10px; font-weight: 700; }
.media-card small, .event-card small { display: block; color: var(--muted); font-size: 13px; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); background: rgba(28,26,51,.25); }
.event-date-float { position: absolute; left: 12px; top: 12px; }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.pill-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; }
.pill-tabs a.is-active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo-grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.05); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.video-item { margin: 0; }
.video-item figcaption { margin-top: 10px; font-weight: 700; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Admission CTA */
.cta-wrap { padding: 0 0 72px; }
.cta { background: var(--gold); color: var(--on-gold); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta > div:first-child { flex: 1 1 420px; min-width: 0; }
.cta h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); }
.cta p { margin: 0; font-size: 15px; font-weight: 500; }

/* Inner pages */
.page-banner { background: var(--maroon); color: var(--white); padding: 36px 0 40px; }
.page-banner h1 { font-family: var(--heading); font-weight: 600; font-size: clamp(24px, 2.8vw, 34px); margin: 6px 0 0; }
.page-banner p { margin: 6px 0 0; color: rgba(255,255,255,.86); font-size: 15px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.8); }
.crumbs a { color: var(--gold); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; color: var(--gold); }
.content-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.content-layout > :first-child { flex: 999 1 560px; min-width: 0; }
.prose { font-size: 15px; line-height: 1.75; }
.prose h2, .prose h3 { font-family: var(--heading); font-weight: 600; color: var(--maroon); margin-top: 1.4em; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 10px 10px 0; }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.content-img { height: auto; max-height: 460px; margin-bottom: 28px; }
.downloads { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.downloads a { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.downloads a:hover { border-color: var(--maroon); color: var(--maroon); }
.downloads span { flex: 1; }
/* Attachment preview boxes (PDF / image) */
.file-preview { margin: 0 0 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-preview-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--maroon); }
.file-preview-name { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.file-preview-name:hover { color: var(--maroon); text-decoration: underline; }
.file-preview-head small { color: var(--muted); font-size: 12px; font-weight: 700; }
.file-preview-body object { display: block; width: 100%; height: min(60vh, 520px); border: 0; }
.file-preview-body img { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; margin: 0 auto; border-radius: 0; }
.file-preview-fallback { margin: 0; padding: 28px 16px; text-align: center; color: var(--muted); }
@media (max-width: 700px) {
  .file-preview-body object { height: min(55vh, 400px); }
  .file-preview-head .btn { padding: 6px 10px; }
}
.downloads small { color: var(--muted); font-size: 12px; font-weight: 700; }
.meta-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.event-facts { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 24px !important; }
.event-facts li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.event-facts .ic { color: var(--maroon); }
.message-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 28px; }
.message-name { margin: 0 !important; font-size: 22px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; }
.person-photo { width: 150px; height: 170px; margin: 0 auto 16px; border-radius: 12px; overflow: hidden; background: var(--soft); color: var(--indigo-2); display: flex; align-items: center; justify-content: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h2 { font-family: var(--heading); font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.person-role { color: var(--maroon); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

/* Staff page */
.pill-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; min-height: 44px; cursor: pointer; }
.pill-tabs button:hover { border-color: var(--maroon); color: var(--maroon); }
.pill-tabs button.is-active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.staff-count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--indigo); }
.pill-tabs button.is-active .staff-count { background: rgba(255,255,255,.2); color: var(--white); }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.staff-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; gap: 18px; align-items: center; transition: box-shadow .2s ease, border-color .2s ease; }
.staff-card:hover { border-color: #E9D9A6; box-shadow: 0 10px 28px rgba(35,37,107,.10); }
.staff-card[hidden] { display: none; }
.staff-photo { flex: 0 0 104px; height: 124px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.staff-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--heading); font-weight: 600; font-size: 30px; color: var(--white); }
.staff-tone-0 { background: var(--maroon); }
.staff-tone-1 { background: var(--indigo-2); }
.staff-tone-2 { background: var(--magenta); }
.staff-tone-3 { background: var(--gold); color: var(--on-gold); }
.staff-body { flex: 1; min-width: 0; }
.staff-body h3 { font-family: var(--heading); font-weight: 600; font-size: 17px; line-height: 1.3; text-transform: uppercase; color: var(--indigo-2); margin-bottom: 8px; }
.staff-facts { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.staff-facts > div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.staff-facts dt { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.staff-facts dt .ic { flex-shrink: 0; color: var(--maroon); }
.staff-facts dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-transform: uppercase; overflow-wrap: anywhere; }
.staff-facts dd.nowrap { white-space: nowrap; }
@media (max-width: 1100px) { .staff-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .staff-card { padding: 18px; gap: 16px; }
  .staff-photo { flex-basis: 84px; height: 100px; }
  .staff-initials { font-size: 26px; }
  .staff-body h3 { font-size: 16px; margin-bottom: 10px; }
  .staff-facts { gap: 4px; }
  .staff-facts > div { grid-template-columns: 1fr; gap: 0; }
  .staff-facts dt { font-size: 13px; }
  .staff-facts dd { font-size: 14px; padding-left: 27px; }
}
@media (prefers-reduced-motion: reduce) { .staff-card { transition: none; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--soft); text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--indigo); }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.col-no { width: 70px; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form label, .form .label { font-weight: 600; font-size: 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=date], .form input[type=number], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9C7DC; border-radius: 8px; background: var(--white); color: var(--ink); min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(46,50,130,.25); border-color: var(--indigo-2); }
.form input[type=file] { font: inherit; font-size: 14px; }
.form small { font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-inline-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field-full { grid-column: 1 / -1; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.field-check input, .radio-row input { width: 20px; height: 20px; accent-color: var(--maroon); flex-shrink: 0; margin-top: 2px; }
.radio-row { display: flex; gap: 24px; min-height: 48px; align-items: center; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-family: var(--heading); font-weight: 600; font-size: 17px; color: var(--maroon); margin-bottom: 14px; padding: 0; }
.form-intro { margin-bottom: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.alert ul { margin: 4px 0 0; padding-left: 20px; flex-basis: 100%; }
.alert-ok { background: #E7F5EC; color: #145C33; border: 1px solid #BFE3CC; }
.alert-err { background: #FCEBEA; color: #9B1F18; border: 1px solid #F3C6C2; }
.result-card { background: var(--white); border: 2px solid #BFE3CC; border-radius: 16px; padding: 28px; }
.result-card h3 { display: flex; gap: 10px; align-items: center; font-size: 17px; color: #145C33; }
.result-none { border-color: #F3C6C2; }
.result-none h3 { color: #9B1F18; }
.detail { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0 0 22px; }
.detail dt { font-weight: 600; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.narrow-wrap { max-width: 720px; }
.done-card { text-align: center; }
.done-card .detail { text-align: left; max-width: 420px; margin: 0 auto 22px; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: #E7F5EC; color: #145C33; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.app-no { font-family: var(--heading); font-weight: 600; font-size: 28px; color: var(--maroon); margin: 0 0 18px; }
.center-row { justify-content: center; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-bottom: 40px; }
.contact-info { flex: 1 1 340px; }
.contact-grid > form { flex: 999 1 520px; min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list strong { display: block; color: var(--maroon); }
.ci { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--maroon); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; padding: 0 12px; background: var(--white); color: var(--ink); }
.pagination .active a { background: var(--maroon); color: var(--white); border-color: var(--maroon); }

/* Footer */
.footer { background: var(--indigo); color: rgba(255,255,255,.86); font-size: 14px; }
.footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 44px; }
.footer h2 { color: var(--white); font-size: 15px; font-family: var(--heading); font-weight: 600; margin-bottom: 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-logo { background: var(--white); border-radius: 12px; padding: 6px; display: flex; flex-shrink: 0; }
.footer-logo img { width: 48px; height: 54px; object-fit: contain; }
.footer-name { font-family: var(--heading); font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-links a { display: inline-block; padding: 4px 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .ic { color: var(--gold); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: rgba(255,255,255,.72); }
.footer-bottom-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }

/* Popup & lightbox */
.popup, .lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,14,35,.78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup[hidden], .lightbox[hidden] { display: none; }
.popup-box { position: relative; max-width: 560px; width: 100%; }
.popup-box img { width: 100%; max-height: 85vh; object-fit: contain; border-radius: 12px; background: var(--white); }
.popup-close, .lb-close { position: absolute; top: -18px; right: -12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 90vw; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: var(--white); margin-top: 10px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 32px; line-height: 1; cursor: pointer; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--white); flex-direction: column; align-items: stretch; gap: 16px; padding: 88px 20px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; box-shadow: -10px 0 40px rgba(0,0,0,.2); z-index: 45; }
  .nav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(15,14,35,.55); }
  .nav-toggle { position: relative; z-index: 46; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
  .nav-item.active > .nav-link { box-shadow: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; display: none; min-width: 0; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .has-sub.open > .sub-toggle .ic, .has-sub.open > .sub-row .sub-toggle .ic { transform: rotate(180deg); }
  .sub-caret .ic, .sub-label .ic { transform: none; }
  .sub-caret { padding: 10px 14px; }
  .sub-3 { padding: 0 0 4px 14px; margin: 0; border-left: 2px solid var(--line); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .brand img { width: 50px; height: 56px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 11px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 88px; }
  .hero-media > img, .hero-media > .ph { height: 260px; }
  .hero-card { right: 16px; left: 16px; bottom: -40px; max-width: none; }
  .hero-dots { bottom: auto; top: -24px; }
  .section { padding: 64px 0; }
  .rounded-img, .split-media .ph { height: 300px; }
  .split, .two-col { gap: 36px; }
  .form-grid, .form-inline-2 { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .cta { padding: 32px 22px; }
  .cta-wrap { padding-bottom: 64px; }
  .mpd-grid { grid-template-columns: 1fr 1fr; }
  .desk { padding: 22px; }
  .detail { grid-template-columns: 1fr; }
  .detail dt { border-bottom: 0; padding-bottom: 0; }
  .topbar-in { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-move { white-space: normal; flex-wrap: wrap; gap: 8px 32px; }
}
@media print {
  .topbar, .header, .logo-stripe, .ticker, .footer, .btn, .popup, .page-banner .crumbs { display: none !important; }
  .page-banner { background: none; color: #000; padding: 0; }
  body { background: #fff; }
}
