/* ════════════════════════════════════════════════════
   MKBS School Website – style.css
   ════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1B3D8C;
  --primary-d: #142E70;
  --gold:      #C9A227;
  --gold-d:    #a88418;
  --bg:        #F5F7FA;
  --bg-alt:    #EDF0F5;
  --text:      #1e2d3d;
  --text-m:    #4a5568;
  --border:    #d9e2ec;
  --white:     #ffffff;
  --success:   #2e7d32;
  --error:     #c62828;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --nav-h:     70px;
  --ticker-h:  32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,61,140,0.1);
}
textarea { resize: vertical; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--primary-d); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

/* ── Navbar ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 24px rgba(0,0,0,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { width: 50px; height: 50px; object-fit: contain; aspect-ratio: 1/1; flex-shrink: 0; }
.nav-school-name { display: flex; flex-direction: column; }
.nav-title { font-size: 13.5px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.nav-sub { font-size: 11px; color: var(--text-m); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--bg-alt); color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px 6px; cursor: pointer; border: none; background: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s; }
/* Hamburger → X when open */
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Ticker ────────────────────────────────────────── */
.ticker-wrap {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  background: var(--primary);
  height: var(--ticker-h);
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--primary-d);
  font-size: 11px;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-track span {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding-left: 100%;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--ticker-h) + 40px) 20px 60px;
  background: #0d1f52; /* fallback while image loads */
  overflow: hidden;
}
/* Fullscreen background image */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Dark gradient scrim over hero photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(8, 15, 40, 0.55) 0%,
    rgba(10, 20, 55, 0.45) 50%,
    rgba(8, 15, 40, 0.60) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  background: rgba(10, 18, 55, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.hero-logo {
  width: 140px; height: 140px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.6), 0 6px 24px rgba(0,0,0,0.5);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4.5vw, 38px);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-affiliation { font-size: 14px; color: var(--gold); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.3px; }
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-m); font-weight: 500; }

/* ── Section Base ──────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 44px; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--primary);
  margin-bottom: 10px;
}
.section-divider { width: 56px; height: 3px; background: var(--gold); margin: 0 auto 14px; border-radius: 2px; }
.section-sub { font-size: 14px; color: var(--text-m); max-width: 560px; margin: 0 auto; }

/* ── Principal's Message ───────────────────────────── */
.principal-card {
  display: flex;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 960px;
  margin: 0 auto;
}
.principal-avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.principal-logo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; }
.principal-body { position: relative; flex: 1; }
.quote-mark {
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  position: absolute;
  top: -20px;
  left: -10px;
  pointer-events: none;
  user-select: none;
}
.principal-body p {
  color: var(--text-m);
  line-height: 1.8;
  margin-bottom: 14px;
  padding-left: 8px;
}
.principal-body p:last-of-type { margin-bottom: 20px; }
.principal-sig {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
  border-left: 3px solid var(--gold);
}
.principal-sig strong { font-size: 15px; color: var(--primary); }
.principal-sig span { font-size: 12px; color: var(--text-m); margin-top: 2px; }

