/* ============================================================
   Gmind Institute — Main Stylesheet
   Mobile-first, fully responsive, pure CSS
   ============================================================ */

/* ------------------------------------------------------------
   0. Font Notice
   Fonts are loaded via <link> in header.php for better performance.
   No @import here — avoids duplicate downloads.
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   1. CSS Reset & Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent images and iframes from causing horizontal overflow */
img, iframe, video, embed, object {
  max-width: 100%;
  height: auto;
}

/* Prevent any element from causing horizontal overflow - scoped to body children */
body > * {
  max-width: 100%;
  overflow-x: hidden;
}

/* BUT: allow main-nav to show dropdown submenu (overflow must be visible) */
.main-nav {
  overflow: visible;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent horizontal overflow on mobile */
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: #333333;
  background-color: #f4f7fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent horizontal overflow on mobile */
  max-width: 100%;
  width: 100%;
}

/* Hindi language override — better Devanagari rendering */
html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  line-height: 1.85;  /* Slightly more line-height for Devanagari */
}
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5,
html[lang="hi"] h6 {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  line-height: 1.4;
}

/* Language Toggle Styles */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
  color: #fff;
  text-decoration: none;
}
.lang-toggle-flag {
  font-size: 16px;
  line-height: 1;
}

/* Header nav area lang toggle */
.nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1a5e, #4A6CF7);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(74,108,247,0.25);
}
.nav-lang-toggle:hover {
  background: linear-gradient(135deg, #2a2a7e, #5B7DF8);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(74,108,247,0.35);
  color: #fff;
  text-decoration: none;
}

/* Mobile nav — show lang toggle in mobile menu */
@media (max-width: 992px) {
  .nav-lang-toggle {
    display: inline-flex;
    padding: 8px 18px;
    font-size: 14px;
  }
  .top-bar .lang-toggle {
    padding: 3px 8px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .nav-cta .nav-lang-toggle {
    display: none; /* Hidden on very small screens; toggle in top bar */
  }
  .top-bar .lang-toggle {
    font-size: 12px;
    padding: 3px 8px;
  }
}

::selection {
  background-color: #1a4fa0;
  color: #ffffff;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #0d2b6e;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

section {
  padding: 48px 0;
}

.section-white {
  background-color: #ffffff;
}

.section-offwhite {
  background-color: #f4f7fc;
}

.section-navy {
  background-color: #1a4fa0;
  color: #ffffff;
}

.section-deep-navy {
  background-color: #0d2b6e;
  color: #ffffff;
}

/* Section Heading */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 0.6rem;
  color: #0d2b6e;
}

.section-navy .section-heading h2,
.section-deep-navy .section-heading h2 {
  color: #ffffff;
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #f39c12;
  border-radius: 2px;
}

.section-heading p {
  margin-top: 0.75rem;
  color: #666666;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-navy .section-heading p,
.section-deep-navy .section-heading p {
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------
   2. Top Bar
   ------------------------------------------------------------ */
.top-bar {
  background-color: #0d2b6e;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 6px 0;
  display: flex;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar-left .label {
  color: #f39c12;
  font-weight: 600;
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-center span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar-center .label {
  color: #f39c12;
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-right a {
  color: #ffffff;
  font-size: 0.8rem;
  transition: color 0.25s ease;
}

.top-bar-right a:hover {
  color: #f39c12;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.7rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.top-bar-social a:hover {
  background-color: #f39c12;
  transform: scale(1.1);
}

.top-bar-divider {
  width: 1px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Mobile top bar - compact layout */
@media (max-width: 767px) {
  .top-bar {
    padding: 5px 0;
  }
  .top-bar .container {
    flex-wrap: wrap;
    gap: 4px;
  }
  .top-bar-left {
    gap: 10px;
    font-size: 0.72rem;
  }
  .top-bar-left .label {
    display: none;
  }
  .top-bar-left span {
    gap: 3px;
  }
  .top-bar-left a {
    font-size: 0.72rem;
  }
  .top-bar-center {
    gap: 10px;
    font-size: 0.72rem;
  }
  .top-bar-center .label {
    display: none;
  }
  .top-bar-center span {
    gap: 3px;
  }
  .top-bar-center a {
    font-size: 0.72rem;
  }
  .top-bar-right {
    gap: 8px;
    flex-wrap: wrap;
  }
  .top-bar-right a {
    font-size: 0.72rem;
  }
  .top-bar-divider {
    height: 12px;
  }
  .lang-toggle {
    padding: 2px 8px;
    font-size: 0.7rem;
  }
}

/* ------------------------------------------------------------
   3. Main Navigation
   ------------------------------------------------------------ */
.main-nav {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.main-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #0d2b6e;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-logo > span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #0d2b6e;
  letter-spacing: 0.02em;
}

.logo-subtext {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  color: #e84118;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Social icon (additional class on top-bar-social a) */
.social-icon {
  text-decoration: none;
}

/* Login link (additional class on top-bar-right a) */
.login-link {
  text-decoration: none;
  font-weight: 500;
}

/* Mobile navigation wrapper class */
.mobile-nav {
  /* Extends .nav-links for mobile dropdown — styling handled by .nav-links rules */
}

/* Mobile hamburger toggle (checkbox hack) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0d2b6e;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

.nav-toggle:checked ~ .nav-toggle-label span {
  background-color: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Nav links */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  z-index: 999;
}

.nav-toggle:checked ~ .nav-links {
  display: flex;
}

.nav-links a {
  display: block;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333333;
  transition: color 0.25s ease, background-color 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e84118;
  background-color: #f4f7fc;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #e84118;
  border-radius: 1px;
}

.nav-cta {
  display: none;
}

.nav-cta .btn-apply {
  background-color: #e84118;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.nav-cta .btn-apply:hover {
  background-color: #c73510;
  transform: translateY(-1px);
}

/* Navigation dropdown/submenu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  min-width: 200px;
  background-color: #ffffff;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown.open > .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* Mobile: submenu is inline, not absolute */
@media (max-width: 991px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
    min-width: auto;
  }

  .nav-dropdown-menu a {
    padding: 10px 20px 10px 36px;
    font-size: 0.82rem;
  }

  /* Rotate arrow when dropdown is open */
  .nav-dropdown.open > .nav-dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Desktop dropdown positioning */
@media (min-width: 992px) {
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    min-width: 220px;
    z-index: 1001;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }

  .nav-dropdown:hover > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    padding: 10px 20px;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .nav-dropdown-menu a:hover {
    padding-left: 24px;
    background-color: #f4f7fc;
    color: #e84118;
  }
}

/* ------------------------------------------------------------
   4. Hero Slider
   ------------------------------------------------------------ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: transparent;
}

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

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

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

.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  color: #ffffff;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-slide-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-slide-content p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-slide-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-slide-cta .btn-primary {
  background-color: #1a4fa0;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-slide-cta .btn-primary:hover {
  background-color: #0d2b6e;
  transform: translateY(-1px);
}

.hero-slide-cta .btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px 26px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-slide-cta .btn-outline-white:hover {
  background-color: #ffffff;
  color: #0d2b6e;
  transform: translateY(-1px);
}

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
  background-color: #f39c12;
  transform: scale(1.2);
}

/* Prev/Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 1rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-arrow:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow-prev {
  left: 12px;
}

.hero-arrow-next {
  right: 12px;
}

/* ------------------------------------------------------------
   5. Announcement Marquee
   ------------------------------------------------------------ */
.announcement-bar {
  background-color: #0d2b6e;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
}

.announcement-label {
  display: inline-block;
  background-color: #f39c12;
  color: #0d2b6e;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 3px;
  margin-right: 16px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.announcement-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  padding-left: 16px;
}

.announcement-scroll span {
  font-size: 0.85rem;
  padding: 0 40px 0 0;
}

.announcement-scroll span::after {
  content: '\2022';
  margin-left: 40px;
  color: #f39c12;
}

.announcement-bar:hover .announcement-scroll {
  animation-play-state: paused;
}

/* ------------------------------------------------------------
   6. Stats Counter Section
   ------------------------------------------------------------ */
.stats-section {
  background-color: #1a4fa0;
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 20px 10px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #f39c12;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------
   7. Popular Courses Section
   ------------------------------------------------------------ */
.courses-section {
  background-color: #f4f7fc;
  padding: 48px 0;
}

.course-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.course-filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.course-filter-btn:hover {
  border-color: #1a4fa0;
  color: #1a4fa0;
}

.course-filter-btn.active {
  background-color: #1a4fa0;
  color: #ffffff;
  border-color: #1a4fa0;
}

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

.course-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 79, 160, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(26, 79, 160, 0.18);
}

.course-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-image img {
  transform: scale(1.05);
}

.course-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #1a4fa0;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 50px;
}

.course-card-badge.badge-diploma {
  background-color: #e84118;
}

.course-card-badge.badge-certificate {
  background-color: #f39c12;
  color: #0d2b6e;
}

.course-card-badge.badge-short-term {
  background-color: #27ae60;
}

.course-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0d2b6e;
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: #666666;
}

.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card-meta .fee {
  font-weight: 600;
  color: #1a4fa0;
}

.course-card-body .btn-enroll {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background-color: #e84118;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.course-card-body .btn-enroll:hover {
  background-color: #c73510;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   8. Why Choose Us
   ------------------------------------------------------------ */
.why-choose-section {
  background-color: #ffffff;
  padding: 48px 0;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-choose-item {
  text-align: center;
  padding: 24px 16px;
  transition: transform 0.3s ease;
}

.why-choose-item:hover {
  transform: translateY(-3px);
}

.why-choose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 16px;
  transition: transform 0.35s ease;
}

.why-choose-item:hover .why-choose-icon {
  animation: bounce 0.5s ease;
}

.why-choose-icon.icon-navy {
  background-color: #1a4fa0;
}

.why-choose-icon.icon-scarlet {
  background-color: #e84118;
}

.why-choose-icon.icon-gold {
  background-color: #f39c12;
}

.why-choose-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0d2b6e;
  margin-bottom: 8px;
}

.why-choose-desc {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   9. Latest Branches
   ------------------------------------------------------------ */
.branches-section {
  background-color: #f4f7fc;
  padding: 48px 0;
}

.branches-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #1a4fa0 transparent;
}

.branches-grid::-webkit-scrollbar {
  height: 6px;
}

.branches-grid::-webkit-scrollbar-track {
  background: transparent;
}

.branches-grid::-webkit-scrollbar-thumb {
  background-color: #1a4fa0;
  border-radius: 3px;
}

.branch-card {
  min-width: 260px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 79, 160, 0.10);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 79, 160, 0.16);
}

.branch-card-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.branch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.4s ease;
}

.branch-card:hover .branch-card-image img {
  transform: scale(1.05);
}

.branch-card-body {
  padding: 16px;
}

.branch-card-city {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0d2b6e;
  margin-bottom: 2px;
}

.branch-card-state {
  font-size: 0.78rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.branch-card-address,
.branch-card-phone {
  font-size: 0.82rem;
  color: #666666;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.branch-card-phone a {
  color: #1a4fa0;
  font-weight: 500;
}

.branch-card-phone a:hover {
  color: #e84118;
}

.branch-card-map {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a4fa0;
  transition: color 0.25s ease;
}

.branch-card-map:hover {
  color: #e84118;
}

.branches-view-all {
  text-align: center;
  margin-top: 2rem;
}

/* ------------------------------------------------------------
   10. Affiliations & Partners
   ------------------------------------------------------------ */
.affiliations-section {
  background-color: #ffffff;
  padding: 48px 0;
}

.affiliations-subsection {
  margin-bottom: 2.5rem;
}

.affiliations-subsection:last-child {
  margin-bottom: 0;
}

.affiliations-subsection h3 {
  text-align: center;
  font-size: 1.1rem;
  color: #0d2b6e;
  margin-bottom: 1.25rem;
}

.logo-strip-wrapper {
  overflow: hidden;
  position: relative;
  padding: 16px 0;
}

.logo-strip-wrapper::before,
.logo-strip-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.logo-strip-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.logo-strip-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

.logo-strip {
  display: flex;
  gap: 40px;
  animation: logoMarquee 30s linear infinite;
  width: max-content;
}

.logo-strip:hover {
  animation-play-state: paused;
}

.logo-strip-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 8px 20px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26, 79, 160, 0.06);
  /* Natural color — no grayscale filter */
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.logo-strip-item:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(26, 79, 160, 0.15);
  border-color: #1a4fa0;
}

.logo-strip-item img {
  max-height: 56px;
  width: auto;
  /* Natural colors — preserve aspect ratio and clarity */
  object-fit: contain;
  display: block;
}

/* ------------------------------------------------------------
   Gallery Section
   ------------------------------------------------------------ */
.gallery-section {
  background-color: #f4f7fc;
  padding: 48px 0;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gallery-filter-btn:hover {
  border-color: #1a4fa0;
  color: #1a4fa0;
}

.gallery-filter-btn.active {
  background-color: #1a4fa0;
  color: #ffffff;
  border-color: #1a4fa0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 79, 160, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background-color: #ffffff;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(26, 79, 160, 0.18);
}

.gallery-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 43, 110, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-card-info {
  padding: 12px 16px;
}

.gallery-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d2b6e;
  margin-bottom: 4px;
}

.gallery-card-category {
  font-size: 0.75rem;
  color: #1a4fa0;
  background-color: rgba(26, 79, 160, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #999999;
}

.gallery-empty p {
  margin-top: 12px;
  font-size: 0.95rem;
}

/* Gallery Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.25s ease;
}

.gallery-lightbox-close:hover {
  color: #f39c12;
}

.gallery-lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.gallery-lightbox-caption {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
}

/* ------------------------------------------------------------
   11. Toppers Section
   ------------------------------------------------------------ */
.toppers-section {
  background-color: #1a4fa0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(243, 156, 18, 0.05) 0%, transparent 50%);
  padding: 48px 0;
  color: #ffffff;
}

/* Full-page toppers section (dedicated toppers page) — same dark background */
.toppers-full-section {
  background: linear-gradient(135deg, #0d2b6e 0%, #1a4fa0 50%, #0d2b6e 100%) !important;
  padding: 48px 0;
  color: #ffffff !important;
}

.toppers-full-section .topper-name,
.toppers-full-section .topper-course,
.toppers-full-section .topper-marks,
.toppers-full-section .topper-meta {
  color: #ffffff !important;
}

.toppers-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #f39c12 transparent;
}

.toppers-grid::-webkit-scrollbar {
  height: 6px;
}

.toppers-grid::-webkit-scrollbar-thumb {
  background-color: #f39c12;
  border-radius: 3px;
}

.topper-card {
  min-width: 220px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Topper cards on the dedicated toppers page — slightly brighter background */
.toppers-full-section .topper-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.topper-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.12);
}

.topper-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: block;
}

