/* ════════════ MODERN ACADEMY BELUR - CORE STYLESHEET ════════════ */

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

:root {
  --navy: #0B1F3A;
  --navy-light: #143058;
  --gold: #C9952A;
  --gold-light: #F5D98B;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --text: #1C1C1C;
  --muted: #5A5A5A;
  --border: rgba(11,31,58,0.12);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.page {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── ENHANCED MOBILE-FRIENDLY NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,149,42,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.logo-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.55);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}

.nav-links li a:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}

.nav-links li a.active {
  color: var(--gold);
  background: rgba(201,149,42,0.18);
  font-weight: 600;
}

.nav-links li a.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(201,149,42,0.3);
}

.nav-links li a.nav-cta:hover {
  background: var(--gold-light);
}

.nav-call-btn {
  color: var(--gold-light) !important;
  background: rgba(201,149,42,0.15);
  border: 1px solid rgba(201,149,42,0.4);
}

.nav-call-btn:hover {
  background: rgba(201,149,42,0.28);
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  transition: background 0.2s;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── PAGE BANNERS & SECTIONS ── */
.page-banner {
  background: var(--navy);
  padding: 115px 5% 60px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(201,149,42,0.15) 0%, transparent 65%);
}

.page-banner-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.page-banner-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.page-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.page-banner-title span {
  color: var(--gold);
}

.page-banner-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
  max-width: 580px;
}

section {
  padding: 70px 5%;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.section-lead {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
}

.max-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* HERO (RESTORED 1:1 MATCH WITH LIVE SITE) */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 5% 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,149,42,0.15) 0%, transparent 70%);
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.7s ease both;
}

.hero-logo-text {
  text-align: left;
}

.hero-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.hero-logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 3px;
}

.hero-board-tag {
  display: inline-block;
  background: rgba(201,149,42,0.15);
  border: 1px solid rgba(201,149,42,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  font-weight: 500;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.35rem;
  animation: fadeUp 0.7s 0.18s ease both;
}

.hero-title span {
  color: var(--gold);
}

.hero-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--gold-light);
  margin: 0.75rem auto 0.85rem;
  letter-spacing: 0.02em;
  animation: fadeUp 0.7s 0.24s ease both;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.98rem;
  line-height: 1.85;
  animation: fadeUp 0.7s 0.32s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.38s ease both;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(201,149,42,0.3);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,149,42,0.4);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,149,42,0.12);
}

/* STATS BAR */
.stats-bar {
  background: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 1.6rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-num span {
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ABOUT INFO GRID */
.about-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.info-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1.4rem;
  border-top: 3px solid var(--gold);
}

.info-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--gold);
}

.info-card-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.info-card-text {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}

/* LEADERSHIP SECTION */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.leader-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.leader-card-head {
  background: var(--navy);
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.leader-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.leader-avatar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201,149,42,0.18);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
}

.leader-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.leader-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.leader-quote {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.75;
}

.leader-card-body {
  padding: 1.4rem 2rem 1.8rem;
}

.leader-body-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

/* CURRICULUM & PROGRAMS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.program-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,149,42,0.25);
  border-radius: 10px;
  padding: 1.6rem;
  transition: all 0.25s;
}

.program-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.prog-icon {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}

.prog-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.prog-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
}

.prog-classes {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.prog-tag {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(201,149,42,0.18);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ADMISSIONS */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 2.5rem 0;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.step {
  padding: 1.7rem 1.3rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: none;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.step-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.admission-cta {
  background: var(--navy);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.adm-cta-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--white);
  max-width: 460px;
  line-height: 1.3;
}

.adm-cta-text span {
  color: var(--gold);
}

/* CONTACT & REACH US */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.contact-block {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.c-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201,149,42,0.15);
  border: 1px solid rgba(201,149,42,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.c-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.c-value {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  width: fit-content;
  min-height: 44px;
}

.whatsapp-btn:hover {
  background: #1EBE57;
  transform: translateY(-1px);
}

.yt-badge-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,0,0,0.3);
  color: #FF6B6B;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.yt-badge:hover {
  background: rgba(255,0,0,0.25);
  color: #FFFFFF;
}



