/* =========================================================
   JAYPEE PUBLIC SCHOOL – GREATER NOIDA
   Global Stylesheet v1.0
   ========================================================= */

/* ── Google Fonts import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:        #1a3a6b;
  --primary-light:  #2352a0;
  --primary-dark:   #0e2348;
  --secondary:      #d4a017;
  --secondary-light:#f0c040;
  --secondary-dark: #a07810;
  --accent:         #e84c3d;
  --accent-light:   #ff6b5b;
  --teal:           #0891b2;
  --teal-light:     #22d3ee;
  --green:          #059669;

  --white:          #ffffff;
  --light:          #f0f4f8;
  --light-2:        #e8eef4;
  --border:         #d1dce8;
  --text:           #1e293b;
  --text-light:     #64748b;
  --text-lighter:   #94a3b8;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.1),  0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-md:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-lg:      0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-xl:      0 25px 50px -12px rgba(0,0,0,.25);

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    9999px;

  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:all 0.5s cubic-bezier(0.4,0,0.2,1);

  --font-heading:   'Poppins', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-serif:     'Playfair Display', serif;

  --navbar-height:  80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

.text-serif { font-family: var(--font-serif); }
.lead { font-size: 1.15rem; line-height: 1.8; }

/* ── Utility Classes ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-fluid { width: 100%; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(212,160,23,0.12);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.text-primary   { color: var(--primary)!important; }
.text-secondary { color: var(--secondary)!important; }
.text-accent    { color: var(--accent)!important; }
.text-white     { color: var(--white)!important; }
.text-light     { color: var(--text-light)!important; }
.text-center    { text-align: center; }
.text-right     { text-align: right; }

.bg-primary   { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-light     { background: var(--light); }
.bg-white     { background: var(--white); }
.bg-dark      { background: var(--primary-dark); }

.fw-light    { font-weight: 300; }
.fw-normal   { font-weight: 400; }
.fw-medium   { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold     { font-weight: 700; }
.fw-black    { font-weight: 900; }

.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-block { display: block; }
.d-none  { display: none; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(12,35,64,0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12,35,64,0.4);
  color: var(--white);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(212,160,23,0.35);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,160,23,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.82rem; }
.btn i { font-size: 1em; }

/* ── Site Header (sticky wrapper for topbar + navbar) ────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: relative;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled .navbar {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-bottom-color: transparent;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  object-fit: cover;
  object-position: left center;
  background: var(--white);
  max-width: none;
}
.navbar-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.navbar-brand-text { line-height: 1.1; }
.navbar-brand-text .school-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.navbar-brand-text .school-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(12,35,64,0.06);
}
.nav-link .chevron {
  font-size: 0.65em;
  transition: transform 0.25s;
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-menu a i { color: var(--secondary); width: 16px; font-size: 0.85em; }
.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
  padding-left: 1.3rem;
}
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.navbar-mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-dark);
  padding-top: calc(var(--navbar-height) + 36px) !important;
  z-index: 999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 1.5rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.mobile-nav-link:hover { color: var(--secondary); }
.mobile-sub-links { display: none; padding-left: 1rem; }
.mobile-sub-links.open { display: block; }
.mobile-sub-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.mobile-sub-links a:hover { color: var(--secondary); }

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
  background: var(--primary);
  padding: 0.38rem 0;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.78);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}
.top-bar a { color: rgba(255,255,255,0.78); transition: color .2s; }
.top-bar a:hover { color: var(--secondary); }
.top-bar-left {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.top-bar-left a, .top-bar-left span {
  display: flex; align-items: center; gap: 0.3rem;
}
.top-bar-right {
  display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
}
.top-bar-right a {
  display: flex; align-items: center; gap: 0.3rem;
}
@media (max-width: 760px) {
  .top-bar-left { display: none; }
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26,58,92,0.9) 0%, transparent 70%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(212,160,23,0.15);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-30px) scale(1.1); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.3);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.hero-title .highlight {
  color: var(--secondary);
  display: block;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.hero-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.hero-card .icon {
  width: 44px;
  height: 44px;
  background: rgba(212,160,23,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
.hero-card .title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.hero-card .desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.hero-card.featured {
  grid-column: span 2;
  background: rgba(212,160,23,0.15);
  border-color: rgba(212,160,23,0.3);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  animation: bounce 2s ease infinite;
}
.scroll-indicator i { font-size: 1.2rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: calc(var(--navbar-height) + 3rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--secondary); font-size: 0.85rem; font-weight: 500; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.breadcrumb .current { color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 500; }

/* ── Announcement Banner ─────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary), var(--secondary-dark));
  padding: 0.75rem 0;
  overflow: hidden;
}
.announcement-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.announcement-label {
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.announcement-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}
.announcement-text span {
  display: inline-block;
  animation: marquee 25s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-lighter);
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-meta i { color: var(--secondary); }
.card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }
.card-footer {
  padding: 1rem 1.5rem;
  background: var(--light);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Feature Card */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.feature-icon.gold { background: rgba(212,160,23,0.12); color: var(--secondary); }
.feature-icon.blue { background: rgba(12,35,64,0.08); color: var(--primary); }
.feature-icon.teal { background: rgba(8,145,178,0.1); color: var(--teal); }
.feature-icon.green { background: rgba(5,150,105,0.1); color: var(--green); }
.feature-icon.red { background: rgba(232,76,61,0.1); color: var(--accent); }

