/* ==========================================================================
   SVL Kranthi Group of Colleges — Public Website Stylesheet
   Brand tokens echo TWSS College marketing-site (primary navy, accent cyan)
   plus a saffron accent that signals an Indian institutional identity.
   ========================================================================== */

:root {
  --primary: #0B3D91;
  --primary-50: #EEF3FB;
  --primary-100: #E8F0FE;
  --primary-200: #C5D5F2;
  --primary-300: #94B0E2;
  --primary-500: #2F5BB1;
  --primary-700: #0B3D91;
  --primary-800: #082E6E;
  --primary-900: #06214F;
  --primary-ink: #1F2937;
  --accent: #FFC72C;
  --accent-soft: #FFF7C2;
  --saffron: #C2410C;
  --saffron-soft: #FFF7ED;
  --gold: #B45309;
  --gold-soft: #FEF3C7;
  --success: #065F46;
  --success-soft: #D1FAE5;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --ink: #1F2937;
  --muted: #6B7280;
  --hairline: #E5E7EB;
  --canvas: #F8FAFC;
  --shadow-soft: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
  --shadow-ring: 0 0 0 1px rgba(11,61,145,.12), 0 8px 24px rgba(11,61,145,.10);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-2xl: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
}
::selection { background: rgba(11,61,145,.18); color: var(--primary); }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(11,61,145,.25); border-radius: 8px;
}
h1, h2, h3, h4, h5 { color: var(--primary-ink); margin: 0 0 .5rem; line-height: 1.15; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p, li { text-wrap: pretty; }

/* layout helpers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section-tight { padding: 3rem 0; }
.bg-canvas { background: var(--canvas); }
.bg-white { background: #fff; }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-primary-soft { background: var(--primary-50); }
.bg-saffron-soft { background: var(--saffron-soft); }

.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--primary); display: inline-block; }
.lead { font-size: 1.075rem; line-height: 1.65; color: #475569; }
@media (min-width: 640px) { .lead { font-size: 1.15rem; } }

/* pills / badges */
.pill, .pill-soft, .pill-success, .pill-saffron, .pill-gold {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .35rem .75rem; font-size: .7rem; font-weight: 600;
}
.pill { border: 1px solid var(--primary-100); background: #fff; color: var(--primary); }
.pill-soft { background: var(--primary-50); color: var(--primary); }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-saffron { background: var(--saffron-soft); color: var(--saffron); border: 1px solid #FED7AA; }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-dot { height: 6px; width: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }
.pill-dot.pulse { animation: pulse-soft 2.4s ease-in-out infinite; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 10px; padding: .65rem 1.25rem; font-size: .9rem; font-weight: 600; transition: all .15s ease; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-800); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary-200); }
.btn-secondary:hover { background: var(--primary-50); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-50); text-decoration: none; }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: #9A3412; text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; text-decoration: none; }
.btn-sm { padding: .45rem .85rem; font-size: .8rem; }

