/* ============================================
   IMCS Academy — Premium Homepage Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #F97316;
  --primary-dark: #EA580C;
  --primary-light: #FDBA74;
  --navy: #0B1220;
  --navy-mid: #152238;
  --navy-light: #1E3A5F;
  --surface: #F8FAFC;
  --surface-alt: #F1F5F9;
  --white: #FFFFFF;
  --text: #334155;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.25);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 112px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* ---------- Utility Classes ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Reveal animations — initial state */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #C2410C 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.site-header {
  position: relative;
  z-index: 1030;
}

#mainNav {
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent;
}

/* Logo — default (over hero) positioning only, no background card */
#mainNav:not(.scrolled) .navbar-brand {
  margin-top: 6px;
  margin-left: 10px;
}

#mainNav.scrolled {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

#mainNav.scrolled .navbar-brand {
  margin-top: 0;
  margin-left: 0;
}

.nav-logo {
  width: auto;
  transition: transform var(--transition), height 0.4s ease, filter 0.4s ease;
}

/* Default logo — size unchanged, very subtle visibility lift */
#mainNav:not(.scrolled) .nav-logo--default {
  height: 80px;
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.1));
}

/* Scrolled logo — unchanged */
#mainNav.scrolled .nav-logo {
  height: 56px;
  filter: none;
}

.nav-logo--scrolled {
  display: none;
}

#mainNav.scrolled .nav-logo--default {
  display: none;
}

#mainNav.scrolled .nav-logo--scrolled {
  display: block;
}

.navbar-brand:hover .nav-logo {
  transform: scale(1.03);
}