/* ── About Section ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 14px; color: var(--text-m); line-height: 1.8; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }
.about-text em { color: var(--primary); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(27,61,140,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.info-card p  { font-size: 12px; color: var(--text-m); line-height: 1.5; }

/* ── Faculty Section ───────────────────────────────── */
.faculty-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 52px 0 22px;
}
.faculty-section-header:first-child { margin-top: 0; }
.faculty-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.faculty-section-pill.pill-admin   { background: var(--primary); }
.faculty-section-pill.pill-teach   { background: #2e7d32; }
.faculty-section-pill.pill-nontech { background: #7b5ea7; }
.faculty-section-line { flex: 1; height: 1px; background: var(--border); }
.faculty-section-count {
  font-size: 12px;
  color: var(--text-m);
  white-space: nowrap;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.faculty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 16px 18px;
  text-align: center;
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faculty-card.type-admin   { border-top-color: var(--primary); }
.faculty-card.type-teach   { border-top-color: #2e7d32; }
.faculty-card.type-nontech { border-top-color: #7b5ea7; }
.faculty-card:hover { box-shadow: 0 8px 28px rgba(27,61,140,0.14); transform: translateY(-4px); }

.faculty-avatar {
  width: 88px; height: 88px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 14px;
  flex-shrink: 0;
}
.faculty-card h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; line-height: 1.3; }
.faculty-card .designation { font-size: 12px; color: var(--gold-d); font-weight: 700; margin-bottom: 5px; }
.faculty-card .subject { font-size: 12px; color: var(--text-m); margin-bottom: 3px; }
.faculty-card .qualification { font-size: 11px; color: #aaa; line-height: 1.4; }
.faculty-card .faculty-bio { font-size: 11.5px; color: var(--text-m); margin-top: 8px; line-height: 1.5; font-style: italic; }

/* Avatar color palette by type */
.avatar-admin   { background: linear-gradient(135deg, #1B3D8C, #2d5fa0); }
.avatar-teach   { background: linear-gradient(135deg, #2e7d32, #43a047); }
.avatar-nontech { background: linear-gradient(135deg, #7b5ea7, #9c7cc7); }

/* Photo inside faculty avatar */
.faculty-avatar.has-photo { background: none; padding: 0; border: 3px solid var(--border); }
.faculty-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Topper avatar in table */
.topper-name-cell { display: flex; align-items: center; gap: 10px; }
.topper-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--white);
  background: var(--primary); overflow: hidden;
}
.topper-avatar-sm.has-photo { background: none; border: 2px solid var(--border); }
.topper-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topper-initials-text { line-height: 1; }

/* ── Toppers Section ───────────────────────────────── */
.year-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.year-tab {
  padding: 7px 20px;
  border-radius: 20px;
  border: 2px solid var(--primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
}
.year-tab.active, .year-tab:hover { background: var(--primary); color: var(--white); }

.toppers-container { max-width: 820px; margin: 0 auto; }
.toppers-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.toppers-table-header {
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.toppers-table-header h3 { font-size: 15px; font-weight: 600; }
.toppers-table-header .badge {
  background: var(--gold);
  color: var(--primary-d);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: #f0f4fa;
  color: var(--primary);
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f9fbff; }
tbody td { padding: 11px 14px; vertical-align: middle; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.rank-1 { background: #FFD700; color: #5c4400; }
.rank-2 { background: #C0C0C0; color: #333; }
.rank-3 { background: #CD7F32; color: #fff; }
.rank-other { background: var(--bg-alt); color: var(--text-m); }

.pct-bar-wrap { display: flex; align-items: center; gap: 10px; }
.pct-bar { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.pct-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 3px;
  transition: width .7s ease;
  width: 0;
}
.pct-text { font-weight: 600; color: var(--primary); min-width: 44px; font-size: 13px; }

/* ── Gallery Section ───────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.gallery-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
}
.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 32px 14px 14px;
  transform: translateY(0);
}
.gallery-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.gallery-desc  { font-size: 12px; color: rgba(255,255,255,0.8); display: none; line-height: 1.5; }
.gallery-card:hover .gallery-desc { display: block; }

/* ── Instagram Reel cards ──────────────────────────── */
.gallery-reel-card {
  aspect-ratio: 9 / 16;
  background: #000;
  display: flex;
  flex-direction: column;
}
.reel-iframe {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}
.reel-label {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Events Section ────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}
.event-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.event-card:hover { box-shadow: var(--shadow); }
.event-date-box {
  flex-shrink: 0;
  width: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  text-align: center;
  padding: 6px 4px;
}
.event-date-box .eday { font-size: 20px; font-weight: 700; line-height: 1; }
.event-date-box .emon { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.event-body h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.event-body p  { font-size: 12px; color: var(--text-m); line-height: 1.5; }
.event-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.etype-exam      { background: #fce4ec; color: #b71c1c; }
.etype-event     { background: #e8f5e9; color: #1b5e20; }
.etype-meeting   { background: #fff3e0; color: #e65100; }
.etype-result    { background: #e3f2fd; color: #0d47a1; }
.etype-admission { background: #f3e5f5; color: #4a148c; }
.etype-holiday   { background: #fafafa; color: #555; border: 1px solid #ddd; }

/* ── Admission Form ────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-school-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--gold);
}
.form-logo { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; }
.form-school-header h3 { font-family: var(--font-serif); color: var(--primary); font-size: 17px; margin-bottom: 3px; }
.form-school-header p  { font-size: 12px; color: var(--text-m); }
.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  margin: 22px 0 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.full-width { margin-bottom: 16px; }
.req { color: var(--error); }

/* stream-group: hidden via class, not inline style → CSS respects flex on show */
.stream-group { display: flex; flex-direction: column; gap: 5px; }
.stream-group.hidden { display: none; }

.field-error { font-size: 11.5px; color: var(--error); display: none; }
.field-error.show { display: block; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--error); }

.form-declaration {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 8px;
  background: #fef9ec;
  border: 1px solid #f5d67b;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.form-declaration input[type="checkbox"] { width: auto; margin-top: 2px; accent-color: var(--primary); }
.form-declaration label { font-size: 13px; color: var(--text-m); cursor: pointer; }

.form-submit-row { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-submit { font-size: 15px; padding: 12px 32px; border-radius: var(--radius); }

.success-msg { text-align: center; padding: 40px 20px; }
.success-msg svg { margin: 0 auto 16px; }
.success-msg h3 { font-size: 20px; color: var(--success); margin-bottom: 8px; }
.success-msg p  { color: var(--text-m); font-size: 14px; margin-bottom: 20px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────── */
footer { background: var(--primary-d); color: rgba(255,255,255,0.85); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer-logo { width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; }
.footer-brand h3 { font-size: 14px; color: var(--white); margin-bottom: 4px; }
.footer-brand p  { font-size: 12px; color: var(--gold); font-style: italic; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--white);
  margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a  { font-size: 13px; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }

.contact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 10px; line-height: 1.5; }
.contact-list svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }

.timing-list li { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.affiliation-badge {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,162,39,0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(201,162,39,0.3);
}
.footer-bottom { background: rgba(0,0,0,0.2); text-align: center; padding: 14px 20px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ── Back to Top ───────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 900;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ── Utility ────────────────────────────────────────── */
.loading-state, .error-state { text-align: center; padding: 40px; color: var(--text-m); font-size: 14px; }
.error-state { color: var(--error); }

/* ════════════════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════════════════ */
@media print {
  .navbar, .ticker-wrap, .hero, .stats-bar, #principal, #about,
  #faculty, #toppers, #gallery, #events, footer, .back-top,
  .form-submit-row, .success-actions, .form-declaration { display: none !important; }

  body { background: #fff; font-size: 13px; color: #000; }
  #admission { padding: 0 !important; }
  .form-card { border: none !important; box-shadow: none !important; padding: 0 !important; max-width: 100%; }
  .form-school-header { border-bottom: 2px solid #000 !important; }
  .form-school-header h3 { color: #000 !important; }
  .form-section-title { color: #000 !important; border-left-color: #999 !important; }
  input, select, textarea { border: 1px solid #999 !important; box-shadow: none !important; background: transparent !important; }
  .success-msg { display: block !important; }
  @page { margin: 18mm; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .about-grid   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item    { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .principal-card { flex-direction: column; gap: 24px; }
  .principal-avatar { flex-direction: row; align-items: center; gap: 16px; }
  .principal-logo { width: 70px; height: 70px; }
}

/* ════════════════════════════════════════════════════
   MOBILE DRAWER — global styles (always present)
   ════════════════════════════════════════════════════ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 285px;
  max-width: 85vw;
  background: var(--white);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  background: var(--primary);
  flex-shrink: 0;
}
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-logo { width: 44px; height: 44px; object-fit: contain; aspect-ratio: 1/1; flex-shrink: 0; }
.drawer-school-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.drawer-school-sub  { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background .2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.28); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.drawer-link:hover, .drawer-link.active {
  background: #EDF3FF;
  color: var(--primary);
  border-left-color: var(--primary);
}
.drawer-link svg { flex-shrink: 0; color: var(--text-m); }
.drawer-link:hover svg, .drawer-link.active svg { color: var(--primary); }
.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  flex-shrink: 0;
  background: var(--bg);
}
.drawer-whatsapp {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  text-decoration: none; margin-bottom: 12px;
  transition: background .2s;
}
.drawer-whatsapp:hover { background: #1ebe5d; }
.drawer-contact-info {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; color: var(--text-m); margin-bottom: 8px;
}
.drawer-motto { font-size: 11px; color: #aaa; font-style: italic; text-align: center; }

/* Hide drawer on desktop */
@media (min-width: 1025px) {
  .mobile-drawer { display: none !important; }
  .drawer-overlay { display: none !important; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — tablet & mobile
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --nav-h: 60px; }

  .hamburger { display: flex; }
  .nav-links  { display: none; }
  .lang-toggle { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + var(--ticker-h) + 32px); padding-bottom: 44px; }
  .hero-content { padding: 28px 28px; }
  .hero-logo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; }

  .about-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }

  .form-card { padding: 20px 16px; }
  .form-row  { grid-template-columns: 1fr; gap: 12px; }
  .form-school-header { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .toppers-table-wrap { overflow-x: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 20px 18px; border-radius: 14px; }
  .hero-logo  { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; }
  .section    { padding: 44px 0; }
  .form-submit-row { flex-direction: column; }
  .btn-submit { width: 100%; justify-content: center; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .events-grid   { grid-template-columns: 1fr; }
  .faculty-grid  { grid-template-columns: 1fr 1fr; }
  .success-actions { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════════
   SCROLL-MARGIN-TOP  (fixes anchor jump hidden by sticky nav+ticker)
   ════════════════════════════════════════════════════ */
section[id], footer[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--ticker-h) + 8px);
}

/* ════════════════════════════════════════════════════
   LANGUAGE TOGGLE BUTTON
   ════════════════════════════════════════════════════ */
.lang-toggle {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-toggle:hover { background: var(--primary); color: var(--white); }

/* ════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
   ════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 900;
  transition: transform .25s, box-shadow .25s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
}

/* ════════════════════════════════════════════════════
   FEE STRUCTURE TABLE
   ════════════════════════════════════════════════════ */
.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.fee-table thead tr { background: var(--primary); color: var(--white); }
.fee-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.fee-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:nth-child(even) { background: var(--bg); }
.fee-table tbody tr:hover { background: #eef2fb; }
.fee-table .total-col { font-weight: 700; color: var(--primary); }
.fee-note {
  font-size: 12.5px;
  color: var(--text-m);
  text-align: center;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════
   TC / DOCUMENT REQUEST FORM — note box
   ════════════════════════════════════════════════════ */
.tc-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12.5px;
  color: #795548;
  margin-bottom: 16px;
}
.tc-note svg { flex-shrink: 0; margin-top: 1px; }

/* ════════════════════════════════════════════════════
   INTERACTIVE ENHANCEMENTS
   ════════════════════════════════════════════════════ */

/* ── Ripple effect ── */
.btn          { position: relative; overflow: hidden; }
.btn-outline-dark { position: relative; overflow: hidden; }
.year-tab     { position: relative; overflow: hidden; }
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.38);
  width: 10px; height: 10px;
  transform: scale(0);
  animation: ripple-anim .55s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(30); opacity: 0; }
}

/* ── Button hover lifts ── */
.btn { transition: all .22s; }
.btn-gold:hover        { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,0.5); }
.btn-outline:hover     { transform: translateY(-2px); }
.btn-outline-dark:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(27,61,140,0.22); }

/* ── Hero CTA pulse ── */
@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.55); }
  60%       { box-shadow: 0 0 0 14px rgba(201,162,39,0); }
}
.hero-cta { animation: hero-cta-pulse 2.8s ease infinite; }
.hero-cta:hover { animation: none; }

/* ── Nav link animated underline ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 10px; right: 10px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ── Info card: lift + border glow on hover ── */
.info-card { transition: box-shadow .25s, transform .25s, border-color .25s; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(27,61,140,0.14); border-color: rgba(201,162,39,0.4); }
.info-icon { transition: transform .25s; }
.info-card:hover .info-icon { transform: rotate(8deg) scale(1.12); }

/* ── Faculty card: gold top-border reveal on hover ── */
.faculty-card { position: relative; overflow: hidden; }
.faculty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.faculty-card:hover::before { transform: scaleX(1); }
.faculty-card:hover { box-shadow: 0 8px 28px rgba(27,61,140,0.14); transform: translateY(-4px); }

/* ── Gallery: image zoom on hover ── */
.gallery-bg { transition: transform .45s ease; }
.gallery-card:hover .gallery-bg { transform: scale(1.08); }

/* ── Event card: slide-right gold accent ── */
.event-card { border-left: 3px solid transparent; transition: box-shadow .2s, border-left-color .2s, transform .2s; }
.event-card:hover { border-left-color: var(--gold); transform: translateX(4px); box-shadow: var(--shadow-md); }

/* ── Stats: highlight on hover ── */
.stat-item { transition: background .2s; cursor: default; }
.stat-item:hover { background: var(--bg-alt); }
.stat-num { transition: color .2s; }
.stat-item:hover .stat-num { color: var(--gold); }

/* ── WhatsApp pulse ── */
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 26px rgba(37,211,102,0.75), 0 0 0 6px rgba(37,211,102,0.12); }
}
.whatsapp-float { animation: wa-pulse 2.8s ease infinite; }
.whatsapp-float:hover { animation: none; transform: scale(1.12); }

/* ── Rank-1 badge gold glow ── */
@keyframes gold-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.6); }
  50%       { box-shadow: 0 0 0 7px rgba(255,215,0,0); }
}
.rank-1 { animation: gold-glow 2s ease infinite; }

/* ── Scroll entrance animations ── */
.will-animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.will-animate.animate-in { opacity: 1; transform: translateY(0); }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .28s, transform .28s;
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error   { background: var(--error); }
.toast.success { background: var(--success); }

/* ── Past events ── */
.event-past { opacity: 0.58; }
.event-past .event-date-box { background: #78909c; }
.past-badge {
  display: inline-block;
  font-size: 10px;
  background: #eceff1;
  color: #607d8b;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 5px;
  font-weight: 700;
  vertical-align: middle;
}

/* ════════════════════════════════════════════════════
   PRINT — TOPPERS (when printing from toppers section)
   ════════════════════════════════════════════════════ */
@media print {
  /* existing print hides admission-unrelated sections; add toppers print support */
  body.print-toppers .navbar,
  body.print-toppers .ticker-wrap,
  body.print-toppers .hero,
  body.print-toppers .stats-bar,
  body.print-toppers #principal,
  body.print-toppers #about,
  body.print-toppers #faculty,
  body.print-toppers #gallery,
  body.print-toppers #events,
  body.print-toppers #fees,
  body.print-toppers #admission,
  body.print-toppers #tc-request,
  body.print-toppers footer,
  body.print-toppers .back-top,
  body.print-toppers .whatsapp-float { display: none !important; }
}

/* ── Hidden Admin Link ─────────────────────────────── */
.admin-secret-link {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s;
}
.admin-secret-link:hover { color: rgba(255,255,255,0.7); }

/* ── Page Hero Banner ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5fa0 100%);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: calc(var(--nav-h) + var(--ticker-h));
  text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 5vw, 38px); font-weight: 700; margin-bottom: 8px; }
.page-hero p { font-size: 15px; opacity: 0.85; }

/* ── Footer bottom flex ────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

/* ── Mobile: Stack faculty grid properly ───────────── */
@media (max-width: 480px) {
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .faculty-card { padding: 14px 10px; }
  .faculty-avatar { width: 50px; height: 50px; font-size: 16px; }
  .faculty-card h4 { font-size: 12px; }

  .toppers-table-wrap { font-size: 12px; }
  tbody td { padding: 8px 8px; }
  .topper-avatar-sm { width: 28px; height: 28px; font-size: 9px; }

  .page-hero { padding: 70px 16px 30px; }

  .form-row { grid-template-columns: 1fr !important; }

  .hero-title { font-size: clamp(18px, 6vw, 28px); }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .footer-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .toppers-table-wrap { overflow-x: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section { padding: 40px 0; }

  .principal-card { flex-direction: column; }
  .principal-avatar { margin: 0 auto 16px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
}

/* ── Contact page ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin: 0; }
.contact-card p { font-size: 13px; color: var(--text-m); margin: 0; line-height: 1.6; }
.contact-card a { color: var(--primary); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 40px; }
.fees-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fees-table th { background: var(--primary); color: var(--white); padding: 10px 14px; text-align: left; font-size: 12px; }
.fees-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: #f9fbff; }

/* ── News & Toppers Section ───────────────────────────────── */
.nt-section { background: var(--bg-alt); padding: 48px 0; }
.nt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nt-panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 24px 24px 20px; display: flex; flex-direction: column; }
.nt-panel-head h3 { font-size: 19px; font-weight: 700; color: var(--primary); margin: 0 0 6px; }
.nt-panel-head h3 span { font-size: 13px; font-weight: 500; color: var(--text-m); }
.nt-divider { height: 3px; width: 36px; background: var(--gold); border-radius: 2px; margin-bottom: 16px; }

/* News scrolling */
.nt-news-wrap { flex: 1; height: 220px; overflow: hidden; position: relative; }
.nt-news-list { list-style: none; animation: ntScroll 22s linear infinite; }
.nt-news-list:hover { animation-play-state: paused; }
.nt-news-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: default; }
.nt-news-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; }
.nt-news-text { font-size: 13.5px; color: var(--text); line-height: 1.5; }
@keyframes ntScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* Toppers slider */
.nt-slider { flex: 1; position: relative; height: 220px; overflow: hidden; }
.nt-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.nt-slide.active { opacity: 1; pointer-events: auto; }
.nt-topper-avatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; border: 3px solid var(--gold); flex-shrink: 0; }
.nt-topper-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.nt-slide-name { font-size: 16px; font-weight: 700; color: var(--primary); }
.nt-slide-meta { font-size: 12.5px; color: var(--text-m); }
.nt-slide-pct { font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1; }
.nt-dots { display: flex; gap: 6px; justify-content: center; margin: 10px 0 14px; }
.nt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .25s; border: none; padding: 0; }
.nt-dot.active { background: var(--primary); }

/* Read more link */
.nt-readmore { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; border: 1.5px solid var(--primary); border-radius: 6px; padding: 5px 14px; align-self: flex-start; transition: background .2s, color .2s; }
.nt-readmore:hover { background: var(--primary); color: #fff; }

@media (max-width: 640px) { .nt-grid { grid-template-columns: 1fr; } }