.topper-card.rank-1 .topper-photo {
  border-color: #f39c12;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.topper-card.rank-2 .topper-photo {
  border-color: #c0c0c0;
  box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.3);
}

.topper-card.rank-3 .topper-photo {
  border-color: #cd7f32;
  box-shadow: 0 0 0 3px rgba(205, 127, 50, 0.3);
}

.topper-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff !important;
  margin-bottom: 4px;
}

.topper-course {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 4px;
}

.topper-marks {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f39c12 !important;
  margin-bottom: 2px;
}

.topper-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ------------------------------------------------------------
   12. Branch News
   ------------------------------------------------------------ */
.branch-news-section {
  background-color: #f4f7fc;
  padding: 48px 0;
}

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

.news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 79, 160, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 79, 160, 0.16);
}

.news-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 18px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-card-date {
  font-size: 0.75rem;
  color: #999999;
}

.news-card-branch-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a4fa0;
  background-color: rgba(26, 79, 160, 0.1);
  padding: 3px 10px;
  border-radius: 50px;
}

.news-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #0d2b6e;
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a4fa0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s ease, gap 0.25s ease;
}

.news-card-link:hover {
  color: #e84118;
  gap: 8px;
}

.news-view-all {
  text-align: center;
  margin-top: 2rem;
}

