/* ============================================================================
   1. ROOT VARIABLES + BASE SETUP
   ============================================================================ */

:root{
  --ignitia-blue: #0a3cff;
  --ignitia-blue-dark: #0629b5;
  --ignitia-orange: #ff8a1d;
  --ignitia-orange-dark: #ff7a18;

  --ignitia-soft-bg: #f7f9fc;
  --ignitia-shadow: 0 10px 30px rgba(2,6,23,0.08);
  --ignitia-font: "Poppins", sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--ignitia-font);
  background: #ffffff;   /* FORCE WHITE */
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}


.section-soft {
  background: var(--ignitia-soft-bg);
}

/* ============================================================================
   2. NAVBAR
   ============================================================================ */

.glass-nav {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(15,23,42,0.04);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}

.navbar .nav-link {
  color: #334155;
  transition: all .15s ease;
}

.navbar .nav-link:hover {
  color: var(--ignitia-blue-dark);
  transform: translateY(-1px);
}


.premium-nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Pulsing animation for Register button */
.pulse-register {
    animation: pulseGlow 1.6s infinite;
    position: relative;
}

/* Keyframes */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 138, 29, 0.55);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 138, 29, 0.55);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 138, 29, 0.55);
        transform: scale(1);
    }
}

.pulse-register:hover {
    animation: none;
}

.hero-cinematic-clean {
  position: relative;
  width: 99%;
  height: 600px;          /* controlled height */
  overflow: hidden;
  border-radius: 18px;
  margin-top: 24px;
}

/* Video */
.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center%;
}

/* Light overlay (NOT DARK) */
.hero-overlay-clean {
  background: rgba(0,0,0,0.15);
}


/* Content */
.hero-content-clean {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  z-index: 2;
}

.hero-content-clean h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-content-clean p {
  font-size: 1.2rem;
  opacity: 0.95;
}



/* ================= IGNITIA PRIMARY CTA BUTTON ================= */
.btn-ignite {
  background: var(--ignitia-orange);
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ignite:hover {
  background: var(--ignitia-orange-dark);
  transform: translateY(-2px);
}

/* ============================================================================
   4. FEATURE CARDS, SUBJECT CARDS, BLUEPRINT ETC.
   ============================================================================ */

.feature-card, .about-card {
  transition: .25s ease;
}

.feature-card:hover, .about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20,30,70,0.12);
}

/* ============================================================================
   5. REVEAL ANIMATIONS
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s cubic-bezier(.17,.67,.55,1.3);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* ============================================================================
   6. RECOGNITION & AWARDS — FINAL CLEAN VERSION
   ============================================================================ */

.ra-section-block {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.25s ease;
  margin-bottom: 14px !important;      /* tightened spacing */
}

.ra-section-block + .ra-section-block {
  margin-top: 4px !important;
}

.ra-section-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.10);
}

.ra-section-block ul li {
  margin-bottom: 6px;
  line-height: 1.45;
}

/* ============================================================================
   7. FOOTER — MODERN
   ============================================================================ */

.footer-modern {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #d0d7e2;
  font-size: .92rem;
}

