/* ============================================================
   delhi.css — Delhi College | School Portal — Fully Rebuilt
   ============================================================ */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --blue-deep:    #0a1f5c;
  --blue-dark:    #0f2878;
  --blue-main:    #1a3a8f;
  --blue-bright:  #1d5fd9;
  --blue-glow:    #3b82f6;
  --blue-light:   #bfdbfe;
  --blue-pale:    #eff6ff;
  --yellow-main:  #f5c518;
  --yellow-warm:  #fbbf24;
  --yellow-soft:  #fef3c7;
  --white:        #ffffff;
  --off-white:    #f8faff;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-500:     #64748b;
  --gray-700:     #334155;
  --text-main:    #1e293b;
  --text-muted:   #64748b;
  --border:       rgba(26,58,143,0.15);
  --border-yellow: rgba(245,197,24,0.5);
  --shadow-sm:    0 1px 4px rgba(0,0,30,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,30,0.1);
  --shadow-lg:    0 12px 40px rgba(0,0,30,0.13);
  --success:      #10b981;
  --danger:       #ef4444;
  --radius:       14px;
  --radius-lg:    20px;
  --transition:   0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Lock viewport — no zoom-out, no horizontal overflow */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background-color: var(--off-white);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ===== SCAN LINES ===== */
.scan-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,60,0.012) 3px, rgba(0,0,60,0.012) 4px
  );
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gray-200);
  z-index: 3000;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--yellow-main), var(--blue-bright));
  box-shadow: 0 0 8px rgba(245,197,24,0.6);
  transition: width 0.1s linear;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: var(--blue-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--blue-light);
  padding: 0.3rem 0;
  font-size: 0.78rem;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1200;
}
.utility-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.utility-info { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.utility-item { display: flex; align-items: center; gap: 0.35rem; }
.utility-item i { color: var(--yellow-main); font-size: 0.7rem; }
.utility-actions { display: flex; gap: 0.75rem; }
.utility-link {
  color: var(--blue-light); text-decoration: none;
  display: flex; align-items: center; gap: 0.35rem;
  transition: color var(--transition);
}
.utility-link:hover { color: var(--yellow-main); }
.utility-link i { font-size: 0.75rem; }
@media (max-width: 768px) { .utility-info { display: none; } }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: transparent;
}
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  position: relative;
}
.nav-shell {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-top: 0.4rem;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,60,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
  /* overflow visible so dropdowns can escape */
  overflow: visible;
  /* isolate to contain stacking without bleed */
  isolation: isolate;
}

/* ===== BRAND ===== */
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand-logo-wrap { position: relative; flex-shrink: 0; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 10px; object-fit: cover;
  border: 2px solid var(--yellow-main);
}
@media (max-width: 480px) { .brand-logo { width: 36px; height: 36px; } }
.brand-logo-ring {
  position: absolute; inset: -4px;
  border-radius: 14px;
  border: 1px solid rgba(245,197,24,0.4);
  animation: ring-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0%,100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.05); }
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem; color: var(--blue-deep); letter-spacing: 0.01em;
}
@media (max-width: 480px) { .brand-text strong { font-size: 0.85rem; } }
.brand-text span {
  font-size: 0.65rem; color: var(--yellow-warm);
  letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700;
}

/* ===== MAIN NAV ===== */
.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: flex; align-items: center; } }
.menu { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  text-decoration: none; color: var(--gray-700);
  padding: 0.45rem 0.85rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em;
  position: relative; display: inline-block;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 2px;
  height: 2px; background: var(--yellow-main);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
  box-shadow: 0 0 6px rgba(245,197,24,0.5);
}
.nav-link:hover, .nav-link.active { color: var(--yellow-warm); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex; align-items: center; gap: 0.75rem;
  /* Must stack above any child backdrop elements */
  position: relative;
  z-index: 10;
}
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline-flex; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: 8px;
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em; cursor: pointer;
  text-decoration: none; border: none;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--blue-main); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,143,0.35); }
