/* 
   BCM Convent School - Premium Styling
   Colors: Royal Blue (#0F4C81), Gold (#D4AF37), White (#FFFFFF), Dark Gray (#2C2C2C)
   Fonts: Poppins, Montserrat, Inter
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --primary: #0F4C81;
  --primary-dark: #0a3559;
  --primary-light: #1866a8;
  --secondary: #D4AF37;
  --secondary-dark: #b89324;
  --secondary-light: #f5d96e;
  --text: #2C2C2C;
  --text-light: #5c5c5c;
  --text-muted: #888888;
  --bg-light: #f4f8fc;
  --bg-gradient: linear-gradient(135deg, #f0f7fc 0%, #e6f0fa 100%);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
  --shadow-hover: 0 20px 40px rgba(15, 76, 129, 0.15);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

/* --- RESET & GENERAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

h2.section-title-left::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(15, 76, 129, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

header.sticky {
  height: 70px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 5px 20px rgba(15, 76, 129, 0.06);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: var(--transition);
}

header.sticky .logo-img {
  width: 42px;
  height: 42px;
}

.logo-text h1 {
  font-size: 1.3rem;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: var(--secondary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}

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

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

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

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 3px;
}

/* --- HOME HERO SECTION --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(15, 76, 129, 0.4) 0%, rgba(10, 52, 89, 0.9) 100%), 
              url('../assets/hero-real.jpg') center/cover no-repeat;
  margin-top: 0;
  padding-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 52, 89, 0.3) 0%, rgba(10, 52, 89, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 750px;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

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

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- SUBPAGE HERO BANNER --- */
.subpage-hero {
  position: relative;
  padding: 120px 0 60px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/hero-real.jpg') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
}

.subpage-title {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 10px;
}

.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--secondary);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* --- WELCOME / ABOUT INTRO --- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.welcome-text h3 {
  color: var(--secondary-dark);
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-text .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.welcome-img-wrapper {
  position: relative;
}

.welcome-img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
  border: 4px solid var(--white);
}

.welcome-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  border-left: 5px solid var(--secondary);
  z-index: 10;
}

.welcome-img-badge .years {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--secondary);
}

.welcome-img-badge .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- WHY CHOOSE US --- */
.why-choose-us {
  background: var(--bg-gradient);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.premium-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.4);
  background: var(--white);
}

.card-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(15, 76, 129, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
  color: var(--primary);
}

.premium-card:hover .card-icon-wrapper {
  background: var(--primary);
  color: var(--white);
  transform: rotateY(360deg);
}

.card-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.premium-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.premium-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- STATISTICS COUNTER SECTION --- */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.stats-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 5px;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- TESTIMONIALS SLIDER --- */
.testimonials-section {
  background: var(--white);
}

.testimonials-slider-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-text::before {
  content: '“';
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  color: rgba(15, 76, 129, 0.1);
  position: absolute;
  top: -30px;
  left: -20px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-info h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--secondary-dark);
  font-weight: 600;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.slider-btn {
  background: var(--white);
  border: 1px solid rgba(15, 76, 129, 0.15);
  color: var(--primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 25px;
  border-radius: 5px;
}

/* --- FAQ SECTION --- */
.faq-section {
  background: var(--bg-gradient);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius-sm);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(15, 76, 129, 0.05);
}

.faq-item:hover {
  border-color: rgba(15, 76, 129, 0.15);
}

.faq-header {
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0;
}

.faq-icon-wrapper {
  color: var(--primary);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.faq-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-light);
}

.faq-content-inner {
  padding: 25px 30px;
  border-top: 1px solid rgba(15, 76, 129, 0.05);
}

.faq-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- CALL TO ACTION --- */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at center, rgba(15, 76, 129, 0.8) 0%, rgba(10, 52, 89, 0.95) 100%), 
              url('../assets/hero-real.jpg') center/cover no-repeat;
  color: var(--white);
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-container h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta-container h2 span {
  color: var(--secondary);
}

.cta-container p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 35px;
}

/* --- ABOUT PAGE SPECIFICS --- */
.history-section {
  background: var(--white);
}

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

.history-details p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.highlight-box {
  background: var(--bg-light);
  border-left: 4px solid var(--secondary);
  padding: 20px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-top: 25px;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--primary-dark);
}

