/* ================================================
   B.L CONVENT SCHOOL - Teal / Green Theme Redesign
   Inspired by babujiconventschool.com
   ================================================ */

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

:root {
  --primary: #0d6e6e;        /* Deep teal */
  --primary-dark: #095555;
  --primary-light: #1a9e9e;
  --primary-pale: #e0f5f5;
  --primary-ultra-pale: #f0fdfa;

  --accent: #d4a753;         /* Gold accent */
  --accent-dark: #b88d3c;
  --accent-light: #f0d48a;

  --cta: #0d6e6e;            /* CTA same as primary teal */
  --cta-hover: #095555;

  --bg: #ffffff;
  --bg-gradient: linear-gradient(135deg, #fdf6ed 0%, #f0fdfa 40%, #ffffff 100%);
  --bg-section: #fafbfc;
  --bg-warm: #fdf8f0;

  --text: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;

  --border: #f1f5f9;
  --border-dark: #e2e8f0;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.03);
  --shadow: 0 10px 15px -3px rgba(23, 23, 43, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(23, 23, 43, 0.06);
  --shadow-xl: 0 30px 60px -12px rgba(23, 23, 43, 0.08);
  --shadow-teal: 0 8px 20px rgba(13, 110, 110, 0.2);

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

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

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP INFO BAR ===== */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  padding: 8px 0;
  font-weight: 600;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left a { color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 6px; }
.top-bar-left a:hover { color: var(--accent-light); }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}
.top-bar-right a:hover { color: var(--accent-light); transform: translateY(-1px); }

/* ===== HEADER / NAVBAR ===== */
header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }

.logo-container { display: flex; align-items: center; gap: 14px; text-decoration: none; }
@media (max-width: 480px) {
  .logo-container { gap: 8px; }
  .logo-icon { width: 50px !important; height: 50px !important; }
  .logo-text h1 { font-size: 1.1rem !important; }
  .logo-text p { font-size: 0.6rem !important; }
}

.logo-icon {
  width: 95px; height: 95px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid var(--primary-pale);
  box-shadow: 0 4px 15px rgba(13,110,110,0.15);
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.logo-text h1 {
  font-size: 1.45rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.1;
  color: var(--primary-dark); font-family: 'Cinzel', serif;
  text-transform: uppercase; white-space: nowrap;
}
.logo-text p { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; line-height: 1; margin-top: 5px; white-space: nowrap; }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none !important; }
.nav-links li { list-style: none !important; }
.nav-links li a {
  font-family: var(--font-body); font-weight: 600; font-size: 0.76rem;
  color: var(--text); padding: 8px 6px; border-radius: 8px; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap;
}
.nav-links li a:hover { color: var(--primary); background: var(--primary-ultra-pale); }
.nav-links li a.active { color: var(--primary); background: var(--primary-pale); font-weight: 700; }
.nav-links li a::after { display: none; }

/* Affiliation Badge in Nav */
.nav-affiliation {
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 2px solid var(--primary);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; background: var(--white);
  min-width: 220px; box-shadow: var(--shadow-lg); border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); z-index: 100; padding: 8px; border: 1px solid var(--border);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  display: block; padding: 10px 14px; border-radius: 10px; font-size: 0.85rem;
  border-bottom: none; text-transform: none; letter-spacing: 0;
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { background: var(--primary-ultra-pale); color: var(--primary); padding-left: 14px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--primary); color: var(--white) !important;
  padding: 14px 34px; border-radius: 50px; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-teal); transition: var(--transition); border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(13,110,110,0.3); color: var(--white) !important; }
.btn-primary::after { display: none !important; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); padding: 12px 28px;
  border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--border); transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* ===== HERO CAROUSEL SECTION ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 750px;
  overflow: hidden;
}

.hero-carousel .carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-carousel .carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13,110,110,0.55) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 3;
}

.hero-carousel .carousel-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  z-index: 5;
  padding: 0 60px;
}