.btn-glow::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  border-radius: inherit; pointer-events: none;
}
.btn-secondary { background: var(--gray-100); color: var(--blue-main); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--yellow-soft); border-color: var(--yellow-main); color: var(--blue-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline-sm {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600;
  background: transparent; color: var(--blue-main);
  border: 1.5px solid var(--blue-light); text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-sm:hover { background: var(--yellow-soft); border-color: var(--yellow-main); color: var(--blue-deep); }
.btn.small { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,0.3); }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-facebook:hover { background: #0d65d8; transform: translateY(-2px); }
.btn-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.btn-instagram:hover { opacity: 0.9; transform: translateY(-2px); }

/* ===== HAMBURGER
   Key fixes:
   - Explicit z-index above mobile-panel (1400) and backdrop (1401)
   - isolation: isolate so it is unaffected by parent stacking contexts
   - No filter inheritance that could cause blur
   ===== */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  /* Stack clearly above overlay */
  position: relative;
  z-index: 1500;
  isolation: isolate;
  /* Prevent any blur from parent backdrop-filter leaking in */
  will-change: transform;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--blue-main); border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger:hover { border-color: var(--yellow-main); background: var(--yellow-soft); }

/* ===== MOBILE PANEL ===== */
/*
  Structure:
    .mobile-panel (fixed, z-1400, pointer-events:none when hidden)
      .mobile-backdrop (z-1401, semi-transparent, no backdrop-filter)
      .mobile-inner (z-1500, the slide-in drawer)

  The hamburger sits at z-1500 in .header-actions (which has position:relative z-10
  inside .nav-shell which has isolation:isolate). Because isolation creates a new
  stacking context, the hamburger's effective z relative to the document is determined
  by .site-header's z-index: 1100. We raise .hamburger's own z to 1500 as a
  belt-and-suspenders approach so it always renders above the backdrop.

  Crucially: the .mobile-backdrop uses NO backdrop-filter, which was the root cause
  of the hamburger appearing blurred or obscured.
*/
.mobile-panel {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1400;
}
.mobile-panel[aria-hidden="false"] { pointer-events: auto; }

.mobile-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,31,92,0.45);
  /* NO backdrop-filter here — it was obscuring the hamburger */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.mobile-panel[aria-hidden="false"] .mobile-backdrop { opacity: 1; }

.mobile-inner {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  border-right: 2px solid var(--gray-200);
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 8px 0 32px rgba(0,0,60,0.12);
  z-index: 1;
}
.mobile-panel[aria-hidden="false"] .mobile-inner { transform: translateX(0); }