.history-visual {
  position: relative;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.history-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-badge-inset {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 15px 25px;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.history-badge-inset span {
  display: block;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
}

/* Vision / Mission Section */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vision-card, .mission-card {
  padding: 50px 40px;
  border-radius: var(--border-radius);
  color: var(--white);
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.vision-card {
  background: linear-gradient(135deg, #0f4c81 0%, #1765a6 100%);
  border-bottom: 6px solid var(--secondary);
}

.mission-card {
  background: linear-gradient(135deg, #0a3559 0%, #0f4c81 100%);
  border-bottom: 6px solid var(--secondary-light);
}

.vision-card h3, .mission-card h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vision-card p, .mission-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.mission-list {
  margin-top: 15px;
}

.mission-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.mission-list svg {
  color: var(--secondary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Values Section */
.values-section {
  background: var(--bg-gradient);
}

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

.value-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

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

.value-card h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Principal Section */
.principal-section {
  background: var(--white);
}

.principal-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.principal-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--white);
}

.principal-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.principal-title-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 30px 20px 20px 20px;
  color: var(--white);
}

.principal-title-box h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.principal-title-box span {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.principal-message blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
  margin-bottom: 25px;
  font-weight: 500;
}

.principal-message p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- ACADEMICS PAGE SPECIFICS --- */
.academic-excellence-section {
  background: var(--white);
}

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

.academic-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(15, 76, 129, 0.05);
}

.academic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.3);
}

.academic-card-header {
  background: var(--primary);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.academic-card:nth-child(even) .academic-card-header {
  background: var(--primary-dark);
}

.academic-card-header h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
}

.academic-card-header span {
  font-size: 0.8rem;
  color: var(--secondary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.academic-card-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.academic-card-body {
  padding: 30px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.academic-card-body p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.academic-features {
  list-style: none;
  margin-bottom: 20px;
}

.academic-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.academic-features svg {
  color: var(--secondary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Learning Approach */
.approach-section {
  background: var(--bg-gradient);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.approach-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.approach-item {
  background: var(--white);
  padding: 25px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
}

.approach-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.approach-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.approach-visual img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Facilities Section */
.facilities-section {
  background: var(--white);
}

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

.facility-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(15, 76, 129, 0.05);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 76, 129, 0.15);
}

.facility-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.facility-info {
  padding: 25px;
}

.facility-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.facility-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- GALLERY PAGE SPECIFICS --- */
.gallery-section {
  background: var(--white);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-light);
  color: var(--primary-dark);
  border: 1px solid rgba(15, 76, 129, 0.1);
  padding: 10px 22px;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 76, 129, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: var(--white);
}

.gallery-item-overlay h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 5px;
  transform: translateY(15px);
  transition: var(--transition);
}

.gallery-item-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--secondary-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(15px);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

.gallery-item:hover .gallery-item-overlay h4,
.gallery-item:hover .gallery-item-overlay span {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 52, 89, 0.95);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-dark);
  border: 4px solid var(--white);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  outline: none;
}

.lightbox-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  outline: none;
  padding: 10px;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-nav:hover {
  color: var(--secondary);
}

/* --- CONTACT PAGE SPECIFICS --- */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--primary);
}

.contact-info-card h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 25px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-detail-item:last-child {
  margin-bottom: 0;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: rgba(15, 76, 129, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
}

.contact-detail-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.contact-detail-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form-container {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 45px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(15, 76, 129, 0.06);
}

.contact-form-container h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.contact-form-container > p {
  font-size: 0.95rem;
  margin-bottom: 30px;
}

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

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

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid rgba(15, 76, 129, 0.15);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Map Section */
.map-section {
  padding: 0;
  height: 450px;
  position: relative;
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- FOOTER --- */
footer {
  background: #092c4b;
  color: var(--white);
  padding: 80px 0 30px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo h3 {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.2;
}

.footer-logo span {
  color: var(--secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-links svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

/* --- FLOATING & OVERLAY COMPONENTS --- */

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-dark);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Admission Enquiry Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 52, 89, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--white);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 550px;
  box-shadow: var(--shadow-dark);
  overflow: hidden;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 30px;
  text-align: center;
  position: relative;
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.modal-header p {
  color: var(--secondary-light);
  font-size: 0.9rem;
  margin-bottom: 0;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 35px 30px;
}

/* Animations */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
  h2 {
    font-size: 1.9rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .academics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Portrait / Landscape (768px and down) */
@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  /* Mobile Menu Toggle */
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 0;
    gap: 25px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .header-cta {
    display: none; /* Hide header CTA on mobile */
  }
  
  /* Welcome Grid */
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .welcome-img-wrapper {
    margin-left: 20px;
    margin-top: 20px;
  }
  
  /* History Grid */
  .history-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .history-visual {
    height: 300px;
  }
  
  /* Vision/Mission Grid */
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
  
  /* Values Grid */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Principal Grid */
  .principal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .principal-image {
    height: 350px;
  }
  
  /* Approach Grid */
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .approach-list {
    grid-template-columns: 1fr;
  }
  
  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .lightbox-prev {
    left: 20px;
  }
  
  .lightbox-next {
    right: 20px;
  }
  
  .lightbox-nav {
    font-size: 2.2rem;
  }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .academics-grid {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 25px 20px;
  }
  
  .testimonial-slide {
    padding: 20px;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
}

/* --- MOBILE QUICK ACTION BOTTOM BAR --- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: var(--white);
  border-top: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}

.mobile-action-bar .action-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--primary);
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-action-bar .action-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.mobile-action-bar .action-item:active {
  background: rgba(15, 76, 129, 0.05);
}

/* Enquire Highlight Item */
.mobile-action-bar .action-item.admission-trigger {
  color: var(--secondary-dark);
}

.mobile-action-bar .action-item.admission-trigger svg {
  stroke: var(--secondary-dark);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 65px; /* Prevent bottom bar overlapping content */
  }
  
  .mobile-action-bar {
    display: flex;
  }
  
  .whatsapp-float {
    bottom: 80px; /* Shift up so it doesn't overlap action bar */
  }
  
  .back-to-top {
    bottom: 150px; /* Shift up so it doesn't overlap WhatsApp */
  }
}