.hero-carousel .carousel-text {
  max-width: 700px;
  color: #fff;
}

.hero-carousel .carousel-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
  color: #fff;
}

.hero-carousel .carousel-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.92;
  max-width: 550px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-carousel .carousel-text .btn-primary {
  background: var(--primary);
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-arrow:hover { background: rgba(255,255,255,0.25); border-color: #fff; }
.carousel-arrow.prev { right: 30px; bottom: auto; top: calc(50% - 30px); }
.carousel-arrow.next { right: 30px; top: calc(50% + 30px); }

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 60px;
  z-index: 10;
  display: flex;
  gap: 10px;
}
.carousel-dots .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.6);
}
.carousel-dots .dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* Scalloped Edge */
.hero-carousel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 30'%3E%3Cpath fill='%23ffffff' d='M0,30 Q36,0 72,30 Q108,0 144,30 Q180,0 216,30 Q252,0 288,30 Q324,0 360,30 Q396,0 432,30 Q468,0 504,30 Q540,0 576,30 Q612,0 648,30 Q684,0 720,30 Q756,0 792,30 Q828,0 864,30 Q900,0 936,30 Q972,0 1008,30 Q1044,0 1080,30 Q1116,0 1152,30 Q1188,0 1224,30 Q1260,0 1296,30 Q1332,0 1368,30 Q1404,0 1440,30 L1440,30 L0,30 Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 72px 30px;
  z-index: 6;
}

/* ===== LEGACY HERO (keep for subpage compatibility) ===== */
.hero {
  min-height: calc(100vh - 80px); display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 60px 0 100px;
  background: var(--bg-gradient);
}

.hero-svg-decor {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}

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

.hero-left { position: relative; padding-right: 40px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--text);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero-badge-pin { color: var(--primary); font-size: 1rem; }

.hero-title {
  font-size: 3.5rem; font-weight: 900; line-height: 1.15;
  color: var(--text); margin-bottom: 20px; letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--primary); color: var(--white);
  padding: 0 12px; border-radius: 12px; display: inline-block;
  transform: rotate(-2deg); margin-right: 8px;
}

.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px;
  max-width: 480px; line-height: 1.6; font-weight: 500;
}

.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 0; }

.hero-stats {
  display: flex; gap: 32px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.hero-right { position: relative; display: flex; justify-content: center; align-items: flex-end; }

.hero-image-main {
  width: 100%; max-width: 550px;
  position: relative; z-index: 2;
}
.hero-image-main img { width: 100%; height: auto; object-fit: contain; }

.hero-float-card {
  position: absolute; background: rgba(255,255,255,0.95);
  border-radius: 50px; padding: 8px 20px 8px 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--white);
  display: flex; align-items: center; gap: 10px; z-index: 5;
  backdrop-filter: blur(10px);
  animation: gentleFloat 4s ease-in-out infinite;
}

.hero-float-card .float-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0; color: var(--white);
}

.bg-orange { background: #f97316; }
.bg-blue { background: #3b82f6; }
.bg-green { background: #10b981; }

.hero-float-card .float-text { font-size: 0.9rem; font-weight: 800; color: var(--text); }

.float-card-1 { top: 5%; right: -10px; animation: float 6s ease-in-out infinite; }
.float-card-2 { top: 45%; left: -20px; animation: float 5s ease-in-out infinite 1s; }
.float-card-3 { bottom: -5%; right: 5%; animation: float 7s ease-in-out infinite 2s; }

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-decor { position: absolute; border-radius: 50%; z-index: 0; }
.hero-decor-1 { width: 300px; height: 300px; background: rgba(255,255,255,0.4); top: -50px; right: -50px; opacity: 0.5; filter: blur(40px); }
.hero-decor-2 { width: 200px; height: 200px; background: rgba(13,110,110,0.15); bottom: 0; left: -100px; filter: blur(50px); }

.hero-logo-badge { display: none; }

/* ===== WHY US SECTION ===== */
.why-us-section {
  padding: 100px 0 80px;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(253,246,237,0.8), transparent 70%);
  pointer-events: none;
}

.why-us-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.why-us-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.why-us-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.why-us-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 400px;
}

.why-us-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
  position: relative;
  transition: var(--transition);
  cursor: default;
}

