/* ============================================================
   Nishkalanka Convent School — Main Stylesheet
   Palette: Maroon #7B1A1A | Navy #1C3058 | Gold #C9A84C | Cream #FAF6F0
   ============================================================ */

/* --- CSS Variables ----------------------------------------- */
:root {
  --maroon:       #7B1A1A;
  --maroon-dark:  #5A1212;
  --maroon-light: #9B2A2A;
  --navy:         #1C3058;
  --navy-dark:    #0F1E3A;
  --gold:         #C9A84C;
  --gold-light:   #E8D4A0;
  --gold-pale:    #F5EDD0;
  --cream:        #FAF6F0;
  --cream-dark:   #F0E8D8;
  --white:        #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #666666;
  --border:       #D5C4A0;
  --shadow-sm:    0 2px 8px rgba(28,48,88,0.10);
  --shadow-md:    0 4px 20px rgba(28,48,88,0.15);
  --shadow-lg:    0 8px 40px rgba(28,48,88,0.20);
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.25s ease;
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --max-width:    1200px;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy-dark);
}

/* --- Layout Utilities -------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-dark); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--gold-light); }
.section-maroon { background: var(--maroon); color: var(--white); }
.section-maroon h2, .section-maroon h3 { color: var(--gold-light); }
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  border-radius: 2px;
}
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.text-navy { color: var(--navy); }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--maroon);
  color: var(--white);
  border: 2px solid var(--maroon);
}
.btn-primary:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: var(--white); text-decoration: none; }
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.btn-gold:hover { background: #b8953d; border-color: #b8953d; color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--white); text-decoration: none; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 50%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-logo {
  flex-shrink: 0;
}
.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: transparent;
  cursor: default;
}
.logo-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gold-light);
  text-align: center;
  padding: 6px;
  cursor: default;
}
.header-text { flex: 1; }
.school-name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.society-name {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--gold-light);
  margin: 0.05rem 0;
  letter-spacing: 0.3px;
}
.tagline {
  font-style: italic;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: rgba(255,255,255,0.80);
  margin: 0.05rem 0;
}
.proposed-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.15rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  align-items: stretch;
  margin: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem;
  color: rgba(255,255,255,0.90);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover, .nav-item:hover > .nav-link {
  background: var(--maroon);
  color: var(--white);
  text-decoration: none;
}
.nav-link.active { background: var(--maroon); color: var(--white); }
.nav-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-item:hover > .nav-link .nav-arrow { transform: rotate(180deg); }

/* Dropdowns */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-dark);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  z-index: 1001;
}
.nav-item:hover > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.2rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition), color var(--transition), padding var(--transition);
  text-decoration: none;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--maroon); color: var(--white); padding-left: 1.6rem; text-decoration: none; }

/* Sub-dropdown (Programs → Investiture) */
.nav-sub-item { position: relative; }
.nav-sub-item > a { justify-content: space-between; display: flex; }
.nav-sub-item > a::after { content: '›'; margin-left: auto; }
.nav-sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--navy-dark);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.nav-sub-item:hover > .nav-sub-dropdown { display: block; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.75rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.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); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main { flex: 1; }

/* --- Awards & Certifications ------------------------------ */
.award-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--gold);
}
.award-img-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold-light);
  aspect-ratio: 3 / 2;
  cursor: pointer;
  position: relative;
}
.award-img-wrap .placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.award-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.award-img-wrap:hover img { transform: scale(1.02); }
.award-label {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}
.awards-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}
.awards-row .award-block {
  min-width: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.awards-row .award-block:first-child {
  flex: 1;
}
.awards-row .award-block:last-child {
  width: 33%;
  flex-shrink: 0;
}
/* Certificate: landscape ratio drives the row height */
.awards-row .award-block:first-child .award-img-wrap {
  aspect-ratio: 3/2;
}
/* Award: fills the stretched block height, no fixed ratio */
.awards-row .award-img-wrap {
  flex: 1;
  aspect-ratio: unset;
  min-height: 0;
}
.awards-row .award-block:first-child .award-img-wrap {
  flex: none;
}
@media (max-width: 640px) {
  .awards-row { flex-direction: column; }
  .awards-row .award-block:last-child { width: 100%; }
  .awards-row .award-img-wrap { flex: none; aspect-ratio: 3/2; }
}

/* --- Home Hero Video --------------------------------------- */
.hero-video-section {
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  line-height: 0;
}
.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(78vh * 1.3334));
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-sound-btn {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}
.hero-sound-btn:hover { background: rgba(0,0,0,0.82); transform: scale(1.1); }
.hero-sound-btn svg { width: 18px; height: 18px; pointer-events: none; display: block; }