/* cards */
.card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.card-elev { background: #fff; border: 1px solid var(--primary-100); border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: var(--shadow-ring); }
.card h3 { margin-top: 0; }

/* grid utilities */
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: all .2s ease; }
.header.scrolled { border-bottom-color: var(--hairline); background: rgba(255,255,255,.95); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--primary-ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -.02em; font-size: .92rem;
  box-shadow: 0 4px 12px rgba(11,61,145,.18);
}
.brand-name { font-weight: 700; font-size: 1rem; line-height: 1.1; color: var(--primary-ink); }
.brand-sub { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nav-desktop { display: none; align-items: center; gap: .25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link { padding: .5rem .8rem; font-size: .88rem; font-weight: 500; color: rgba(31,41,55,.85); border-radius: 8px; }
.nav-link:hover { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.nav-link.active { color: var(--primary); background: var(--primary-50); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: transparent; border-radius: 8px; color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: var(--primary-50); color: var(--primary); }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--hairline); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu .container { padding-top: 1rem; padding-bottom: 1rem; flex-direction: column; align-items: stretch; height: auto; gap: .25rem; }
.mobile-menu a { display: block; padding: .65rem .85rem; border-radius: 8px; font-size: .95rem; color: var(--ink); }
.mobile-menu a:hover { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.mobile-menu .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem 0 0; }

/* hero */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(11,61,145,.10), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(11,61,145,.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(11,61,145,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero .container { position: relative; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .hero .container { padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.text-gradient {
  background: linear-gradient(120deg, #0B3D91 0%, #2F5BB1 50%, #FFC72C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-checks { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .5rem; }
@media (min-width: 640px) { .hero-checks { grid-template-columns: 1fr 1fr; } }
.hero-checks li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: rgba(31,41,55,.88); }
.hero-checks svg { flex: 0 0 18px; margin-top: 2px; color: var(--success); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.hero-trust { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .72rem; color: var(--muted); }
.hero-trust .label { color: var(--ink); font-weight: 600; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--primary); display: inline-block; }

/* hero panel */
.hero-panel { position: relative; overflow: hidden; }
.hero-panel .glow { position: absolute; top: -3rem; right: -3rem; width: 14rem; height: 14rem; border-radius: 999px; background: rgba(255,199,44,.18); filter: blur(60px); pointer-events: none; }
.hero-panel .row { display: flex; align-items: center; justify-content: space-between; }
.hero-panel .panel-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.hero-panel .panel-sub { font-size: .72rem; color: var(--muted); }
.hero-panel ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .65rem; }
.hero-panel li { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: .8rem 1rem; }
.hero-panel li .top { display: flex; justify-content: space-between; font-size: .72rem; }
.hero-panel li .agent { color: var(--primary); font-weight: 700; }
.hero-panel li .timestamp { color: var(--muted); }
.hero-panel li .action { font-size: .9rem; margin-top: .15rem; color: var(--ink); }
.hero-panel li .status { font-size: .75rem; margin-top: .15rem; color: var(--muted); }
.hero-panel .footer-strip { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; background: var(--primary-50); color: var(--primary); padding: .55rem .8rem; border-radius: 10px; font-size: .75rem; font-weight: 600; }

/* logo strip */
.logos-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem; opacity: .9; }
.logos-strip .logo-item { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--muted); font-size: .82rem; padding: .4rem .65rem; border-radius: 8px; background: #fff; border: 1px solid var(--hairline); }
.logos-strip .logo-item svg { color: var(--primary); }

/* announcement bar */
.announce {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-500) 60%, #FFC72C 130%);
  color: #fff; font-size: .82rem; padding: .55rem 1rem;
}
.announce .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; padding: 0 1rem; height: auto; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.announce .chip { background: rgba(255,255,255,.15); border-radius: 999px; padding: .15rem .55rem; font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }

/* feature tile */
.feature { display: flex; flex-direction: column; gap: .65rem; padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--hairline); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-ring); }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.feature h3 { margin: 0; font-size: 1.075rem; }
.feature p { margin: 0; color: #475569; font-size: .92rem; }

/* number tile */
.number-tile { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.4rem 1.25rem; text-align: center; }
.number-tile .num { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; line-height: 1; }
.number-tile .label { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.number-tile .sub { font-size: .72rem; color: var(--muted); margin-top: .15rem; }

/* timeline */
.timeline { display: grid; gap: 1rem; position: relative; }
.timeline .row { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1rem 1.25rem; display: grid; gap: .25rem; grid-template-columns: 130px 1fr; align-items: start; }
@media (max-width: 640px) { .timeline .row { grid-template-columns: 1fr; } }
.timeline .row .when { font-weight: 700; color: var(--primary); font-size: .9rem; }
.timeline .row .what { font-size: .92rem; color: var(--ink); }
.timeline .row .desc { color: var(--muted); font-size: .85rem; }

/* table */
.table-wrap { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow-x: auto; box-shadow: var(--shadow-soft); }
table.kv { width: 100%; border-collapse: collapse; min-width: 720px; }
table.kv th, table.kv td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--hairline); font-size: .9rem; vertical-align: top; }
table.kv thead { background: var(--primary-50); }
table.kv th { color: var(--primary); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
table.kv tbody tr:hover { background: #FAFBFD; }
table.kv tbody tr:last-child td { border-bottom: 0; }
table.kv .rank { font-weight: 700; color: var(--primary); }
table.kv .stream { font-weight: 600; }
table.kv .marks { font-variant-numeric: tabular-nums; font-weight: 600; }
.legend { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); margin-right: .75rem; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }

/* topper card */
.topper-card { background: linear-gradient(180deg, #fff 0%, var(--primary-50) 250%); border: 1px solid var(--primary-100); border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: var(--shadow-ring); display: flex; gap: 1rem; align-items: flex-start; }
.topper-avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(11,61,145,.18); }
.topper-card .name { font-weight: 700; color: var(--ink); }
.topper-card .stream { font-size: .8rem; color: var(--muted); }
.topper-card .marks { margin-top: .5rem; font-weight: 800; color: var(--primary); font-size: 1.4rem; letter-spacing: -.02em; }
.topper-card .marks small { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: .25rem; }
.topper-card .rank-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--gold-soft); color: var(--gold); font-weight: 800; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-500) 120%);
  color: #fff; border-radius: var(--radius-2xl); padding: 2.5rem; box-shadow: var(--shadow-ring); position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner::before { content: ""; position: absolute; right: -100px; bottom: -120px; width: 360px; height: 360px; border-radius: 999px; background: rgba(255,199,44,.20); filter: blur(80px); }
.cta-banner .body { color: rgba(255,255,255,.82); max-width: 38rem; }
.cta-banner .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-banner .btn-primary { background: #fff; color: var(--primary); }
.cta-banner .btn-primary:hover { background: var(--primary-50); }
.cta-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.4); }