.footer-title { color: #fff; font-weight: 600; }

.footer-link { color: #f9c449; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

.footer-copy { font-size:.8rem; }

/* ============================================================================
   8. INTRO OVERLAY (GALAXY + ROCKET)
   ============================================================================ */

.ignitia-intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0a0e24, #050713 80%);
  z-index: 99999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#starCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-text {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  width: 100%;
  opacity: 0;
  animation: fadeText 2.5s ease forwards;
}

@keyframes fadeText {
  from { opacity:0; transform:translate(-50%, -40%); }
  to   { opacity:1; transform:translate(-50%, -50%); }
}

.intro-title { font-size: 2rem; font-weight: 700; }
.intro-brand { color: #ff9c35; font-weight: 900; }

.intro-rocket,
.rocket-flame {
  opacity: 0;
  transition: opacity .6s ease;
}

.show-rocket .intro-rocket,
.show-rocket .rocket-flame { opacity: 1; }

.intro-rocket.launch {
  animation: rocketLaunch 1.4s ease-out forwards;
}

@keyframes rocketLaunch {
  0%   { transform:translateY(0) scale(1); }
  100% { transform:translateY(-900px) scale(.85); opacity:0; }
}

.ignitia-intro.fade-out {
  animation: fadeOutIntro 1.2s ease forwards;
}

@keyframes fadeOutIntro {
  from { opacity:1; }
  to   { opacity:0; visibility:hidden; }
}

/* ============================================================================
   9. AUTO-GENERATED FLOATING ICONS (GALAXY DECORATION)
   ============================================================================ */

.kid-icon {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.7;
  animation: kidDrift 6s ease-in-out infinite alternate;
}

@keyframes kidDrift {
  0% { transform:translateY(0) rotate(0); }
  50%{ transform:translateY(-15px) rotate(8deg); }
  100%{ transform:translateY(0) rotate(-6deg); }
}

/* Skip Intro button */
.intro-skip {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
}
.intro-skip:hover {
  background: rgba(0,0,0,0.55);
}

/* ============================================================================
   UPDATES TICKER — SCROLLING MARQUEE (RIGHT → LEFT)
   ============================================================================ */

.updates-ticker {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.updates-inner {
  display: inline-block;
  padding-left: 100%; /* ensures it starts outside the right side */
  animation: tickerScroll 18s linear infinite;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* ============================================================================
   Auto-highlight Home, About, Olympiads (dropdown), Syllabus, Downloads, Life Skills, FAQ, Registration
   ============================================================================ */
.nav-link.active,
.dropdown-item.active {
    color: #ff7a00 !important; 
    font-weight: 600;
}

.nav-link.active {
    border-bottom: 2px solid #ff7a00;
}

.dropdown-item.active {
    background-color: rgba(255, 122, 0, 0.1);
}

/* ================= DOWNLOADS PAGE ================= */

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d1b3d;
  padding-left: 12px;
  border-left: 6px solid #ffb800;
  margin-bottom: 10px;
}

.download-card {
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.download-icon {
  font-size: 32px;
  line-height: 1;
}

.download-content h6 {
  font-weight: 600;
  color: #0d1b3d;
}

.download-content p {
  margin-bottom: 6px;
}

.download-content .btn {
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- Forced navbar layout & logo sizing ---------- */
/* Lock the navbar visual height (desktop) */
/* --------------------------------------------
   FINAL NAVBAR + LOGO OVERLAP DESIGN (CLEAN)
   -------------------------------------------- */

/* ============================================================
   IGNITIA PREMIUM NAVBAR — FINAL CONSOLIDATED VERSION (2025)
   ============================================================ */

/* Base navbar */
nav.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    height: 90px;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(15,23,42,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        background 0.35s ease,
        height 0.35s ease,
        padding 0.35s ease,
        box-shadow 0.35s ease;
}

/* Container alignment */
nav.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo */
.navbar-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s ease, transform 0.35s ease;
}

/* Brand wrapper */
.navbar-brand {
    padding: 0;
    margin: 0;
}

/* Navbar links */
.navbar .nav-link {
    color: #334155;
    font-weight: 400;
    transition: color .2s ease, transform .25s ease;
}

.navbar .nav-link:hover {
    color: var(--ignitia-blue-dark);
    transform: translateY(-2px);
}

/* Active link style */
.nav-link.active {
    color: #ff7a00 !important;
    border-bottom: 2px solid #ff7a00;
    font-weight: 600;
}

/* Dropdown active */
.dropdown-item.active {
    background-color: rgba(255,122,0,0.1);
    color: #ff7a00;
}

/* ========== Scroll Animation ========== */
nav.navbar.scrolled {
    height: 70px;
    background: rgba(255,255,255,0.92) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* Logo shrinks smoothly */
nav.navbar.scrolled .navbar-logo {
    height: 48px !important;
    transform: translateY(1px);
}

/* Adjust link size while scrolled */
nav.navbar.scrolled .nav-link {
    font-size: 0.95rem;
    transform: translateY(0);
}

/* Add spacing so content doesn't hide behind navbar */
body {
    padding-top: 90px; /* adjust if needed */
}

@media (max-width: 991px) {
    body {
        padding-top: 75px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body {
        padding-top: 80px;
    }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .navbar-logo {
        height: 55px;
    }
    nav.navbar.scrolled .navbar-logo {
        height: 42px !important;
    }
}
/* ----------------------------------------------------------
   PREMIUM BRAND TITLE (unchanged; gradient already applied)
   ---------------------------------------------------------- */
.brand-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    background: linear-gradient(90deg, #ffb700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

/* Premium underline animation on hover */
.brand-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffb700, #ff8c00);
    border-radius: 3px;
    transition: width 0.35s ease;
}

.brand-text:hover .brand-title::after {
    width: 100%;
}



/* ----------------------------------------------------------
   TAGLINE — gold tint, fade-in, light hover animation
   ---------------------------------------------------------- */
.brand-tagline {
    font-size: 0.82rem;
    font-weight: 500;
    font-style: italic;

    background: linear-gradient(90deg, #d4a632, #f0c76f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    opacity: 0;
    transform: translateY(4px);
    animation: taglineFadeIn 0.9s ease forwards;
    animation-delay: 0.4s; /* fade-in delay */
}

@keyframes taglineFadeIn {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* Soft hover lift */
.brand-text:hover .brand-tagline {
    transform: translateY(-1px);
    opacity: 1;
}

/* ----------------------------------------------------------
   SCROLL BEHAVIOR — shrink navbar & dim tagline slightly
   ---------------------------------------------------------- */
.navbar.shrink .brand-title {
    font-size: 1.3rem;
}

.navbar.shrink .brand-tagline {
    opacity: 0.6;           /* slightly dim */
    transform: translateY(1px);
    transition: 0.25s ease;
}
/* ============================================================================
   11. GLOBAL RESPONSIVE FRAMEWORK (APPLIES TO ALL PAGES)
   ============================================================================ */

/* Global container for page layouts */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
/* ================= TABLET CONTAINER TUNING ================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .container,
    .container-fluid,
    .page-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
/* ================= TABLET SECTION RHYTHM ================= */
@media (min-width: 768px) and (max-width: 1024px) {
    section.page-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}



@media (max-width: 768px) {
    .page-container { padding: 16px; }
}

@media (max-width: 480px) {
    .page-container { padding: 12px; }
}

/* Universal responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Auto-grid for cards, subjects, features, dashboards */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* ================= TABLET GRID STABILITY ================= */
/* Force clean 2-column layout on tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .grid-auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Text scaling for mobile */
@media (max-width: 600px) {
    h1 { font-size: 1.9rem; line-height: 1.3; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    p  { font-size: 1rem; }
}

/* ============================================================================
   12. RESPONSIVE NAVBAR FIXES
   ============================================================================ */

@media (max-width: 768px) {
    nav.navbar {
        height: 75px !important;
    }
    .navbar-logo {
        height: 48px !important;
    }
}

/* ================= TABLET NAVBAR NORMALIZATION ================= */
/* Applies ONLY to tablets (portrait + landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    nav.navbar {
        height: 80px !important;
    }

    body {
        padding-top: 80px !important;
    }

    .navbar-logo {
        height: 60px !important;
    }
}

/* =========================================================
   MOBILE / TABLET NAVBAR — FLOATING DROPDOWN (FINAL FIX)
   ========================================================= */
@media (max-width: 991px) {

    /* Navbar remains fixed */
    nav.navbar {
        position: fixed;
        z-index: 10000;
    }

    /* Remove collapse from layout flow */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: #ffffff;
        padding: 14px 18px;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);

        z-index: 9999;

        /* 🔑 CRITICAL PART */
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    /* Prevent Bootstrap from pushing content */
    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.show {
        display: block !important;
    }

    /* Clean stacking */
    .navbar-nav {
        align-items: flex-start !important;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn {
        width: 100%;
        text-align: left;
    }
}

/* ============================================================================
   13. HERO RESPONSIVENESS
   ============================================================================ */

@media (max-width: 768px) {
    .hero-modern {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* ============================================================================
   14. FEATURE CARDS + ABOUT CARDS RESPONSIVE
   ============================================================================ */

@media (max-width: 600px) {
    .feature-card, .about-card {
        padding: 16px;
    }
}

/* ============================================================================
   15. RECOGNITION & AWARDS RESP — tighten spacing on mobile
   ============================================================================ */

@media (max-width: 600px) {
    .ra-section-block {
        padding: 16px 18px;
    }
}

/* ============================================================================
   16. FOOTER RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .footer-modern {
        text-align: center;
        padding: 20px 12px 24px;
    }
}

/* ============================================================================
   17. RESPONSIVE TABLE WRAPPER
   ============================================================================ */

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

/* ============================================================================
   18. FORMS AND INPUT FIELDS
   ============================================================================ */

input, select, textarea, button {
    max-width: 100%;
}

/* ============================================================================
   19. EXAM UI RESPONSIVE — QUESTION PAGES, START PAGE, SUMMARY
   ============================================================================ */

.exam-wrapper {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

@media (max-width: 600px) {
    .exam-wrapper { padding: 14px; }
    .question-text { font-size: 1.05rem; }
    .option-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* ============================================================================
   20. SAFETY FIX — BREAK LONG TEXT
   ============================================================================ */

* { word-wrap: break-word; }

/* ================= PAGE SECTION RHYTHM ================= */
/* Consistent vertical spacing between sections */
section {
    scroll-margin-top: 100px; /* avoids navbar overlap on anchor links */
}


/* ============================================================================
   END OF RESPONSIVE FRAMEWORK
   ============================================================================ */

   /* ============================================================================
   21. GLOBAL SAFETY + DEVICE STABILITY FIXES
   ============================================================================ */

html, body {
    overflow-x: hidden;
}

/* Ensure embedded media never breaks layout */
iframe, video {
    max-width: 100%;
    height: auto;
}

/* ===================================================================
   IGNITIA: How It Works (Complete, non-conflicting styles)
   =================================================================== */

/* Section background & card header */
/* #how-works {
  background: #eef5ff;    /* light blue background */


/* Premium header card */
.steps-header {
  background: #eef5ff;
  border: 1px solid #dce6f5;
  border-left: 6px solid #ffb800;
  border-radius: 12px;
}

/* Section header bar inside card */
.section-header {
  background: #eef6ff;
  padding: 12px 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d1b3d;
  border-radius: 12px 12px 0 0;
}

/* HOW STEPS WRAPPER */
.how-steps-wrapper {
  display: flex;
  justify-content: center;
  align-items: center    !important;   /* critical: vertically center icons + connectors */
  gap: 18px;
  flex-wrap: nowrap;
  overflow-x: visible    !important;
  padding: 6px 10px 12px 10px !important;
}

/* STEP BOX: stacked column */
.step-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 135px;
  max-width: 200px;
  padding: 10px 12px;
  background: transparent;
  animation: hw-fadeUp 0.6s ease forwards;
  opacity: 0;
  border-radius: 6px;
}

/* reveal animation delays (first 5 steps) */
.step-box:nth-of-type(1) { animation-delay: 0.05s; }
.step-box:nth-of-type(2) { animation-delay: 0.12s; }
.step-box:nth-of-type(3) { animation-delay: 0.18s; }
.step-box:nth-of-type(4) { animation-delay: 0.24s; }
.step-box:nth-of-type(5) { animation-delay: 0.30s; }

/* ICON */
.step-icon {
  font-size: 44px;
  color: #ffb800;
  margin-bottom: 10px;
  line-height: 1;
}

/* Titles & description */
.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 6px 0 6px;
  color: #0d1b3d;
}
.step-desc {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Connector: simple stable symbol */
.connector {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px;
  font-weight: 600;
  color: #ffb800;

  padding: 0 16px;
  height: 40px;
  line-height: 1;

  white-space: nowrap !important;
  letter-spacing: 3px;

  user-select: none;
}



/* Subtle hover for step */
.step-box:hover { transform: translateY(-6px); transition: transform .18s ease; }

/* Fade-up animation */
@keyframes hw-fadeUp {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .how-steps-wrapper { gap: 12px; padding-left: 8px; padding-right: 8px; }
  .step-box { min-width: 140px; max-width: 170px; padding: 8px; }
  .connector { height: 52px; font-size: 20px; min-width: 30px; }
  .step-icon { font-size: 40px; }
}

@media (max-width: 575px) {
  /* stack into two rows on narrow phones if needed */
  .how-steps-wrapper {
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 20px;
  }
  .connector { display: none; }           /* hide connectors on very small screens */
  .step-box { min-width: calc(50% - 12px); max-width: calc(50% - 12px); }
}

/* ****** mission and vision*/
/* ****** Mission & Vision ****** */

/* Card styling */
.info-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
  height: 100%;
}

/* Card headings */
.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d1b3d;
  border-left: 5px solid #ffb800;
  padding-left: 10px;
}

/* WHY ITEM */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why-item .icon {
  font-size: 28px;
  color: #ffb800;
  flex-shrink: 0;
}

.why-item p { margin: 0; color: #555; }

/* Slide text */
.slide-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #0d1b3d;
  text-align: center;
  margin-bottom: 10px;
}

.slide-text {
  color: #555;
  line-height: 1.6;
  max-width: 95%;
  margin: auto;
  text-align: center;
}

/* FIX: Only active slide shows */
.carousel-item {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* Prevent height jump */
.carousel-inner { min-height: 220px; }

/* Section header */
.section-header {
  background: #eef6ff;
  padding: 14px 18px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d1b3d;
  border-radius: 12px 12px 0 0;
  border-left: 6px solid #ffb800;
}

/* DOTS */
.carousel-indicators.custom-dots {
  margin-top: 12px;
  position: static;
}

.carousel-indicators.custom-dots button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50%;
  background-color: #2fa66a !important;
  opacity: 1 !important;
  margin: 0 4px;
  border: none;
}

.carousel-indicators.custom-dots button.active {
  background-color: #ff7a00 !important;
}

/* Image */
.slide-image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.slide-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Equal card height (desktop) */
@media (min-width: 768px) {
  .mv-card,
  .why-choose-card {
    min-height: 380px;
  }
}

/* Mobile: Auto height */
@media (max-width: 767px) {
  .mv-card,
  .why-choose-card {
    min-height: auto;
    height: auto;
  }
}

#upcoming-exams .info-card {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  width: 100%;
}

#upcoming-exams .section-header {
  background: #eef6ff;   /* same as Mission & Vision */
  padding: 14px 18px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d1b3d;
  border-radius: 12px 12px 0 0;
  border-left: 6px solid #ffb800; /* orange accent */
}
#upcoming-exams .exam-banner {
    width: 100%;
}

#upcoming-exams .exam-inner {
    max-width: 100%;
}


/* Default smaller spacing between sections */
/* GLOBAL: remove forced section spacing */
section {
  margin-top: 0;
  margin-bottom: 0;
}

/* Page-level spacing handled explicitly */
section.page-section {
  margin-top: 18px;
  margin-bottom: 18px;
}
/* REMOVE GAP BEFORE FOOTER */
section.page-section:last-of-type {
    margin-bottom: 0 !important;
}


/* Even tighter for these homepage blocks */
#upcoming-exams,
#mission-vision,
#why-choose {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

#how-works {
  margin-top: 4px !important;   
  margin-bottom: 6px !important;
  padding-top: 0 !important;
}

/********* Upcoming exams */

.exam-banner {
    background: #f3f9ff;
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5efff;
    width: fit-content;
    margin-bottom: 8px;
}

.exam-banner .item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.exam-banner .icon {
    font-size: 16px;
}

.separator {
    width: 1px;
    height: 14px;
    background: #dce6f5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-green { background: #0fa640; }
.dot-yellow { background: #e6a800; }
.dot-red { background: #d9534f; }

.exam-banner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-banner-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f1f7ff;
  border: 1px solid #e0ecff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.exam-banner-row .item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.exam-banner-row .grade {
  font-weight: 600;
}

.exam-banner-row .summary {
  margin-left: auto;
  font-size: 0.85rem;
  color: #374151;
}

@media (max-width: 768px) {
  .exam-banner-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .exam-banner-row .summary {
    margin-left: 0;
  }
}
/* =====================================================
   UPCOMING EXAMS — FINAL, CLEAN & STABLE
   ===================================================== */
/* Constrain the usable width and keep it left-aligned */
.exam-layout {
  display: grid;
  grid-template-columns: auto 300px;  /* LEFT | RIGHT */
  column-gap: 16px;

  max-width: 900px;   /* 🔑 THIS is the key */
  margin-left: 0;     /* left aligned */
  margin-right: auto; /* prevent stretching to right */

  align-items: start;
}

/* Info note styling */
.exam-info-note {
  background: #f3f8ff;
  border-left: 3px solid #ffb800;
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 280px;
}

.exam-info-note h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0b1f44;
}

.exam-info-note p {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0;
  color: #374151;
}


/* Mobile: stack cleanly */
@media (max-width: 768px) {
  .exam-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    row-gap: 12px;
  }
}
/* Registration flexibility inline row */
.exam-info-row {
  background: #f3f8ff;
  border: 1px dashed #d6e6ff;
}

.exam-info-row .icon {
  font-size: 16px;
}

.exam-info-row span {
  font-size: 0.9rem;
  color: #1f2937;
}

.exam-inner {
  max-width: 100%;
}

/* Inline info row styling */
.exam-info-row {
  background: #f3f8ff;
  border: 1px dashed #d6e6ff;
}

.exam-info-row .icon {
  font-size: 16px;
}

.exam-info-row span {
  font-size: 0.9rem;
  color: #1f2937;
}

.exam-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* critical */
}

/* Prevent huge empty space */
.exam-main {
  white-space: nowrap;
}

/* Flexibility pill */
.exam-flexibility {
  background: #f3f8ff;
  border: 1px dashed #d6e6ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* On smaller screens allow wrapping gracefully */
@media (max-width: 768px) {
  .exam-banner {
    flex-wrap: wrap;
  }

  .exam-flexibility {
    margin-top: 6px;
  }
}

/* ================= TABLET EXAM BANNER WRAPPING ================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .exam-banner,
    .exam-banner-row {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .exam-banner-row .summary {
        margin-left: 0;
    }

    .exam-main {
        white-space: normal;
    }
}

/* Premium live-status pulse */
.dot-green {
  position: relative;
  background: #22c55e;
}

.dot-green::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  animation: livePulse 2.6s ease-out infinite;
}

/* Stop animation on hover (professional touch) */
.exam-banner:hover .dot-green::after {
  animation: none;
}

@keyframes livePulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/*************** Recognition & Awards (Clean + Compact FINAL) *******/

#recognition-awards .info-block {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 16px 20px !important; /* smallest compact padding */
  margin-bottom: 6px !important;
}

#recognition-awards .icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

#recognition-awards .icon-title h4 {
  font-size: 20px;
  margin-bottom: 4px !important;
}

#recognition-awards p {
  margin-top: 2px !important;
  margin-bottom: 6px !important;
  font-size: 14px;
  line-height: 1.42;
}

#recognition-awards ul li,
#recognition-awards ol li {
  margin-bottom: 3px !important;
  font-size: 14px;
}

