/* 
   Bright Future Classes (BFC) Indore
   Official Stylesheet
   Designed with Navy Blue (#1a237e) and Gold (#FFD700)
*/

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

/* ==========================================================================
   1. Design Tokens & Root Variables
   ========================================================================== */
:root {
  --navy: #1a237e;
  --navy-light: #283593;
  --navy-dark: #0d1242;
  --navy-ultra-light: rgba(26, 35, 126, 0.05);
  --gold: #FFD700;
  --gold-dark: #FFC107;
  --gold-light: #ffe57f;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-mid: #e9ecef;
  --text-dark: #212121;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(26, 35, 126, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

/* ==========================================================================
   2. Core Reset & Typography
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   3. Keyframe Animations
   ========================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================================================
   4. Page Loader & Global Elements
   ========================================================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--navy-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 215, 0, 0.2);
  border-top: 5px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loader-text {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  animation: float 2s ease-in-out infinite;
}

/* ==========================================================================
   5. Navbar Styles (Header)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-cta {
  margin-right: 0px;
  transform: translateY(-2px);
}

header.sticky {
  box-shadow: var(--shadow-md);
}

header.sticky .navbar {
  padding: 10px 0;
}

/* Logo brand mark & animations */
.logo-container {
  position: relative;
  width: 220px;
  height: 55px;
  display: block;
}

.logo-original {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: logoLoop 8s infinite ease-in-out;
}

.logo-original img {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-original span {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-text-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text-reveal span {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  opacity: 0;
  display: inline-block;
}

.logo-text-reveal .word-bright {
  color: var(--gold);
  animation: wordBrightLoop 8s infinite ease-in-out;
}

.logo-text-reveal .word-future {
  color: var(--white);
  animation: wordFutureLoop 8s infinite ease-in-out;
}

.logo-text-reveal .word-classes {
  color: var(--gold);
  animation: wordClassesLoop 8s infinite ease-in-out;
}

@keyframes logoLoop {
  0%, 35% {
    opacity: 1;
    visibility: visible;
  }
  40%, 85% {
    opacity: 0;
    visibility: hidden;
  }
  90%, 100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes wordBrightLoop {
  0%, 35% {
    opacity: 0;
    transform: translateY(15px);
  }
  38%, 85% {
    opacity: 1;
    transform: translateY(0);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes wordFutureLoop {
  0%, 38% {
    opacity: 0;
    transform: translateY(15px);
  }
  41%, 85% {
    opacity: 1;
    transform: translateY(0);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

@keyframes wordClassesLoop {
  0%, 41% {
    opacity: 0;
    transform: translateY(15px);
  }
  44%, 85% {
    opacity: 1;
    transform: translateY(0);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

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

.nav-links a {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

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

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

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

.btn-navy {
  background-color: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--navy-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(32, 186, 90, 0.5);
}

/* Hamburger menu button */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--white);
}

/* ==========================================================================
   6. Hero & Banners Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(13, 18, 66, 0.82), rgba(13, 18, 66, 0.82)), url('../images/bfc_home_page_bgi.png') no-repeat center center/cover;
  padding: 180px 0 100px 0;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

/* Subtle background network grid pattern */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
}

.hero-headline {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hero-subheadline {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.hero-body {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  display: inline-block;
  text-align: left;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Page-specific Hero Banner styling */
.page-banner {
  width: 100%;
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  text-align: center;
  position: relative;
  color: #ffffff;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 28, 61, 0.6);
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.about-banner {
  background-image: linear-gradient(rgba(11, 28, 61, 0.75), rgba(11, 28, 61, 0.75)), url('../images/about_hero_bg_v2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.courses-banner {
  background-image: linear-gradient(rgba(11, 28, 61, 0.75), rgba(11, 28, 61, 0.75)), url('../images/courses_hero_bg_v2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.results-banner {
  background-image: linear-gradient(rgba(11, 28, 61, 0.75), rgba(11, 28, 61, 0.75)), url('../images/results_hero_bg_v3.png') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.contact-banner {
  background-image: linear-gradient(rgba(11, 28, 61, 0.75), rgba(11, 28, 61, 0.75)), url('../images/contact_hero_bg_v2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.location-banner {
  background-image: linear-gradient(rgba(11, 28, 61, 0.75), rgba(11, 28, 61, 0.75)), url('../images/contact_hero_bg_v2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.demo-banner {
  background-image: linear-gradient(rgba(11, 28, 61, 0.75), rgba(11, 28, 61, 0.75)), url('../images/demo_hero_bg_v2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
}

.page-banner h1 {
  font-size: 2.8rem;
  color: var(--white);
}

.page-banner.gold-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
}

.page-banner.gold-banner h1 {
  color: var(--navy-dark);
  text-shadow: none;
}

.page-banner .breadcrumb {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.page-banner.gold-banner .breadcrumb {
  color: rgba(26, 35, 126, 0.8);
}

.page-banner .breadcrumb a {
  color: var(--gold);
}

.page-banner.gold-banner .breadcrumb a {
  color: var(--navy-dark);
  font-weight: bold;
}

/* ==========================================================================
   7. Stats Strip Section
   ========================================================================== */
.stats-strip {
  background-color: var(--gold);
  padding: 30px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
  margin-top: -30px;
  border-radius: var(--border-radius-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}

.stat-item {
  border-right: 1px solid rgba(26, 35, 126, 0.2);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

/* ==========================================================================
   8. Section Headers & Cards
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--gold);
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Navy Boarded Cards */
.navy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.navy-card {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--border-radius-md);
  padding: 35px 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--navy);
  transition: var(--transition);
}

.navy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.navy-card:hover::before {
  background-color: var(--gold);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--navy-ultra-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: var(--navy);
  transition: var(--transition);
}

.navy-card:hover .card-icon {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.navy-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  font-weight: 700;
}

.navy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   9. Courses Preview Section
   ========================================================================== */
.courses-section {
  background-color: var(--gray-light);
}

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

.course-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-mid);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.course-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--gold);
  color: var(--navy-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.course-content {
  padding: 25px;
}

.course-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.course-tag {
  background-color: var(--navy-ultra-light);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-footer .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.view-all-container {
  text-align: center;
}

/* ==========================================================================
   10. Toppers Strip Section (Index Page)
   ========================================================================== */
.toppers-strip-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 50px 0;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.toppers-strip-section .section-header h2 {
  color: var(--white);
}

.toppers-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
}

.toppers-marquee {
  display: flex;
  gap: 20px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

/* Duplicate marquee for continuous infinite loop */
.toppers-marquee:hover {
  animation-play-state: paused;
}

.topper-strip-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--gold);
  border-radius: var(--border-radius-sm);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.topper-strip-badge {
  background-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-glow);
}

.topper-strip-info {
  display: flex;
  flex-direction: column;
}

.topper-strip-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.topper-strip-percent {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   11. Results Page Elements
   ========================================================================== */
.topper-highlight {
  margin-bottom: 60px;
}

.highlight-card {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
  overflow: hidden;
  align-items: center;
}

.highlight-img-container {
  position: relative;
  height: 100%;
  min-height: 350px;
  background: linear-gradient(rgba(13, 18, 66, 0.2), rgba(13, 18, 66, 0.2)), url('../images/congrats_bg_v2.png') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.highlight-img-container img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  position: relative;
}

.highlight-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 3;
}

.highlight-info {
  padding: 40px;
}

.highlight-info h3 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  color: var(--navy);
}

.highlight-meta {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.highlight-quote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--gold);
  padding-left: 15px;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* Badge Color Coded Cards for Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.result-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-mid);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.result-photo-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 15px auto;
}

.result-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: block;
  transition: var(--transition);
}

.result-card:hover .result-photo {
  transform: scale(1.05);
}

.badge-seal {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  z-index: 2;
}

.result-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.result-percent {
  font-weight: 800;
  font-size: 1.25rem;
}

/* Color Coding definitions */
.gold-badge {
  border-top: 5px solid var(--gold);
}
.gold-badge .badge-seal {
  background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  color: #1a237e;
}
.gold-badge .result-percent {
  color: #FFA000;
}
.gold-badge .result-photo {
  border: 3px solid var(--gold);
}

.silver-badge {
  border-top: 5px solid #C0C0C0;
}
.silver-badge .badge-seal {
  background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%);
  color: #212121;
}
.silver-badge .result-percent {
  color: #757575;
}
.silver-badge .result-photo {
  border: 3px solid #C0C0C0;
}

.bronze-badge {
  border-top: 5px solid #CD7F32;
}
.bronze-badge .badge-seal {
  background: linear-gradient(135deg, #FFAB91 0%, #D84315 100%);
  color: var(--white);
}
.bronze-badge .result-percent {
  color: #D84315;
}
.bronze-badge .result-photo {
  border: 3px solid #CD7F32;
}

.blue-badge {
  border-top: 5px solid var(--navy-light);
}
.blue-badge .badge-seal {
  background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
  color: var(--white);
}
.blue-badge .result-percent {
  color: #1565c0;
}
.blue-badge .result-photo {
  border: 3px solid var(--navy-light);
}

/* ==========================================================================
   12. Testimonials Section
   ========================================================================== */
.testimonials-section {
  background-color: var(--gray-light);
}

.testimonial-banner {
  background-color: var(--navy);
  color: var(--white);
  padding: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 50px;
  box-shadow: var(--shadow-sm);
}

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

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 35px 25px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 25px;
  flex-grow: 1;
}

.testimonial-rating {
  color: var(--gold-dark);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--gray-mid);
  padding-top: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--navy-ultra-light);
  color: var(--navy);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   13. About Page Specific Elements
   ========================================================================== */
.director-section {
  background-color: var(--white);
}

.director-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
  align-items: center;
}

.director-img-wrapper {
  background-color: var(--navy-ultra-light);
  border-radius: var(--border-radius-lg);
  padding: 15px;
  border: 2px dashed var(--gold);
}

.director-img-wrapper img {
  border-radius: var(--border-radius-md);
  width: 100%;
}

.director-content h2 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.director-title {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.director-qualifications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.qualification-item {
  background-color: var(--gray-light);
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  border-left: 3.5px solid var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.director-bio {
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Core Values Section */
.core-values {
  background-color: var(--gray-light);
}

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

.value-card {
  background-color: var(--white);
  padding: 25px 15px;
  text-align: center;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1.5px solid var(--navy-ultra-light);
}

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

.value-icon {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 15px;
}

.value-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

/* Our Promise Grid */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.promise-card {
  background-color: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--border-radius-md);
  padding: 30px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.promise-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.promise-check {
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.promise-content h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.promise-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Two Branches Section */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.branch-card {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.branch-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--gray-mid);
  padding-bottom: 15px;
}

.branch-icon {
  font-size: 2rem;
  color: var(--gold-dark);
}

.branch-header h3 {
  font-size: 1.4rem;
}

.branch-info-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.branch-info-row i {
  color: var(--navy-light);
  margin-top: 5px;
}

.branch-info-row p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* ==========================================================================
   14. Courses Page Elements
   ========================================================================== */
.courses-wing-section {
  margin-bottom: 60px;
}

.wing-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--navy-ultra-light);
  overflow: hidden;
  align-items: center;
}

.wing-grid.reverse {
  grid-template-columns: 4fr 6fr;
}

.wing-content {
  padding: 50px;
}

.wing-tag {
  background-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 15px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 20px;
}

.wing-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.wing-desc {
  color: var(--text-muted);
  margin-bottom: 25px;
}

.wing-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.wing-detail-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 5px;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

.wing-detail-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.wing-img-container {
  height: 100%;
  min-height: 400px;
  position: relative;
}

.wing-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

/* Summer Batch Section Style */
.summer-batch-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.summer-batch-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 215, 0, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.summer-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.summer-content h2 {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  color: var(--gold);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.summer-subtext {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--white);
}

.summer-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.summer-tag {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.summer-extra {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--gold);
  padding-left: 15px;
}

/* Home Tuition Card */
.home-tuition-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}

.home-tuition-section h2 {
  color: var(--navy-dark);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.home-tuition-section p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1.5px solid var(--gray-mid);
}

.feature-box:hover {
  border-color: var(--navy);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-box i {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 15px;
}

.feature-box h4 {
  font-size: 1.05rem;
  color: var(--navy);
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

/* Make charity feature standout */
.feature-box.charity-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: var(--navy-dark);
}

.feature-box.charity-box i {
  color: var(--gold);
}

.feature-box.charity-box h4 {
  color: var(--gold);
}

/* ==========================================================================
   15. Contact Page Specific Elements
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-form-wrapper {
  background-color: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-form-wrapper p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--gray-mid);
  background-color: var(--gray-light);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
  box-shadow: 0 0 0 4px var(--navy-ultra-light);
}

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

/* Info Cards side */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 25px 30px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--navy-ultra-light);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-card-icon {
  width: 50px;
  height: 50px;
  background-color: var(--navy-ultra-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  color: var(--navy);
  flex-shrink: 0;
}

.info-card-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.info-card-details p,
.info-card-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-card-details a:hover {
  color: var(--navy);
}

/* Map placeholder wrapper */
.map-section {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  border: 2px solid var(--navy);
}

.map-section iframe {
  display: block;
}

/* ==========================================================================
   16. Success Feedback Modal
   ========================================================================== */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 18, 66, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold);
  transform: scale(0.8);
  transition: var(--transition);
}

.success-modal.show .success-modal-content {
  transform: scale(1);
}

.success-modal-icon {
  width: 70px;
  height: 70px;
  background-color: var(--gold);
  color: var(--navy);
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px var(--gold-glow);
}

.success-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.success-modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.redirect-dots {
  display: inline-block;
  font-weight: bold;
}

/* ==========================================================================
   17. Footer Section
   ========================================================================== */
footer {
  background-color: var(--navy-dark);
  color: var(--white);
  padding: 70px 0 20px 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 3fr 3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-tagline {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.footer-links h4,
.footer-contact h4,
.footer-branches h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-branches h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--gold);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

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

.footer-contact i {
  color: var(--gold);
  margin-top: 4px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-branches li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.footer-branches li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-branches strong {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ==========================================================================
   18. Sticky Floating Buttons (WhatsApp & Scroll Top)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

.scroll-top-btn {
  position: fixed;
  bottom: 105px;
  right: 35px;
  background-color: var(--navy);
  color: var(--gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  border: 2.5px solid var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-5px);
}

/* Sticky Mobile Action Bar Layout */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--navy-dark); /* Navy blue background as the navbar */
  border-top: 3px solid #000000; /* Thick black top border */
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  grid-template-columns: 1fr 1.4fr 1fr; /* Center capsule column gets slightly more space */
  padding: 8px 10px;
  align-items: center;
  box-sizing: border-box;
}

.mobile-action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: var(--transition);
}

/* Sidebar Buttons: Find Us and Call BFC */
.mobile-action-bar .mobile-action-btn-location,
.mobile-action-bar .mobile-action-btn-call {
  color: var(--white) !important;
  background-color: transparent;
  padding: 6px 0;
}

.mobile-action-bar .mobile-action-btn-location i,
.mobile-action-bar .mobile-action-btn-call i {
  font-size: 1.15rem;
  color: var(--white);
}

.mobile-action-bar .mobile-action-btn-location:hover,
.mobile-action-bar .mobile-action-btn-call:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
}

/* Center Capsule Demo Button */
.mobile-action-bar .mobile-action-btn-demo {
  background-color: var(--gold); /* Yellow background */
  color: var(--navy-dark) !important; /* Navy text */
  border-radius: 50px; /* Capsule pill shape */
  padding: 10px 14px;
  flex-direction: row; /* Horizontal text and icon */
  gap: 6px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  justify-content: center;
}

.mobile-action-bar .mobile-action-btn-demo i {
  font-size: 1rem;
  color: var(--navy-dark);
}

.mobile-action-bar .mobile-action-btn-demo:hover {
  background-color: var(--gold-light);
  transform: translateY(-1px);
}

.mobile-action-bar .mobile-action-btn-demo.active {
  background-color: var(--gold-dark);
}

.mobile-action-bar .mobile-action-btn-location.active {
  color: var(--gold) !important;
}

.mobile-action-bar .mobile-action-btn-location.active i {
  color: var(--gold) !important;
}

.nav-links .nav-link-cta {
  display: none;
}

/* ==========================================================================
   19. Responsive Layouts & Breakpoints
   ========================================================================== */

/* Tablet & Large Mobile Views */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hide-on-mobile {
    display: none !important;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 18, 66, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-left: 2px solid var(--gold);
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    padding: 100px 30px 40px 30px !important;
    gap: 20px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    width: 100%;
    display: block;
  }
  
  .nav-links .nav-link-cta {
    display: block !important;
    background-color: var(--gold);
    color: var(--navy-dark) !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    border-bottom: none;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-headline {
    font-size: 2.2rem;
    white-space: normal;
  }
  
  .hero-subheadline {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .stat-item {
    border-right: none;
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(26, 35, 126, 0.2);
  }
  
  .navy-card-grid,
  .course-grid,
  .testimonial-grid,
  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .highlight-card {
    grid-template-columns: 1fr;
  }
  
  .highlight-img-container {
    height: 350px;
  }
  
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .director-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .director-img-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .wing-grid,
  .wing-grid.reverse {
    grid-template-columns: 1fr;
  }
  
  .wing-img-container {
    height: 300px;
    order: -1;
  }
  
  .summer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile Views */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  
  body {
    padding-bottom: 75px !important;
  }
  
  .logo-container {
    width: 160px !important;
    height: 45px !important;
  }
  
  .logo-original img {
    height: 40px !important;
    width: 40px !important;
  }
  
  .logo-original span {
    font-size: 1.1rem !important;
  }
  
  .logo-text-reveal span {
    font-size: 1.1rem !important;
  }
  
  .page-banner {
    padding: 110px 15px 40px 15px !important;
  }
  
  .page-banner h1 {
    font-size: 2rem !important;
  }
  
  .hero-section {
    padding: 140px 0 60px 0 !important;
  }
  
  .hero-headline {
    font-size: 1.8rem;
    white-space: normal;
  }
  
  .hero-subheadline {
    font-size: 1.25rem;
  }
  
  .hero-body {
    font-size: 1rem;
    padding-left: 10px;
    border-left: 2px solid var(--gold);
    margin-bottom: 25px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(26, 35, 126, 0.15);
    padding-bottom: 15px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .navy-card-grid,
  .course-grid,
  .testimonial-grid,
  .promise-grid,
  .branches-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .whatsapp-float {
    bottom: 75px !important;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .scroll-top-btn {
    bottom: 135px !important;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .mobile-action-bar {
    display: grid !important;
  }
  body {
    padding-bottom: 60px !important;
  }
}

/* ==========================================================================
   13. Gallery Sections (Abrar Sir Gallery & Farewell Gallery)
   ========================================================================== */
.abrar-sir-gallery-section {
  background-color: var(--white);
  padding: 80px 0;
}

.abrar-sir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.abrar-sir-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: var(--white);
  padding: 10px;
  border: 1px solid var(--gray-mid);
}

.abrar-sir-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: calc(var(--border-radius-md) - 5px);
  display: block;
  transition: var(--transition);
}

.abrar-sir-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.abrar-sir-card:hover img {
  transform: scale(1.03);
}

/* Farewell Section Styles */
.farewell-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #10164f 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--gold);
}

.farewell-section .section-header h2 {
  color: var(--gold);
}

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

.farewell-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--gold);
  outline: 1px solid rgba(255, 215, 0, 0.3);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
}

.farewell-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: calc(var(--border-radius-md) - 8px);
  display: block;
  transition: var(--transition);
}

.farewell-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
  border-color: #ffe57f;
}

.farewell-card:hover img {
  filter: brightness(1.05);
}

@media (max-width: 992px) {
  .abrar-sir-grid,
  .farewell-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .abrar-sir-grid,
  .farewell-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .abrar-sir-card img {
    height: 300px;
  }
  .farewell-card img {
    height: 220px;
  }
}

/* Split layout for single branch locations page */
.location-split-container {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--navy);
  margin-top: 40px;
}

.location-split-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-split-map {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-mid);
  height: 380px;
}

/* Center single branch card */
.branch-card-centered {
  margin: 0 auto !important;
  max-width: 600px;
}

@media (max-width: 992px) {
  .location-split-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px;
  }
  .location-split-map {
    height: 300px;
  }
}