.why-us-circle:nth-child(1) { background: rgba(255, 200, 200, 0.35); margin-right: -30px; z-index: 1; }
.why-us-circle:nth-child(2) { background: rgba(200, 230, 200, 0.35); margin-right: -30px; z-index: 2; }
.why-us-circle:nth-child(3) { background: rgba(200, 220, 255, 0.35); margin-right: -30px; z-index: 3; }
.why-us-circle:nth-child(4) { background: rgba(220, 210, 255, 0.35); z-index: 4; }

.why-us-circle:hover { transform: scale(1.05); z-index: 10; }

.why-us-circle .circle-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  position: absolute;
  top: -15px;
}

.why-us-circle:nth-child(1) .circle-icon { background: rgba(255,150,150,0.5); color: #e74c3c; }
.why-us-circle:nth-child(2) .circle-icon { background: rgba(150,220,150,0.5); color: #27ae60; }
.why-us-circle:nth-child(3) .circle-icon { background: rgba(150,180,255,0.5); color: #2980b9; }
.why-us-circle:nth-child(4) .circle-icon { background: rgba(180,160,255,0.5); color: #8e44ad; }

.why-us-circle h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-style: italic;
}

.why-us-circle p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== CULTURAL ACTIVITIES SECTION ===== */
.cultural-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

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

.cultural-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.3;
}

.cultural-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.cultural-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.cultural-author-img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-pale);
}

.cultural-author-info h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 800;
}
.cultural-author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cultural-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.cultural-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
  transition: var(--transition);
}

.cultural-img-wrapper:nth-child(1) {
  grid-column: span 2;
  border-radius: 24px;
  max-height: 240px;
}

.cultural-img-wrapper:nth-child(2),
.cultural-img-wrapper:nth-child(3) {
  border-radius: 50%;
  aspect-ratio: 1;
  max-height: 200px;
}

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

.cultural-img-wrapper:hover img {
  transform: scale(1.08);
}

/* ===== FEATURES SECTION (Quick Icons) ===== */
.quick-icons {
  padding: 0; background: transparent; box-shadow: none; border: none;
  position: relative; z-index: 20; margin-top: -60px;
}

.features-heading {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  max-width: 650px;
  margin: 0 0 35px 0;
  line-height: 1.3;
  color: #111827;
  text-align: left;
  letter-spacing: -0.01em;
}

.quick-icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.quick-icon-item {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 24px; border-radius: 20px; background: var(--white);
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border);
}
.quick-icon-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-pale); }

.quick-icon-box {
  width: 48px; height: 48px; background: var(--primary-ultra-pale);
  color: var(--primary); border-radius: 12px;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.2rem; margin-bottom: 16px; transition: var(--transition);
}
.quick-icon-item:hover .quick-icon-box { background: var(--primary); color: var(--white); }
.quick-icon-item span { font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 6px; display: block; line-height: 1.3; }
.quick-icon-item p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0; font-weight: 500; }

/* ===== SECTIONS ===== */
.section-padding { padding: 100px 0; }
.bg-light { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-header h2 { font-size: 2.5rem; color: var(--text); margin-bottom: 14px; letter-spacing: -0.02em; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  font-size: 2.5rem; color: var(--text); margin-bottom: 14px; letter-spacing: -0.02em;
  position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px; background: var(--primary); border-radius: 2px;
}
.section-title p { color: var(--text-secondary); font-size: 1.05rem; max-width: 550px; margin: 12px auto 0; }

/* ===== ADMISSION BANNER ===== */
.admission-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 50px; color: var(--white); border-radius: var(--radius-xl); position: relative; overflow: hidden;
}
.admission-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.admission-content { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; z-index: 1; }
@media (min-width: 768px) { .admission-content { flex-direction: row; justify-content: space-between; text-align: left; } }
.admission-text h2 { font-size: 2rem; margin-bottom: 8px; font-weight: 800; }
.admission-text p { font-size: 1rem; opacity: 0.85; }