/* Stats Card */
.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-number .unit {
  font-size: 1.5rem;
  color: var(--secondary);
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Achievement Card */
.achievement-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
  display: flex;
  gap: 1rem;
}
.achievement-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.achievement-card .medal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.medal-gold { background: rgba(212,160,23,0.15); color: var(--secondary); }
.medal-silver { background: rgba(100,116,139,0.15); color: #64748b; }
.medal-bronze { background: rgba(180,100,50,0.15); color: #b46432; }
.medal-blue { background: rgba(12,35,64,0.1); color: var(--primary); }
.achievement-card .content h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.achievement-card .content p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.achievement-card .content .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-international { background: rgba(232,76,61,0.1); color: var(--accent); }
.tag-national { background: rgba(12,35,64,0.08); color: var(--primary); }
.tag-state { background: rgba(8,145,178,0.1); color: var(--teal); }
.tag-inter-school { background: rgba(5,150,105,0.1); color: var(--green); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.table-wrapper .table-title {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.table-wrapper .table-title i { color: var(--secondary); }
.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table thead tr { background: var(--light); }
.data-table th {
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(12,35,64,0.02); }
.data-table .rank {
  width: 36px;
  height: 36px;
  background: var(--light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}
.data-table .score {
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

/* ── Grid Layouts ────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,35,64,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.25);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}
.timeline-title { font-size: 1rem; margin-bottom: 0.4rem; }
.timeline-text { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--light);
  padding: 0.4rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-btn.active { color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Accordion ───────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item.open { border-color: var(--primary); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.accordion-item.open .accordion-header { color: var(--primary); background: var(--light); }
.accordion-header i { transition: transform 0.3s; color: var(--text-lighter); }
.accordion-item.open .accordion-header i { transform: rotate(180deg); color: var(--secondary); }
.accordion-body {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { padding: 1.2rem 1.5rem; }

/* ── Highlight Box ───────────────────────────────────────── */
.highlight-box {
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.highlight-box.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}
.highlight-box.secondary {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
  color: var(--primary-dark);
}
.highlight-box.light {
  background: var(--light);
  border: 1px solid var(--border);
}

/* ── Info Strip / Alert ──────────────────────────────────── */
.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.info-strip.info { background: rgba(8,145,178,0.08); border-left: 3px solid var(--teal); color: var(--text); }
.info-strip.warning { background: rgba(212,160,23,0.1); border-left: 3px solid var(--secondary); color: var(--text); }
.info-strip.success { background: rgba(5,150,105,0.08); border-left: 3px solid var(--green); color: var(--text); }
.info-strip i { margin-top: 0.1rem; flex-shrink: 0; }
.info-strip.info i { color: var(--teal); }
.info-strip.warning i { color: var(--secondary); }
.info-strip.success i { color: var(--green); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.footer-brand .logo {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  color: var(--secondary);
  flex-shrink: 0;
}
.footer-brand .name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.2;
}
.footer-brand .name span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.footer-col ul li a::before {
  content: '›';
  color: var(--secondary);
  font-size: 1.1em;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i {
  color: var(--secondary);
  font-size: 0.95rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3.5rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links a:hover { color: var(--secondary); }

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: var(--radius-full);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 900;
  border: 2px solid var(--secondary);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ── Section Dividers ────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  margin: 1rem auto;
}
.divider-left { margin: 1rem 0; }

/* ── Badges / Tags ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-primary { background: rgba(12,35,64,0.1); color: var(--primary); }
.badge-secondary { background: rgba(212,160,23,0.15); color: var(--secondary-dark); }
.badge-accent { background: rgba(232,76,61,0.1); color: var(--accent); }
.badge-teal { background: rgba(8,145,178,0.1); color: var(--teal); }
.badge-green { background: rgba(5,150,105,0.1); color: var(--green); }

/* ── Scroll Animations ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.animated { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.fade-in.animated { opacity: 1; }

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-left.animated { opacity: 1; transform: translateX(0); }

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-right.animated { opacity: 1; transform: translateX(0); }

/* delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Content Section Specifics ───────────────────────────── */
.content-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.content-section h2 {
  font-size: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light);
  margin-bottom: 1.5rem;
  position: relative;
}
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--secondary);
}
.content-section h3 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: var(--primary); }
.content-section p { color: var(--text-light); line-height: 1.8; }
.content-section ul,
.content-section ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.content-section ul li,
.content-section ol li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
}
.content-section ul { list-style: none; padding-left: 0; }
.content-section ul li { padding-left: 1.25rem; position: relative; }
.content-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 900;
}

/* Photo block */
.photo-block { margin: 2rem 0; }
.photo-block img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.photo-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-lighter);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Photo row */
.photo-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.photo-row img {
  flex: 1;
  min-width: 220px;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 240px;
}

/* NCC table */
.ncc-table { width: 100%; }
.ncc-table td { padding: 0.6rem 1rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: 100%; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 6rem 0 4rem; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .navbar-nav,
  .navbar-actions .btn { display: none; }
  .navbar-mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --navbar-height: 70px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  .hero-cta { flex-direction: column; }
  .hero-stats { justify-content: center; }
  .top-bar-right { display: none; }
  .content-section { padding: 1.5rem; }
  .tabs-nav { flex-direction: column; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .navbar, .footer, .back-to-top, .mobile-nav { display: none; }
  .page-hero { padding-top: 1rem; }
}