#recognition-awards .rule-block {
  margin-bottom: 8px !important;
}

/* Note box */
#recognition-awards .info-note {
  background: #f8f9ff;
  border-left: 4px solid #4a70ff;
  padding: 10px 14px !important;
  border-radius: 8px;
  margin-top: 6px !important;
}

#recognition-awards .info-note p {
  font-size: 13px;
  margin-bottom: 0 !important;
}
#recognition-awards .info-block + .info-block {
  margin-top: 6px !important;  /* VERY tight space between Certificates → Ranking Criteria */
}

#subjects-exam-structure .alert {
  margin-top: 0.75rem;
}

#subjects-exam-structure .fair-play {
  margin-bottom: 0;
}

/**************blueprint *****/
/* FLOW DIAGRAM HEADING (unique, does not affect other sections) */
.flow-heading {
  background: #eef5ff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: relative;
  border-left: 10px solid #f4a100; /* orange side highlight */
}

.flow-heading h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0c1b2a;
}

.flow-heading .subtitle {
  font-size: 15px;
  margin: 0;
  color: #5d6673;
}

/* Flow diagram image */
.flow-diagram-img {
  max-width: 900px;
  width: 100%;
  height: auto;
  margin: auto;
  display: block;
}
/************* HERO VIDEO — FINAL MINIMAL *************/
.hero-modern {
    background: linear-gradient(
        135deg,
        #e3f0ff 0%,
        #eef6ff 45%,
        #ffffff 100%
    );

    padding: 56px 0 32px;
    border-top: 1px solid #e2edf8;
}
@media (max-width: 768px) {
    .hero-modern {
        padding-top: 36px;
        padding-bottom: 20px; /* ⬅ KEY FIX */
    }
}

