/* ============ HEADER ============ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 18px;
  z-index: 1000;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  width: calc(100% - 32px);
  max-width: 1180px;
  padding: 10px 14px 10px 20px;
  border-radius: 999px;
  background: var(--capsule-bg);
  border: 1px solid var(--capsule-border);
  box-shadow: 0 8px 30px var(--shadow-color);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background .35s ease, padding .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
  background: var(--capsule-bg-scrolled);
  padding: 7px 12px 7px 18px;
  box-shadow: 0 6px 22px var(--shadow-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
}

.logo svg {
  display: block;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text .l1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
}

.logo-text .l2 {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-color);
  border-radius: 999px;
  transition: color .25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s cubic-bezier(.4, 0, .2, 1);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a:hover::after {
  width: calc(100% - 28px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  position: relative;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--capsule-border);
  background: rgba(11, 17, 32, 0.06);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background .3s ease;
  flex-shrink: 0;
}

html.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: opacity .3s ease;
}

.theme-toggle .icon.sun {
  left: 6px;
  opacity: 1;
}

.theme-toggle .icon.moon {
  right: 6px;
  opacity: .35;
}

html.dark .theme-toggle .icon.sun {
  opacity: .35;
}

html.dark .theme-toggle .icon.moon {
  opacity: 1;
}

.theme-toggle .bead {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 2px 6px rgba(47, 111, 237, .45);
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1);
}

html.dark .theme-toggle .bead {
  transform: translateX(26px);
  box-shadow: 0 0 10px rgba(20, 200, 176, .55);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 17, 32, 0.06);
  border: 1px solid var(--capsule-border);
  flex-shrink: 0;
}

html.dark .hamburger {
  background: rgba(255, 255, 255, 0.08);
}

.hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  pointer-events: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;
}

.mobile-menu-inner {
  pointer-events: auto;
  width: calc(100% - 32px);
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid var(--capsule-border);
  border-radius: 28px;
  box-shadow: 0 16px 40px var(--shadow-color);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  padding: 12px 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height .4s ease, opacity .3s ease, transform .35s ease;
}

html.dark .mobile-menu-inner {
  background: rgba(11, 17, 32, 0.45) !important;
}

.mobile-menu-inner.open {
  max-height: 560px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu li a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: background .2s ease, color .2s ease, opacity .35s ease, transform .35s ease;
}

.mobile-menu-inner.open li a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu li:nth-child(1) a { transition-delay: .05s; }
.mobile-menu li:nth-child(2) a { transition-delay: .1s; }
.mobile-menu li:nth-child(3) a { transition-delay: .15s; }
.mobile-menu li:nth-child(4) a { transition-delay: .2s; }
.mobile-menu li:nth-child(5) a { transition-delay: .25s; }
.mobile-menu li:nth-child(6) a { transition-delay: .3s; }

.mobile-menu li a:hover {
  background: var(--primary) !important;
  color: #0b1120 !important;
  opacity: 1 !important;
}

.mobile-menu li a.active {
  background: rgba(250, 204, 21, 0.15);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  border-radius: 0 16px 16px 0;
}

.mobile-actions {
  display: flex;
  gap: 10px;
  padding: 12px 8px 6px;
  border-top: 1px solid var(--capsule-border);
  margin-top: 6px;
}

.mobile-actions .btn {
  flex: 1;
  text-align: center;
}

.mobile-menu-policy-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 2px;
  border-top: 1px dashed var(--input-border);
  margin-top: 12px;
}

.mobile-menu-policy-links a {
  font-size: 11px;
  color: var(--text-color);
  opacity: 0.65;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.mobile-menu-policy-links a:hover {
  opacity: 1;
  color: var(--primary) !important;
}

.policy-dot-divider {
  font-size: 10px;
  color: var(--text-color);
  opacity: 0.35;
}

/* Social media row inside mobile dropdown */
.mobile-menu-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px 8px 2px;
  margin-top: 6px;
}

.mobile-menu-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.2px solid var(--capsule-border);
  color: var(--text-color);
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.mobile-menu-socials a:hover {
  opacity: 1;
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(250, 204, 21, 0.08);
  transform: translateY(-1.5px);
}

@media (max-width: 880px) {
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-solid {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .navbar {
    gap: 14px;
  }
}

@media (min-width: 881px) {
  .mobile-menu {
    display: none;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
  filter: brightness(100%) contrast(100%);
}

.hero-bg-slide.active {
  opacity: 0.65; /* Highly visible but soft in light mode */
  z-index: 2;
}

html.dark .hero-bg-slide.active {
  opacity: 0.4; /* Dark mode visibility */
  filter: brightness(70%) contrast(105%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 45%, var(--scrim-a) 100%),
    radial-gradient(rgba(47, 111, 237, 0.08) 1.5px, transparent 1.5px);
  background-size: auto, 18px 18px;
  transition: background .4s ease;
  z-index: 3;
}

html.dark .hero-scrim {
  background: 
    linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 45%, var(--scrim-a) 100%),
    radial-gradient(rgba(20, 200, 176, 0.12) 1.5px, transparent 1.5px);
  background-size: auto, 18px 18px;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(20,200,176,0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(47,111,237,0.08), transparent 50%),
    #FFFFFF;
  background-size: 200% 200%;
  animation: driftBg 18s ease-in-out infinite;
  z-index: 1;
  transition: background .4s ease;
}

html.dark .hero-video-fallback {
  background: 
    radial-gradient(circle at 20% 30%, rgba(20,200,176,0.24), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(47,111,237,0.26), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(11,17,32,0.4), transparent 60%),
    #0B1120;
}

.floaty {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  background: radial-gradient(circle, rgba(20,200,176,0.9), rgba(20,200,176,0));
  animation: floatUp 9s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1640px; /* expand layout to push cards to the borders of the screen */
  margin: 0 auto;
  width: 100%;
  padding: 0 40px; /* safety border gap */
  display: grid;
  grid-template-columns: 1.55fr minmax(320px, 440px); /* copy card takes up much more horizontal space */
  gap: clamp(80px, 8vw, 150px);
  align-items: stretch; /* stretch cards to be equal height */
}

.hero-copy {
  order: 1;
  position: relative;
  text-align: left;
  padding: 28px 60px; /* more horizontal padding, less vertical padding for a wider shape */
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px var(--shadow-color);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: background .4s ease;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* keep content centered vertically inside stretched card */
}

html.dark .hero-copy {
  background: rgba(11, 17, 32, 0.45);
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px; /* border thickness */
  background: linear-gradient(90deg, transparent, var(--primary), transparent, var(--primary), transparent);
  background-size: 200% 100%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: flowBorder 4s linear infinite;
  pointer-events: none;
  z-index: 2; /* draw border on top of glass bg */
}

.decor-yantra {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 280px;
  height: 280px;
  opacity: .14;
  z-index: 0;
  pointer-events: none;
  animation: spinSlow 60s linear infinite;
}

.decor-numeral {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--blue);
  opacity: .16;
  z-index: 0;
  pointer-events: none;
  animation: floatUp 7s ease-in-out infinite;
}

.n1 {
  top: 6px;
  left: -18px;
  font-size: 52px;
  animation-delay: 0s;
}

.n2 {
  bottom: 60px;
  right: 14px;
  font-size: 38px;
  animation-delay: 1.4s;
  color: var(--teal);
}

.n3 {
  top: 120px;
  right: 60px;
  font-size: 30px;
  animation-delay: 2.6s;
}

.gbp-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0b1120; /* High contrast black for light mode visibility */
  margin-bottom: 22px;
  transition: background .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  text-decoration: none;
}

html.dark .gbp-badge {
  color: #FAF9F6; /* Fallback to light in dark mode */
}

.gbp-badge:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(47, 111, 237, 0.12);
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.12);
}

.gbp-badge .stars {
  color: #F2A93B;
  letter-spacing: 1px;
  transition: transform .3s ease;
  display: inline-block;
}

.gbp-badge:hover .stars {
  transform: scale(1.15) rotate(4deg);
  text-shadow: 0 0 8px rgba(242, 169, 59, 0.6);
}

