/* ==========================================================================
   ALI PUBLIC SCHOOL - MAIN STYLESHEET
   Kashibari Hat, Kishanganj, Bihar - 855107
   Colors: Navy Blue (#172B6D), Royal Blue (#243F91), Gold (#C99A32),
           Light Gold (#F4E8B5), Cream (#FFFBEA), White (#FFFFFF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Brand Core Colors */
  --navy-primary: #172B6D;
  --navy-dark: #0F1D4A;
  --navy-deep: #081029;
  --royal-blue: #243F91;
  --royal-hover: #1c3379;
  --royal-soft: #EEF2FF;
  
  /* Gold & Warm Accents */
  --gold-primary: #C99A32;
  --gold-hover: #B28625;
  --gold-light: #F4E8B5;
  --gold-pale: #FDF9EA;
  --gold-gradient: linear-gradient(135deg, #F8E79B 0%, #D8A939 50%, #B8891E 100%);
  --gold-border: rgba(201, 154, 50, 0.4);

  /* Cream & Neutral */
  --cream-bg: #FFFBEA;
  --cream-surface: #FEF9E7;
  --white: #FFFFFF;
  --dark-text: #1A1A1A;
  --text-muted: #525B75;
  --border-light: #E5E9F2;
  --card-shadow: 0 10px 30px rgba(23, 43, 109, 0.08);
  --hover-shadow: 0 20px 40px rgba(23, 43, 109, 0.15);

  /* Colorful Accents for badges & categories */
  --badge-emerald: #10B981;
  --badge-cyan: #0EA5E9;
  --badge-coral: #F97316;
  --badge-purple: #8B5CF6;
  --badge-rose: #F43F5E;
  --badge-amber: #D97706;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-crest: 'Cinzel', 'Times New Roman', serif;
  
  /* Transitions & Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  background-color: #F8FAFC;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-primary);
  font-weight: 700;
  line-height: 1.25;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  color: var(--gold-hover);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.section-tag.tag-blue {
  background: var(--royal-soft);
  color: var(--navy-primary);
  border-color: rgba(36, 63, 145, 0.2);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--navy-primary);
  margin-bottom: 14px;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold-gradient);
  margin: 14px auto 0 auto;
  border-radius: 4px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.btn-primary, .btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-deep);
  border-color: var(--gold-primary);
}

.btn-primary:hover, .btn-gold:hover {
  background: var(--gold-hover);
  color: #FFFFFF;
  border-color: var(--gold-hover);
}

.btn-navy {
  background: var(--navy-primary);
  color: #FFFFFF;
  border-color: var(--navy-primary);
}

.btn-navy:hover {
  background: var(--royal-blue);
  color: #FFFFFF;
  border-color: var(--royal-blue);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: var(--navy-deep);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--navy-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   COMPACT TOP ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background: var(--navy-dark);
  color: var(--gold-light);
  padding: 4px 15px;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--gold-primary);
  position: relative;
  z-index: 1010;
  line-height: 1.4;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.announcement-badge {
  background: var(--gold-primary);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.announcement-text {
  font-weight: 500;
  color: #FFFFFF;
  font-size: 0.8rem;
}

.announcement-meta {
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announcement-meta i {
  color: var(--gold-primary);
}

.announcement-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-right .quick-contact {
  color: var(--gold-light);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.announcement-right .quick-contact:hover {
  color: #FFFFFF;
}

.topbar-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.topbar-apply-btn:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
  color: var(--navy-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 2px 15px rgba(23, 43, 109, 0.08);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Brand Logo (Guaranteed Single Line) */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-crest {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(23, 43, 109, 0.2));
  transition: var(--transition);
}

.header-crest:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-text h1.school-name, .brand-text h1 {
  font-family: var(--font-crest);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--navy-primary);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.brand-text .brand-location {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-hover);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-primary);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--royal-blue);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.portal-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--royal-soft);
  white-space: nowrap;
}