/* --- Page Hero Banner --------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.80); margin-top: 0.5rem; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }

/* --- Person Profile Block ---------------------------------- */
.person-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--maroon);
}
.person-photo {
  flex-shrink: 0;
  width: 180px;
}
.person-photo .img-wrap {
  width: 180px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold);
  cursor: pointer;
}
.person-photo .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.3s ease;
}
.person-photo .img-wrap:hover img { transform: scale(1.04) translateZ(0); }
.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 1rem;
}
.placeholder-img .ph-icon { font-size: 2.5rem; }
.person-info { flex: 1; }
.person-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 0.3rem;
}
.person-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.person-details {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.person-message { color: var(--text); }

/* --- Image Gallery Grid ------------------------------------ */
.gallery-section { margin-bottom: 3rem; }
.gallery-section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--maroon);
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--cream-dark);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06) translateZ(0); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,48,88,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.75rem;
}
.gallery-placeholder .ph-icon { font-size: 2rem; opacity: 0.5; }

/* --- Infrastructure / Category Pages ----------------------- */
.infra-category { margin-bottom: 3.5rem; }
.infra-category-header {
  background: linear-gradient(90deg, var(--maroon), var(--navy));
  color: var(--white);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 1rem;
}
.infra-category-header h3 { color: var(--gold-light); margin: 0; }
.infra-category-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.80);
  margin: 0.25rem 0 0;
}

/* --- Cards ------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}
.card-text { font-size: 0.9rem; color: var(--text-muted); }

/* --- Forms ------------------------------------------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.form-card h2 { color: var(--maroon); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--maroon); }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(123,26,26,0.12);
  background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--cream);
  transition: border-color var(--transition), background var(--transition);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.file-upload-label:hover { border-color: var(--maroon); background: var(--cream-dark); }
.file-upload-input { display: none; }
.form-submit { margin-top: 1.75rem; text-align: right; }
.placeholder-note {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #7b6019;
  margin-bottom: 1.5rem;
}
.placeholder-note strong { color: #5a4511; }

/* --- Admission Page ---------------------------------------- */
.admission-downloads {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.download-card {
  flex: 1;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.download-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.download-card h3 { color: var(--maroon); margin-bottom: 0.5rem; }
.download-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.guidelines-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--navy);
}
.guidelines-block h3 { color: var(--navy); margin-bottom: 1rem; }
.guidelines-list { padding-left: 1.2rem; list-style: decimal; }
.guidelines-list li { margin-bottom: 0.6rem; font-size: 0.93rem; }

/* --- Contact Page ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-top: 4px solid var(--maroon);
}
.contact-info-card h3 { color: var(--maroon); margin-bottom: 1.25rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--maroon);
}
.contact-detail-text strong { display: block; color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; }
.contact-detail-text span { font-size: 0.93rem; color: var(--text); }
.map-embed {
  width: 100%;
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* --- Vision / Mission ------------------------------------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.vm-card.vision-card { border-top-color: var(--maroon); }
.vm-card.mission-card { border-top-color: var(--navy); }
.vm-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}
.vision-card .vm-label { color: var(--maroon); }
.mission-card .vm-label { color: var(--navy); }
.vm-card h3 { color: var(--text); font-size: 1rem; font-weight: 400; font-family: var(--font-sans); line-height: 1.6; }

/* --- Services --------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--maroon), var(--navy));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.service-card h4 { color: var(--maroon); margin-bottom: 0.5rem; font-family: var(--font-serif); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* --- Tradition / Lists ------------------------------------- */
.tradition-list {
  list-style: none;
  margin: 1.25rem 0;
}
.tradition-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.tradition-list li:last-child { border-bottom: none; }
.tradition-list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.tradition-closing {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 1rem;
  border-left: 4px solid var(--gold);
}