footer {
  background: #060E1A;
  padding: 2.2rem 5% 1.6rem;
  text-align: center;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  display: block;
  margin: 0 auto 0.6rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.4);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 1.1rem 0;
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
}

/* SYLLABUS & ROUTINES SEARCH & DROPDOWNS */
.action-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.class-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 14px;
  box-shadow: var(--shadow-sm);
}

.class-dropdown {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 4px;
  cursor: pointer;
  min-height: 44px;
}

.search-box-wrap {
  position: relative;
  margin-bottom: 1.8rem;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--navy);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
  min-height: 44px;
}

.search-input:focus {
  border-color: var(--gold);
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.pdf-download-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.syllabus-wrap, .routines-wrap, .photos-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* SYLLABUS TERM SUB-MENU */
.syl-term-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.syl-term-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  min-height: 42px;
}

.syl-term-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.syl-term-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(6,14,26,0.25);
}

.syllabus-panel {
  display: none;
}

.syllabus-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.subject-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.subject-head {
  background: var(--navy);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subject-icon {
  font-size: 1.1rem;
  color: var(--gold);
}

.subject-name {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 700;
}

.subject-body {
  padding: 1.1rem;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.topic-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  background: var(--cream);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  line-height: 1.5;
}

.info-note {
  margin-top: 1.8rem;
  padding: 1.1rem 1.4rem;
  background: rgba(201,149,42,0.08);
  border: 1px solid rgba(201,149,42,0.3);
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

.info-note strong {
  color: var(--navy);
}

/* ROUTINE TABS & TIMETABLE */
.routine-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.routine-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.routine-tab:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.routine-tab.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.routine-panel {
  display: none;
}

.routine-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.timetable thead tr {
  background: var(--navy);
}

.timetable thead th {
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.timetable tbody tr {
  border-bottom: 1px solid var(--border);
}

.timetable tbody tr:hover {
  background: rgba(201,149,42,0.03);
}

.timetable td {
  padding: 0.8rem 1rem;
  font-size: 0.84rem;
  vertical-align: middle;
}

.timetable td.time-col {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.78rem;
  width: 105px;
  white-space: nowrap;
}

.pb {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.pb-math{background:#e8f0fe;color:#1a56db;}
.pb-sci{background:#e3f9e5;color:#1a7a2e;}
.pb-en{background:#fef3c7;color:#92400e;}
.pb-bn{background:#fce7f3;color:#9d174d;}
.pb-ss{background:#ede9fe;color:#5521b5;}
.pb-hi{background:#fee2e2;color:#991b1b;}
.pb-brk{background:#f3f4f6;color:#6b7280;font-style:italic;}
.pb-pe{background:#ecfdf5;color:#065f46;}
.pb-it{background:#eff6ff;color:#1e40af;}
.pb-art{background:#fdf4ff;color:#7e22ce;}
.pb-mu{background:#fff7ed;color:#c2410c;}
.pb-mo{background:#f0fdf4;color:#14532d;}

/* UNIFORM & RULES */
.uniform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.uniform-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.uniform-head {
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.uh-boys { background: #1a3a5c; }
.uh-girls { background: #4a1535; }

.uniform-head-label {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.uniform-body {
  padding: 1.2rem;
}

.class-uniform-group {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.class-uniform-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cug-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.cug-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cug-items li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.5;
}

.cug-items li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.rules-grid, .fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.rule-card, .fee-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.rule-card-title, .fee-card-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rule-list, .fee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rule-list li, .fee-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  background: var(--cream);
  border-radius: 6px;
  border-left: 3px solid var(--navy);
  line-height: 1.55;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.exam-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.exam-date-box {
  background: var(--navy);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 60px;
}

.exam-month {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.exam-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--white);
  line-height: 1.1;
  font-weight: 700;
}

.exam-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.exam-classes {
  font-size: 0.78rem;
  color: var(--muted);
}

.exam-tag {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.et-unit{background:#fef3c7;color:#92400e;}
.et-half{background:#dbeafe;color:#1e40af;}
.et-annual{background:#d1fae5;color:#065f46;}
.et-pre{background:#ede9fe;color:#5521b5;}

.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.holiday-item {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.95rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.hol-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.hol-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.hol-type {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.ht-nat{background:#dbeafe;color:#1e40af;}
.ht-rel{background:#fce7f3;color:#9d174d;}
.ht-sch{background:#d1fae5;color:#065f46;}
.ht-sum{background:#fff7ed;color:#c2410c;}

/* GALLERY PAGE */
.photo-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

.pfb {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.pfb:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.pfb.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.1rem 1.3rem;
}

.video-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.video-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.photo-grid {
  columns: 3;
  gap: 1rem;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s;
}

.photo-item:hover {
  transform: scale(1.02);
}

.photo-item.hidden {
  display: none;
}

/* VIDEO ITEM PLAY BADGE OVERLAY */
.video-item {
  position: relative;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.25s, background 0.25s;
  border: 2px solid rgba(255, 255, 255, 0.85);
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.video-item:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--gold);
  border-color: var(--navy);
}

.video-item:hover .video-play-btn svg {
  fill: var(--navy);
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-ph {
  width: 100%;
  display: block;
  object-fit: cover;
}

.ph-t{height: 290px;}
.ph-m{height: 205px;}
.ph-s{height: 160px;}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.po-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  text-align: center;
  padding: 0 0.8rem;
}

.po-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}

.lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90vw, 900px);
  max-height: 90vh;
}

.lb-media {
  width: 100%;
  flex: 1;
  min-height: 200px;
  max-height: 70vh;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.lb-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lb-media iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.lb-info {
  width: 100%;
  padding: 0.9rem 0.5rem 0.3rem;
  text-align: center;
}

.lb-title {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.lb-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

.lb-counter {
  color: rgba(255,255,255,0.4);
  font-size: 0.74rem;
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
}

.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover {
  background: rgba(255,255,255,0.25);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lb-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ════════════ RESPONSIVE BREAKPOINTS (MOBILE ENHANCEMENTS) ════════════ */
@media (max-width: 900px) {
  .leadership-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  /* De-cluttered, SPACIOUS & ELEGANT HAMBURGER DRAWER */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(11, 31, 58, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 8px;
    padding: 1.4rem 1.4rem 1.8rem;
    box-shadow: 0 16px 36px rgba(0,0,0,0.5);
    z-index: 99;
    border-bottom: 2px solid var(--gold);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    animation: fadeIn 0.25s ease;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 12px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    transition: all 0.2s ease;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(201, 149, 42, 0.16);
    border-color: rgba(201, 149, 42, 0.4);
    color: var(--gold-light);
    transform: translateX(4px);
  }

  .nav-links li a.active::after {
    content: '●';
    font-size: 0.7rem;
    color: var(--gold);
  }

  .nav-links li a.nav-cta {
    margin-top: 6px;
    background: var(--gold);
    color: var(--navy) !important;
    text-align: center;
    justify-content: center;
    font-weight: 700;
  }

  .nav-links li a.nav-call-btn {
    background: rgba(201,149,42,0.15);
    color: var(--gold-light) !important;
    border: 1px solid rgba(201,149,42,0.4);
    text-align: center;
    justify-content: center;
    font-weight: 700;
  }

  section { padding: 48px 5%; }
  .page-banner { padding: 95px 5% 44px; }
  .hero-logo-wrap { flex-direction: column; gap: 10px; text-align: center; }
  .hero-logo-text { text-align: center; }
  #hero { min-height: auto; padding: 100px 5% 60px; }

  .contact-grid,
  .uniform-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }

  .contact-grid iframe { min-height: 280px !important; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(odd) { border-right: 1px solid var(--border); }
  .step:last-child { border-bottom: none; border-right: none !important; }

  .about-info-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { columns: 2; }
  .subjects-grid, .exam-grid, .rules-grid, .fees-grid, .video-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  /* ALWAYS DISPLAY SCHOOL NAME NEXT TO LOGO CREST ON SMALL PHONES (SCROLLED OR STATIONARY) */
  .logo-text-wrap {
    display: flex !important;
  }

  .logo-name {
    font-size: 0.92rem;
    color: var(--gold);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .logo-sub {
    display: none; /* Hide subtitle line on small phones to keep nav clean & 68px height */
  }

  section { padding: 40px 4%; }
  .programs-grid, .about-info-grid, .steps-row { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .stat-item:nth-child(even) { border-right: none !important; }
  .photo-grid { columns: 1; }
  .routine-tabs, .photo-filter { gap: 0.35rem; }
  .routine-tab, .pfb { font-size: 0.76rem; padding: 8px 12px; }
  .leadership-grid, .uniform-grid { grid-template-columns: 1fr !important; }
  .hero-btns { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; max-width: 320px; text-align: center; justify-content: center; }
  .admission-cta { padding: 1.6rem 1.2rem; text-align: center; }
}

/* ════════════ STRICT PDF PRINT STYLESHEET (FULL TABLE PRINT NO HORIZONTAL CUTOFF) ════════════ */
@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }
  
  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  nav, footer, .hero-btns, .nav-hamburger, .search-box-wrap, .whatsapp-btn, .yt-badge-wrap, .action-btn-row, .page-banner, section, .page, #lightbox {
    display: none !important;
  }

  /* Syllabus PDF Printing */
  body.print-syllabus-mode #page-syllabus,
  body.print-syllabus-mode #page-syllabus > section {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
  }

  body.print-syllabus-mode .syllabus-panel {
    display: none !important;
  }

  body.print-syllabus-mode .syllabus-panel.active {
    display: block !important;
    page-break-inside: avoid;
  }

  body.print-syllabus-mode .subject-card {
    box-shadow: none !important;
    border: 1px solid #999999 !important;
    page-break-inside: avoid;
    margin-bottom: 12px;
  }

  body.print-syllabus-mode .subject-head {
    background: #0B1F3A !important;
    color: #C9952A !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

.tt-print-header {
  display: none;
}

  /* Timetable PDF Printing (ONLY TABLE, FIT LANDSCAPE NO CUTOFF) */
  body.print-timetable-mode #page-routines,
  body.print-timetable-mode #page-routines > section,
  body.print-timetable-mode #rt-tt {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    overflow: visible !important;
  }

  body.print-timetable-mode .routine-tabs,
  body.print-timetable-mode .page-banner,
  body.print-timetable-mode .class-select-wrap,
  body.print-timetable-mode .pdf-download-btn,
  body.print-timetable-mode .info-note,
  body.print-timetable-mode #rt-tt h3,
  body.print-timetable-mode #rt-tt p,
  body.print-timetable-mode .routine-panel:not(#rt-tt) {
    display: none !important;
  }

  body.print-timetable-mode .tt-print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 8px;
  }

  body.print-timetable-mode .tt-print-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 16pt;
    color: #0B1F3A;
    margin: 0 0 2px 0;
  }

  body.print-timetable-mode .tt-print-header p {
    font-size: 9pt;
    color: #555555;
    margin: 0 0 8px 0;
  }

  body.print-timetable-mode #tt-class-tag {
    display: block !important;
    text-align: center;
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #0B1F3A !important;
    background: #F5D98B !important;
    border: 1px solid #C9952A !important;
    padding: 4px 14px !important;
    margin: 0 auto 12px auto !important;
    width: fit-content !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-timetable-mode #tt-table-wrap {
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
  }

  body.print-timetable-mode .timetable {
    box-shadow: none !important;
    border: 1px solid #000000 !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    page-break-inside: avoid;
  }

  body.print-timetable-mode .timetable thead tr {
    background: #0B1F3A !important;
    color: #FFFFFF !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-timetable-mode .timetable th {
    background: #0B1F3A !important;
    color: #F5D98B !important;
    font-size: 9pt !important;
    padding: 5px 4px !important;
    text-align: center !important;
    border: 1px solid #444444 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-timetable-mode .timetable td {
    padding: 5px 4px !important;
    font-size: 8.5pt !important;
    border: 1px solid #CCCCCC !important;
    text-align: center !important;
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  body.print-timetable-mode .timetable td.time-col {
    font-size: 8.5pt !important;
    font-weight: bold !important;
    width: 12% !important;
    background: #F3F4F6 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-timetable-mode .pb {
    padding: 2px 4px !important;
    font-size: 8pt !important;
    white-space: normal !important;
    border-radius: 2px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