.mobile-top {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--yellow-main); padding-bottom: 0.75rem;
}
.mobile-top strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem; color: var(--blue-main); letter-spacing: 0.02em;
}
.mobile-close {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  color: var(--gray-500); width: 32px; height: 32px;
  border-radius: 6px; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.mobile-close:hover { border-color: var(--yellow-main); color: var(--blue-deep); background: var(--yellow-soft); }
.mobile-menu { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.mobile-menu a, .mobile-accordion {
  display: block; padding: 0.55rem 0.75rem; border-radius: 6px;
  color: var(--gray-700); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: all 0.18s ease;
}
.mobile-accordion { background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.mobile-menu a:hover, .mobile-accordion:hover { color: var(--blue-deep); background: var(--yellow-soft); }
.mobile-group ul { list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding-left: 0.75rem; }
.mobile-group.active > ul { max-height: 500px; }
.mobile-ctas { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.mobile-divider { height: 1px; background: var(--gray-200); margin: 0.5rem 0; pointer-events: none; }
.mobile-menu .mobile-divider + li > a,
.mobile-menu .mobile-divider + li > button { color: var(--blue-main); font-weight: 600; }
.mobile-menu li > a i { margin-right: 0.25rem; color: var(--blue-glow); font-size: 0.8rem; }

/* ===== SECONDARY NAV BAR ===== */
.secondary-nav {
  background: var(--blue-deep);
  border-bottom: 2px solid var(--yellow-main);
  position: sticky;
  top: 70px;
  z-index: 999;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.secondary-nav::-webkit-scrollbar { display: none; }

.secondary-nav-inner {
  display: flex;
  align-items: stretch;
  max-width: 1240px;
  margin: 0 auto;
  min-width: max-content;
}

.sec-nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.62rem 1.1rem;
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.68);
  text-decoration: none; letter-spacing: 0.03em;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.sec-nav-link i { font-size: 0.7rem; }
.sec-nav-link:hover { color: var(--yellow-main); background: rgba(245,197,24,0.10); }
.sec-nav-link.active { color: var(--yellow-main); background: rgba(245,197,24,0.08); box-shadow: inset 0 -2px 0 var(--yellow-main); }
.sec-nav-cta {
  background: #25d366; color: var(--white) !important;
  border-right: none; border-radius: 6px; font-weight: 700;
  padding: 0.42rem 1.1rem; margin: 0.28rem 0.75rem 0.28rem auto;
  flex-shrink: 0;
}
.sec-nav-cta:hover { background: #1ebe5d !important; }

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(29,95,217,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,95,217,0.12) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%; background: var(--yellow-main);
  animation: float-particle var(--dur,8s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
}
@keyframes float-particle {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%      { transform: translateY(-30px) scale(1.2); opacity: 1; }
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,31,92,0.82) 0%, rgba(10,31,92,0.55) 50%, rgba(10,31,92,0.75) 100%);
}
.hero-content {
  position: relative; z-index: 5;
  width: 100%; max-width: 700px;
  padding: 2rem 1.25rem;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(245,197,24,0.15); border: 1px solid rgba(245,197,24,0.4);
  border-radius: 999px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem; font-weight: 700;
  color: var(--yellow-main); letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-main);
  animation: badge-pulse 1.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}
.hero-logo-wrap { position: relative; width: 90px; height: 90px; margin: 0 auto 1.5rem; }
.hero-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow-main); }
.hero-logo-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(245,197,24,0.35); animation: ring-pulse 3s ease-in-out infinite; }
.hero-title { margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; }
.hero-title-sub { font-family: 'Crimson Pro', Georgia, serif; font-size: 1.1rem; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; font-weight: 400; }
.hero-title-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; color: var(--white); line-height: 1.1; letter-spacing: -0.01em;
}
@media (max-width: 1023px) { .hero-title-main { font-size: 2.5rem; } }
.hero-name { color: var(--yellow-main); }
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.88);
  line-height: 1.5; margin: 0 auto 2rem;
  font-style: italic; letter-spacing: 0.02em;
}
.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; justify-content: center; }
@media (max-width: 480px) { .hero-buttons { flex-direction: column; align-items: center; } }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 768px) { .hero-stats { gap: 0.75rem; } }
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 900; color: var(--yellow-main); line-height: 1; }
@media (max-width: 768px) { .hero-stat-num { font-size: 1.4rem; } }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; }
.hero-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }
.hero-scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 5; }
.hero-scroll-cue span { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: scroll-bounce 1.5s ease-in-out infinite; }
.hero-scroll-cue span:nth-child(2) { animation-delay: 0.2s; }
.hero-scroll-cue span:nth-child(3) { animation-delay: 0.4s; }
@keyframes scroll-bounce {
  0%,100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(4px); }
}

/* ===== SECTION HEADER ===== */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem; font-weight: 700;
  color: var(--yellow-warm); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--blue-deep); margin-bottom: 0.65rem; }
.section-head p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