.navbar-toggler {
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler-icon,
.navbar-collapse.show ~ .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px !important;
  position: relative;
  transition: color var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 8px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.dropdown-item:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

.nav-phones {
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-phones .nav-phone__icon {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.nav-phone__lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.nav-phone__line {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-phone__line:hover {
  color: var(--primary-light);
}

.nav-phones-mobile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-phones-mobile .nav-phone {
  justify-content: center;
  width: 100%;
  padding: 10px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.nav-phone__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  color: var(--primary);
  flex-shrink: 0;
}

.btn-nav-cta {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0D2847 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  right: -5%;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: #3B82F6;
  bottom: 10%;
  left: -10%;
  animation-delay: -6s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-typing {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  font-family: var(--font-serif);
  min-height: 2.5rem;
}

.typing-highlight {
  color: var(--primary-light);
  border-right: 3px solid var(--primary);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-mode-badge--online {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
}

.hero-mode-badge--offline {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary-light);
  border-color: rgba(249, 115, 22, 0.25);
}

.hero-cta {
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.hero-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-tag {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.course-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.trust-google img {
  border-radius: 8px;
  transition: transform var(--transition);
}

.trust-google:hover img {
  transform: scale(1.05);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Hero Video */
.hero-visual {
  position: relative;
  z-index: 2;
}

.video-glass-wrap {
  position: relative;
}

.video-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.video-container {
  position: relative;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--navy-mid);
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.video-container.playing .video-poster {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  z-index: 2;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--white);
  box-shadow: var(--shadow-glow);
}

.video-container.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-container.playing iframe {
  opacity: 1;
}

/* Floating Cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  animation: floatCard 6s ease-in-out infinite;
  z-index: 3;
}

.float-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
}

.float-card span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.float-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  color: var(--white);
  font-size: 1.1rem;
}

.float-card--1 {
  top: -20px;
  left: -30px;
  animation-delay: 0s;
}

.float-card--2 {
  bottom: 60px;
  right: -40px;
  animation-delay: -2s;
}

.float-card--3 {
  bottom: 80px;
  left: -30px;
  animation-delay: -4s;
}

.float-card--4 {
  top: 40%;
  right: -50px;
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Section Divider */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.section-divider svg {
  width: 100%;
  height: 60px;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--surface);
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.about-experience {
  position: absolute;
  top: 30px;
  left: -20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.about-experience__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-experience__text {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 500;
  color: var(--text);
}

.about-features i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* ---------- Why Choose Us ---------- */
.why-section {
  background: var(--white);
}

.feature-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  height: 100%;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.2);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border-radius: 14px;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-card__icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.why-banner img {
  box-shadow: var(--shadow-md);
}

/* ---------- Courses Section ---------- */
.courses-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.course-card {
  display: block;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card--featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent;
  color: var(--white);
}

.course-card--featured h3,
.course-card--featured .course-card__grades {
  color: var(--white);
}

.course-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 16px;
  font-size: 1.75rem;
  color: var(--primary);
  transition: all var(--transition);
}

.course-card--featured .course-card__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary-light);
}

.course-card:hover .course-card__icon {
  transform: scale(1.1);
}

.course-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.course-card__grades {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.course-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.course-card__tags span {
  padding: 4px 12px;
  background: var(--surface);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.course-card--featured .course-card__tags span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Popular Courses */
.popular-courses {
  margin-top: 48px;
}

.popular-courses__title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 32px;
}

.popular-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.popular-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.popular-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.popular-card:hover img {
  transform: scale(1.05);
}

.popular-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.popular-card__overlay i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  transition: transform var(--transition);
}

.popular-card:hover .popular-card__overlay i {
  transform: translateX(4px);
}

/* ---------- Subjects Section ---------- */
.subjects-section {
  background: var(--white);
}

.subject-card {
  height: 100%;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.subject-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.6rem;
  transition: all var(--transition);
}

.subject-card:hover .subject-card__icon {
  transform: scale(1.08);
}

.subject-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.subject-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.55;
}

.subject-card--physics .subject-card__icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.subject-card--chemistry .subject-card__icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.subject-card--math .subject-card__icon {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
}

.subject-card--biology .subject-card__icon {
  background: rgba(236, 72, 153, 0.12);
  color: #db2777;
}

.subject-card--english .subject-card__icon {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.subject-card--physics:hover {
  background: rgba(59, 130, 246, 0.06);
}

.subject-card--chemistry:hover {
  background: rgba(16, 185, 129, 0.06);
}

.subject-card--math:hover {
  background: rgba(249, 115, 22, 0.06);
}

.subject-card--biology:hover {
  background: rgba(236, 72, 153, 0.06);
}

.subject-card--english:hover {
  background: rgba(139, 92, 246, 0.06);
}

/* ---------- Results Section ---------- */
.results-section {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.results-section .section-title {
  color: var(--white);
}

.results-section .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.results-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.results-track {
  display: flex;
  gap: 20px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.results-track:hover {
  animation-play-state: paused;
}

.results-slide {
  display: flex;
  gap: 20px;
}

.results-slide img {
  height: 280px;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.results-slide img:hover {
  transform: scale(1.03);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scholarship Card */
.scholarship-card {
  position: relative;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  overflow: hidden;
}

.scholarship-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.scholarship-card p {
  opacity: 0.9;
  margin-bottom: 16px;
}

.scholarship-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scholarship-card li {
  padding: 6px 0;
  font-weight: 500;
}

.scholarship-card li i {
  color: #FDE047;
  margin-right: 8px;
}

.scholarship-card__img {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 200px;
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- Faculty Section ---------- */
.faculty-section {
  background: var(--surface);
}

.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  height: 100%;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.faculty-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.faculty-card__body {
  padding: 28px;
}

.faculty-card__role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.faculty-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.faculty-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.faculty-highlight {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  height: 100%;
  transition: all var(--transition);
}

.faculty-highlight:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: var(--shadow-sm);
}

.faculty-highlight__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.5rem;
}

.faculty-highlight h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.faculty-highlight p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- IMCS Coaching Way ---------- */
.coaching-way-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.coaching-way-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.92) 0%, rgba(21, 34, 56, 0.88) 100%),
    url('https://www.imcsacademy.com/assets/black-grunge-texture.jpg') center / cover no-repeat;
  opacity: 0.95;
}

.section-label--light {
  background: rgba(249, 115, 22, 0.18);
  color: var(--primary-light);
}

.section-title--light {
  color: var(--white);
}

.section-desc--light {
  color: rgba(255, 255, 255, 0.72);
}

.coaching-way-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.coaching-way-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 31px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(249, 115, 22, 0.15));
  border-radius: 2px;
}

.coaching-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.coaching-step__marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.coaching-step__num {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.coaching-step:hover .coaching-step__num {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

.coaching-step__card {
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.coaching-step:hover .coaching-step__card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(249, 115, 22, 0.28);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.coaching-step__card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.coaching-step__card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.7;
}

.coaching-step__card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.coaching-step__card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.coaching-step__card li:last-child {
  margin-bottom: 0;
}

.coaching-step__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background: var(--surface);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(249, 115, 22, 0.25);
  box-shadow: var(--shadow-md);
}

.faq-accordion .accordion-button {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  padding: 20px 24px;
  box-shadow: none;
  line-height: 1.5;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background: rgba(249, 115, 22, 0.06);
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-accordion .accordion-button::after {
  background-size: 1.1rem;
  transition: transform var(--transition);
}

.faq-accordion .accordion-body {
  padding: 0 24px 22px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-accordion .accordion-header {
  margin: 0;
}

/* ---------- Test Series Section ---------- */
.test-series-section {
  background: linear-gradient(180deg, #4a4a50 0%, #3d3d42 100%);
  color: var(--white);
}

.test-series-slider {
  position: relative;
  overflow: hidden;
}

.test-series-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-series-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
}

.test-series-card__link {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  color: var(--navy);
}

.test-series-card__link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  color: var(--navy);
}

.test-series-card__link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.test-series-card__link:hover img {
  transform: scale(1.04);
}

.test-series-card__body {
  padding: 18px 20px 20px;
}

.test-series-card__body h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--navy);
}

.test-series-card__price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.test-series-card__price span {
  color: #16a34a;
}

.test-series-card__price del {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 8px;
}

.test-series-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.test-series-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.test-series-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: var(--white);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.2);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.testimonial-card__header h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.testimonial-card__header span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-card__stars {
  color: #FBBF24;
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.testimonial-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.65);
  color: var(--white);
  font-size: 1rem;
  backdrop-filter: blur(6px);
}