.hero-modern .container {
    padding-left: 16px;
    padding-right: 16px;
}

.hero-title {
    color: #0b3a6f;
}

.hero-subtitle {
    color: #445b78;
    font-size: 1.1rem;
    max-width: 520px;
}

.hero-video-layout {
    padding: 0; /* no outer padding */
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;          /* controls size on desktop */
    aspect-ratio: 16 / 9;      /* PERFECT for 1920x1080 */
    margin-left: auto;         /* aligns right side nicely */
    background: #000;          /* letterboxing if needed */
    border-radius: 12px;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* CRITICAL: no cut */
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 22px;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0)
    );

    color: #ffffff;
}

.video-overlay h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.video-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* Make slide image fit card width */
/* ===============================
   WHY OLYMPIAD – CAROUSEL STYLES
   =============================== */

/* Shared carousel background */
.why-carousel-bg {
  position: relative;
  background-image: url("/static/img/why-olympiad/common-bg1.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;      /* THIS makes it fill the card */
  background-color: #f8faff;
  min-height: 420px;
  display: flex;
  align-items: center;
}

/* Soft overlay to calm bright background */
.why-carousel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 255, 0.85); /* stronger overlay */
  z-index: 1;
}


/* Ensure slide content stays above overlay */
.why-carousel-bg .carousel-inner {
  position: relative;
  z-index: 2;
}