/* ===== NEWS SECTION ===== */
.news-section { padding: 5rem 0; background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.news-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: all var(--transition); display: flex; flex-direction: column; gap: 0.7rem;
  position: relative; overflow: hidden;
}
.news-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-main), var(--yellow-main));
  opacity: 0; transition: opacity var(--transition);
}
@media (hover: hover) {
  .news-card:hover { border-color: var(--blue-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .news-card:hover::before { opacity: 1; }
}
.news-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
.news-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--blue-pale); color: var(--blue-main); border: 1px solid var(--blue-light);
  border-radius: 999px; padding: 0.15rem 0.65rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
  font-family: 'Playfair Display', Georgia, serif;
}
.news-tag.event        { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.news-tag.results      { background: var(--yellow-soft); color: #b45309; border-color: #fde68a; }
.news-tag.announcement { background: var(--blue-pale); color: var(--blue-main); border-color: var(--blue-light); }
.news-date { font-size: 0.72rem; color: var(--text-muted); font-family: 'Playfair Display', Georgia, serif; }
.news-card h3 { font-size: 1rem; color: var(--text-main); font-weight: 700; line-height: 1.4; }
.news-card p  { font-size: 0.88rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.news-card.skeleton {
  min-height: 160px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s ease infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== GALLERY SECTION — directly after News in HTML ===== */
.gallery-section { padding: 5rem 0; background: var(--off-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.75rem;
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
@media (max-width: 768px) { .gallery-item--tall { grid-row: span 1; } .gallery-item--wide { grid-column: span 1; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,31,92,0.85) 100%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.9rem; }

/* ===== DEPARTMENTS ===== */
.departments { padding: 5rem 0; background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
@media (max-width: 768px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition); display: flex; flex-direction: column;
}
@media (hover: hover) { .card:hover { border-color: var(--yellow-main); transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.card-img-wrap { position: relative; height: 200px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
@media (hover: hover) { .card:hover .card-img-wrap img { transform: scale(1.05); } }
.card-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,31,92,0.75) 100%); }
.card-number { position: absolute; top: 0.75rem; right: 0.75rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 900; color: rgba(255,255,255,0.35); line-height: 1; }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.card-body h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 0.88rem; font-weight: 700; color: var(--blue-deep); letter-spacing: 0.02em; line-height: 1.35; }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.bullets li { font-size: 0.85rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--yellow-warm); font-size: 0.65rem; top: 0.15rem; }
.bullets li a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.bullets li a:hover { color: var(--blue-main); }
.card-fees-hint { margin-top: auto; padding-top: 0.65rem; border-top: 1px dashed rgba(10,31,92,0.15); font-size: 0.75rem; color: var(--blue-main); display: flex; align-items: center; gap: 0.4rem; font-style: italic; opacity: 0.75; }
.card-fees-hint i { color: var(--yellow-warm); font-size: 0.8rem; flex-shrink: 0; }

/* ===== PORTAL SECTION ===== */
.portal { padding: 5rem 0; background: var(--blue-pale); position: relative; overflow: hidden; }
.portal-bg-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.portal-gate {
  text-align: center; max-width: 480px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.portal-gate::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue-main), var(--yellow-main)); }
.portal-gate-hex { position: relative; width: 80px; height: 92px; margin: 0 auto 1.5rem; color: var(--blue-main); }
.portal-gate-hex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal-gate-hex i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--blue-main); }
.portal-gate h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; color: var(--blue-deep); margin-bottom: 0.6rem; letter-spacing: 0.03em; }
.portal-gate p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.portal-welcome {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 2rem; box-shadow: var(--shadow-sm);
}
.portal-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-bright));
  border: 2px solid var(--yellow-main);
  color: var(--white); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Playfair Display', Georgia, serif;
}
.portal-welcome-info h3 { font-size: 1rem; color: var(--blue-deep); margin: 0 0 0.15rem; font-weight: 700; }
.portal-welcome .btn { margin-left: auto; }
.portal-email { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
@media (max-width: 768px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 2rem 1rem;
  text-decoration: none; color: var(--text-muted); box-shadow: var(--shadow-sm);
  transition: all var(--transition); text-align: center;
  position: relative; overflow: hidden;
}
.tile::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-main), var(--yellow-main)); transform: scaleX(0); transition: transform var(--transition); }
.tile:hover { border-color: var(--blue-light); color: var(--blue-deep); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile:hover::after { transform: scaleX(1); }
.tile-icon-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-pale); border: 1px solid var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue-main); transition: all var(--transition); }
.tile:hover .tile-icon-wrap { background: var(--yellow-soft); border-color: var(--yellow-warm); color: var(--blue-deep); }
.tile-icon-wrap svg { width: 24px; height: 24px; stroke: currentColor; }
.tile span { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 5rem 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-image-col { display: flex; flex-direction: column; gap: 1.5rem; }
.about-img-wrap {
  position: relative; border-radius: var(--radius-lg);
  background: var(--blue-pale); border: 1px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem; overflow: hidden;
}
.about-crest { width: 180px; height: 180px; object-fit: contain; border-radius: 50%; border: 3px solid var(--yellow-main); margin: 0 auto; }
.about-img-badge { position: absolute; bottom: 1rem; right: 1rem; background: var(--blue-deep); color: var(--white); border-radius: 10px; padding: 0.6rem 0.9rem; text-align: center; border: 2px solid var(--yellow-main); }
.about-badge-num { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 900; color: var(--yellow-main); line-height: 1; }
.about-badge-label { font-size: 0.65rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.08em; }
.about-accred-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.about-accred-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center;
  background: var(--off-white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 0.85rem 0.5rem;
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  transition: all var(--transition);
}
.about-accred-item i { font-size: 1.1rem; color: var(--blue-main); }
.about-accred-item:hover { border-color: var(--yellow-main); background: var(--yellow-soft); color: var(--blue-deep); }
.about-content-col { display: flex; flex-direction: column; gap: 1.75rem; }
.about-block h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--blue-deep); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.about-block h3 i { color: var(--yellow-warm); font-size: 1rem; }
.about-block p { color: var(--text-muted); line-height: 1.75; }
.about-mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .about-mvv { grid-template-columns: 1fr; } }
.about-mvv-card { background: var(--off-white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; transition: all var(--transition); position: relative; overflow: hidden; }
.about-mvv-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-main), var(--yellow-main)); transform: scaleX(0); transition: transform var(--transition); }
.about-mvv-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); }
.about-mvv-card:hover::after { transform: scaleX(1); }
.about-mvv-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--blue-pale); border: 1px solid var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue-main); font-size: 0.9rem; margin-bottom: 0.75rem; }
.about-mvv-card h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; color: var(--blue-deep); margin-bottom: 0.4rem; }
.about-mvv-card p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
.about-values h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; color: var(--blue-deep); margin-bottom: 0.75rem; }
.about-values-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.about-values-grid span {
  padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--blue-pale); border: 1px solid var(--blue-light);
  color: var(--blue-main); font-size: 0.82rem; font-weight: 600;
  transition: all var(--transition);
}
.about-values-grid span:hover { background: var(--yellow-soft); border-color: var(--yellow-main); color: var(--blue-deep); }