.portal-link:hover {
  background: #E0E7FF;
  color: var(--royal-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-primary);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO SECTION (Compact, Beautiful & Sleek)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 400px;
  background-color: var(--navy-deep);
  background-image: 
    radial-gradient(ellipse at 85% 45%, rgba(201, 154, 50, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 10% 20%, rgba(36, 63, 145, 0.35) 0%, transparent 45%),
    linear-gradient(135deg, rgba(15, 29, 74, 0.94) 0%, rgba(23, 43, 109, 0.88) 55%, rgba(8, 16, 41, 0.96) 100%), 
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 38px 0 46px 0;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 154, 50, 0.18);
  border: 1px solid rgba(201, 154, 50, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content h1.hero-title, .hero-content h1 {
  font-family: var(--font-crest);
  font-size: 2.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.hero-content h1 .text-gold {
  color: var(--gold-primary);
  display: inline;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.hero-desc {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.hero-crest-wrapper {
  text-align: center;
  display: flex;
  justify-content: center;
}

.hero-crest-card {
  position: relative;
  background: rgba(15, 29, 74, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(201, 154, 50, 0.5);
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(201, 154, 50, 0.08);
  max-width: 270px;
  width: 100%;
  text-align: center;
  animation: heroFloat 5s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.hero-crest-img {
  width: 105px;
  height: 105px;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 6px 16px rgba(201, 154, 50, 0.45));
  transition: var(--transition);
}

.hero-crest-card h4 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin: 0 0 4px 0;
}

.hero-crest-card p {
  color: var(--gold-light);
  font-size: 0.78rem;
  margin: 0 0 12px 0;
}

.hero-crest-card .hero-crest-badge-wrapper {
  margin-top: 4px;
}

.hero-crest-card .program-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   QUICK INFORMATION CARDS (Directly under Hero)
   ========================================================================== */
.quick-info-section {
  margin-top: -45px;
  position: relative;
  z-index: 10;
  padding-bottom: 50px;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--gold-primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
}

.info-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.info-card:nth-child(1) .info-card-icon { background: #EEF2FF; color: var(--navy-primary); }
.info-card:nth-child(2) .info-card-icon { background: #FEF3C7; color: #B45309; }
.info-card:nth-child(3) .info-card-icon { background: #ECFDF5; color: #047857; }
.info-card:nth-child(4) .info-card-icon { background: #FDF2F8; color: #BE185D; }

.info-card:nth-child(1) { border-top-color: var(--royal-blue); }
.info-card:nth-child(2) { border-top-color: var(--gold-primary); }
.info-card:nth-child(3) { border-top-color: #10B981; }
.info-card:nth-child(4) { border-top-color: #F43F5E; }

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT SCHOOL SECTION (2-Column)
   ========================================================================== */
.about-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.about-image-stack {
  position: relative;
}

.about-main-img {
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 5px solid #FFFFFF;
  overflow: hidden;
}

.about-badge-card {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: var(--navy-primary);
  color: #FFFFFF;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--gold-primary);
  box-shadow: var(--hover-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-badge-icon {
  font-size: 2rem;
  color: var(--gold-primary);
}

.about-badge-text h4 {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin: 0;
}

.about-badge-text p {
  font-size: 0.8rem;
  color: #E2E8F0;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--royal-blue);
  font-weight: 600;
  margin-bottom: 18px;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.focus-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.focus-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.focus-pill i {
  color: var(--gold-primary);
}

/* ==========================================================================
   PRINCIPAL / SCHOOL MESSAGE
   ========================================================================== */
.message-section {
  padding: 70px 0;
  background: var(--cream-bg);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.message-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 45px;
  box-shadow: var(--card-shadow);
  border-left: 6px solid var(--gold-primary);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
}

.message-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--gold-primary);
  background: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 3.5rem;
  box-shadow: 0 8px 25px rgba(23, 43, 109, 0.15);
}

.message-body {
  position: relative;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.message-quote {
  font-size: 1.18rem;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.7;
  margin-bottom: 20px;
}

.message-author h4 {
  font-size: 1.15rem;
  color: var(--navy-primary);
}

.message-author p {
  color: var(--gold-hover);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==========================================================================
   ACADEMIC PROGRAMS (Levels)
   ========================================================================== */
.academic-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.program-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--royal-blue);
  transition: var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  background: #FFFFFF;
  box-shadow: var(--hover-shadow);
  border-color: var(--gold-primary);
}

.program-card:hover::before {
  background: var(--gold-gradient);
}

.program-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--royal-soft);
  color: var(--royal-blue);
  transition: var(--transition);
}

.program-card:hover .program-icon {
  background: var(--gold-primary);
  color: #FFFFFF;
}

.program-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.program-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-hover);
  background: var(--gold-pale);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.program-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ACADEMIC APPROACH (6 Cards)
   ========================================================================== */
.approach-section {
  padding: 70px 0;
  background: #F1F5F9;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--royal-blue);
  transition: var(--transition);
}

.approach-card:hover {
  transform: translateY(-5px);
  border-left-color: var(--gold-primary);
  box-shadow: var(--hover-shadow);
}

.approach-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.approach-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--royal-soft);
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.approach-header h3 {
  font-size: 1.15rem;
  margin: 0;
}

.approach-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ==========================================================================
   SUBJECTS & LEARNING (Colorful Grid)
   ========================================================================== */
.subjects-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.subject-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.subject-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--gold-primary);
}

.subject-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Vibrant colors for each subject */
.subject-item:nth-child(1) .subject-icon-box { background: #EEF2FF; color: #4338CA; }
.subject-item:nth-child(2) .subject-icon-box { background: #FEF2F2; color: #DC2626; }
.subject-item:nth-child(3) .subject-icon-box { background: #ECFDF5; color: #059669; }
.subject-item:nth-child(4) .subject-icon-box { background: #EFF6FF; color: #2563EB; }
.subject-item:nth-child(5) .subject-icon-box { background: #F0FDF4; color: #16A34A; }
.subject-item:nth-child(6) .subject-icon-box { background: #FEF3C7; color: #D97706; }
.subject-item:nth-child(7) .subject-icon-box { background: #FDF2F8; color: #DB2777; }
.subject-item:nth-child(8) .subject-icon-box { background: #FAF5FF; color: #9333EA; }
.subject-item:nth-child(9) .subject-icon-box { background: #FFFBEB; color: #CA8A04; }

.subject-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.subject-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ADMISSIONS OPEN CTA SECTION (Blue Gradient + Gold CTA)
   ========================================================================== */
.admissions-cta-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 50%, var(--royal-blue) 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.admissions-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

.admissions-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.admissions-cta-text h2 {
  font-size: 2.3rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.admissions-cta-text h2 span {
  color: var(--gold-primary);
}

.admissions-cta-text p {
  font-size: 1.1rem;
  color: #E2E8F0;
  max-width: 600px;
}

.admissions-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ADMISSION PROCESS (6-Step Flow)
   ========================================================================== */
.admission-process-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.process-step {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 14px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: var(--card-shadow);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 14px auto;
  border: 2px solid var(--gold-primary);
}

.process-step h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--navy-primary);
}

.process-step p {
  font-size: 0.785rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NEWS & NOTICES (Categorized Cards & Timeline)
   ========================================================================== */
.notices-section {
  padding: 70px 0;
  background: #F8FAFC;
}

.notices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.notice-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--navy-primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-top-color: var(--gold-primary);
}

.notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.notice-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-notice { background: #EEF2FF; color: #4338CA; }
.badge-exam { background: #FEF2F2; color: #DC2626; }
.badge-admission { background: #FEF3C7; color: #B45309; }
.badge-holiday { background: #ECFDF5; color: #047857; }
.badge-event { background: #FAF5FF; color: #7E22CE; }
.badge-important { background: #FFF1F2; color: #E11D48; }

.notice-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.notice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.notice-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.notice-footer a:hover {
  color: var(--gold-hover);
}

/* ==========================================================================
   UPCOMING EVENTS SECTION
   ========================================================================== */
.events-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--gold-primary);
}

.event-header-strip {
  background: var(--navy-primary);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-date-box {
  background: var(--gold-gradient);
  color: var(--navy-deep);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  min-width: 52px;
}

.event-date-box .day {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-box .month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-title-meta h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin: 0;
}

.event-body {
  padding: 22px;
}

.event-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.event-details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-details-list i {
  color: var(--gold-primary);
}

.event-body p {
  font-size: 0.885rem;
  color: var(--dark-text);
  line-height: 1.5;
}

/* ==========================================================================
   WHY CHOOSE ALI PUBLIC SCHOOL (6 Cards)
   ========================================================================== */
.why-us-section {
  padding: 70px 0;
  background: var(--cream-bg);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 15px rgba(23, 43, 109, 0.05);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--gold-primary);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--navy-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--navy-primary);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PARENT CORNER
   ========================================================================== */
.parent-corner-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.parent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.parent-link-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.parent-link-card:hover {
  background: #FFFFFF;
  transform: translateY(-5px);
  border-color: var(--royal-blue);
  box-shadow: var(--card-shadow);
}

.parent-link-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px auto;
  background: var(--royal-soft);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.parent-link-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.parent-link-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCHOOL GALLERY (Grid with Lightbox)
   ========================================================================== */
.gallery-section {
  padding: 70px 0;
  background: #F8FAFC;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 250px;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 29, 74, 0.9) 0%, rgba(23, 43, 109, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: var(--gold-light);
  font-size: 0.825rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 3px solid var(--gold-primary);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   TESTIMONIALS SECTION (What Parents Say)
   ========================================================================== */
.testimonials-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.testimonials-empty {
  text-align: center;
  padding: 50px 20px;
  background: #F8FAFC;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-empty i {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

/* ==========================================================================
   FAQ SECTION (Accordion)
   ========================================================================== */
.faq-section {
  padding: 70px 0;
  background: #F1F5F9;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-primary);
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--royal-blue);
  background: #F8FAFC;
}

.faq-icon {
  font-size: 1rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  padding: 0 22px 18px 22px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT CTA & LOCATION
   ========================================================================== */
.contact-section {
  padding: 70px 0;
  background: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px;
  border-top: 5px solid var(--gold-primary);
  box-shadow: var(--card-shadow);
}

.contact-info-card h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 154, 50, 0.2);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-text h5 {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-item-text span, .contact-item-text a {
  color: #F8FAFC;
  font-size: 0.95rem;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.contact-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--dark-text);
  font-size: 0.925rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(36, 63, 145, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   FLOATING WHATSAPP & MOBILE BAR
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1050;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.floating-whatsapp i {
  font-size: 1.5rem;
}

/* Mobile Quick Action Strip (Pinned to bottom on mobile) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 2px solid var(--gold-primary);
  z-index: 1040;
  padding: 8px 12px;
}

.mobile-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
}

.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.mobile-btn-call { background: var(--royal-blue); color: #FFFFFF; }
.mobile-btn-wa { background: #25D366; color: #FFFFFF; }
.mobile-btn-apply { background: var(--gold-gradient); color: var(--navy-deep); }

/* ==========================================================================
   PREMIUM FOOTER (Modeled precisely like firstalphabet.in)
   ========================================================================== */
.premium-footer {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 70px 0 0 0;
  border-top: 4px solid var(--gold-primary);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col h2.footer-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-crest);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col h2.footer-logo span {
  color: var(--gold-primary);
}

.footer-crest-thumb {
  width: 48px;
  height: 48px;
}

.footer-desc {
  color: #CBD5E1;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gold-primary);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.footer-col h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 35px;
  height: 2.5px;
  background: var(--gold-primary);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #CBD5E1;
  font-size: 0.925rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--gold-primary);
  transform: translateX(4px);
}

.footer-contact-item {
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item i {
  color: var(--gold-primary);
  margin-top: 4px;
}

.footer-contact-item a {
  color: #CBD5E1;
}

.footer-contact-item a:hover {
  color: var(--gold-primary);
}

.footer-note {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 10px;
}

/* Footer Bottom Strip (Exact match to https://firstalphabet.in/ developer credit) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-bottom p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom strong {
  color: #FFFFFF;
}

.dev-logo-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
  transition: var(--transition);
}

.dev-logo-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.dev-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

/* ==========================================================================
   RESULT CARD DESIGN (Physical Result Card Inspiration)
   ========================================================================== */
.result-card-container {
  background: #FFFFFF;
  border: 4px double var(--navy-primary);
  outline: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  position: relative;
  background-color: #FFFFFF;
  background-image: radial-gradient(var(--cream-bg) 1px, transparent 1px);
  background-size: 16px 16px;
}

.result-card-header {
  text-align: center;
  border-bottom: 2px solid var(--navy-primary);
  padding-bottom: 20px;
  margin-bottom: 25px;
  position: relative;
}

.result-header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.result-crest-img {
  width: 80px;
  height: 80px;
}

.result-title-block h2 {
  font-family: var(--font-crest);
  color: var(--navy-primary);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.result-title-block .result-loc {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-hover);
  letter-spacing: 1px;
}

.result-title-block .result-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.result-title-badge {
  display: inline-block;
  background: var(--navy-primary);
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 50px;
  border: 1px solid var(--gold-primary);
  margin-top: 10px;
  letter-spacing: 1px;
}

/* Student Bio Grid */
.student-bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 25px;
}

.bio-item {
  font-size: 0.9rem;
}

.bio-item .bio-label {
  font-weight: 700;
  color: var(--navy-primary);
  display: inline-block;
  min-width: 90px;
}

.bio-item .bio-val {
  color: var(--dark-text);
  font-weight: 600;
}

/* Marks Table */
.marks-table-wrapper {
  overflow-x: auto;
  margin-bottom: 25px;
}

.marks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.marks-table th, .marks-table td {
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  text-align: center;
}

.marks-table th {
  background: var(--navy-primary);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.marks-table th.th-subject, .marks-table td.td-subject {
  text-align: left;
  font-weight: 600;
}

.marks-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.marks-table tfoot tr {
  background: var(--cream-bg);
  font-weight: 800;
  color: var(--navy-primary);
}

/* Result Summary & Signatures */
.result-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--royal-soft);
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 40px;
}

.summary-stat-box {
  text-align: center;
}

.summary-stat-box .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-transform: uppercase;
}

.summary-stat-box .stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--royal-blue);
}

.signatures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.signature-box {
  border-top: 1.5px dashed #64748B;
  padding-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-primary);
}

/* Result Actions */
.result-actions-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  margin-bottom: 20px;
}

.alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-danger { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-crest-wrapper { display: none; }
  .hero-content h1 { font-size: 2.6rem; }
  .hero-cta-group { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .quick-info-grid { grid-template-columns: repeat(2, 1fr); }
  .academic-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 75px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 2px solid var(--gold-primary);
  }
  .nav-menu.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .header-actions .portal-link { display: none; }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-badge-card { position: static; margin-top: 15px; }
  
  .message-card { grid-template-columns: 1fr; text-align: center; padding: 25px; }
  .message-avatar { margin: 0 auto; }
  
  .quick-info-grid { grid-template-columns: 1fr; }
  .academic-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .notices-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .parent-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .student-bio-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Mobile floating & bottom bar */
  .floating-whatsapp { display: none; }
  .mobile-bottom-bar { display: block; }
  body { padding-bottom: 60px; }
}

/* Print Styles for Result Card */
@media print {
  .site-header, .announcement-bar, .premium-footer, .floating-whatsapp, .mobile-bottom-bar, .result-actions-strip, .navbar {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    padding: 0 !important;
  }
  .result-card-container {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    margin: 0 !important;
    padding: 20px !important;
  }
}