/* Slide spacing */
.carousel-item {
  padding: 24px 48px;
  text-align: center;
}

/* Image container (non-dominant, framed) */
.why-slide-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f6ff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}

/* Image behavior (NO stretch, NO crop) */
.why-slide-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: saturate(0.85) brightness(0.95);
}

/* Typography harmony */
/* Slide title – strong but not harsh */
.slide-title {
  color: #0b1f44;              /* deeper navy */
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* Slide description – calm academic tone */
.slide-text {
  color: #374151;              /* slate gray */
  font-size: 1rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .why-carousel-bg {
    min-height: 360px;
    background-position: center;
  }

  .carousel-item {
    padding: 20px;
  }

  .slide-title {
    font-size: 1.1rem;
  }
}

/* Section base */
#how-designed {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Steps container */
.how-steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Individual step */
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 16px;
  border-left: 4px solid #f59e0b; /* IGNITIA accent */
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* Icon */
.step-icon {
  font-size: 32px;
  line-height: 1;
}

/* Content */
.step-content h5 {
  margin: 0 0 6px;
  color: #0b1f44;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Reveal animation */
.how-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .how-step {
    flex-direction: column;
  }
}

/* Tighten Olympiad section */
#why-olympiad-preparation {
  background: #f5f9ff; /* same as your section bg */
}

#why-olympiad-preparation img {
  margin: 0;
  padding: 0;
}