.gbp-badge .muted {
  color: #0b1120;
  opacity: 0.8;
  font-weight: 500;
}

html.dark .gbp-badge .muted {
  color: #FAF9F6;
  opacity: 0.7;
}

.hero-copy h1 {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.hero-copy h1 .accent {
  background: linear-gradient(120deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px #0b1120; /* Very thin black outline in light mode */
}

html.dark .hero-copy h1 .accent {
  -webkit-text-stroke: unset; /* Remove black outline in dark mode */
}

.hero-copy p.lead {
  position: relative;
  z-index: 2;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-text);
  max-width: 820px;
  margin: 0 0 28px;
}

/* Infinite Marquee Loop (Left-to-Right) */
.marquee-container {
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
  /* Faded edge effects */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 38s linear infinite;
  gap: 12px;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: #0b1120;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

html.dark .marquee-group span {
  color: #FAF9F6;
}

.marquee-group span::before {
  content: '\2713'; /* U+2713 CHECK MARK, correctly encoded */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #10B981; /* Verified green background */
  color: #ffffff; /* White tick, readable against the green circle */
  font-size: 8px;
  font-weight: 900;
  border-radius: 50%;
  margin-right: 2px;
  flex-shrink: 0;
}

.marquee-group span:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(16, 185, 129, 0.08);
  border-color: #10B981;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(-50%); /* Start at half width to scroll left-to-right */
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy-cta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-copy-cta .btn-solid {
  padding: 14px 26px;
  font-size: 15px;
}

.hero-copy-cta .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-color);
  padding: 14px 4px;
  text-decoration: none;
}

.hero-copy-cta .btn-text:hover {
  color: var(--blue);
}

.hero-copy-cta .btn-text svg {
  transition: transform .25s ease;
}

.hero-copy-cta .btn-text:hover svg {
  transform: translateY(3px);
}

/* Carousel Slide Transitions */
.hero-carousel-content {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: translateY(0);
}

.hero-carousel-content.fade {
  opacity: 0;
  transform: translateY(8px);
}

.carousel-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin: 18px 0 24px;
}

.carousel-dots .dot {
  width: 24px;
  height: 5px;
  border-radius: 99px;
  border: none;
  background: var(--ghost-border);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  padding: 0;
}

.carousel-dots .dot.active {
  background: var(--primary);
  width: 36px;
}

.hero-form {
  order: 2;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 100px; /* was 120px — actual fixed header is ~80-85px tall, this was reserving ~35-40px of unnecessary clearance */
    align-items: flex-start; /* anchor content right below the header instead of centering it inside the full-height section */
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 16px; /* Widen the card containers on tablet/mobile */
  }
  .hero-copy {
    order: 1;
    padding: 24px 16px; /* Widen inner space by reducing side padding */
    border-radius: 20px;
  }
  .gbp-badge {
    padding: 5px 10px 5px 6px;
    font-size: 11.5px;
    margin-bottom: 16px;
  }
  .marquee-container {
    margin-bottom: 16px;
  }
  .carousel-dots {
    justify-content: center;
    margin: 12px 0 16px;
  }
  .hero-form {
    order: 2;
  }
  .decor-yantra {
    width: 200px;
    height: 200px;
    top: -40px;
    right: -50px;
    opacity: .1;
  }
  .n1, .n2, .n3 {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 92px; /* was 104px — trimmed to match the real header height on small phones */
    padding-bottom: 60px;
  }
  .gbp-badge .muted {
    display: none; /* Hide long description to fit review rating cleanly on narrow phones */
  }
}
.form-card {
  position: relative;
  border-radius: 28px;
  padding: 20px 24px 16px; /* more compact padding */
  box-shadow: 0 24px 60px var(--shadow-color);
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px; /* border thickness */
  background: linear-gradient(90deg, transparent, var(--primary), transparent, var(--primary), transparent);
  background-size: 200% 100%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: flowBorder 4s linear infinite;
  pointer-events: none;
  z-index: 2; /* draw border on top of glass bg */
}

.offer-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #0b1120; /* High contrast black text on yellow/gold background */
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .3px;
  margin-bottom: 8px; /* thinned margin */
}

.form-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 3px; /* thinned margin */
  color: var(--text-color);
}

.form-card p.sub {
  font-size: 14px;
  color: var(--muted-text);
  margin: 0 0 12px; /* thinned margin */
}

.field {
  margin-bottom: 10px; /* thinned margin */
  text-align: left;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px; /* thinned margin */
  color: var(--text-color);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.field input, .field select {
  width: 100%;
  padding: 8px 12px; /* thinned padding */
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.field input::placeholder {
  color: var(--placeholder-color);
}

.field input:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15); /* yellow focus glow */
  background: transparent;
  outline: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B1120' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

html.dark .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F1F3F7' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  display: none;
}

.field.invalid input, .field.invalid select {
  border-color: var(--error);
}

.field.invalid .field-error {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 11px; /* thinned padding */
  border-radius: 14px;
  font-size: 15px;
  margin-top: 2px; /* thinned margin */
  text-align: center;
  border: none;
  cursor: pointer;
}

.form-note {
  font-size: 11.5px;
  color: var(--muted-text);
  text-align: center;
  margin-top: 8px; /* thinned margin */
  line-height: 1.5;
}

/* OTP STAGE */
.otp-stage {
  text-align: center;
}

.otp-sent-to {
  font-size: 13.5px;
  color: var(--muted-text);
  margin-bottom: 18px;
}

.otp-sent-to b {
  color: var(--text-color);
}

.otp-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.otp-boxes input {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  background: var(--otp-bg);
  color: var(--text-color);
  outline: none;
}

.otp-boxes input:focus {
  border-color: var(--blue);
  background: transparent;
}

.otp-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.resend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-text);
}

.resend.active {
  color: var(--blue);
  cursor: pointer;
}

.back-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-text);
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--blue);
}

/* SUCCESS STAGE */
.success-stage {
  text-align: center;
  padding: 12px 4px 4px;
}

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .45s cubic-bezier(.34, 1.56, .64, 1);
}

.success-stage h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 8px;
}

.success-stage p {
  font-size: 14px;
  color: var(--muted-text);
  margin: 0 0 20px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .form-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }
}

.btn-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
  font-weight: 700;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease !important;
}

.btn-whatsapp:hover {
  background: #1ebe50 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3) !important;
}
/* ============ COURSES SECTION ============ */
.courses-section {
  position: relative;
  padding: 80px 0;
  z-index: 2;
  overflow: hidden;
  background: #FFFFFF; /* Pure white in light mode */
  transition: background 0.4s ease;
}

html.dark .courses-section {
  background: #000000; /* Pure black in dark mode to match body */
}

/* Background Slide Media Container (Dynamic cross-fade watermark identical to Hero) */
.courses-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.courses-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.courses-bg-slide.active {
  opacity: 0.65; /* Highly visible but soft in light mode, matching Hero bg active slide */
}

html.dark .courses-bg-slide.active {
  opacity: 0.4; /* Dark mode visibility, matching Hero bg active slide */
  filter: brightness(70%) contrast(105%); /* Matching Hero filters */
}

/* Gradient Scrim Overlay (Identical to Hero setup to ensure seamless blending in all modes) */
.courses-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 45%, var(--scrim-a) 100%),
    radial-gradient(rgba(250, 204, 21, 0.04) 1.5px, transparent 1.5px);
  background-size: auto, 18px 18px;
}

.courses-container {
  position: relative;
  z-index: 3; /* Sit on top of the overlays */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.courses-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.courses-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-color);
}

/* Highlighted Text with Thin Black Outline matching the Hero Section H1 Accent */
.courses-header h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px #0b1120; /* Very thin black outline in light mode */
  display: inline-block;
}

html.dark .courses-header h2 .highlight {
  -webkit-text-stroke: unset; /* Remove outline in dark mode */
}

/* Matching the lead description font from the hero section */
.courses-header p {
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-text);
  max-width: 720px;
  margin: 0 auto;
}