/* ---------- News Section ---------- */
.news-section {
  background: var(--white);
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-card__image {
  display: block;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 24px;
}

.news-card__body time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.news-card__body h3 {
  font-size: 1.1rem;
  margin: 12px 0;
  line-height: 1.4;
}

.news-card__body h3 a:hover {
  color: var(--primary);
}

.news-card__body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.news-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.news-card__link:hover {
  gap: 10px;
}

/* ---------- Contact CTA ---------- */
.contact-cta-section {
  padding: 60px 0 100px;
  background: var(--surface);
}

.contact-cta {
  padding: 48px 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.contact-cta h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  position: relative;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  position: relative;
}

.contact-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.contact-cta__actions .btn-light {
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.contact-cta__actions .btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.site-footer h5 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-bottom__links {
  display: flex;
  gap: 24px;
}

.footer-bottom__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom__links a:hover {
  color: var(--primary-light);
}

/* ---------- Sticky Floating Actions ---------- */
.sticky-actions {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sticky-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateX(calc(100% - 46px));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition);
  white-space: nowrap;
}

.sticky-action i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sticky-action span {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sticky-action:hover {
  transform: translateX(0);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.sticky-action:hover span {
  opacity: 1;
}

.sticky-action--call {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.sticky-action--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.sticky-action--instagram {
  background: linear-gradient(135deg, #E1306C, #C13584);
}

.sticky-action--youtube {
  background: linear-gradient(135deg, #FF0000, #CC0000);
}

.sticky-action--brochure {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 1020;
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ---------- Gallery Modal ---------- */
#galleryModalContent img,
#galleryModalContent iframe {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

#galleryModalContent iframe {
  aspect-ratio: 16/9;
  height: auto;
}

/* ---------- Inner Page Hero (About, etc.) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: var(--navy);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(249, 115, 22, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30, 58, 95, 0.6) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.page-hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -80px;
}

.page-hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--navy-light);
  bottom: -80px;
  left: -60px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.page-breadcrumb a:hover {
  color: var(--primary-light);
}

.page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.5;
}

.page-breadcrumb span {
  color: var(--primary-light);
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  margin-bottom: 20px;
}

.page-hero__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 620px;
  line-height: 1.8;
}

/* About page carousel */
.about-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-carousel .carousel-indicators {
  margin-bottom: 16px;
}

.about-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
}

.about-carousel .carousel-indicators .active {
  background: var(--primary);
}

.about-carousel .carousel-control-prev,
.about-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 18, 32, 0.55);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
}

.about-carousel:hover .carousel-control-prev,
.about-carousel:hover .carousel-control-next {
  opacity: 1;
}

.about-carousel .carousel-control-prev {
  left: 16px;
}

.about-carousel .carousel-control-next {
  right: 16px;
}

/* About stats strip */
.about-stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.about-stat {
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.about-stat .stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1.1;
  margin-bottom: 8px;
}

.about-stat__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.page-about .navbar-brand {
  pointer-events: auto;
}

/* ---------- Course Pages (JEE, etc.) ---------- */
.course-hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: var(--navy) url('https://www.imcsacademy.com/assets/bg-imcs.jpg') center / cover no-repeat;
  overflow: hidden;
}

.course-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.75) 50%, rgba(21, 34, 56, 0.88) 100%);
}

.course-hero .container {
  position: relative;
  z-index: 1;
}

.page-breadcrumb--light {
  margin-bottom: 20px;
}

.page-breadcrumb--dark {
  color: var(--text-light);
}

.page-breadcrumb--dark a {
  color: var(--text);
}

.page-breadcrumb--dark a:hover {
  color: var(--primary);
}

.page-breadcrumb--dark i {
  opacity: 0.45;
}

.page-breadcrumb--dark span {
  color: var(--primary);
}

/* Detail pages — solid nav on light background */
body.page-test-series-detail #mainNav,
body.page-study-material-detail #mainNav {
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