/********** Floating menu *************/
.floating-menu.vertical {
  position: fixed;
  right: 18px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

/* Individual buttons */
.float-btn {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 8px;          /* NOT circular */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-icon {
    width: 16px;        /* fits inside 30px button */
    height: 16px;
    fill: #1877f2;      /* Facebook blue, visible on white */
    display: block;
}

.float-btn img {
  width: 22px;
  height: 22px;
}

/* Hover effect */
.float-btn:hover {
  transform: translateX(-2px);
  box-shadow: 0 7px 18px rgba(0,0,0,0.16);
}

/* Optional subtle brand tints */
.float-btn.youtube { border-left: 4px solid #ff0000; }
.float-btn.instagram { border-left: 4px solid #e1306c; }
.float-btn.facebook { border-left: 4px solid #ff8a1f; }

/* Mobile safety */
@media (max-width: 576px) {
  .floating-menu.vertical {
    bottom: 20px;
    right: 12px;
  }
}

@media (min-width: 992px) {
  .float-btn {
    opacity: 0.9;
  }
  .float-btn:hover {
    opacity: 1;
  }
}
/* ================= TABLET FLOATING MENU ADJUST ================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .floating-menu.vertical {
        right: 10px;
        bottom: 90px;
        transform: scale(0.9);
    }
}


/* ================= SHOW YOUR TALENT – NAV HIGHLIGHT ================= */
.navbar .nav-talent {
  background: #eef6ff;
  border-radius: 999px;
  padding: 6px 14px !important;
  color: #0b1f44;
  font-weight: 600;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.navbar .nav-talent:hover {
  background: #e1efff;
  color: var(--ignitia-blue-dark);
}

/* ===================== VIDEO MARQUEE ===================== YOUTUBE VIDEOS */
.videos-card {
  background: #f8fbff;
  border-radius: 18px;
  padding: 18px 18px 22px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
  overflow: hidden; /* ✅ THIS fixes the spill */
}

.video-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.video-track {
  display: flex;
  width: max-content;
  animation: scrollVideos 45s linear infinite;
}

.video-marquee:hover .video-track {
  animation-play-state: paused;
}

.video-item {
  flex: 0 0 auto;
  width: 320px;
  margin: 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 190px;
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}


.video-item iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

/* Animation */
@keyframes scrollVideos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .video-item {
    width: 260px;
  }

  .video-item iframe {
    height: 150px;
  }
}

/* ===================== SECTION CARD HEADER ===================== */

.section-card-header {
  background: #f7fbff;
  border-radius: 14px;
  padding: 16px 22px;
  border-left: 4px solid #ff7a18;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.section-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0;
  line-height: 1.5;
}

.divider-soft {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.08),
    transparent
  );
  margin-bottom: 14px;
}
/* ===================== SECTION CARD HEADER TESTIMONIAL ===================== */
.testimonial-card {
  max-width: 760px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #0f172a;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0;
}

/* ===================== CTA CARD ===================== */

.cta-card {
  max-width: 860px;
  background: linear-gradient(135deg, #e8f2ff, #d6e9ff);
  border-radius: 20px;
  padding: 24px 28px;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.15);
}


.cta-title {
  font-weight: 800;
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.cta-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #334155; /* slate-700 */
}

/* ================= TABLET TOUCH STABILITY ================= */
/* Disable hover-based motion on touch devices */
@media (hover: none) and (pointer: coarse) {
    .navbar .nav-link:hover,
    .feature-card:hover,
    .about-card:hover,
    .float-btn:hover,
    .video-item:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}
/* ===================== WEBSITE UPDATES ===================== */

.updates-wrapper {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.updates-header {
  background: #f1f7ff;
  padding: 12px 18px;
  font-weight: 700;
  color: #0d47a1;
  border-left: 6px solid #ff7a00;
}

/* Common item */
.update-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid #eef2f7;
}

.update-icon {
  font-size: 22px;
  margin-top: 2px;
}

/* Content */
.update-title {
  font-weight: 700;
  color: #1f2937;
}

.update-desc {
  font-size: 0.95rem;
  color: #4b5563;
  margin-top: 2px;
}

/* IMPORTANT announcement */
.update-item.important {
  background: #fff7f0;
  border-left: 4px solid #ff7a00;
}

.update-badge {
  display: inline-block;
  background: #ff7a00;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}

/* Normal updates */
.update-item.normal {
  background: #ffffff;
}

/***************** Learning Excellence at IGNITIA *************/
/* Section layout */
.skills-section {
    padding: 40px 0;
}

/* Row */
.skills-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.skills-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e6eeff;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    height: 100%;
}

/* Icon wrapper — KEY FIX */
.skills-icon {
    height: 90px;              /* LOCKED height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Icon image */
.skills-icon img {
    max-height: 64px;
    width: auto;
}

/* Title — equal baseline */
.skills-box h3 {
    min-height: 60px;          /* NORMALIZES 3rd & 4th */
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Text */
.skills-box p {
    flex-grow: 1;              /* balances all cards */
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .skills-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .skills-row {
        grid-template-columns: 1fr;
    }
}

.testimonials-slider {
  display: flex;
  gap: 16px;
  overflow-x: hidden;   /* IMPORTANT */
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}


.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 320px;
  min-height: 380px;

  display: flex;
  flex-direction: column;

  background: #ffffff;
  border: 1px solid #e5e7eb;           /* ⬅ ADD */
  border-radius: 16px;
  padding: 22px;                       /* ⬅ slightly reduced */

  box-shadow: 0 6px 16px rgba(0,0,0,0.04); /* ⬅ ADD */
  scroll-snap-align: start;
}


.testimonial-text {
  flex-grow: 1;
  font-size: 15.5px;        /* ⬅ slightly smaller */
  line-height: 1.65;        /* ⬅ easier to read */
  color: #374151;           /* ⬅ softer than black */
}


.testimonial-author {
  margin-top: 16px;         /* ⬅ tighter */
  font-weight: 600;
  text-align: center;
  color: #1f2937;           /* ⬅ stronger hierarchy */
}


/******* MOBILE RESPONSIVENESS **************/
@media (max-width: 768px) {

  .testimonials-slider {
    gap: 12px;              /* ⬅ tighter swipe */
  }

  .testimonial-card {
    padding: 18px;          /* ⬅ less vertical bulk */
    min-height: auto;       /* ⬅ avoid tall cards */
  }

  .testimonial-text {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {

  /* Stack exam banner */
  .exam-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  /* Remove vertical dividers */
  .exam-banner .separator {
    display: none;
  }

  /* Allow text wrapping */
  .exam-main,
  .exam-banner .item,
  .exam-flexibility {
    white-space: normal !important;
  }

  /* Improve readability */
  .exam-main span {
    line-height: 1.4;
  }

  .exam-flexibility {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {

  .how-steps-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .step-box {
    flex-direction: row;
    align-items: center;
    text-align: left;

    min-width: 100%;
    max-width: 100%;
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #e6eeff;
    border-radius: 12px;
  }

  .step-icon {
    font-size: 34px;
    margin-right: 12px;
    margin-bottom: 0;
  }

  .step-box h5 {
    margin-bottom: 4px;
    font-size: 1rem;
  }

  .step-box p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Ensure arrows never interfere */
  .connector {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .exam-banner {
    flex-wrap: wrap;
    row-gap: 8px;
    align-items: center;
  }

  .exam-main {
    flex: 1 1 100%;
    white-space: normal;
  }

  .exam-status,
  .exam-flexibility {
    flex: 0 0 auto;
  }

  .separator {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .how-steps-wrapper {
    gap: 12px;
  }

  .step-box {
    min-width: 150px;
    max-width: 180px;
    padding: 10px;
  }

  .step-icon {
    font-size: 38px;
  }

  .step-box h5 {
    font-size: 1rem;
  }

  .step-box p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .connector {
    font-size: 18px;
    letter-spacing: 2px;
  }
}
/* ===================== TESTIMONIALS MARQUEE ===================== */

.testimonials-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonials-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: scrollTestimonials 60s linear infinite;
}

.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}

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

/* Mobile & Tablet: manual swipe (NO auto motion) */
@media (hover: none) and (pointer: coarse) {
  .testimonials-track {
    animation: none;
  }

  .testimonials-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .testimonial-card {
    scroll-snap-align: start;
  }
}

/* =========================================
   FIX: WHY IGNITIA BULLET ALIGNMENT (FINAL)
   ========================================= */

/* Force left alignment ONLY for Why IGNITIA */
#why-ignitia,
#why-ignitia * {
  text-align: left !important;
}

/* Bullet container */
#why-ignitia .why-points {
  border-left: 2px solid #d9d9d9;
  padding-left: 16px;
  margin-top: 6px;
}

/* Bullet line */
#why-ignitia .why-point {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

/* Bullet symbol */
#why-ignitia .why-point::before {
  content: "•";
  position: absolute;
  left: -12px;
  top: 0;
  font-weight: 700;
  color: #333;
}
/* =========================================
   WHY IGNITIA — HEADING COLORS (PDF MATCH)
   ========================================= */

/* Main title */
#why-ignitia h3 {
  color: #1b3c73;          /* IGNITIA blue */
}

/* Feature headings (Daily Quizzes, etc.) */
#why-ignitia h6 {
  color: #f2992e;          /* PDF orange */
  font-weight: 600;
}

/* =========================================
   WHY IGNITIA — IMAGE POLISH
   ========================================= */

/* Image sizing */
#why-ignitia img {
  max-width: 80%;          /* Reduce size (tweak 75–85 if needed) */
  height: auto;
}

/* Remove visual heaviness */
#why-ignitia .col-md-5 {
  background: transparent !important;
}

/* Make image blend softly with background */
#why-ignitia img {
  background: transparent;
  opacity: 0.95;           /* Slight softness */
}