.launch-banner {
  background: rgba(250, 204, 21, 0.08); /* Translucent brand yellow tint */
  border: 1.2px solid rgba(250, 204, 21, 0.35); /* Specular yellow outline */
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding: 12px 24px;
  border-radius: 16px;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.06);
  overflow: hidden;
}

.banner-marquee-track {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.launch-banner .banner-text {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  font-size: 14.2px;
  color: var(--ink); /* Black in light mode */
  white-space: nowrap;
}

html.dark .launch-banner .banner-text {
  color: #FFFFFF; /* White in dark mode */
}

.launch-banner .highlight-yellow {
  color: #D97706; /* Darker amber-yellow in light mode for excellent contrast */
  font-weight: 800;
}

html.dark .launch-banner .highlight-yellow {
  color: var(--primary); /* Bright neon yellow in dark mode */
}

.launch-banner .duplicate-text {
  display: none;
}

@media (max-width: 768px) {
  .launch-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 14px 0;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }

  .banner-marquee-track {
    display: flex;
    width: max-content;
    justify-content: flex-start;
    align-items: center;
    animation: bannerMarqueeRightToLeft 16s linear infinite;
  }

  .launch-banner .banner-text {
    display: inline-block;
    padding-right: 48px; /* Symmetrical separation space between loops */
    font-size: 13.5px;
  }

  .launch-banner .duplicate-text {
    display: inline-block;
  }
}

@keyframes bannerMarqueeRightToLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes bannerPulse {
  0%, 100% { 
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.06); 
    border-color: rgba(250, 204, 21, 0.35);
  }
  50% { 
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.2); 
    border-color: rgba(250, 204, 21, 0.6);
    transform: translateY(-1px);
  }
}

@keyframes iconPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.4)); }
  100% { transform: scale(1.2); filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.8)); }
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.course-card {
  position: relative;
  border-radius: 28px; /* Matched to Hero Copy card border radius */
  background: transparent;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  box-shadow: 0 10px 40px var(--shadow-color);
}

/* Thin sliding yellow border active on ALL course cards at all times (identical to Hero copy card border style) */
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px; /* Matched to Hero Copy card border radius */
  padding: 1px; /* border thickness matched to 1px */
  background: linear-gradient(90deg, transparent, var(--primary), transparent, var(--primary), transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: flowBorder 4s linear infinite; /* Matched 4s animation loop */
  opacity: 0.45; /* Soft opacity matching hero unselected/unfocused layouts */
  transition: opacity 0.35s ease, padding 0.35s ease;
}

/* Hover effect: make the yellow border more prominent */
.course-card:hover::before {
  opacity: 0.85;
}

/* Selected state: thicker, bright, moving yellow border highlight */
.course-card.selected::before {
  padding: 1.2px; /* Slightly thicker outline for active selection */
  opacity: 1; /* Fully solid and glowing */
}

/* Glassmorphism Inner Mask (Aligned 100% with the Hero copy card glass transparency & style) */
.course-card-content {
  position: relative;
  z-index: 2;
  /* Premium double-layered frosted glass background with diagonal texture */
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 8px),
    rgba(255, 255, 255, 0.38); /* Slightly optimized transparency for clear watermark showing */
  backdrop-filter: blur(12px) saturate(140%); /* Exact blur matched to Hero Copy card */
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  margin: 1.2px;
  border-radius: 27px;
  padding: 30px 24px;
  width: calc(100% - 2.4px);
  height: calc(100% - 2.4px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

html.dark .course-card-content {
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.005) 0px, rgba(255, 255, 255, 0.005) 1px, transparent 1px, transparent 8px),
    rgba(11, 17, 32, 0.38); /* Matched dark transparency */
}

.course-card:hover {
  transform: translateY(-8px);
  /* Unified gold/yellow hover shadow glow matching the primary brand theme */
  box-shadow: 0 20px 45px rgba(250, 204, 21, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04);
}

.course-card.selected {
  box-shadow: 0 15px 35px rgba(250, 204, 21, 0.15); /* Yellow focus glow for selected card */
}

/* Category & ISO Credibility Row */
.course-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.course-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0b1120;
  background: var(--primary); /* Gold tag background */
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.iso-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(250, 204, 21, 0.07);
  border: 1px solid rgba(250, 204, 21, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.course-icon-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.course-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px rgba(11, 17, 32, 0.05);
  overflow: hidden;
  transition: transform 0.4s ease;
}

html.dark .course-icon-wrapper {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* 3D Illustration Graphic Icon Styles */
.course-3d-icon {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-card:hover .course-icon-wrapper {
  transform: scale(1.05) rotate(1.5deg);
}

.course-card:hover .course-3d-icon {
  transform: scale(1.18) translateY(-2px) rotate(4deg);
  filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.3));
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.age-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-color);
}

.duration-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted-text);
  font-weight: 500;
}

.frequency-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
}

.course-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  color: var(--text-color);
}

.course-card h3 .highlight-text {
  background: linear-gradient(120deg, var(--blue), var(--teal)); /* Match blue to teal hero accent */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.5px #0b1120; /* Very thin black outline in light mode */
  display: inline-block;
}

html.dark .course-card h3 .highlight-text {
  -webkit-text-stroke: unset; /* Remove black outline in dark mode */
}

/* Pricing Display block */
.course-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price-offer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  -webkit-text-stroke: 0.8px #0b1120; /* Thin black outline */
}

.price-regular {
  font-size: 15px;
  color: var(--muted-text);
  text-decoration: line-through;
  font-weight: 500;
  -webkit-text-stroke: 0.3px #0b1120; /* Super thin black outline */
}

html.dark .price-offer,
html.dark .price-regular {
  -webkit-text-stroke: unset;
}

.price-label {
  font-size: 10px;
  font-weight: 700;
  color: #0b1120;
  background: var(--primary); /* Gold pricing tag */
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Class Session Info Stats Box */
.class-session-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(11, 17, 32, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
}

html.dark .class-session-details {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.class-session-details span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.course-outcomes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1; /* push actions button row to bottom */
}

.course-outcomes-list li {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

/* Custom Circular Badge Check Bullets (Strictly matching main yellow brand) */
.check-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #0b1120 !important;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.2);
}

/* Risk-Reversal Trust Badge */
.course-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.06); /* Soft emerald green tint */
  border: 1px dashed rgba(16, 185, 129, 0.35); /* Dashed green border */
  padding: 8px 14px;
  border-radius: 12px;
  width: 100%;
  margin-bottom: 20px;
}

html.dark .course-trust-badge {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.2);
}

.trust-tick-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10B981; /* Emerald green background */
  color: #ffffff !important;
  font-size: 9px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.trust-badge-text {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.1px;
}

/* Action button rows */
.course-card-actions {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.course-card-actions .btn {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.select-btn {
  border: 1.5px solid var(--input-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-color) !important;
}

html.dark .select-btn {
  background: rgba(255, 255, 255, 0.03);
}

.select-btn:hover {
  background: var(--text-color);
  color: var(--bg) !important;
  border-color: var(--text-color);
}

.select-btn.selected {
  background: var(--primary) !important;
  color: #0b1120 !important;
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.2);
}

.trial-btn {
  border: 1.5px solid var(--primary) !important; /* Gold border outline */
  color: var(--text-color) !important;
  background: transparent;
}

.trial-btn:hover {
  background: var(--primary);
  color: #0b1120 !important;
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.25);
}

.courses-slider-dots {
  display: none;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .courses-container {
    padding: 0 24px;
  }

  .courses-slider-container {
    position: relative;
    width: 100%;
  }

  .courses-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .courses-grid::-webkit-scrollbar {
    display: none;
  }

  .course-card {
    flex: 0 0 calc(100% - 24px); /* Almost full screen swipe cards */
    scroll-snap-align: center;
  }

  .courses-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .courses-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--input-border);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .courses-dot.active {
    background: var(--primary);
    transform: scale(1.2);
  }
}
/* ============ SIMULATOR SECTION ============ */
.simulator-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 2;
  overflow: hidden;
  padding: 80px 0;
  
  /* Exact 38% opacity and glass frosted style matching hero section copy card */
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 8px),
    rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  
  /* Symmetrical top and bottom borders - open left and right ends, no corners */
  border-top: 1px solid rgba(250, 204, 21, 0.35);
  border-bottom: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: background 0.4s ease, border-color 0.4s ease;
}