/* --- Faculty Group Photo ----------------------------------- */
.faculty-photo-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: 4px solid var(--gold);
}
.faculty-photo-wrap img, .faculty-photo-wrap .placeholder-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.faculty-photo-wrap img {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.35s ease;
}
.faculty-photo-wrap:hover img { transform: scale(1.03) translateZ(0); }
.faculty-photo-wrap .placeholder-img { background: var(--cream-dark); font-size: 1rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: rgba(255,255,255,0.80);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--maroon); }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--maroon); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand .school-name { font-size: 1.2rem; color: var(--white); margin-bottom: 0.3rem; }
.footer-brand .society-name { color: var(--gold-light); font-size: 0.85rem; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0; }
.footer-col h4 { color: var(--gold-light); font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.70); font-size: 0.87rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); text-decoration: none; }
.footer-contact-item { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; font-size: 0.85rem; align-items: flex-start; }
.footer-contact-item span:first-child { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.80rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--gold-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-item { width: 100%; }
  .nav-link { padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-dropdown { display: none; position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,0.2); }
  .nav-item.dd-open > .nav-dropdown { display: block; }
  .nav-dropdown a { padding-left: 2rem; }
  .nav-sub-dropdown { display: none; position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,0.15); }
  .nav-sub-item.sub-open > .nav-sub-dropdown { display: block; }
  .nav-sub-dropdown a { padding-left: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .person-block { flex-direction: column; }
  .person-photo { width: 100%; }
  .person-photo .img-wrap { width: 160px; height: 180px; }
  .admission-downloads { flex-direction: column; }
}
@media (max-width: 600px) {
  .header-inner { gap: 0.75rem; }
  .logo-img, .logo-placeholder { width: 110px; height: 110px; }
  .school-name { font-size: 1.1rem; }
  .section { padding: 2.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .form-card { padding: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Star decoration --------------------------------------- */
.gold-divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--gold);
  letter-spacing: 8px;
  font-size: 0.9rem;
}
/* Tab scroll wrapper & arrow controls */
.tab-nav-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.tab-nav-wrap .tab-nav { margin-bottom: 0; }
.tab-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1px));
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--maroon);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
}
.tab-scroll-btn.visible { opacity: 1; pointer-events: auto; }
.tab-scroll-btn:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.tab-scroll-prev { left: 0; }
.tab-scroll-next { right: 0; }

.tab-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-bottom: none;
  background: var(--cream);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -2px;
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Rating stars */
.star-rating { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.star-rating label { font-size: 1.6rem; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-rating input { display: none; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--gold); }
.star-rating { flex-direction: row-reverse; }
.star-rating label:hover, .star-rating label:hover ~ label { color: var(--gold); }

/* --- Footer Social Links ----------------------------------- */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: 50%;
  color: rgba(255,255,255,0.70);
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  text-decoration: none;
}
.social-link svg { width: 18px; height: 18px; }

/* --- SVG Icon Sizing --------------------------------------- */
.footer-contact-item span:first-child { display: flex; align-items: center; }
.footer-contact-item span:first-child svg { width: 14px; height: 14px; }
.contact-detail-icon { display: flex; align-items: center; justify-content: center; }
.contact-detail-icon svg { width: 20px; height: 20px; }
.gallery-placeholder .ph-icon svg { opacity: 0.5; }
.placeholder-img .ph-icon svg { opacity: 0.7; }
.download-icon svg { width: 3rem; height: 3rem; }