/* ------------------------------------------------------------
   13. FAQ Accordion
   ------------------------------------------------------------ */
.faq-section {
  background-color: #ffffff;
  padding: 48px 0;
}

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

.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
  border-left: 4px solid #1a4fa0;
  box-shadow: 0 2px 12px rgba(26, 79, 160, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0d2b6e;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  margin-right: 12px;
  transition: transform 0.3s ease;
  color: #1a4fa0;
  flex-shrink: 0;
  order: 1;
}

.faq-item[open] summary::before {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background-color: #f4f7fc;
}

.faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.7;
}

/* Fallback chevron without Font Awesome */
.faq-item summary .faq-chevron {
  display: inline-flex;
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-item summary .faq-chevron::before,
.faq-item summary .faq-chevron::after {
  content: '';
  position: absolute;
  background-color: #1a4fa0;
  transition: transform 0.3s ease;
}

.faq-item summary .faq-chevron::before {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: right center;
}

.faq-item summary .faq-chevron::after {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: left center;
}

.faq-item[open] summary .faq-chevron::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.faq-item[open] summary .faq-chevron::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ------------------------------------------------------------
   14. Testimonials
   ------------------------------------------------------------ */
.testimonials-section {
  background-color: #f4f7fc;
  padding: 48px 0;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  flex-shrink: 0;
  padding: 8px;
}

.testimonial-card-inner {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(26, 79, 160, 0.10);
  position: relative;
}

.testimonial-card-inner::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: rgba(26, 79, 160, 0.1);
  position: absolute;
  top: 10px;
  left: 18px;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.testimonial-stars .star {
  color: #f39c12;
  font-size: 0.9rem;
}

.testimonial-stars .star.empty {
  color: #e0e0e0;
}

.testimonial-text {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f4f7fc;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0d2b6e;
}

.testimonial-author-course {
  font-size: 0.78rem;
  color: #999999;
}

/* Testimonial navigation arrows */
.testimonials-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.testimonials-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a4fa0;
  font-size: 0.85rem;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.testimonials-arrow:hover {
  background-color: #1a4fa0;
  color: #ffffff;
  border-color: #1a4fa0;
}

.testimonials-dots {
  display: flex;
  gap: 6px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d0d0d0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials-dot.active {
  background-color: #1a4fa0;
  transform: scale(1.3);
}

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: #0d2b6e;
  color: #ffffff;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-about .footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-about .footer-logo .logo-text {
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-about .footer-logo .logo-subtext {
  font-weight: 600;
  font-size: 0.65rem;
  color: #f39c12;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-about .footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
  background-color: #f39c12;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #f39c12;
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: #f39c12;
  padding-left: 6px;
}

.footer-links a::before {
  content: '\203A';
  margin-right: 6px;
  color: #f39c12;
  font-weight: 700;
}

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

.footer-contact-item .icon {
  color: #f39c12;
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

.footer-contact-item a:hover {
  color: #f39c12;
}

/* Copyright bar */
.footer-copyright {
  margin-top: 40px;
  background-color: #091d4a;
  padding: 16px 0;
  text-align: center;
}

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

.footer-copyright a {
  color: #f39c12;
}

.footer-copyright a:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   16. Buttons & Utilities
   ------------------------------------------------------------ */
.btn-primary {
  display: inline-block;
  background-color: #1a4fa0;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid #1a4fa0;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background-color: #0d2b6e;
  border-color: #0d2b6e;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #1a4fa0;
  padding: 10px 26px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid #1a4fa0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-outline:hover {
  background-color: #1a4fa0;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-block;
  background-color: #e84118;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid #e84118;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-danger:hover {
  background-color: #c73510;
  border-color: #c73510;
  transform: translateY(-1px);
}

.btn-gold {
  display: inline-block;
  background-color: #f39c12;
  color: #0d2b6e;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid #f39c12;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-gold:hover {
  background-color: #d68910;
  border-color: #d68910;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Utility classes */
.text-center { text-align: center; }
.text-navy { color: #0d2b6e; }
.text-scarlet { color: #e84118; }
.text-gold { color: #f39c12; }
.text-white { color: #ffffff; }
.bg-white { background-color: #ffffff; }
.bg-offwhite { background-color: #f4f7fc; }
.bg-navy { background-color: #1a4fa0; }
.bg-deep-navy { background-color: #0d2b6e; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   17. Animations
   ------------------------------------------------------------ */
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

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

@keyframes countUp {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-8px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

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

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ------------------------------------------------------------
   18. Responsive Breakpoints (Mobile First)
   ------------------------------------------------------------ */

/* --- Small devices (576px+) --- */
@media (min-width: 576px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    min-width: 100%;
  }

  .hero-slide-content h1 {
    font-size: 2rem;
  }
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  section {
    padding: 64px 0;
  }

  .stats-section {
    padding: 64px 0;
  }

  .top-bar {
    padding: 8px 0;
  }

  .top-bar-left .label,
  .top-bar-center .label {
    display: inline;
  }

  .hero-slider {
    height: 480px;
  }

  .hero-slide-content h1 {
    font-size: 2.4rem;
  }

  .hero-slide-content p {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item + .stat-item::before {
    width: 1px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
  }

  .courses-section,
  .why-choose-section,
  .branches-section,
  .affiliations-section,
  .toppers-section,
  .branch-news-section,
  .faq-section,
  .testimonials-section {
    padding: 64px 0;
  }

  .testimonial-card {
    min-width: 50%;
  }

  .branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none;
  }

  .branch-card {
    min-width: 0;
  }

  .toppers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .topper-card {
    min-width: 0;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}

/* --- Desktop (992px+) --- */
@media (min-width: 992px) {
  section {
    padding: 80px 0;
  }

  .stats-section {
    padding: 80px 0;
  }

  /* Navigation desktop */
  .nav-toggle-label {
    display: none;
  }

  .main-nav {
    overflow: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    gap: 4px;
    align-items: center;
    overflow: visible;
  }

  .nav-links a {
    padding: 8px 14px;
    font-size: 0.82rem;
    border-radius: 4px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: transparent;
    color: #e84118;
  }

  .nav-links a.active::after {
    left: 14px;
    right: 14px;
    bottom: 2px;
  }

  .nav-cta {
    display: block;
  }

  .main-nav .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Hero */
  .hero-slider {
    height: 600px;
  }

  .hero-slide-content h1 {
    font-size: 3rem;
  }

  .hero-slide-content p {
    font-size: 1.05rem;
    max-width: 600px;
  }

  .hero-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .hero-arrow-prev {
    left: 24px;
  }

  .hero-arrow-next {
    right: 24px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Courses */
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Why choose */
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Branches */
  .branches-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Toppers */
  .toppers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* News */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials */
  .testimonial-card {
    min-width: 33.333%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }

  /* Sections padding */
  .courses-section,
  .why-choose-section,
  .branches-section,
  .affiliations-section,
  .toppers-section,
  .branch-news-section,
  .faq-section,
  .testimonials-section {
    padding: 80px 0;
  }
}

/* --- Large (1200px+) --- */
@media (min-width: 1200px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-slide-content {
    padding-left: 0;
  }

  .nav-links a {
    padding: 8px 18px;
  }

  .hero-slide-content h1 {
    font-size: 3.2rem;
  }

  .stat-number {
    font-size: 3rem;
  }
}

/* ------------------------------------------------------------
   Print Styles
   ------------------------------------------------------------ */
@media print {
  .top-bar,
  .main-nav,
  .hero-slider,
  .announcement-bar,
  .hero-dots,
  .hero-arrow,
  .site-footer,
  .nav-cta,
  .nav-toggle-label {
    display: none !important;
  }

  body {
    color: #000000;
    background-color: #ffffff;
    font-size: 12pt;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* ============================================================
   NEW: Hero Banner (replaces blank blue slider strip)
   ============================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2b6e 0%, #1a4fa0 50%, #0d2b6e 100%);
}

.hero-banner-slider {
  position: relative;
  width: 100%;
  height: 420px;
}

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

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

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

.hero-static {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: linear-gradient(135deg, #0d2b6e 0%, #1a4fa0 50%, #0d2b6e 100%);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(243, 156, 18, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232, 65, 24, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0d2b6e 0%, #1a4fa0 50%, #0d2b6e 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 60px 20px;
  background: transparent !important;
}

/* Add a subtle gradient behind hero text for readability on any background */
/* DISABLED: User requested removal of blue transparent strip on slider */
.hero-slide .hero-content::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
}

/* Ensure no background on hero content div itself */
.hero-slide .hero-content,
.hero-static .hero-content {
  background: transparent !important;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: #e84118;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.btn-hero-primary:hover {
  background-color: #c73510;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px 26px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.btn-hero-outline:hover {
  background-color: #ffffff;
  color: #0d2b6e;
  transform: translateY(-2px);
}

/* Hero dots for slider */
.hero-banner .hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-banner .hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-banner .hero-dot.active {
  background-color: #f39c12;
  transform: scale(1.2);
}

/* ============================================================
   NEW: CTA Banner Section
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #e84118 0%, #c73510 100%);
  padding: 56px 0;
  text-align: center;
  color: #ffffff;
}

.cta-content h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .btn-hero-primary {
  background-color: #ffffff;
  color: #e84118;
}

.cta-banner .btn-hero-primary:hover {
  background-color: #f4f7fc;
  color: #c73510;
}

.cta-banner .btn-hero-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.cta-banner .btn-hero-outline:hover {
  background-color: #ffffff;
  color: #e84118;
}

/* ============================================================
   NEW: Empty States for Branches & Toppers
   ============================================================ */
.branches-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #999999;
}

.branches-empty p {
  margin-top: 12px;
  font-size: 0.95rem;
}

.toppers-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.toppers-empty p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.toppers-view-all {
  color: #f39c12;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.toppers-view-all:hover {
  color: #ffffff;
}

/* Logo text wrap for better spacing */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* ============================================================
   NEW: Outline Button (reused)
   ============================================================ */
.btn-outline {
  display: inline-block;
  padding: 10px 26px;
  border: 2px solid #1a4fa0;
  border-radius: 6px;
  color: #1a4fa0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-outline:hover {
  background-color: #1a4fa0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================================
   Responsive updates for new hero & CTA
   ============================================================ */
@media (min-width: 768px) {
  .hero-banner,
  .hero-banner-slider,
  .hero-static {
    min-height: 480px;
  }
  .hero-banner-slider {
    height: 480px;
  }
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .hero-content p {
    font-size: 1.05rem;
  }
  .cta-content h2 {
    font-size: 2.2rem;
  }
}

@media (min-width: 992px) {
  .hero-banner,
  .hero-banner-slider,
  .hero-static {
    min-height: 520px;
  }
  .hero-banner-slider {
    height: 520px;
  }
  .hero-content {
    padding: 80px 20px;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* ============================================================
   FAQ Home Section
   ============================================================ */
.faq-home-section {
  padding: 64px 0;
  background-color: #f8f9fa;
}

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

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(26, 79, 160, 0.08);
  border-color: #c4d3e8;
}

.faq-item[open] {
  border-color: #1a4fa0;
  box-shadow: 0 2px 12px rgba(26, 79, 160, 0.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0d2b6e;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question span {
  flex: 1;
  padding-right: 12px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #1a4fa0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
}

.faq-answer p {
  margin: 0;
}

/* ============================================================
   Offer Popup
   ============================================================ */
.offer-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.offer-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.offer-popup {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s ease;
}

.offer-popup-overlay.active .offer-popup {
  transform: scale(1) translateY(0);
}

.offer-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background-color 0.25s ease;
}

.offer-popup-close:hover {
  background-color: #e84118;
}

.offer-popup-image {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.offer-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-popup-content {
  padding: 28px 24px;
  text-align: center;
}

.offer-popup-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0d2b6e;
  margin-bottom: 12px;
}

.offer-popup-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.offer-popup-btn {
  display: inline-block;
  background: linear-gradient(135deg, #e84118 0%, #c73510 100%);
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 65, 24, 0.4);
}

/* Offer popup mobile */
@media (max-width: 576px) {
  .offer-popup {
    max-width: 95%;
  }

  .offer-popup-image {
    max-height: 180px;
  }

  .offer-popup-content {
    padding: 20px 16px;
  }

  .offer-popup-title {
    font-size: 1.15rem;
  }

  .offer-popup-desc {
    font-size: 0.88rem;
  }
}

/* ============================================================
   Demo Class Booking Section
   ============================================================ */
.demo-class-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f0ff 100%);
}

.demo-class-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.demo-class-info .section-heading h2 {
  margin-bottom: 12px;
}

.demo-class-info .section-heading p {
  margin-bottom: 24px;
  color: #555;
  line-height: 1.7;
}

.demo-class-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-class-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #333;
}

.demo-class-benefits li svg {
  flex-shrink: 0;
  color: #2563eb;
  stroke-width: 2.5;
}

.demo-class-form-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.demo-class-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.demo-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.demo-form-group label .required {
  color: #dc2626;
}

.demo-form-group input,
.demo-form-group select {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-form-group input:focus,
.demo-form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.demo-form-group input::placeholder {
  color: #9ca3af;
}

.demo-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.demo-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.demo-form-submit:active {
  transform: translateY(0);
}

/* Demo Class Section — Responsive */
@media (max-width: 992px) {
  .demo-class-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .demo-class-section {
    padding: 48px 0;
  }

  .demo-form-grid {
    grid-template-columns: 1fr;
  }

  .demo-class-form-wrapper {
    padding: 24px 16px;
  }
}

/* ============================================================
   Mobile Fix: Fix right margin & other mobile issues
   ============================================================ */
@media (max-width: 768px) {
  /* top-bar is now hidden globally — no need for mobile-specific override */

  /* Aggressive fix for right-side blank margin on mobile */
  html, body {
    overflow-x: clip !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Prevent ANY element from exceeding viewport width */
  body > *,
  body > * > *,
  body > * > * > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }

  /* BUT: allow main-nav to show dropdown submenu (overflow must be visible) */
  .main-nav,
  .main-nav > *,
  .main-nav .nav-links,
  .main-nav .nav-dropdown {
    overflow: visible !important;
  }

  /* Catch any element causing overflow */
  * {
    max-width: 100%;
  }

  /* Hero section mobile fixes */
  .hero-banner,
  .hero-banner-slider,
  .hero-slide,
  .hero-static {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-content {
    padding: 30px 16px !important;
    max-width: 100% !important;
  }

  /* Remove the blue transparent overlay strip on slider */
  .hero-slide .hero-content::before {
    display: none !important;
    content: none !important;
  }

  /* Fix container overflow */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }

  /* Fix stats section mobile */
  .stats-section {
    padding: 36px 0 !important;
  }

  /* Fix course cards overflow */
  .courses-grid {
    overflow-x: hidden !important;
  }

  /* Fix footer overflow */
  .site-footer {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Fix announcement bar overflow */
  .announcement-bar {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Fix sections that might overflow */
  section {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Fix nav links overflow */
  .nav-links {
    max-width: 100% !important;
  }

  /* Fix toppers section on mobile - ensure dark background */
  .toppers-section,
  .toppers-full-section {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* Medium mobile fix for right margin */
@media (max-width: 480px) {
  html, body {
    width: 100% !important;
    overflow-x: clip !important;
  }

  .hero-content h1 {
    font-size: 1.4rem !important;
  }

  .hero-content p {
    font-size: 0.85rem !important;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    text-align: center;
  }

  /* Ensure toppers cards don't overflow */
  .toppers-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}