html.dark .simulator-section {
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.003) 0px, rgba(255, 255, 255, 0.003) 1px, transparent 1px, transparent 8px),
    rgba(11, 17, 32, 0.38);
  border-top: 1px solid rgba(250, 204, 21, 0.22);
  border-bottom: 1px solid rgba(250, 204, 21, 0.22);
}

/* Blended Background Image specifically under the glassmorphic simulator section */
.simulator-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../images/bg_accreditations_blend.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.16; /* Light mode opacity */
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

html.dark .simulator-section::before {
  opacity: 0.28; /* Dark mode opacity */
  mix-blend-mode: overlay;
  filter: invert(1) brightness(0.65) saturate(130%);
}

.simulator-container {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.simulator-header {
  text-align: center;
  margin-bottom: 48px;
}

.simulator-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.simulator-header h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px #0b1120;
  display: inline-block;
}

html.dark .simulator-header h2 .highlight {
  -webkit-text-stroke: unset;
}

.simulator-header p {
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-text);
  max-width: 720px;
  margin: 0 auto;
}

/* Tab buttons */
.simulator-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  position: relative;
  z-index: 3;
}

.sim-tab-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.2px solid var(--input-border);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  letter-spacing: -0.1px;
}

html.dark .sim-tab-btn {
  background: rgba(11, 17, 32, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}

.sim-tab-btn:hover {
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.08);
}

.sim-tab-btn.active, html.dark .sim-tab-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--teal)) !important;
  border-color: transparent !important;
  color: #0b1120 !important;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.22) !important;
}

/* Workspace container */
.simulator-workspace-container {
  width: 100%;
}

.sim-workspace {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr;
  gap: 48px;
  align-items: stretch;
}

/* Control Panel */
.sim-control-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1.2px solid var(--input-border);
  padding-right: 48px;
}

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sim-control-panel h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  letter-spacing: -0.2px;
}

/* Autoplay toggler */
.autoplay-toggle-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: rgba(11, 17, 32, 0.02);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html.dark .autoplay-toggle-btn {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.autoplay-toggle-btn:hover {
  border-color: var(--primary);
}

.autoplay-toggle-btn.active {
  color: #10B981 !important;
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.pulse-dot {
  color: #10B981;
  animation: pulseFade 1.2s infinite;
}

@keyframes pulseFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Number selector grid */
.number-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.num-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: rgba(11, 17, 32, 0.03);
  color: var(--text-color);
  transition: all 0.25s ease;
  text-align: center;
}

html.dark .num-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.num-btn:hover {
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.05);
}

.num-btn.active, html.dark .num-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #0b1120 !important;
}

/* Presets for Multiplication */
.preset-number-selector {
  margin-bottom: 24px;
}

.preset-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text);
  margin-bottom: 8px;
  display: block;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.preset-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: rgba(11, 17, 32, 0.02);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.25s ease;
}

html.dark .preset-btn {
  background: rgba(255, 255, 255, 0.02);
}

.preset-btn:hover {
  border-color: var(--primary);
}

.preset-btn.active, html.dark .preset-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #0b1120 !important;
}

/* Slider */
.slider-wrapper {
  margin-bottom: 18px;
}

.sim-slider {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--input-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #0b1120;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--muted-text);
}

.slider-value-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  color: var(--primary);
  font-weight: 700;
}

/* Formula Box */
.formula-box {
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(250, 204, 21, 0.06);
  border: 1px dashed rgba(250, 204, 21, 0.35);
  margin-top: auto;
}

.formula-box span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted-text);
  display: block;
  margin-bottom: 2px;
}

.formula-box h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}

.formula-box p {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-color);
  opacity: 0.85;
}

/* ============ CUSTOM NUMBER INPUT (free-form calculator entry) ============ */
.custom-input-row {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1.2px solid rgba(16, 185, 129, 0.25);
}

.custom-input-row label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.custom-input-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-input-group input[type="text"] {
  width: 84px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg, #fff);
  color: var(--text-color);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.custom-input-group input[type="text"]:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.custom-input-times {
  font-weight: 800;
  color: var(--text-color);
  opacity: 0.6;
}

.btn-calculate,
.btn-surprise {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-calculate {
  background: #10B981;
  color: #ffffff;
}

.btn-calculate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-surprise {
  background: rgba(11, 17, 32, 0.06);
  color: var(--text-color);
  border: 1.2px solid var(--input-border);
}

.btn-surprise:hover {
  transform: translateY(-1px);
  background: rgba(11, 17, 32, 0.1);
}

.input-error {
  min-height: 18px;
  margin: 8px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #EF4444;
}

/* ============ PRACTICE QUIZ ("Your Turn!") ============ */
.practice-quiz {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(99, 102, 241, 0.06);
  border: 1.2px dashed rgba(99, 102, 241, 0.35);
}

.practice-quiz h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-color);
  margin: 0 0 8px;
}

.quiz-question {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-color);
  margin: 0 0 12px;
}

.quiz-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-input-row input[type="text"] {
  width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg, #fff);
  color: var(--text-color);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.quiz-input-row input[type="text"]:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-check-answer {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: #6366F1;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-check-answer:disabled {
  opacity: 0.5;
  cursor: default;
}

.quiz-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

.quiz-feedback.success {
  color: #10B981;
}

.quiz-feedback.error {
  color: #EF4444;
}

.btn-try-another {
  display: none;
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1.2px solid rgba(99, 102, 241, 0.4);
  background: transparent;
  color: #6366F1;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 480px) {
  .custom-input-group input[type="text"],
  .quiz-input-row input[type="text"] {
    width: 100%;
  }
  .custom-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-calculate, .btn-surprise, .btn-check-answer {
    width: 100%;
    text-align: center;
  }
}

/* ============ GLASSMORPHIC DISPLAY SCREEN ============ */
.sim-visual-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  border-radius: 24px;
  
  /* Symmetrical glass styling aligned with hero cards */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--input-border) !important;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: background 0.4s ease, border-color 0.4s ease;
}

html.dark .sim-visual-display {
  background: rgba(11, 17, 32, 0.45);
}

/* Stepper Controls */
.sim-stepper-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(11, 17, 32, 0.02);
  border: 1px solid var(--input-border);
}

html.dark .sim-stepper-control {
  background: rgba(255, 255, 255, 0.025);
}

.stepper-nav-btn {
  background: transparent;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.25s ease;
  user-select: none;
}

.stepper-nav-btn:hover:not(:disabled) {
  opacity: 1;
  color: var(--primary);
}

.stepper-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.stepper-dots {
  display: flex;
  gap: 6px;
}

.stepper-dot {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted-text);
  cursor: pointer;
  transition: all 0.25s ease;
}

.stepper-dot:hover {
  color: var(--text-color);
}

.stepper-dot.active {
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* Animation Playground Screen */
.sim-animation-playground {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
  border-radius: 20px;
  background: rgba(11, 17, 32, 0.015);
  border: 1px solid var(--input-border);
}

html.dark .sim-animation-playground {
  background: rgba(255, 255, 255, 0.01);
}

.playground-track {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Glassmorphic Digit Chips */
.digit-chip {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-color);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  
  /* Raised Glassmorphic styling */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  border: 1.5px solid var(--input-border);
  box-shadow: 0 4px 12px var(--shadow-color);
}

html.dark .digit-chip {
  background: rgba(15, 23, 42, 0.65);
}

.chip-annotation {
  position: absolute;
  top: 8px;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted-text);
  opacity: 0.65;
  transition: opacity 0.3s;
}

.chip-subcalc {
  position: absolute;
  bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.2px;
  animation: pop 0.4s forwards;
}

.chip-carry-indicator {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  border: 1px solid #000;
  animation: pop 0.3s forwards;
  z-index: 10;
}

