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

:root {
  --primary:   #8B1A1A;
  --primary-dk:#6B0F0F;
  --gold:      #D4A017;
  --gold-lt:   #FFD700;
  --white:     #FFFFFF;
  --light-bg:  #FDF6F6;
  --text:      #333333;
  --text-light:#666666;
  --border:    #E8D5D5;
  --section-gap: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── TOP BAR ─────────────────────────────────────── */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  padding: 6px 0;
}
.top-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--gold-lt); text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }
.top-bar .tag-pill {
  background: var(--gold);
  color: var(--primary-dk);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ── HEADER ──────────────────────────────────────── */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-wrap img { height: 52px; }
.school-name-block { display: flex; flex-direction: column; }
.school-name-block .brand { font-size: 1.05rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.school-name-block .branch { font-size: 0.72rem; color: var(--text-light); font-weight: 400; }

nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
nav a:hover, nav a.active { color: var(--primary); background: #F5EAEA; }
.btn-admit {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.btn-admit:hover { background: var(--primary-dk) !important; color: var(--white) !important; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background-color: var(--primary-dk);
  color: var(--white);
  padding: 100px 20px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45,5,5,.68) 0%, rgba(45,5,5,.84) 100%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dk);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--gold-lt); }
.hero p {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--primary-dk);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* ── STATS STRIP ─────────────────────────────────── */
.stats-strip {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 12px;
  transform: translateY(-36px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-item {
  padding: 26px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* ── SECTION COMMONS ─────────────────────────────── */
section { padding: var(--section-gap) 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: #F5EAEA;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub { color: var(--text-light); max-width: 620px; margin-bottom: 40px; font-size: 0.95rem; text-align: justify; }
.section-divider {
  width: 56px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px 0 30px;
}

/* ── ABOUT ───────────────────────────────────────── */
.about { background: var(--light-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}
.about-badge-float {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(139,26,26,.35);
}
.about-badge-float .num { font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--gold-lt); }
.about-badge-float .lbl { font-size: 0.72rem; opacity: .9; margin-top: 2px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; text-align: justify; }
.about-highlight {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  margin: 20px 0;
  font-size: 0.95rem;
}
.cbse-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 12px 20px;
  margin-top: 8px;
}
.cbse-badge .cbse-icon { font-size: 2rem; }
.cbse-badge .cbse-text .title { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.cbse-badge .cbse-text .sub { font-size: 0.72rem; color: var(--text-light); }

/* ── PRINCIPAL ───────────────────────────────────── */
.principal { background: var(--light-bg); }
.principal-panel {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 48px rgba(0,0,0,.13);
}
.principal-left {
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 28px 0;
}
.principal-left img {
  width: 100%;
  max-width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px 12px 0 0;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  margin-top: auto;
}
.p-name-box {
  background: var(--primary-dk);
  color: var(--white);
  text-align: center;
  padding: 18px 16px;
  width: 100%;
}
.p-name-box .pname { font-size: 1.05rem; font-weight: 700; }
.p-name-box .ptitle { font-size: 0.72rem; opacity: .82; margin-top: 3px; }
.principal-right {
  background: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.principal-right blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.principal-right p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 14px; line-height: 1.7; text-align: justify; }
.qual-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  background: #F5EAEA;
  color: var(--primary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── WHY CHOOSE ──────────────────────────────────── */
.why { background: var(--light-bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(139,26,26,.12); }
.why-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.why-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.why-card p { font-size: 0.82rem; color: var(--text-light); }

/* center section headers for Why, Gallery, Fee, Disclosure */
.why .section-tag,
.gallery .section-tag,
.fee .section-tag,
.disclosure .section-tag { display: table; margin-left: auto; margin-right: auto; }
.why .section-title,
.gallery .section-title,
.fee .section-title,
.disclosure .section-title { text-align: center; }
.why .section-divider,
.gallery .section-divider,
.fee .section-divider,
.disclosure .section-divider { margin-left: auto; margin-right: auto; }
.why .section-sub,
.gallery .section-sub,
.fee .section-sub,
.disclosure .section-sub { text-align: center; margin-left: auto; margin-right: auto; }

/* ── FEE STRUCTURE ───────────────────────────────── */
.fee { background: var(--light-bg); }

/* ── DISCLOSURE ──────────────────────────────────── */
.disclosure { background: var(--white); }
.disc-heading {
  background: var(--primary);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  margin: 32px 0 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.disc-heading:first-of-type { margin-top: 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin-bottom: 24px;
}
th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.disclosure td a { text-decoration: none; color: var(--primary); font-weight: 600; }
.disclosure td a:hover { text-decoration: underline; }
tr:nth-child(even) td { background: var(--light-bg); }
tr:hover td { background: #F5EAEA; }
.disc-note {
  background: #FFF8E6;
  border: 1px solid #F5C518;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.83rem;
  color: #7A5B00;
  margin-top: 16px;
}

/* ── CONTACT ─────────────────────────────────────── */
.contact { background: var(--light-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item .label { font-size: 0.75rem; color: var(--text-light); }
.contact-item .value { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.map-wrap { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.10); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.85);
  padding: 48px 20px 0;
}
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 42px; filter: brightness(0) invert(1); }
.footer-logo .brand { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.footer-about p { font-size: 0.83rem; opacity: .8; line-height: 1.7; margin-bottom: 14px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--gold-lt); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 0.83rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-lt); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  opacity: .7;
}

/* ── IMAGE WHY-CARDS ─────────────────────────────── */
.why-card-img {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.why-card-img:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(139,26,26,.13); }
.why-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.why-card-img:hover img { transform: scale(1.04); }
.card-content {
  padding: 16px 18px 20px;
  flex: 1;
}
.card-content h3 { color: var(--primary); font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.card-content p  { color: var(--text-light); font-size: 0.78rem; line-height: 1.55; text-align: justify; }

/* ── GALLERY ─────────────────────────────────────── */
.gallery { background: var(--light-bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: default;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .g-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(107,15,15,.8), transparent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 20px 10px 8px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .g-label { opacity: 1; }

/* ── HAMBURGER ───────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-grid, .principal-panel, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-badge-float { right: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); transform: translateY(-20px); border-radius: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.tall { grid-row: span 1; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px 16px 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
    gap: 2px;
    z-index: 999;
  }
  nav.open { display: flex; }
  nav a { display: block; width: 100%; }

  /* table scroll on mobile */
  .disclosure .section-inner > div,
  .fee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 420px; }
}