.btn-secondary {
  background: var(--white); color: var(--primary);
  padding: 14px 32px; font-size: 1rem; font-weight: 700;
  border-radius: 50px; transition: var(--transition); box-shadow: var(--shadow); white-space: nowrap;
}
.btn-secondary:hover { background: var(--accent); color: var(--white) !important; transform: translateY(-2px); }

/* ===== PRINCIPAL & NOTICE ===== */
.school-insights { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .school-insights { grid-template-columns: 5fr 3fr; } }

.principal-message {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 36px;
  display: flex; flex-direction: column; gap: 28px;
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .principal-message { flex-direction: row; } }
.principal-img { flex: 0 0 220px; }
.principal-img img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.principal-text h3 { font-size: 1.6rem; color: var(--text); margin-bottom: 4px; }
.principal-title { color: var(--primary); font-weight: 600; margin-bottom: 16px; display: inline-block; font-size: 0.9rem; }
.principal-text p { color: var(--text-secondary); margin-bottom: 12px; text-align: justify; font-size: 0.95rem; }
.quote-icon { font-size: 1.8rem; color: var(--primary-pale); margin-bottom: -12px; }

.notice-board {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden; height: 100%;
  display: flex; flex-direction: column; border: 1px solid var(--border);
}
.notice-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white);
  padding: 20px 24px; display: flex; align-items: center; gap: 12px;
}
.notice-header h3 { margin: 0; font-size: 1.2rem; }
.notice-body { padding: 20px; flex: 1; overflow: hidden; position: relative; }
.notice-list { animation: scrollUp 15s linear infinite; }
.notice-list:hover { animation-play-state: paused; }
.notice-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.notice-item:last-child { border-bottom: none; }
.notice-date {
  display: inline-block; background: var(--primary); color: var(--white);
  padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; margin-bottom: 6px;
}
.notice-item a { display: block; font-weight: 500; color: var(--text); font-size: 0.9rem; }
.notice-item a:hover { color: var(--primary); }
@keyframes scrollUp { 0% { transform: translateY(100%); } 100% { transform: translateY(-100%); } }

/* ===== HIGHLIGHTS / CARDS ===== */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 0; }

.highlight-card {
  background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition);
}
.highlight-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.highlight-img { height: 200px; overflow: hidden; position: relative; }
.highlight-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.highlight-card:hover .highlight-img img { transform: scale(1.06); }
.highlight-tag {
  position: absolute; top: 14px; right: 14px; background: var(--primary);
  color: var(--white); padding: 5px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; z-index: 2;
}
.highlight-content { padding: 24px; }
.highlight-content h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 8px; }
.highlight-content p { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.9rem; }

.read-more { color: var(--primary); font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; }
.read-more i { margin-left: 6px; transition: var(--transition); }
.read-more:hover i { transform: translateX(5px); }

/* ===== FACILITIES ===== */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.fac-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-xl);
  background: var(--white); border: 1px solid var(--border); transition: var(--transition);
}
.fac-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-teal); }
.fac-icon {
  width: 72px; height: 72px; background: var(--primary-ultra-pale);
  color: var(--primary); border-radius: 20px;
  display: flex; justify-content: center; align-items: center;
  font-size: 2rem; margin: 0 auto 18px; transition: var(--transition);
}
.fac-card:hover .fac-icon { background: var(--primary); color: var(--white); border-radius: 50%; }
.fac-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.fac-card:hover h3 { color: var(--primary); }
.fac-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; height: 200px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13,110,110,0.6), rgba(9,85,85,0.4));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  opacity: 0; transition: var(--transition);
  pointer-events: none; /* Make overlay click-through to the gallery-item */
}
.gallery-overlay i, .gallery-overlay span {
  pointer-events: none;
}
.gallery-item { cursor: pointer; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }
.gallery-btn-container { text-align: center; margin-top: 40px; }