/* SUTRA 1 (Squares of 5) Animations */
.square5-track.step-0 {
  gap: 12px;
}

.square5-track.step-1 {
  gap: 36px;
}

.square5-track.step-1 .tens-chip {
  border-color: var(--primary);
}

.square5-track.step-2 {
  gap: 24px;
}

.square5-track.step-2 .units-chip {
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.08);
}

.square5-track.step-3 {
  gap: 0px;
}

/* Green Translucent Glass Success on Merge Step 3 */
.square5-track.step-3 .digit-chip {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25) !important;
}

.square5-track.step-3 .tens-chip {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.square5-track.step-3 .units-chip {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.square5-track.step-3 .chip-annotation {
  opacity: 0;
}

/* SUTRA 2 (Multiply by 11) Animations */
.mult11-track .middle-sum-chip {
  width: 0;
  opacity: 0;
  padding: 0;
  border-width: 0;
  pointer-events: none;
  transform: translateY(-30px);
}

.mult11-track.step-0 {
  gap: 12px;
}

.mult11-track.step-1 {
  gap: 86px;
}

.mult11-track.step-2 {
  gap: 20px;
}

.mult11-track.step-2 .middle-sum-chip {
  width: 72px;
  opacity: 1;
  padding: 0;
  border-width: 1.5px;
  pointer-events: auto;
  transform: translateY(0);
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.08);
}

.mult11-track.step-3 {
  gap: 0px;
}

/* Green Translucent Glass Success on Merge Step 3 */
.mult11-track.step-3 .digit-chip {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25) !important;
}

.mult11-track.step-3 .middle-sum-chip {
  width: 72px;
  opacity: 1;
  padding: 0;
  border-width: 1.5px;
  pointer-events: auto;
  transform: translateY(0);
  border-radius: 0;
  border-right: none;
}

.mult11-track.step-3 .left-digit-chip {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.mult11-track.step-3 .right-digit-chip {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.mult11-track.step-3 .chip-annotation {
  opacity: 0;
}

/* Live Dynamic Instructions overlay panel */
.sim-live-instructions {
  background: rgba(250, 204, 21, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1.2px solid var(--input-border);
  border-left-width: 4px;
  transition: all 0.3s ease;
}

html.dark .sim-live-instructions {
  background: rgba(250, 204, 21, 0.02);
}

.sim-live-instructions p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-color);
  font-weight: 500;
  margin: 0;
}

html.dark .sim-live-instructions {
  background: #0d1424;
  box-shadow: 
    inset 2px 2px 4px #060a12, 
    inset -2px -2px 4px #141e36;
}

.sim-live-instructions p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-color);
  font-weight: 500;
  margin: 0;
}

/* Equation results banner */
.display-main-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  color: var(--text-color);
  padding: 12px 0 16px;
  border-bottom: 1.5px solid var(--input-border);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.equation-operator {
  color: var(--primary);
}

.equation-result {
  color: var(--primary);
  opacity: 0.12;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s;
  transform: scale(0.9);
}

.equation-result.reveal {
  opacity: 1;
  transform: scale(1);
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
  animation: resultGlow 0.9s ease-out;
}

@keyframes resultGlow {
  0% { transform: scale(1.1); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Step list flow */
.simulation-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sim-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  opacity: 0.22;
  transform: translateY(8px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sim-step-item.active {
  opacity: 1;
  transform: translateY(0);
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--input-border);
  color: var(--text-color);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s;
}

.sim-step-item.active .step-badge {
  background: var(--primary);
  color: #0b1120;
}

.step-text p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.5;
}

.calculation-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  background: rgba(11, 17, 32, 0.035);
  border: 1px solid var(--input-border);
  border-radius: 8px;
}

html.dark .calculation-code {
  background: rgba(255, 255, 255, 0.035);
}

.highlight-val {
  color: var(--primary);
}

.highlight-result {
  color: #10B981;
  font-weight: 800;
}

.carry-notice {
  font-size: 11.5px;
  color: #EF4444;
  font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .sim-workspace {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "select-title"
      "selectors"
      "playground"
      "equation"
      "stepper"
      "instructions"
      "formula"
      "steps-list"
      "benefits";
    gap: 20px;
  }

  /* Make panels serve as display wrappers, bubbled to top-level grid */
  .sim-control-panel,
  .sim-visual-display {
    display: contents;
  }

  /* Grid area assignments on mobile only */
  .control-head {
    grid-area: select-title;
  }

  .sim-inputs-wrapper {
    grid-area: selectors;
  }

  .sim-animation-playground {
    grid-area: playground;
  }

  .display-main-equation {
    grid-area: equation;
  }

  .sim-stepper-control {
    grid-area: stepper;
  }

  .sim-live-instructions {
    grid-area: instructions;
  }

  .formula-box {
    grid-area: formula;
    margin-top: 0;
  }

  .simulation-steps {
    grid-area: steps-list;
  }

  .sim-benefits-box {
    grid-area: benefits;
  }
}

@media (max-width: 500px) {
  .simulator-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .sim-tab-btn {
    text-align: center;
  }

  .number-selector {
    grid-template-columns: repeat(4, 1fr);
  }

  .display-main-equation {
    font-size: 28px;
  }

  .sim-stepper-control {
    padding: 6px 12px;
  }

  .stepper-dots {
    gap: 4px;
  }

  .stepper-dot {
    padding: 3px 6px;
    font-size: 9.5px;
  }
  
  /* Reset padding when in display: contents */
  .sim-visual-display {
    padding: 0;
    box-shadow: none;
    background: transparent;
    border: none !important;
  }
}

/* ============ SUTRA BENEFITS BOX ============ */
.sim-benefits-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--input-border);
}

html.dark .sim-benefits-box {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.sim-benefits-box h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-benefits-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.sim-benefits-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.4;
}

.sim-benefits-box li svg {
  flex-shrink: 0;
  margin-top: 3px;
}
/* ============ ACCREDITATIONS SECTION ============ */
.accreditations-section {
  position: relative;
  padding: 80px 0 90px;
  z-index: 2;
  overflow: hidden;
  background: #FFFFFF;
  transition: background 0.4s ease;
}

html.dark .accreditations-section {
  background: #000000;
}

/* Blended Background Image specifically under the glassmorphic band */
.accreditations-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../images/bg_accreditations_blend.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.16; /* Light mode opacity */
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

html.dark .accreditations-section::before {
  opacity: 0.28; /* Dark mode opacity */
  mix-blend-mode: overlay;
  filter: invert(1) brightness(0.65) saturate(130%);
}

/* Gradient Scrim Overlay for smooth vertical blending */
.accreditations-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--scrim-a) 0%, transparent 20%, transparent 80%, var(--scrim-a) 100%);
}

.accreditations-container {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.accreditations-header {
  text-align: center;
  margin-bottom: 44px;
}

.accreditations-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.accreditations-header h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px #0b1120;
  display: inline-block;
}

html.dark .accreditations-header h2 .highlight {
  -webkit-text-stroke: unset;
}

.accreditations-header p {
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-text);
  max-width: 720px;
  margin: 0 auto;
}

/* Full-width Glassmorphic Registry Band */
.accreditations-glass-band {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 3;
  
  /* Exact 38% opacity and glass frosted style matching hero section copy card */
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 8px),
    rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  
  /* Symmetrical top and bottom borders - open left and right ends, no corners */
  border-top: 1px solid rgba(250, 204, 21, 0.35);
  border-bottom: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 10px 40px var(--shadow-color);
  padding: 48px 0;
  transition: background 0.4s ease, border-color 0.4s ease;
}

html.dark .accreditations-glass-band {
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.003) 0px, rgba(255, 255, 255, 0.003) 1px, transparent 1px, transparent 8px),
    rgba(11, 17, 32, 0.38);
  border-top: 1px solid rgba(250, 204, 21, 0.22);
  border-bottom: 1px solid rgba(250, 204, 21, 0.22);
}

.accreditations-band-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* 2-Column Registry Sheet */
.accreditations-compact-sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  width: 100%;
}