/* footer */
.footer { margin-top: 5rem; border-top: 1px solid var(--hairline); background: #fff; }
.footer .container { padding-top: 3rem; padding-bottom: 2rem; flex-direction: column; align-items: stretch; height: auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .group-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer ul a { font-size: .88rem; color: var(--muted); }
.footer ul a:hover { color: var(--primary); }
.footer .lower { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: .77rem; color: var(--muted); }
.footer .lower .links a { margin-left: .85rem; color: var(--muted); }
.footer .lower .links a:hover { color: var(--primary); }

/* breadcrumb */
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 .35rem; opacity: .7; }

/* page hero (interior) */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--primary-50) 100%); border-bottom: 1px solid var(--primary-100); padding: 3rem 0 2.5rem; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,61,145,.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(11,61,145,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
.page-hero .lead { max-width: 48rem; margin-top: .75rem; }
.page-hero .pill { background: #fff; }

/* form */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.label { font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: .35rem; display: block; }
.input, .textarea, .select {
  display: block; width: 100%; padding: .6rem .8rem; border: 1px solid var(--hairline); border-radius: 10px;
  font-size: .92rem; color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary-300); box-shadow: 0 0 0 3px rgba(11,61,145,.18); outline: none; }
.help { font-size: .75rem; color: var(--muted); margin-top: .35rem; }
textarea.textarea { min-height: 110px; resize: vertical; }

/* gallery */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-tile { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--primary-50); position: relative; border: 1px solid var(--hairline); display: flex; align-items: end; padding: .75rem; color: #fff; }
.gallery-tile.scene { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.gallery-tile.scene-2 { background: linear-gradient(135deg, var(--saffron), #FBBF24); }
.gallery-tile.scene-3 { background: linear-gradient(135deg, #065F46, #10B981); }
.gallery-tile.scene-4 { background: linear-gradient(135deg, #4338CA, #818CF8); }
.gallery-tile.scene-5 { background: linear-gradient(135deg, #C2410C, #F87171); }
.gallery-tile.scene-6 { background: linear-gradient(135deg, #082E6E, #2F5BB1); }
.gallery-tile .caption { background: rgba(15,23,42,.45); padding: .35rem .65rem; border-radius: 8px; font-size: .78rem; font-weight: 600; backdrop-filter: blur(6px); }

/* stat-card row (ranks 2026 hero) */
.rank-stat-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .rank-stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rank-stat-row { grid-template-columns: repeat(4, 1fr); } }
.rank-stat { background: #fff; border: 1px solid var(--primary-100); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-soft); }
.rank-stat .num { font-size: 2.1rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.rank-stat .label { font-size: .85rem; color: var(--ink); font-weight: 600; }
.rank-stat .sub { font-size: .75rem; color: var(--muted); margin-top: .15rem; }

/* news */
.news-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.25rem; height: 100%; display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .2s ease, transform .2s ease; }
.news-card:hover { box-shadow: var(--shadow-ring); transform: translateY(-2px); }
.news-card .date { font-size: .75rem; color: var(--muted); }
.news-card h3 { font-size: 1rem; }
.news-card p { font-size: .9rem; color: #475569; margin: 0; }
.news-card .more { font-weight: 600; font-size: .85rem; color: var(--primary); margin-top: auto; padding-top: .35rem; }

/* faculty card */
.faculty-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.faculty-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 999px; background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; }
.faculty-card .name { font-weight: 700; color: var(--ink); }
.faculty-card .role { font-size: .8rem; color: var(--muted); }
.faculty-card .qual { font-size: .82rem; color: #475569; margin-top: .25rem; }

/* small accents */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { height: 1px; background: var(--hairline); margin: 2.5rem 0; }
.kbd { font: inherit; font-size: .75rem; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; padding: .1rem .4rem; color: var(--ink); box-shadow: 0 1px 0 var(--hairline); }
.skip-link { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: var(--primary); color: #fff; padding: .5rem .75rem; border-radius: 8px; z-index: 100; transition: transform .15s ease; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   v2 polish — visual richness + deeper mobile-first refinements
   ========================================================================== */

/* scroll-progress bar (top of viewport) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent), var(--saffron)); transition: width .12s ease-out; box-shadow: 0 1px 4px rgba(11,61,145,.25); }

/* reveal-on-scroll (used by IntersectionObserver in script.js) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* button polish — subtle lift + active press */
.btn { transform: translateY(0); will-change: transform, box-shadow; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 1px 2px rgba(11,61,145,.20), 0 6px 18px -6px rgba(11,61,145,.45); }
.btn-primary:hover { box-shadow: 0 2px 4px rgba(11,61,145,.25), 0 12px 28px -8px rgba(11,61,145,.55); }
.btn-saffron { box-shadow: 0 1px 2px rgba(194,65,12,.22), 0 6px 18px -6px rgba(194,65,12,.45); }
.btn-saffron:hover { box-shadow: 0 2px 4px rgba(194,65,12,.28), 0 12px 28px -8px rgba(194,65,12,.55); }

/* header — refined desktop nav underline + tighter mobile bar */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem;
  height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { background: transparent; }
.nav-link:hover { background: transparent; }
.header.scrolled { box-shadow: 0 2px 14px rgba(15,23,42,.04); }

/* mobile menu — slide + fade in */
.mobile-menu { transform-origin: top; transform: scaleY(.96); opacity: 0; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.mobile-menu.open { display: block; opacity: 1; transform: scaleY(1); pointer-events: auto; }
.mobile-menu a { min-height: 44px; display: flex; align-items: center; }
.mobile-menu a:active { background: var(--primary-100); }

/* hero — floating decorative orb + sharper grid */
.hero { isolation: isolate; }
.hero::before {
  background:
    radial-gradient(900px 460px at 80% -10%, rgba(255,199,44,.16), transparent 55%),
    radial-gradient(1200px 600px at 10% -10%, rgba(11,61,145,.14), transparent 60%);
}
.hero .orb {
  position: absolute; pointer-events: none; z-index: -1;
  width: 22rem; height: 22rem; border-radius: 999px; filter: blur(60px);
  background: conic-gradient(from 220deg at 50% 50%, rgba(255,199,44,.35), rgba(11,61,145,.30), rgba(251,191,36,.20), rgba(255,199,44,.35));
  opacity: .55; animation: orb-drift 22s ease-in-out infinite alternate;
}
.hero .orb.a { top: -6rem; right: -6rem; }
.hero .orb.b { bottom: -8rem; left: -8rem; width: 18rem; height: 18rem; opacity: .35; animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes orb-drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(20px,-30px,0) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hero .orb { animation: none; } }

/* hero panel — refined glow + subtle hover float */
.hero-panel { transition: transform .35s ease, box-shadow .35s ease; }
.hero-panel:hover { transform: translateY(-2px); }
.hero-panel .glow { animation: orb-drift 14s ease-in-out infinite alternate; }

/* cards — gradient ring on hover + smoother shadow */
.card, .card-elev { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 30px -12px rgba(11,61,145,.20); border-color: var(--primary-100); }
.card-elev:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(11,61,145,.16), 0 20px 40px -12px rgba(11,61,145,.20); }

/* feature tile — icon halo + gradient bg */
.feature { position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity .25s ease;
}
.feature:hover::before { opacity: 1; }
.feature .icon { background: linear-gradient(135deg, var(--primary-50), var(--accent-soft)); position: relative; }
.feature .icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 14px; background: radial-gradient(circle, rgba(255,199,44,.25), transparent 70%); opacity: 0; transition: opacity .25s ease; z-index: -1;
}
.feature:hover .icon::after { opacity: 1; }

/* number tile — gradient accent + tabular numerals */
.number-tile { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.number-tile::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--saffron));
}
.number-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(11,61,145,.18); }
.number-tile .num { font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--primary), var(--primary-500) 65%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* topper card — shimmering rank-badge */
.topper-card { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.topper-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(180,83,9,.25), 0 24px 40px -12px rgba(180,83,9,.18); }
.topper-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(251,191,36,.10) 45%, transparent 65%);
  pointer-events: none;
}
.topper-card .rank-badge { position: relative; overflow: hidden; }
.topper-card .rank-badge::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(220%); } }
@media (prefers-reduced-motion: reduce) { .topper-card .rank-badge::before { animation: none; } }
.topper-avatar { position: relative; }
.topper-avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; background: radial-gradient(circle, rgba(255,199,44,.4), transparent 70%); opacity: 0; transition: opacity .25s ease; z-index: -1; }
.topper-card:hover .topper-avatar::after { opacity: 1; }

/* news card — left accent bar */
.news-card { position: relative; padding-left: 1.5rem; }
.news-card::before {
  content: ""; position: absolute; left: 0; top: 1.25rem; bottom: 1.25rem; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: .6; transition: opacity .25s ease, top .25s ease, bottom .25s ease;
}
.news-card:hover::before { opacity: 1; top: .5rem; bottom: .5rem; }

/* gallery tiles — pattern overlay for texture */
.gallery-tile { transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; }
.gallery-tile::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.25) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
.gallery-tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.55) 100%);
}
.gallery-tile .caption { position: relative; z-index: 1; }
.gallery-tile:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 40px -10px rgba(15,23,42,.30); }