/* ===== FOOTER ===== */
footer { background: #1a3a3a; color: #94a3b8; padding-top: 80px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h3 {
  color: var(--white); font-size: 1.15rem; margin-bottom: 24px;
  position: relative; padding-bottom: 12px;
  font-family: var(--font-heading);
}
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer-about p { margin-bottom: 20px; font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: var(--transition); font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { display: flex; align-items: center; font-size: 0.9rem; }
.footer-links ul li a i { margin-right: 8px; font-size: 0.7rem; color: var(--accent); }
.footer-links ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li { display: flex; margin-bottom: 14px; align-items: flex-start; font-size: 0.9rem; }
.footer-contact li i { color: var(--accent); font-size: 1rem; margin-right: 12px; margin-top: 4px; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 18px 0; text-align: center; font-size: 0.85rem; margin-top: 20px; }

/* ===== ACADEMIC PROGRAMS ===== */
.programs-section { padding: 80px 0; background: var(--bg); }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }

.prog-card {
  background: var(--white); border-radius: 20px; padding: 24px;
  position: relative; box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border-dark); display: flex; flex-direction: column; cursor: pointer;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--primary-pale); }
.prog-icon-cluster { display: flex; gap: 4px; margin-bottom: 24px; }
.prog-shape { width: 14px; height: 14px; }
.shape-circle { border-radius: 50%; background: #ef4444; }
.shape-triangle { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid #3b82f6; }
.shape-square { background: #f59e0b; border-radius: 2px; }

.prog-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.3; font-family: var(--font-body); }
.prog-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }
.prog-price { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

.prog-arrow {
  position: absolute; bottom: 20px; right: 20px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: var(--transition);
}
.prog-card:hover .prog-arrow { background: var(--accent); transform: translateX(4px); }

/* ===== SUBJECTS TITLE ===== */
.subjects-title { font-family: var(--font-heading); }

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
  padding: 80px 0 60px; text-align: center; color: var(--white);
  background: linear-gradient(135deg, #0f2828 0%, var(--primary-dark) 50%, var(--primary) 100%);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.page-header::after {
  content: ''; position: absolute; bottom: -40%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.03);
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 800; position: relative; z-index: 1; }
.page-header p { font-size: 1.05rem; opacity: 0.75; position: relative; z-index: 1; }

/* ===== BENTO BOX GRID (Core Learning Streams) ===== */
.bento-section {
  padding: 100px 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.bento-section::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,110,0.08), transparent 70%);
  pointer-events: none;
}

.bento-header { text-align: center; margin-bottom: 60px; }

.bento-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}

.bento-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--text);
  margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.15;
}

.bento-subtitle {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto; line-height: 1.7;
}

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

.bento-tile {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.bento-large { grid-column: span 2; }
.bento-medium { grid-column: span 1; }

.bento-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.bento-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(15,23,42,0.75) 100%);
  transition: background 0.4s ease;
}