.compact-sheet-column {
  display: flex;
  flex-direction: column;
}

/* Compact Registry Row */
.accreditation-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 12px;
  border-bottom: 1.2px solid var(--input-border);
  transition: background 0.35s cubic-bezier(0.25, 1, 0.5, 1), padding-left 0.35s ease;
  position: relative;
  border-radius: 8px;
}

.accreditation-compact-row:hover {
  background: rgba(250, 204, 21, 0.045);
  padding-left: 20px;
}

html.dark .accreditation-compact-row:hover {
  background: rgba(250, 204, 21, 0.025);
}

.accreditation-compact-row:last-child {
  border-bottom: none;
}

.accreditation-row-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Gold Stamp Seal Badge (Miniature version) */
.compact-gold-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.16) 0%, rgba(250, 204, 21, 0.03) 100%);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accreditation-compact-row:hover .compact-gold-seal {
  transform: rotate(10deg) scale(1.1);
}

.compact-row-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.compact-row-meta h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.compact-row-meta span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--muted-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Monospaced Copyable Badges */
.compact-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.04);
  border: 1px solid var(--input-border);
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

html.dark .compact-code-badge {
  background: rgba(255, 255, 255, 0.04);
}

.compact-code-badge:hover {
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.08);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.1);
}

.compact-code-badge.copied {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
}

.copy-indicator {
  opacity: 0.65;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.compact-code-badge:hover .copy-indicator {
  opacity: 1;
}

/* Tooltip container */
.tooltip-text {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 9px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
  z-index: 10;
}

html.dark .tooltip-text {
  background: #FFFFFF;
  color: var(--ink);
}

.compact-code-badge:hover .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .accreditations-compact-sheet {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .compact-sheet-column:first-child .accreditation-compact-row:last-child {
    border-bottom: 1.2px solid var(--input-border);
  }
}

@media (max-width: 500px) {
  .accreditations-glass-band {
    padding: 24px 0;
  }

  .accreditation-compact-row {
    padding: 14px 4px;
  }

  .compact-row-meta h4 {
    font-size: 14px;
  }

  .compact-code-badge {
    padding: 5px 10px;
    font-size: 11px;
  }
}
/* ============ SUCCESS STORIES SECTION ============ */
.stories-section {
  position: relative;
  padding: 80px 0;
  z-index: 2;
  overflow: hidden;
  background: #FFFFFF; /* Pure white in light mode */
  transition: background 0.4s ease;
}

html.dark .stories-section {
  background: #000000; /* Pure black in dark mode to match body */
}

/* Gradient Scrim Overlay (Identical to Hero setup to ensure seamless blending in all modes) */
.stories-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 45%, var(--scrim-a) 100%),
    radial-gradient(rgba(250, 204, 21, 0.04) 1.5px, transparent 1.5px);
  background-size: auto, 18px 18px;
}

.stories-container {
  position: relative;
  z-index: 3; /* Sit on top of the overlays */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.stories-header {
  text-align: center;
  margin-bottom: 44px;
}

.stories-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-color);
}

/* Highlighted Text with Thin Black Outline matching the Hero Section H1 Accent */
.stories-header h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px #0b1120; /* Very thin black outline in light mode */
  display: inline-block;
}

html.dark .stories-header h2 .highlight {
  -webkit-text-stroke: unset; /* Remove outline in dark mode */
}

/* Matching the lead description font from the hero section */
.stories-header p {
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-text);
  max-width: 720px;
  margin: 0 auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.story-card {
  position: relative;
  border-radius: 24px;
  background: transparent;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  box-shadow: 0 10px 40px var(--shadow-color);
}

/* Thin sliding yellow border active on ALL story cards at all times (identical to Hero copy card border style) */
.story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px; /* border thickness matched to 1px */
  background: linear-gradient(90deg, transparent, var(--primary), transparent, var(--primary), transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: flowBorder 4s linear infinite; /* Matched 4s animation loop */
  opacity: 0.45; /* Soft opacity matching hero unselected layout */
  transition: opacity 0.35s ease;
}

/* Hover effect: make the yellow border more prominent */
.story-card:hover::before {
  opacity: 0.85;
}

/* Glassmorphism Inner Mask (Aligned 100% with the Hero copy card glass transparency & style) */
.story-card-content {
  position: relative;
  z-index: 2;
  /* Premium double-layered frosted glass background with diagonal texture */
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 8px),
    rgba(255, 255, 255, 0.38); /* Exact transparency matched to Hero Copy card */
  backdrop-filter: blur(12px) saturate(140%); /* Exact blur matched to Hero Copy card */
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  margin: 1.2px;
  border-radius: 23px;
  padding: 30px 24px;
  width: calc(100% - 2.4px);
  height: calc(100% - 2.4px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

html.dark .story-card-content {
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.005) 0px, rgba(255, 255, 255, 0.005) 1px, transparent 1px, transparent 8px),
    rgba(11, 17, 32, 0.38); /* Exact dark transparency matched to Hero Copy card */
}

.story-card:hover {
  transform: translateY(-8px);
  /* Unified gold/yellow hover shadow glow matching the primary brand theme */
  box-shadow: 0 20px 45px rgba(250, 204, 21, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04);
}

/* Google Review Header Layout */
.google-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 20px;
}

.google-review-profile {
  display: flex;
  gap: 14px;
  align-items: center;
}

.google-avatar-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--primary); /* Ultra-sharp gold border */
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 4px 10px rgba(11, 17, 32, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

html.dark .google-avatar-container {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.google-user-avatar {
  width: 88%;
  height: 88%;
  object-fit: contain;
  border-radius: 50%;
}

.story-card:hover .google-avatar-container {
  transform: scale(1.08) rotate(3deg);
}

.google-user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.google-user-meta h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 800; /* Extra bold for crisp visual definition */
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.2px; /* Tight, premium letter-spacing */
}

.google-reviewer-status {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted-text);
  font-weight: 600; /* Extra crisp font weight */
  letter-spacing: 0.1px;
  margin-top: 2px;
}

.google-stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.google-stars {
  display: flex;
  gap: 2.5px;
}

.google-star-svg {
  filter: drop-shadow(0 1px 1px rgba(245, 158, 11, 0.15));
}

.google-review-time {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--muted-text);
  font-weight: 700; /* Sharp typography styling */
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.google-brand-logo {
  flex-shrink: 0;
  margin-top: 1px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
  transition: transform 0.35s ease;
}

.story-card:hover .google-brand-logo {
  transform: scale(1.08) rotate(-4deg);
}

/* Google Review Text formatting with sharp font configs */
.google-review-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px; /* Slightly tighter size for maximum crispness */
  line-height: 1.7; /* Generous line height for reading comfort */
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 24px;
  font-style: italic;
  text-align: left;
  letter-spacing: -0.05px;
  flex-grow: 1; /* push footer to card bottom */
}

/* Google Read More CTA Button */
.google-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-color) !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--input-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

html.dark .google-read-more-btn {
  background: rgba(255, 255, 255, 0.04);
}

.google-read-more-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.google-read-more-btn:hover {
  background: var(--text-color);
  color: var(--bg) !important;
  border-color: var(--text-color);
  transform: translateY(-2px);
}

.google-read-more-btn:hover svg {
  transform: scale(1.1) rotate(-3deg);
}

.google-review-divider {
  width: 100%;
  height: 1px;
  background: var(--input-border);
  margin-bottom: 14px;
}

.google-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  gap: 12px;
}

.course-verification-label {
  font-family: 'Inter', sans-serif;
  color: var(--muted-text);
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.1px;
}

.course-verification-label b {
  color: var(--text-color);
}

.google-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  color: #10B981; /* Verified green color */
  font-weight: 800; /* Extra bold check badge text */
  font-size: 11px;
  letter-spacing: 0.1px;
  flex-shrink: 0;
}

.verified-check {
  font-weight: 900;
}