/* Optional: subtle fade edge (PDF-like) */
#why-ignitia img {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.06));
}
#why-ignitia h3 {
  margin-top: 0;
}

/* ================= WHY IGNITIA LOCKED LAYOUT ================= */

.why-slide {
  align-items: stretch;
}

/* LEFT COLUMN GRID */
.why-text {
  display: grid;
  grid-template-rows:
    70px     /* h3 */
    120px    /* paragraph */
    45px     /* h6 */
    auto;    /* bullet list */
}

/* Remove natural margins */
.why-text h3,
.why-text h6,
.why-text p {
  margin: 0;
}

/* RIGHT COLUMN IMAGE ALIGNMENT */
.why-image-wrap {
  display: grid;
  grid-template-rows:
    70px     /* h3 space */
    120px    /* paragraph space */
    auto;
}

/* Image starts exactly at h6 level */
.why-image {
  align-self: start;
  margin-top: 0;
  max-width: 320px;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .why-text,
  .why-image-wrap {
    display: block;
  }

  .why-image {
    margin-top: 20px;
  }
}

#why-ignitia img {
  width: 260px;
  height: 260px;
  object-fit: contain;
}

/* =========================================
   WHY IGNITIA — FULL-WIDTH DESCRIPTION TEXT
   ========================================= */

/* Make the intro paragraph wider */
#why-ignitia .carousel-item .text-muted {
  max-width: 95%;
}

/* On larger screens, let it breathe more */
@media (min-width: 992px) {
  #why-ignitia .carousel-item .text-muted {
    max-width: 85%;
  }
}

/* Wider paragraph block */
#why-ignitia .why-intro {
  max-width: 1000px;
}

/* =========================================
   WHY IGNITIA — TYPOGRAPHY IMPROVEMENT
   ========================================= */

/* Main heading */
#why-ignitia h3 {
  font-size: 32px;        /* Bigger, confident */
  line-height: 1.25;
}

/* Description paragraph */
#why-ignitia .why-intro,
#why-ignitia p.text-muted {
  font-size: 18px;        /* 🔑 Key improvement */
  line-height: 1.7;       /* Better readability */
  color: #4a4a4a;
}

/* Feature headings (orange ones) */
#why-ignitia h6 {
  font-size: 20px;
  letter-spacing: 0.2px;
}

/* Bullet text */
#why-ignitia .why-point {
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  #why-ignitia h3 {
    font-size: 26px;
  }

  #why-ignitia .why-intro,
  #why-ignitia p.text-muted {
    font-size: 16px;
  }
}