.bento-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.bento-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; margin-bottom: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.bento-content h3 {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  margin-bottom: 6px; line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.bento-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
  line-height: 1.5; margin: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Hover effects */
.bento-tile:hover { box-shadow: var(--shadow-xl); border-color: var(--primary-pale); }
.bento-tile:hover .bento-bg { transform: scale(1.08); }
.bento-tile:hover .bento-overlay { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(15,23,42,0.88) 100%); }
.bento-tile:hover .bento-icon { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.bento-tile:hover .bento-desc { max-height: 80px; opacity: 1; margin-top: 8px; }

/* ===== BECOME A TEACHER / CTA BANNER ===== */
.cta-banner-section {
  padding: 80px 0;
  background: var(--bg);
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(212,167,83,0.3);
}

.cta-banner .btn-primary:hover {
  background: var(--accent-dark);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-teal);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0;
    width: 100%; background: var(--white); flex-direction: column;
    gap: 0; box-shadow: var(--shadow-lg); padding: 12px;
    border-radius: 0 0 16px 16px; border: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 12px 16px; border-radius: 10px; text-transform: none; }

  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--bg-section); padding: 4px 0 4px 16px; display: none; border: none; min-width: auto; }
  .dropdown.active .dropdown-menu { display: block; }

  .mobile-menu-btn { display: block; padding: 10px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { margin: 0 auto 30px; font-size: 1.05rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; margin-top: 10px; }
  .hero-right { display: none; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero-left { display: flex; flex-direction: column; align-items: center; padding-right: 0; }

  .section-header h2, .section-title h2 { font-size: 2rem; }
  .page-header h1 { font-size: 2rem; }
  .quick-icons { margin-top: 0; border-radius: 0; }

  /* Hero Carousel tablet */
  .hero-carousel { height: 60vh; min-height: 400px; }
  .hero-carousel .carousel-content { padding: 0 30px; }
  .carousel-arrow.prev, .carousel-arrow.next { right: 15px; }
  .carousel-dots { left: 30px; }

  /* Why us */
  .why-us-grid { gap: 15px; margin-top: 20px; }
  .why-us-circle { width: 180px; height: 180px; padding: 20px 15px; margin-right: 0 !important; }
  .why-us-circle h3 { font-size: 1rem; }
  .why-us-circle p { font-size: 0.75rem; }

  /* Cultural */
  .cultural-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Bento Grid tablet */
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .bento-large { grid-column: span 2; }
  .bento-medium { grid-column: span 1; }

  /* Top bar */
  .top-bar { display: none; }

  .nav-affiliation { display: none; }

  .logo-icon { width: 65px; height: 65px; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .admission-banner { padding: 30px 20px; text-align: center; }
  .admission-text h2 { font-size: 1.6rem; }
  .btn-secondary { width: 100%; display: block; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .school-insights { grid-template-columns: 1fr; }
  .principal-message { flex-direction: column; text-align: center; align-items: center; padding: 24px; }
  .principal-img { flex: 0 0 auto; width: 160px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-col h3 { margin-bottom: 15px; }

  /* Why us phone */
  .why-us-grid { flex-direction: column; gap: 20px; min-height: auto; align-items: center; }
  .why-us-circle { margin-right: 0 !important; width: 220px; height: 220px; }

  /* Bento Grid phone */
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento-large, .bento-medium { grid-column: span 1; }
  .bento-desc { max-height: 60px; opacity: 1; margin-top: 6px; }
  .bento-section { padding: 60px 0; }

  /* Cultural phone */
  .cultural-section { padding: 60px 0; }
  .cultural-img-wrapper:nth-child(2),
  .cultural-img-wrapper:nth-child(3) { max-height: 160px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; gap: 20px; width: 100%; border-top: none; }
  .hero-title { font-size: 2.2rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .fac-grid { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .notice-board { border-radius: 16px; }

  /* Hero carousel phone */
  .hero-carousel { height: 50vh; min-height: 350px; }
  .hero-carousel .carousel-content { padding: 0 20px; }
  .hero-carousel .carousel-text h1 { font-size: 1.8rem; }
  .hero-carousel .carousel-text p { font-size: 0.95rem; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .carousel-dots { left: 20px; bottom: 20px; }
  .carousel-dots .dot { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .logo-text h1 { font-size: 1.2rem; }
  .logo-text p { font-size: 0.65rem; }
  .logo-icon { width: 55px; height: 55px; }
  .btn-primary { width: 100%; }
  .page-header h1 { font-size: 1.6rem; }
  .bento-grid { grid-auto-rows: 200px; }

  .hero-carousel { height: 45vh; min-height: 300px; }
}

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