/* CTA banner — animated gradient + decorative dots */
.cta-banner { background-size: 200% 200%; animation: gradient-pan 14s ease-in-out infinite alternate; }
.cta-banner::after {
  content: ""; position: absolute; left: -80px; top: -80px; width: 280px; height: 280px; border-radius: 999px;
  background: radial-gradient(circle, rgba(251,191,36,.18), transparent 70%); pointer-events: none;
}
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .cta-banner { animation: none; } }

/* timeline — connecting rail on desktop */
@media (min-width: 641px) {
  .timeline { padding-left: .5rem; }
  .timeline .row { position: relative; padding-left: 1.5rem; }
  .timeline .row::before {
    content: ""; position: absolute; left: 0; top: 1.25rem; width: 8px; height: 8px; border-radius: 999px;
    background: var(--primary); box-shadow: 0 0 0 4px rgba(11,61,145,.10);
  }
}

/* page-hero — richer background */
.page-hero {
  background:
    radial-gradient(900px 360px at 90% -20%, rgba(255,199,44,.16), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--primary-50) 100%);
}

/* form polish — bigger touch targets on mobile */
.input, .textarea, .select { transition: border-color .15s ease, box-shadow .15s ease; }
@media (max-width: 640px) {
  .input, .textarea, .select { padding: .75rem .9rem; font-size: 1rem; border-radius: 12px; }
}