.stories-slider-dots {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .stories-container {
    padding: 0 24px;
  }

  .stories-slider-container {
    position: relative;
    width: 100%;
  }

  .stories-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stories-grid::-webkit-scrollbar {
    display: none;
  }

  .story-card {
    flex: 0 0 calc(100% - 24px); /* Almost full screen swipe cards */
    scroll-snap-align: center;
  }

  .stories-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .stories-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--input-border);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .stories-dot.active {
    background: var(--primary);
    transform: scale(1.2);
  }
}
/* ============ PARTNERS SECTION ============ */
.partners-section {
  position: relative;
  padding: 80px 0;
  z-index: 2;
  overflow: hidden;
  background: #FFFFFF; /* Pure white in light mode */
  transition: background 0.4s ease;
}

html.dark .partners-section {
  background: #000000; /* Pure black in dark mode to match body */
}

/* Gradient Scrim Overlay (Identical to Hero setup to ensure seamless blending in all modes) */
.partners-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    linear-gradient(180deg, var(--scrim-a) 0%, var(--scrim-b) 45%, var(--scrim-a) 100%),
    radial-gradient(rgba(250, 204, 21, 0.04) 1.5px, transparent 1.5px);
  background-size: auto, 18px 18px;
}

.partners-container {
  position: relative;
  z-index: 3; /* Sit on top of the overlays */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.partners-header {
  text-align: center;
  margin-bottom: 48px;
}

.partners-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-color);
}

/* Highlighted Text with Thin Black Outline matching the Hero Section H1 Accent */
.partners-header h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px #0b1120; /* Very thin black outline in light mode */
  display: inline-block;
}

html.dark .partners-header h2 .highlight {
  -webkit-text-stroke: unset; /* Remove outline in dark mode */
}

/* Matching the lead description font from the hero section */
.partners-header p {
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted-text);
  max-width: 720px;
  margin: 0 auto;
}

/* Marquee Area */
.partners-marquee-area {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  overflow: hidden;
}

/* Faded edge overlay masks for the marquee */
.partners-marquee-area::before,
.partners-marquee-area::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  z-index: 4;
  pointer-events: none;
}

.partners-marquee-area::before {
  left: 0;
  background: linear-gradient(to right, var(--scrim-a) 0%, transparent 100%);
}

.partners-marquee-area::after {
  right: 0;
  background: linear-gradient(to left, var(--scrim-a) 0%, transparent 100%);
}

/* Scrolling Tracks */
.partner-marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.partner-marquee-group {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
}

/* Left-to-Right and Right-to-Left Animations */
.left-to-right .partner-marquee-group {
  animation: marqueeLeft 42s linear infinite;
}

.right-to-left .partner-marquee-group {
  animation: marqueeRight 42s linear infinite;
}

/* Pause animations on hover for reader comfort */
.partner-marquee-track:hover .partner-marquee-group {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Card Styling identical to Courses/Success stories layout */
.partner-card {
  position: relative;
  border-radius: 20px;
  background: transparent;
  width: 320px;
  height: 98px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 24px var(--shadow-color);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* Active flowing border outline identical to Hero copy card border style */
.partner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px; /* border thickness matched to 1px */
  background: linear-gradient(90deg, transparent, var(--primary), transparent, var(--primary), transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: flowBorder 4s linear infinite; /* Matched 4s animation loop */
  opacity: 0.45; /* Soft opacity matching hero unselected layout */
  transition: opacity 0.35s ease;
}

/* Hover effect: make the yellow border more prominent */
.partner-card:hover::before {
  opacity: 0.85;
}

/* Glassmorphism Inner Mask (Aligned 100% with the Hero copy card glass transparency & style) */
.partner-card-content {
  position: relative;
  z-index: 2;
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 8px),
    rgba(255, 255, 255, 0.38); /* Exact transparency matched to Hero Copy card */
  backdrop-filter: blur(12px) saturate(140%); /* Exact blur matched to Hero Copy card */
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  margin: 1.2px;
  border-radius: 19px;
  padding: 16px 20px;
  width: calc(100% - 2.4px);
  height: calc(100% - 2.4px);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

html.dark .partner-card-content {
  background: 
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.005) 0px, rgba(255, 255, 255, 0.005) 1px, transparent 1px, transparent 8px),
    rgba(11, 17, 32, 0.38); /* Exact dark transparency matched to Hero Copy card */
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(250, 204, 21, 0.06), 0 8px 16px rgba(0, 0, 0, 0.03);
}

/* Shield emblem elements styling */
.partner-crest-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.partner-card:hover .partner-crest-container {
  transform: scale(1.08) rotate(4deg);
}

.partner-crest-svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.04));
}

.partner-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.partner-details h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 800; /* Extra bold matching review layouts */
  color: var(--text-color);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.partner-details span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-link {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-top: 3px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}

.partner-link:hover {
  opacity: 0.8;
}

/* Mobile responsive speed overrides and marquee size reductions */
@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0;
  }
  
  .partners-header {
    margin-bottom: 36px;
  }
  
  .partner-card {
    width: 270px;
    height: 88px;
  }
  
  .partner-card-content {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .partner-details h4 {
    font-size: 13px;
  }
  
  .partner-details span {
    font-size: 10px;
  }

  /* Increase marquee scrolling speed on mobile for an active, moving feel */
  .left-to-right .partner-marquee-group {
    animation-duration: 26s;
  }

  .right-to-left .partner-marquee-group {
    animation-duration: 26s;
  }
}
/* ============ ABOUT US SECTION ============ */
.about-section {
  position: relative;
  padding: 90px 0 100px;
  z-index: 2;
  overflow: hidden;
  background: #FFFFFF;
  transition: background 0.4s ease;
}

html.dark .about-section {
  background: #000000;
}

.about-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Left Column: Founder */
.about-founder-side {
  display: flex;
  flex-direction: column;
}

.about-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.about-founder-side h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text-color);
}

.about-founder-side h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.founder-intro {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 24px;
}

/* Quote styling */
.founder-quote {
  background: rgba(250, 204, 21, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  position: relative;
  border: 1px solid var(--input-border);
  border-left-width: 4px;
}

html.dark .founder-quote {
  background: rgba(250, 204, 21, 0.02);
}

.quote-icon {
  position: absolute;
  top: -8px;
  left: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
}

.founder-quote p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-color);
  font-weight: 550;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Right Column: Pillars */
.about-pillars-side {
  display: flex;
  flex-direction: column;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1.2px solid var(--input-border);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

html.dark .pillar-item {
  background: rgba(11, 17, 32, 0.45);
}

.pillar-item:hover {
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.02);
  transform: translateY(-2px);
}

.pillar-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-text h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 4px;
}

.pillar-text p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.45;
  margin: 0;
}

/* ============ INFINITE STATS CARDS TICKER ============ */
.about-stats-ticker {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: auto;
  margin-top: 72px;
  padding: 16px 0;
  cursor: grab;
  user-select: none;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.about-stats-ticker::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Safari and Chrome */
}

/* Masked Edge Fades */
.ticker-fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #FFFFFF 20%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  transition: background 0.4s ease;
}

html.dark .ticker-fade-left {
  background: linear-gradient(to right, #000000 20%, transparent 100%);
}

.ticker-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to left, #FFFFFF 20%, transparent 100%);
  z-index: 5;
  pointer-events: none;
  transition: background 0.4s ease;
}

html.dark .ticker-fade-right {
  background: linear-gradient(to left, #000000 20%, transparent 100%);
}

/* Loop Track */
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding-left: 28px;
}

/* Moving Stat Card */
.stat-card {
  width: 290px;
  height: 146px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 1.2px solid var(--input-border);
  border-radius: 24px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

html.dark .stat-card {
  background: rgba(11, 17, 32, 0.45);
}

/* Hover Glowing Outlines & Elevations */
.stat-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: var(--card-glow-color) !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.08), 
    0 0 20px rgba(250, 204, 21, 0.12);
}

/* Internal Card Radial Highlight */
.stat-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 12%, var(--card-glow-color) 0%, transparent 60%);
  opacity: 0.04;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.stat-card:hover .stat-card-glow {
  opacity: 0.16;
}