body.page-test-series-detail #mainNav .navbar-brand,
body.page-study-material-detail #mainNav .navbar-brand {
  margin-top: 0;
  margin-left: 0;
}

body.page-test-series-detail #mainNav .nav-logo,
body.page-study-material-detail #mainNav .nav-logo {
  height: 56px;
  filter: none;
}

body.page-test-series-detail #mainNav .nav-logo--default,
body.page-study-material-detail #mainNav .nav-logo--default {
  display: none;
}

body.page-test-series-detail #mainNav .nav-logo--scrolled,
body.page-study-material-detail #mainNav .nav-logo--scrolled {
  display: block;
}

.course-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 24px;
}

.course-hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.course-hero__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.course-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
}

.course-hero__badge small {
  opacity: 0.75;
  font-weight: 500;
}

.course-enquiry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.course-enquiry-card__header {
  background: var(--navy);
  padding: 24px 28px;
  text-align: center;
}

.course-enquiry-card__header h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.course-enquiry-card__header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
}

.course-enquiry-form {
  padding: 28px;
}

.course-enquiry-form .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.course-enquiry-form .form-control {
  border-radius: 10px;
  border-color: var(--border);
  padding: 12px 16px;
}

.course-enquiry-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.course-plans-section {
  background: var(--surface);
}

.course-plan-card {
  height: 100%;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.course-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-plan-card--featured {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.course-plan-card__header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.course-plan-card__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.course-plan-card__header h3 {
  font-size: 1.35rem;
  margin: 0;
}

.course-plan-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.course-plan-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.course-plan-card__list li:last-child {
  border-bottom: none;
}

.course-plan-card__list i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.brochure-cta {
  padding: 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.brochure-cta h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.brochure-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.7;
}

.dropdown-item.active,
.dropdown-item:active {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary);
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
}

/* Grades nested dropdown */
.grades-dropdown {
  min-width: 220px;
}

.grades-dropdown .dropend {
  position: relative;
}

.grades-dropdown .dropend > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0;
}

.grades-dropdown .dropdown-item.dropdown-toggle::after {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.grades-dropdown .dropend > .dropdown-item {
  padding-right: 2rem;
  position: relative;
}

@media (min-width: 1200px) {
  .grades-dropdown .dropend::after {
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
    z-index: 1001;
  }

  .grades-dropdown .dropend > .dropdown-menu {
    margin-left: -1px;
    z-index: 1002;
  }

  .grades-dropdown .dropend > .dropdown-menu.show,
  .grades-dropdown .dropend:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 1199.98px) {
  .grades-dropdown .dropend > .dropdown-menu {
    position: static;
    margin-left: 12px;
    box-shadow: none;
    border-left: 2px solid rgba(249, 115, 22, 0.25);
    border-radius: 0;
    padding-left: 8px;
  }
}

/* ---------- Test Series Page ---------- */
.test-series-hero__cta {
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.test-series-hero__cta h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.test-series-hero__cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.test-series-page-section {
  background: var(--surface);
}

.test-series-filters {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.test-series-filters__title {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.test-series-filters__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.test-series-filter-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.test-series-filter-btn:hover,
.test-series-filter-btn.active {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--primary);
}

.test-series-grid-header {
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: 600;
}

.test-series-product-card {
  height: 100%;
}

.test-series-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.test-series-product-card__link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.25);
}

.test-series-product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-alt);
}

.test-series-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.test-series-product-card__link:hover .test-series-product-card__image img {
  transform: scale(1.05);
}

.test-series-product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.test-series-product-card__body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 2.8em;
}

.test-series-product-card__price {
  margin-bottom: 16px;
}

.test-series-product-card__price span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 10px;
}

.test-series-product-card__price del {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.test-series-product-card__cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.test-series-product-card__link:hover .test-series-product-card__cta {
  color: var(--primary);
}

.test-series-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
  font-weight: 600;
}

/* ---------- Test Series Detail Page ---------- */
.page-test-series-detail .test-series-detail-section,
.page-study-material-detail .test-series-detail-section {
  padding-top: calc(var(--nav-height) + 32px);
  background: var(--surface);
  min-height: 70vh;
}

.test-series-detail-section .page-breadcrumb {
  margin-bottom: 28px;
}

.test-series-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.test-series-detail-card__image {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-sm);
}

.test-series-detail-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 16px;
}

.test-series-detail-price {
  margin-bottom: 28px;
}

.test-series-detail-price span {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 12px;
}

.test-series-detail-price del {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.test-series-detail-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}

.test-series-detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.test-series-detail-features li i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.test-series-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.test-series-detail-empty {
  text-align: center;
  padding: 80px 20px;
}

.test-series-detail-empty h1 {
  margin-bottom: 12px;
}

.test-series-detail-empty p {
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 24px;
}