/* mobile sticky CTA dock (injected by script.js) */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom, 0));
  background: rgba(255,255,255,.95); backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--hairline); box-shadow: 0 -6px 22px rgba(15,23,42,.06);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.mobile-cta-bar.show { transform: translateY(0); }
.mobile-cta-bar a { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.mobile-cta-bar .call { background: #fff; color: var(--primary); border: 1px solid var(--primary-200); }
.mobile-cta-bar .apply { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(11,61,145,.55); }
.mobile-cta-bar .apply:hover { background: var(--primary-800); }
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body.with-cta-bar { padding-bottom: 64px; }
}

/* extra small viewports — declutter header + tighten sections */
@media (max-width: 480px) {
  .header .container { height: 60px; gap: .5rem; }
  .nav-actions .btn-secondary { display: none; }
  .nav-actions { gap: .35rem; }
  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; font-size: .82rem; }
  .brand-name { font-size: .92rem; }
  .section { padding: 2.75rem 0; }
  .announce { font-size: .78rem; padding: .5rem .75rem; }
  .announce .container { gap: .45rem; }
  .cta-banner { padding: 1.75rem 1.4rem; border-radius: var(--radius-lg); }
  .topper-card { padding: 1.15rem; }
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  .lead { font-size: 1rem; line-height: 1.6; }
  .breadcrumb { font-size: .75rem; }
  .nav-actions .btn-sm { padding: .42rem .7rem; }
}