/* Card layout */
.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.stat-card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

html.dark .stat-card-icon-box {
  background: rgba(15, 23, 42, 0.7);
}

.stat-card:hover .stat-card-icon-box {
  background: var(--card-glow-color);
  border-color: var(--card-glow-color);
  transform: rotate(-6deg);
}

.stat-card:hover .stat-card-icon-box svg {
  stroke: #0b1120 !important;
}

.stat-card-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--card-glow-color);
  margin: 0;
  letter-spacing: -1.2px;
}

.stat-card-content {
  position: relative;
  z-index: 2;
}

.stat-card-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-color);
  margin: 0 0 4px;
}

.stat-card-content p {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.4;
}

/* Responsive overrides */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .ticker-track {
    gap: 16px;
    padding-left: 16px;
  }
  
  .stat-card {
    width: 250px;
    height: 130px;
    padding: 16px;
  }

  .stat-card-header h3 {
    font-size: 26px;
  }
  
  .stat-card-content h4 {
    font-size: 13px;
  }
  
  .stat-card-content p {
    font-size: 11.5px;
  }

  .about-stats-ticker {
    margin-top: 48px;
  }
}
/* ============ FRANCHISE SECTION ============ */
.franchise-section {
  position: relative;
  padding: 100px 0;
  z-index: 2;
  overflow: hidden;
  background: #FFFFFF;
  transition: background 0.4s ease;
}

html.dark .franchise-section {
  background: #000000;
}

.franchise-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
  position: relative;
  z-index: 3;
}

/* Left Column: Intro Panel */
.franchise-intro-panel {
  display: flex;
  flex-direction: column;
}

.franchise-mini-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.franchise-intro-panel h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text-color);
}

.franchise-intro-panel h2 .highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.franchise-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-text);
  margin-bottom: 36px;
}

/* Location Hubs Grid (Card-less layout) */
.franchise-hubs {
  border-top: 1.2px solid var(--input-border);
  padding-top: 32px;
  transition: border-color 0.4s ease;
}

html.dark .franchise-hubs {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.hubs-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.hubs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hub-node {
  display: flex;
  flex-direction: column;
}

.hub-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* Pulsing coordinate points */
.hub-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}

.hub-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  animation: pulseCoord 1.6s infinite;
}

@keyframes pulseCoord {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hub-pulse.secondary {
  background: var(--secondary);
}

.hub-pulse.secondary::after {
  border-color: var(--secondary);
}

.hub-node h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.hub-city {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 750;
  color: var(--primary);
  margin-bottom: 2px;
}

.hub-address {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-text);
}

/* Right Column: Benefits Panel */
.franchise-benefits-panel {
  display: flex;
  flex-direction: column;
}

.benefits-head {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 750;
  color: var(--text-color);
  margin-bottom: 28px;
  letter-spacing: -0.2px;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.advantage-node {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Large numbers styling */
.advantage-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  opacity: 0.8;
  display: inline-block;
  min-width: 36px;
}

.advantage-text h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 6px;
}

.advantage-text p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.45;
  margin: 0;
}

/* Call to Action Button */
.franchise-cta-box {
  margin-top: 36px;
}

.franchise-cta-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.2px solid var(--primary);
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.franchise-cta-btn:hover {
  background: var(--primary);
  color: #0b1120;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.25);
  transform: translateY(-1px);
}

.franchise-cta-btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.franchise-cta-btn:hover .arrow {
  transform: translateX(4px);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .franchise-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .franchise-benefits-panel {
    border-top: 1.2px solid var(--input-border);
    padding-top: 36px;
  }

  html.dark .franchise-benefits-panel {
    border-top-color: rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 500px) {
  .hubs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .franchise-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ============ FOOTER SECTION ============ */
.footer-section {
  background-color: #f8fafc;
  padding-top: 80px;
  border-top: 1px solid var(--input-border);
  position: relative;
  z-index: 10;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}

html.dark .footer-section {
  background-color: #000000;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

/* Columns */
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-color);
  margin-bottom: 24px;
}

/* Brand info column */
.brand-col h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 750;
  color: var(--text-color);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.brand-col h3 span {
  color: var(--primary);
}

.brand-col p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-text);
  margin-bottom: 24px;
  max-width: 90%;
}

.social-links-row {
  display: flex;
  gap: 10px;
}

.social-links-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 17, 32, 0.03);
  border: 1px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  transition: all 0.3s ease;
}

html.dark .social-links-row a {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.social-links-row a:hover {
  background: var(--primary);
  color: #0b1120;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Navigation Links column */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--muted-text);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Contacts column */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contacts p {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.45;
  margin: 0;
}

.footer-contacts svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contacts a {
  color: var(--muted-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contacts a:hover {
  color: var(--primary);
}

/* Secured Payments column */
.payments-col h4 {
  margin-bottom: 16px;
}

.payment-intro {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--muted-text);
  line-height: 1.5;
  margin-bottom: 14px;
}

.razorpay-logo-badge {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #FFFFFF !important;
  border: 1.2px solid #E2E8F0;
  margin-bottom: 18px;
}

html.dark .razorpay-logo-badge {
  background: #FFFFFF !important;
  border-color: #E2E8F0;
}

.razorpay-cdn-logo {
  height: 100%;
  width: auto;
  transition: all 0.3s ease;
}

.card-cdn-logo {
  max-height: 18px;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.pay-card-icon:hover .card-cdn-logo {
  transform: scale(1.08);
}

.card-cdn-logo.upi-logo {
  max-height: 14px;
}

.payment-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pay-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 28px;
  border-radius: 6px;
  background: #FFFFFF !important;
  border: 1.2px solid #E2E8F0;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.dark .pay-card-icon {
  background: #FFFFFF !important;
  border-color: #E2E8F0;
}

.pay-card-icon:hover {
  transform: translateY(-1.5px);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.upi-text-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: 0.5px;
  background: rgba(11, 17, 32, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1.2px solid var(--input-border);
}

html.dark .upi-text-badge {
  background: #000;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.08);
}

.intl-accept-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--muted-text);
  opacity: 0.75;
  display: block;
  line-height: 1.3;
}

/* ============ LOWER FOOTER BAR ============ */
.footer-bottom-bar {
  border-top: 1px solid var(--input-border);
  padding: 24px 0;
  background: rgba(11, 17, 32, 0.015);
  transition: border-color 0.4s ease, background 0.4s ease;
}

html.dark .footer-bottom-bar {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
}

.bottom-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.copyright-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-text);
  margin: 0;
}

.policy-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.policy-btn {
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-text);
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 0;
}

.policy-btn:hover {
  color: var(--primary);
}

.policy-link-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-text);
  transition: color 0.25s ease;
  text-decoration: none;
}

.policy-link-item:hover {
  color: var(--primary);
}

.bullet-divider {
  color: var(--muted-text);
  opacity: 0.35;
  font-size: 10px;
  user-select: none;
}

.footer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.footer-modal-overlay.active {
  display: flex;
}

.footer-modal-content {
  width: 100%;
  max-width: 580px;
  background: #f8fafc;
  border: 1.2px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transition: background 0.4s ease, border-color 0.4s ease;
}

html.dark .footer-modal-content {
  background: #090e1a;
  border-color: rgba(255, 255, 255, 0.08);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1.2px solid var(--input-border);
}

.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 750;
  color: var(--text-color);
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  font-weight: 300;
  color: var(--muted-text);
  cursor: pointer;
  transition: color 0.25s ease;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.close-modal-btn:hover {
  color: var(--primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-color);
}

.modal-body h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 750;
  color: var(--text-color);
  margin: 20px 0 6px;
}

.modal-body p {
  margin: 0 0 16px;
  color: var(--muted-text);
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1.2px solid var(--input-border);
  display: flex;
  justify-content: flex-end;
}

.modal-close-action-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #0b1120;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-close-action-btn:hover {
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
  transform: translateY(-0.5px);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .bottom-bar-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-modal-content {
    max-height: 90vh;
  }

  .modal-body {
    padding: 20px;
  }
}