/* ===== QUOTES SECTION — directly below Core Values in About ===== */
.quotes-section {
  background: var(--blue-deep);
  padding: 3.5rem 0;
  position: relative; overflow: hidden;
}
.quotes-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29,95,217,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,95,217,0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.quotes-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.quotes-label {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.68rem; font-weight: 700;
  color: var(--yellow-main); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.quote-display {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.75; font-style: italic;
  min-height: 80px;
  transition: opacity 0.8s ease;
}
.quote-display.fade-out { opacity: 0; }
.quote-display.fade-in  { opacity: 1; }
.quote-author {
  display: block; margin-top: 0.85rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: normal; font-size: 0.82rem;
  color: var(--yellow-main); letter-spacing: 0.04em;
}
.quote-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; }
.quote-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.quote-dot.active { background: var(--yellow-main); transform: scale(1.35); }

/* ===== ADMISSIONS SECTION ===== */
.admissions-section { padding: 5rem 0; background: var(--off-white); }
.admissions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .admissions-grid { grid-template-columns: 1fr; } }
.admissions-steps h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--blue-deep); margin-bottom: 1.5rem; }
.adm-step { display: flex; gap: 1.1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.adm-step-num { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 900; color: var(--blue-light); line-height: 1; flex-shrink: 0; width: 2.5rem; text-align: center; }
.adm-step-body h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; color: var(--blue-deep); margin-bottom: 0.3rem; }
.adm-step-body p   { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.admissions-cta-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.adm-cta-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-md); border-top: 4px solid var(--blue-main); }
.adm-cta-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: var(--blue-deep); margin-bottom: 0.5rem; }
.adm-cta-card > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.adm-cta-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1.5rem; }
.adm-grades h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 0.95rem; color: var(--blue-deep); margin-bottom: 0.75rem; }
.adm-grades ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.adm-grades li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.85rem; color: var(--text-muted); }
.grade-badge { padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--blue-pale); color: var(--blue-main); border: 1px solid var(--blue-light); white-space: nowrap; flex-shrink: 0; }
.grade-badge.jp { background: var(--yellow-soft); color: #92400e; border-color: #fde68a; }
.adm-mpesa-card { background: var(--blue-deep); color: rgba(255,255,255,0.85); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--yellow-main); }
.adm-mpesa-card h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; color: var(--yellow-main); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.adm-mpesa-card ol { list-style: none; counter-reset: mpesa; display: flex; flex-direction: column; gap: 0.5rem; }
.adm-mpesa-card li { counter-increment: mpesa; font-size: 0.85rem; display: flex; align-items: center; gap: 0.6rem; }
.adm-mpesa-card li::before { content: counter(mpesa); width: 22px; height: 22px; border-radius: 50%; background: rgba(245,197,24,0.2); border: 1px solid rgba(245,197,24,0.4); color: var(--yellow-main); font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mpesa-num { color: var(--yellow-main); font-size: 1rem; }
.adm-bank { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== FAQ SECTION ===== */
.faq-section { padding: 5rem 0; background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.faq-item:hover { border-color: var(--blue-light); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; font-family: 'Playfair Display', Georgia, serif; font-size: 0.95rem; font-weight: 600; color: var(--blue-deep); transition: background var(--transition); }
.faq-q:hover { background: var(--yellow-soft); }
.faq-q[aria-expanded="true"] { background: var(--yellow-soft); }
.faq-q i { flex-shrink: 0; color: var(--blue-glow); font-size: 0.8rem; transition: transform var(--transition); }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); color: var(--yellow-warm); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s ease; padding: 0 1.25rem; }
.faq-a.open { max-height: 300px; padding: 0.1rem 1.25rem 1.1rem; }
.faq-a p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ===== MAP & CONTACT ===== */
.map-section { padding: 5rem 0; background: var(--off-white); }
.map-contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .map-contact-grid { grid-template-columns: 1fr; } }
.map-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.map-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.map-info-icon { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; background: var(--blue-pale); border: 1px solid var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue-main); font-size: 0.9rem; }
.map-info-item strong { display: block; font-size: 0.82rem; color: var(--blue-deep); font-weight: 700; margin-bottom: 0.2rem; }
.map-info-item p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }
.map-info-item a { color: var(--blue-main); text-decoration: none; transition: color var(--transition); }
.map-info-item a:hover { color: var(--yellow-warm); }
.map-embed-col { display: flex; flex-direction: column; gap: 0.75rem; }
.map-embed-wrap { height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
.map-embed-wrap iframe { display: block; }
.map-directions-btn { width: 100%; justify-content: center; }
.map-link { color: var(--yellow-main); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer { background: var(--blue-deep); border-top: 4px solid var(--yellow-main); padding: 4rem 0 2rem; position: relative; color: rgba(255,255,255,0.85); }
.footer-top-bar { display: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 0.72rem; font-weight: 700; color: var(--yellow-main); letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 1.1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-about { max-width: 280px; }
.foot-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.foot-brand img { width: 38px; height: 38px; border-radius: 8px; border: 2px solid rgba(245,197,24,0.5); }
.foot-brand strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 0.85rem; color: var(--white); }
.foot-brand span { font-size: 0.65rem; color: var(--yellow-main); letter-spacing: 0.08em; }
.foot-about p { font-size: 0.84rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; line-height: 1.6; }
.list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.list li { font-size: 0.84rem; color: rgba(255,255,255,0.6); display: flex; align-items: flex-start; gap: 0.5rem; }
.list li i { color: var(--yellow-main); font-size: 0.75rem; margin-top: 0.15rem; flex-shrink: 0; }
.links { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.links a { font-size: 0.84rem; color: rgba(255,255,255,0.6); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; transition: color var(--transition), gap var(--transition); }
.links a i { font-size: 0.6rem; color: var(--yellow-main); }
.links a:hover { color: var(--yellow-main); gap: 0.65rem; }
.accred-list { gap: 0.65rem; }
.accred-badge { display: inline-flex; padding: 0.1rem 0.4rem; background: rgba(245,197,24,0.15); border: 1px solid rgba(245,197,24,0.3); border-radius: 4px; font-family: 'Playfair Display', Georgia, serif; font-size: 0.6rem; color: var(--yellow-main); letter-spacing: 0.01em; flex-shrink: 0; }
.newsletter { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.newsletter input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 0.6rem 1rem; font-family: 'Source Serif 4', Georgia, serif; font-size: 0.9rem; color: var(--white); width: 100%; transition: border-color var(--transition); }
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter input:focus { outline: none; border-color: var(--yellow-main); box-shadow: 0 0 0 3px rgba(245,197,24,0.15); }
.help { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.newsletter-msg { font-size: 0.82rem; min-height: 1rem; }
.newsletter-msg.success { color: #6ee7b7; }
.newsletter-msg.error   { color: #fca5a5; }
.social { display: flex; gap: 0.6rem; }
.soc { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; transition: all var(--transition); text-decoration: none; }
.soc svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); transition: fill var(--transition); }
.soc:hover { background: rgba(245,197,24,0.2); border-color: var(--yellow-main); transform: translateY(-2px); }
.soc:hover svg { fill: var(--yellow-main); }
.legal { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding-top: 1.75rem; text-align: center; }
.motto { font-family: 'Playfair Display', Georgia, serif; font-size: 0.68rem; color: var(--yellow-main); letter-spacing: 0.03em; }
.legal p { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.legal a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
.legal a:hover { color: var(--yellow-main); }

/* ===== FLOATING SOCIAL ===== */
.floating-social-bar { position: fixed; right: 1rem; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 0.5rem; }
@media (max-width: 768px) { .floating-social-bar { right: 0.5rem; } }
.floating-social-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--blue-main); font-size: 0.9rem; transition: all var(--transition); }
.floating-social-icon:hover { transform: scale(1.15); color: var(--white); background: var(--blue-main); border-color: var(--blue-main); box-shadow: 0 6px 20px rgba(26,58,143,0.3); }

/* ===== AUTH MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,31,92,0.6); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-overlay:not(.hidden) { display: flex; }
.modal-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); width: 100%; max-width: 420px; padding: 2rem; position: relative; overflow-y: auto; max-height: 90vh; box-shadow: 0 32px 80px rgba(0,0,60,0.2); transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.open .modal-box { transform: none; }
.modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue-main), var(--yellow-main)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-hex-deco { display: none; }
.modal-close { position: absolute; top: 1.1rem; right: 1rem; background: var(--gray-100); border: 1px solid var(--gray-200); width: 30px; height: 30px; border-radius: 6px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: all var(--transition); }
.modal-close:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }
.modal-logo { text-align: center; margin-bottom: 1.5rem; }
.modal-logo img { width: 52px; height: 52px; border-radius: 10px; margin: 0 auto 0.75rem; border: 2px solid var(--yellow-main); }
.modal-logo h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; color: var(--blue-deep); margin-bottom: 0.25rem; }
.modal-logo p  { font-size: 0.82rem; color: var(--text-muted); }
.auth-tabs { display: flex; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 8px; padding: 0.2rem; gap: 0.1rem; margin-bottom: 1.5rem; }
.auth-tab { flex: 1; background: none; border: none; padding: 0.45rem 0.3rem; border-radius: 6px; font-family: 'Source Serif 4', Georgia, serif; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: all 0.2s; letter-spacing: 0.04em; }
.auth-tab.active { background: var(--blue-main); color: var(--white); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }
.auth-form label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; text-transform: uppercase; font-family: 'Playfair Display', Georgia, serif; }
.auth-form input { padding: 0.65rem 1rem; border: 1.5px solid var(--gray-200); background: var(--white); border-radius: 8px; font-family: 'Source Serif 4', Georgia, serif; font-size: 0.95rem; color: var(--text-main); width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-form input::placeholder { color: var(--gray-300); }
.auth-form input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(29,95,217,0.1); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 2.6rem; }
.toggle-pw { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-500); font-size: 0.9rem; transition: color var(--transition); }
.toggle-pw:hover { color: var(--blue-main); }
.auth-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--danger); font-size: 0.85rem; }
.auth-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 0.6rem 0.9rem; color: #16a34a; font-size: 0.85rem; }
.full-w { width: 100%; }
.btn-google { background: var(--white); color: var(--text-main); border: 1.5px solid var(--gray-200); gap: 0.5rem; font-weight: 600; }
.btn-google:hover { background: var(--gray-100); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--blue-deep); color: var(--white); border: 1px solid rgba(255,255,255,0.1); padding: 0.65rem 1.5rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,60,0.3); opacity: 0; visibility: hidden; transition: all 0.32s ease; z-index: 3000; white-space: nowrap; font-family: 'Source Serif 4', Georgia, serif; }
.toast.show    { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ripple { position: absolute; border-radius: 50%; background: rgba(26,58,143,0.15); transform: scale(0); animation: ripple-anim 0.5s ease-out forwards; pointer-events: none; }
@keyframes ripple-anim { to { transform: scale(2.5); opacity: 0; } }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  background: var(--blue-main);
  color: var(--white);
  border: 2px solid var(--yellow-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10,31,92,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 2500;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-bright);
  box-shadow: 0 6px 22px rgba(10,31,92,0.45);
}

/* ===== NEWS — PAST EVENT ===== */
.news-card--past {
  opacity: 0.78;
  border-left: 3px solid var(--gray-300);
}
.news-past-badge {
  display: inline-block;
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}