/* tablet portrait — soften hero */
@media (max-width: 900px) {
  .hero .container { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .hero-panel { padding: 1.25rem; }
}

/* stat cards row — tabular numerals, gradient num */
.rank-stat { transition: transform .25s ease, box-shadow .25s ease; }
.rank-stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(11,61,145,.18); }
.rank-stat .num { font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* faculty card — hover halo */
.faculty-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.faculty-card:hover { transform: translateY(-2px); border-color: var(--primary-100); box-shadow: 0 12px 26px -12px rgba(11,61,145,.18); }

/* link hover underline grows from left */
a:not(.btn):not(.brand):not(.nav-link):not(.pill):not(.pill-soft):not(.pill-success):not(.pill-saffron):not(.pill-gold):not(.logo-item):not(.gallery-tile) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s ease;
  text-decoration: none;
}
a:not(.btn):not(.brand):not(.nav-link):not(.pill):not(.pill-soft):not(.pill-success):not(.pill-saffron):not(.pill-gold):not(.logo-item):not(.gallery-tile):hover {
  background-size: 100% 1px;
  text-decoration: none;
}

/* table — sticky thead within wrap */
.table-wrap { max-height: 70vh; overflow-y: auto; }
table.kv thead th { position: sticky; top: 0; z-index: 1; }

/* pill-dot pulse — replace with a softer ring pulse */
.pill-dot.pulse { box-shadow: 0 0 0 0 rgba(255,199,44,.6); animation: ring-pulse 2.4s ease-out infinite; }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,199,44,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,199,44,0); } 100% { box-shadow: 0 0 0 0 rgba(255,199,44,0); } }

/* logo-item — light hover state */
.logos-strip .logo-item { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.logos-strip .logo-item:hover { transform: translateY(-1px); border-color: var(--primary-100); box-shadow: 0 6px 16px -8px rgba(11,61,145,.20); }

/* improved blockquote (testimonials use .card) */
.card blockquote, blockquote.card { position: relative; }
blockquote.card::before {
  content: "\201C"; position: absolute; top: -.5rem; left: 1rem; font-family: "Source Serif Pro", Georgia, serif; font-size: 4rem; line-height: 1; color: var(--primary-200); opacity: .55;
}

/* honour user dark-mode preference for top progress bar visibility */
@media (prefers-color-scheme: dark) {
  /* keep design light by default; only the progress bar gets a subtle backdrop */
  .scroll-progress { background: rgba(255,255,255,.0); }
}

/* ==========================================================================
   Real college emblem — wire the official S.V.L. crest into header/footer brand
   The .brand wrapper is only used for header/footer; monogram avatars
   (e.g. chairman initials) live OUTSIDE .brand and keep the gradient/text style.
   ========================================================================== */
.brand .brand-mark {
  background: #fff url('logo.png') center/100% no-repeat;
  border-radius: 50%;
  width: 82px; height: 82px; flex: 0 0 82px;
  aspect-ratio: 1 / 1;
  font-size: 0; color: transparent; letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.06);
}
@media (max-width: 480px) { .brand .brand-mark { width: 68px; height: 68px; flex: 0 0 68px; } }
/* the header bar grows so the bigger logo doesn't crowd the bar */
.header .container { min-height: 92px; height: auto; }
@media (max-width: 480px) { .header .container { min-height: 76px; } }

/* photo-card helper for real photographs (campus, chairman, etc.) */
.photo-card { position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); background: #fff; }
.photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover img { transform: scale(1.03); }
.photo-card .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.15rem .9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11,61,145,.78) 100%); color: #fff;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.photo-card .caption strong { display: block; font-size: .95rem; }