/* Refined emphasis (not default heavy bold) */
#why-ignitia strong {
  font-weight: 600;
  color: #1b3c73; /* IGNITIA blue */
}

/* =========================================
   WHY IGNITIA — TEXT READABILITY LAYER
   ========================================= */

/* Wrap text area visually */
#why-ignitia .why-intro,
#why-ignitia h3 {
  position: relative;
  z-index: 2;
}

/* Soft background behind text */
#why-ignitia .why-intro::before {
  content: "";
  position: absolute;
  inset: -12px -16px;
  background: rgba(255, 255, 255, 0.65); /* 🔑 opacity control */
  border-radius: 10px;
  z-index: -1;
}
/* =========================================
   WHY IGNITIA — REDUCE VERTICAL SPACING
   ========================================= */

/* Reduce space below section header */
#why-ignitia .section-header {
  padding-bottom: 8px;    /* was larger */
  margin-bottom: 0;
}

/* Reduce top padding inside carousel */
#why-ignitia .carousel-inner {
  padding-top: 0;
}

/* Tighten slide container */
#why-ignitia .carousel-item > .p-4 {
  padding-top: 12px !important;
  padding-bottom: 16px !important;
}

/* Tighten heading spacing */
#why-ignitia h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Tighten paragraph spacing */
#why-ignitia .why-intro,
#why-ignitia p.text-muted {
  margin-top: 0;
  margin-bottom: 16px;
}
/* ================= MOBILE VERTICAL RHYTHM ================= */

@media (max-width: 768px) {
    section.page-section {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    #upcoming-exams,
    #mission-vision,
    #why-choose,
    #why-ignitia,
    #how-works {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
}

footer,
.footer-modern {
    margin-bottom: 0 !important;
    padding-bottom: 24px;
}

body > footer:last-child {
    margin-bottom: 0 !important;
}

body {
    overflow-y: auto;
}


/* ==============================
   IGNITIA AI BUBBLE WITH TOOLTIP
============================== */

.ignitia-ai-bubble {
  position: fixed;
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--ignitia-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 3000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  position: fixed;
}

/* Hover effect */
.ignitia-ai-bubble:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* Tooltip text */
.ai-tooltip {
  position: absolute;
  right: 65px;
  background: var(--ignitia-orange);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.ignitia-ai-bubble:hover .ai-tooltip {
  opacity: 1;
}

.ai-emoji {
  font-size: 20px;
}

.ai-label {
  white-space: nowrap;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Expand on hover */
.ignitia-ai-bubble:hover {
  width: 170px;
}

.ignitia-ai-bubble:hover .ai-label {
  opacity: 1;
}

.ignitia-ai-bubble:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
/* =========================
   IGNITIA Assistant - Mobile sizing fix
   Prevents covering entire screen
========================= */
@media (max-width: 768px) {

  /* Keep modal as an overlay, but center/anchor content */
  #ignitiaModal.ignitia-modal {
    align-items: flex-end;          /* bottom sheet */
    justify-content: center;
    padding: 12px;
  }

  /* This is the chat box itself */
  .ignitia-modal-content {
    width: min(96vw, 420px);
    height: min(72vh, 560px);       /* ✅ not full screen */
    border-radius: 18px;
    overflow: hidden;
  }

  /* Ensure chat area scrolls inside the box */
  .ignitia-chat {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep input visible & comfortable */
  .chat-input-area {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  /* Floating button placement */
  #ignitiaToggleBtn {
    right: 16px;
    bottom: 16px;
  }
}


.chat-user {
  background: #ff8a1f;
  color: #fff;
  align-self: flex-end;
}

.chat-ai {
  background: #e5e7eb;
  color: #111827;
  align-self: flex-start;
}

.chat-input-area {
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.chat-input-area button {
  background: #1e3a8a;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
}

.typing-area {
  min-height: 22px;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 4px 6px;
}

/* ===============================
   IGNITIA FLOATING CHAT
================================ */

.ignitia-modal {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;

  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.25s ease;
}

.ignitia-modal.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ignitia-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px;
  background: #fff;
}

.chat-input-area input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
}

.chat-input-area button {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
}

#ignitiaToggleBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff7a00;
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 9998;
}

/* ===============================
   CHAT HEADER STYLING
================================ */

.ignitia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #ff7a00, #ff9500);
  color: #fff;
}

.ignitia-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ignitia-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ignitia-title {
  line-height: 1.1;
}

.title-main {
  font-weight: 600;
  font-size: 0.95rem;
}

.title-sub {
  font-size: 0.75rem;
  opacity: 0.9;
}

.ignitia-header-actions {
  display: flex;
  gap: 8px;
}

.ignitia-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ignitia-btn:hover {
  background: rgba(255,255,255,0.35);
}

.close-btn:hover {
  background: #e53935;
}

.ignitia-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  border: 2px solid #fff;
}
@media (max-width: 768px) {

  .ignitia-modal {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #ignitiaToggleBtn {
    bottom: 20px;
    right: 20px;
  }

}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}

/* Message Row */
.chat-message-row {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
}

/* Alignments */
.row-user {
  justify-content: flex-end;
}

.row-ai {
  justify-content: flex-start;
}

/* Actual Bubble */
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 0.9rem;
  word-wrap: break-word;
}

/* User bubble */
.chat-user {
  background: #f28b2c;
  color: #fff;
}

/* AI bubble */
.chat-ai {
  background: #e5e7eb;
  color: #111827;
}

#skills-lab-home .skills-mini-point {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  color: #1e293b;
  height: 100%;
}

#skills-lab-home .skills-mini-point:hover {
  background: #eef6ff;
  border-color: #cfe3ff;
  transition: 0.25s ease;
}