/* student-info bright yellow ribbon — high-attention bar for prospects */
.benefits-ribbon {
  background: linear-gradient(135deg, #FFC72C 0%, #FFD55E 60%, #FFC72C 100%);
  background-size: 200% 200%; animation: gradient-pan 18s ease-in-out infinite alternate;
  color: #1F2937; padding: 1.2rem 0; border-top: 1px solid rgba(11,61,145,.12); border-bottom: 1px solid rgba(11,61,145,.12);
}
@media (prefers-reduced-motion: reduce) { .benefits-ribbon { animation: none; } }
.benefits-ribbon .row { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .benefits-ribbon .row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-ribbon .row { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.benefits-ribbon .item { display: flex; align-items: flex-start; gap: .65rem; }
.benefits-ribbon .item .ic {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(11,61,145,.10); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.benefits-ribbon .item .h { font-weight: 800; font-size: .92rem; line-height: 1.25; color: var(--primary-ink); }
.benefits-ribbon .item .s { font-size: .78rem; color: rgba(31,41,55,.78); margin-top: .15rem; }

/* social-links cluster (footer) */
.social-cluster { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.social-link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 36px;
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--primary-50); color: var(--primary);
  font-size: .78rem; font-weight: 600; border: 1px solid var(--primary-100);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.social-link:hover { transform: translateY(-1px); background: var(--primary); color: #fff; text-decoration: none; }
.social-link svg { width: 14px; height: 14px; }

/* yellow CTA variant — pops against navy/white */
.btn-yellow { background: #FFC72C; color: #1F2937; box-shadow: 0 1px 2px rgba(180,83,9,.20), 0 6px 18px -6px rgba(255,199,44,.55); }
.btn-yellow:hover { background: #FFD55E; text-decoration: none; box-shadow: 0 2px 4px rgba(180,83,9,.25), 0 12px 28px -8px rgba(255,199,44,.65); color: #1F2937; }

/* language switcher pill (injected by script.js) */
.lang-switch { display: inline-flex; gap: 2px; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: 999px; padding: 2px; margin-right: .35rem; }
.lang-switch a { display: inline-flex; align-items: center; padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--primary); text-decoration: none; line-height: 1; }
.lang-switch a.active { background: var(--primary); color: #fff; }
@media (max-width: 480px) { .lang-switch { display: none; } }
.mobile-menu .lang-switch { display: inline-flex; margin: .5rem 0 0 .85rem; }

/* theme-toggle button (injected by script.js) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary);
  cursor: pointer; margin-right: .35rem; transition: transform .2s ease, background .15s ease, color .15s ease;
}
.theme-toggle:hover { transform: rotate(15deg); background: var(--primary); color: #fff; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 480px) { .theme-toggle { width: 34px; height: 34px; } }

/* ==========================================================================
   Dark theme — opt-in via data-theme="dark" on <html>
   Token overrides + key hardcoded-color flips. Brand identity stays
   consistent (navy primary, bright yellow accent) but surfaces invert.
   ========================================================================== */
[data-theme="dark"] {
  --canvas: #0B1220;
  --ink: #E5E7EB;
  --primary-ink: #F8FAFC;
  --muted: #94A3B8;
  --hairline: #1F2A3D;
  --primary-50: #112144;
  --primary-100: #16315F;
  --primary-200: #1E3D75;
  --primary-300: #2F5BB1;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.30), 0 6px 14px rgba(0,0,0,.40);
  --shadow-ring: 0 0 0 1px rgba(255,199,44,.12), 0 8px 24px rgba(0,0,0,.45);
  color-scheme: dark;
}
[data-theme="dark"] body { background: var(--canvas); color: var(--ink); }
[data-theme="dark"] .bg-white { background: #0F1A30; }
[data-theme="dark"] .bg-canvas { background: #0B1220; }
[data-theme="dark"] .card,
[data-theme="dark"] .card-elev,
[data-theme="dark"] .feature,
[data-theme="dark"] .number-tile,
[data-theme="dark"] .news-card,
[data-theme="dark"] .faculty-card,
[data-theme="dark"] .topper-card,
[data-theme="dark"] .rank-stat,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .input,
[data-theme="dark"] .textarea,
[data-theme="dark"] .select,
[data-theme="dark"] .timeline .row,
[data-theme="dark"] .hero-panel li,
[data-theme="dark"] .logos-strip .logo-item {
  background: #122039; border-color: #1F2A3D; color: var(--ink);
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5 { color: #F8FAFC; }
[data-theme="dark"] .lead { color: #C7D2DA; }
[data-theme="dark"] .muted { color: #94A3B8; }
[data-theme="dark"] .hero { background: #0B1220; }
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(900px 460px at 80% -10%, rgba(255,199,44,.10), transparent 55%),
    radial-gradient(1200px 600px at 10% -10%, rgba(11,61,145,.30), transparent 60%);
}
[data-theme="dark"] .hero::after { opacity: .12; }
[data-theme="dark"] .header { background: rgba(11,18,32,.85); }
[data-theme="dark"] .header.scrolled { background: rgba(11,18,32,.95); border-bottom-color: #1F2A3D; }
[data-theme="dark"] .mobile-menu { background: #0F1A30; border-top-color: #1F2A3D; }
[data-theme="dark"] .mobile-menu a { color: #E5E7EB; }
[data-theme="dark"] .mobile-menu a:hover { background: #16315F; color: #FFC72C; }
[data-theme="dark"] .nav-link { color: rgba(229,231,235,.9); }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active { background: transparent; color: #FFC72C; }
[data-theme="dark"] .nav-link::after { background: linear-gradient(90deg, #FFC72C, #2F5BB1); }
[data-theme="dark"] .announce { background: linear-gradient(135deg, #06214F 0%, #0B3D91 60%, #FFC72C 130%); }
[data-theme="dark"] .pill { background: #122039; border-color: #1F2A3D; color: #FFC72C; }
[data-theme="dark"] .pill-soft { background: #16315F; color: #FFC72C; }
[data-theme="dark"] .btn-secondary { background: #122039; color: #FFC72C; border-color: #1F2A3D; }
[data-theme="dark"] .btn-secondary:hover { background: #16315F; }
[data-theme="dark"] .btn-ghost { color: #FFC72C; }
[data-theme="dark"] .btn-ghost:hover { background: #16315F; }
[data-theme="dark"] .footer { background: #0B1220; border-top-color: #1F2A3D; }
[data-theme="dark"] .footer .group-title { color: #FFC72C; }
[data-theme="dark"] .footer ul a { color: #94A3B8; }
[data-theme="dark"] .footer ul a:hover { color: #FFC72C; }
[data-theme="dark"] .footer .lower { border-top-color: #1F2A3D; }
[data-theme="dark"] .scroll-progress > span { background: linear-gradient(90deg, #FFC72C, #2F5BB1, #FFC72C); }
[data-theme="dark"] .mobile-cta-bar { background: rgba(11,18,32,.92); border-top-color: #1F2A3D; }
[data-theme="dark"] .mobile-cta-bar .call { background: #122039; color: #FFC72C; border-color: #1F2A3D; }
[data-theme="dark"] .text-gradient {
  background: linear-gradient(120deg, #FFC72C 0%, #FFD55E 50%, #FFC72C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .brand-name { color: #F8FAFC; }
[data-theme="dark"] .brand-sub { color: #94A3B8; }
[data-theme="dark"] .lang-switch { background: #122039; border-color: #1F2A3D; }
[data-theme="dark"] .lang-switch a { color: #FFC72C; }
[data-theme="dark"] .lang-switch a.active { background: #FFC72C; color: #0B1220; }
[data-theme="dark"] .theme-toggle { background: #122039; border-color: #1F2A3D; color: #FFC72C; }
[data-theme="dark"] .theme-toggle:hover { background: #FFC72C; color: #0B1220; }
[data-theme="dark"] .social-link { background: #122039; border-color: #1F2A3D; color: #FFC72C; }
[data-theme="dark"] .social-link:hover { background: #FFC72C; color: #0B1220; }
[data-theme="dark"] .feature .icon { background: #16315F; color: #FFC72C; }
[data-theme="dark"] .number-tile .num,
[data-theme="dark"] .rank-stat .num {
  background: linear-gradient(135deg, #FFC72C, #FFD55E); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .photo-card { background: #122039; border-color: #1F2A3D; }
[data-theme="dark"] .gallery-tile { border-color: #1F2A3D; }
[data-theme="dark"] table.kv thead { background: #16315F; }
[data-theme="dark"] table.kv th { color: #FFC72C; }
[data-theme="dark"] table.kv tbody tr:hover { background: #16315F; }
[data-theme="dark"] table.kv th, [data-theme="dark"] table.kv td { border-bottom-color: #1F2A3D; }
[data-theme="dark"] .benefits-ribbon { /* keep yellow ribbon — it's a hero attention element */ border-color: rgba(255,199,44,.35); }
[data-theme="dark"] .benefits-ribbon .item .ic { background: rgba(11,61,145,.35); color: #06214F; }
[data-theme="dark"] .skip-link { background: #FFC72C; color: #0B1220; }
[data-theme="dark"] .breadcrumb a { color: #94A3B8; }
[data-theme="dark"] .breadcrumb a:hover { color: #FFC72C; }
[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0B1220 0%, #112144 100%); border-bottom-color: #1F2A3D; }
[data-theme="dark"] .page-hero::after { opacity: .1; }
[data-theme="dark"] ::selection { background: rgba(255,199,44,.30); color: #FFC72C; }
/* prevent body bg from peeking through during theme transitions */
html, body { transition: background-color .25s ease, color .25s ease; }
