/* ============================================
   SCHOOL INDEX - REDESIGNED CSS v2
   Full-Width Hero Banner Slider + Clean Design
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
/* Base brand colors from custom-base.css */
:root {
  --si-primary: var(--primary);
  --si-primary-hover: var(--primary-dark);
  --si-primary-light: #eff6ff;
  --si-primary-soft: rgba(37, 99, 235, 0.08);
  --si-accent: #f43f5e;
  --si-accent-light: #fff1f2;
  --si-dark: #0f172a;
  --si-gray-900: #1e293b;
  --si-gray-700: #334155;
  --si-gray-500: #64748b;
  --si-gray-400: #94a3b8;
  --si-gray-200: #e2e8f0;
  --si-gray-100: #f1f5f9;
  --si-gray-50: #f8fafc;
  --si-white: #ffffff;
  --si-green: #10b981;
  --si-green-soft: rgba(16, 185, 129, 0.08);
  --si-amber: #f59e0b;
  --si-amber-soft: rgba(245, 158, 11, 0.08);
  --si-orange: #f97316;
  --si-rose: #e11d48;
  --si-rose-soft: rgba(225, 29, 72, 0.08);

  --si-radius: 12px;
  --si-radius-lg: 16px;
  --si-radius-xl: 20px;
  --si-radius-full: 9999px;
  --si-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --si-shadow: 0 4px 16px rgba(0,0,0,0.06);
  --si-shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --si-shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
  --si-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --si-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   2. BASE OVERRIDES
   ============================================ */
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
body::-webkit-scrollbar { width: 4px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
body::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.si-hero,
.si-section { overflow-x: hidden; }
.si-section > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: clamp(24px, 5vw, 120px) !important;
  padding-right: clamp(24px, 5vw, 120px) !important;
}

/* ============================================
   2b. TRANSPARENT HEADER OVER HERO BANNER
   When .si-header-transparent is on <header>,
   header sits over the banner with white text.
   On scroll, .add-header-bg restores white bg + dark text.
   ============================================ */
.si-header-transparent {
  background: transparent !important;
}
.si-header-transparent .header-nav {
  background: transparent !important;
}
.si-header-transparent .main-nav > li > a,
.si-header-transparent .main-nav > li > a.text-black {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.si-header-transparent .main-nav > li > a:hover {
  color: rgba(255,255,255,0.8) !important;
}
.si-header-transparent .bar-icon span {
  background-color: #fff;
}
.si-header-transparent .header-navbar-rht li a.header-sign {
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  background: transparent !important;
  min-width: 120px !important;
  padding: 10px 22px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
}
.si-header-transparent .header-navbar-rht li a.header-sign:hover {
  background-color: rgba(255,255,255,0.15) !important;
  border-color: #fff !important;
  color: #fff !important;
}
.si-header-transparent .header-navbar-rht li a.header-login {
  background: #fff !important;
  color: var(--si-dark) !important;
  min-width: 120px !important;
  padding: 10px 22px !important;
  border: 1.5px solid #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}
.si-header-transparent .header-navbar-rht li a.header-login:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.si-header-transparent .dropdown-toggle {
  color: #fff !important;
}
.si-header-transparent .main-nav > li > a i {
  color: rgba(255,255,255,0.7) !important;
}

/* Scrolled: .add-header-bg on <nav> reverts to solid white */
.si-header-transparent .header-nav.add-header-bg {
  background: #fff !important;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.08);
}
.si-header-transparent .header-nav.add-header-bg .main-nav > li > a,
.si-header-transparent .header-nav.add-header-bg .main-nav > li > a.text-black {
  color: #000 !important;
  text-shadow: none;
}
.si-header-transparent .header-nav.add-header-bg .bar-icon span {
  background-color: var(--primary);
}
.si-header-transparent .header-nav.add-header-bg .header-navbar-rht li a.header-sign {
  color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  background: transparent !important;
  min-width: 120px !important;
  padding: 10px 22px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
}
.si-header-transparent .header-nav.add-header-bg .header-navbar-rht li a.header-sign:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.si-header-transparent .header-nav.add-header-bg .header-navbar-rht li a.header-login {
  background: var(--primary) !important;
  color: #fff !important;
  min-width: 120px !important;
  padding: 10px 22px !important;
  border: 1.5px solid var(--primary) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3) !important;
  transition: all 0.25s ease !important;
}
.si-header-transparent .header-nav.add-header-bg .header-navbar-rht li a.header-login:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.45) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}
.si-header-transparent .header-nav.add-header-bg .dropdown-toggle {
  color: inherit !important;
}
.si-header-transparent .header-nav.add-header-bg .main-nav > li > a i {
  color: inherit !important;
}

/* Mobile: disable transparent header — sidebar handles nav */
@media (max-width: 991.98px) {
  .si-header-transparent,
  .si-header-transparent .header-nav {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .si-header-transparent .bar-icon span {
    background-color: var(--primary);
  }
  .si-header-transparent .main-nav > li > a,
  .si-header-transparent .main-nav > li > a.text-black {
    color: inherit !important;
    text-shadow: none !important;
  }
  .si-header-transparent .main-nav > li > a:hover {
    color: inherit !important;
  }
  .si-header-transparent .main-nav > li > a i {
    color: inherit !important;
  }
  .si-header-transparent .dropdown-toggle {
    color: inherit !important;
  }
  .si-header-transparent .header-navbar-rht li a.header-sign {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
  }
  .si-header-transparent .header-navbar-rht li a.header-sign:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
  }
  .si-header-transparent .header-navbar-rht li a.header-login {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
  }
  .si-header-transparent .header-navbar-rht li a.header-login:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
  }

  /* Sidebar nav styling */
  .main-menu-wrapper {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1) !important;
  }
  .main-nav ul {
    background-color: rgba(0,0,0,0.03) !important;
  }
  .main-nav > li {
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }
  .main-nav > li > a {
    color: #1e293b !important;
    font-weight: 500 !important;
  }
  .main-nav > li > a:hover {
    color: var(--primary) !important;
  }
  .main-nav > li.active > a,
  .main-nav .has-submenu.active > a {
    color: var(--primary) !important;
  }
  .main-nav > li .submenu li a {
    color: #475569 !important;
  }
  .main-nav > li .submenu li a:hover {
    color: var(--primary) !important;
  }
  .menu-header {
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }
}

/* ============================================
   3. CHIPS / BADGES
   ============================================ */
.si-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--si-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.si-chip--primary { background: var(--si-primary-soft); color: var(--si-primary); }
.si-chip--rose { background: var(--si-rose-soft); color: var(--si-rose); }
.si-chip--green { background: var(--si-green-soft); color: var(--si-green); }
.si-chip--amber { background: var(--si-amber-soft); color: var(--si-amber); }
.si-chip--orange { background: rgba(249,115,22,0.08); color: var(--si-orange); }
.si-chip--soft { background: var(--si-primary-light); color: var(--si-primary); }
.si-chip--green-soft { background: rgba(16,185,129,0.1); color: #059669; }
.si-chip--white { background: rgba(255,255,255,0.15); color: var(--si-white); backdrop-filter: blur(4px); }
.si-chip--white-solid { background: rgba(255,255,255,0.95); color: var(--si-dark); font-weight: 700; }
.si-chip--urgency { background: rgba(239,68,68,0.9); color: var(--si-white); }
.si-chip--new { background: rgba(16,185,129,0.9); color: var(--si-white); }
.si-chip--xs { padding: 3px 10px; font-size: 0.7rem; }

/* ============================================
   4. BUTTONS
   ============================================ */
.si-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--si-radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--si-transition);
  white-space: nowrap;
  line-height: 1.5;
}
.si-btn--primary {
  background: var(--si-primary);
  color: var(--si-white);
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.si-btn--primary:hover {
  background: var(--si-primary-hover);
  color: var(--si-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.si-btn--outline {
  background: var(--si-white);
  color: var(--si-primary);
  border: 1.5px solid var(--si-gray-200);
}
.si-btn--outline:hover {
  border-color: var(--si-primary);
  color: var(--si-primary);
  background: var(--si-primary-light);
  transform: translateY(-1px);
}
.si-btn--outline-white {
  background: transparent;
  color: var(--si-white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.si-btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: var(--si-white);
  border-color: rgba(255,255,255,0.6);
}
.si-btn--white {
  background: var(--si-white);
  color: var(--si-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.si-btn--white:hover {
  background: var(--si-gray-50);
  color: var(--si-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.si-btn--warning {
  background: var(--si-amber);
  color: var(--si-dark);
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.si-btn--warning:hover {
  background: #e69009;
  color: var(--si-dark);
  transform: translateY(-1px);
}
.si-btn--lg { padding: 12px 28px; font-size: 0.95rem; }
.si-btn--full { width: 100%; justify-content: center; }

/* ============================================
   5. HERO SECTION - Image-focused Banner Slider
   ============================================ */
.si-hero {
  position: relative;
  background: var(--si-dark);
}

/* When hero banner is active, pull hero section up behind the fixed header */
body.si-has-hero-banner .si-hero {
  margin-top: -70px;
}

/* --- Full-Width Banner Slider --- */
.si-hero__slider {
  position: relative;
  overflow: hidden;
}

.si-hero__slides {
  position: relative;
  height: 85vh;
  min-height: 500px;
}

.si-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.si-hero__slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

.si-hero__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.si-hero__slide-bg--gradient {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

.si-hero__slide:nth-child(3n+1) .si-hero__slide-bg--gradient {
  background: linear-gradient(135deg, #1e293b 0%, var(--primary) 60%, var(--primary-dark) 100%);
}
.si-hero__slide:nth-child(3n+2) .si-hero__slide-bg--gradient {
  background: linear-gradient(135deg, #0f172a 0%, var(--primary) 50%, var(--primary-dark) 100%);
}
.si-hero__slide:nth-child(3n+3) .si-hero__slide-bg--gradient {
  background: linear-gradient(135deg, #1f1b3a 0%, var(--primary) 50%, var(--primary-dark) 100%);
}

/* --- Soft CTA Button (bottom-right of slide) --- */
.si-hero__slide-cta {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 5;
}

.si-hero__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--si-dark);
  font-family: var(--si-font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--si-radius-full);
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--si-transition);
  letter-spacing: 0.01em;
}

.si-hero__cta-btn:hover {
  background: var(--si-white);
  color: var(--si-primary);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

.si-hero__cta-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.si-hero__cta-btn:hover i {
  transform: translateX(3px);
}

/* --- Arrow Controls (vertically centered, edge of slider) --- */
.si-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  color: var(--si-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 10;
  transition: all var(--si-transition);
  opacity: 0;
}

.si-hero__slider:hover .si-hero__arrow {
  opacity: 1;
}

.si-hero__arrow--prev { left: 16px; }
.si-hero__arrow--next { right: 16px; }

.si-hero__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.08);
}

/* --- Dots (bottom center) --- */
.si-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.si-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--si-transition);
  padding: 0;
}

.si-hero__dot.active {
  background: var(--si-white);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* --- Progress Bar --- */
.si-hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 10;
}

.si-hero__progress-bar {
  height: 100%;
  background: var(--si-white);
  width: 0%;
  border-radius: 3px;
}

/* --- Fallback Hero (no announcements) --- */
.si-hero__fallback {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 12vh;
}

.si-hero__fallback-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, var(--primary) 65%, var(--primary-dark) 100%);
  background-size: 300% 300%;
  animation: si-gradient-shift 12s ease infinite;
}
.si-hero__fallback-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.12) 0%, transparent 50%);
}
@keyframes si-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.si-hero__fallback-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 24px 0;
}

.si-hero__fallback-logo {
  max-width: 320px;
  max-height: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  padding: 14px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}

.si-hero__fallback-name {
  font-family: var(--si-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.si-hero__fallback-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.si-hero__fallback-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.si-hero__fallback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.si-hero__fallback-btn--primary {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.si-hero__fallback-btn--primary:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  color: #1e3a5f;
}
.si-hero__fallback-btn--outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.si-hero__fallback-btn--outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  color: #fff;
}

/* ============================================
   6. SECTION LAYOUT
   ============================================ */
.si-section {
  padding: 24px 0 64px 0;
  background: var(--si-white);
}
.si-section--alt { background: var(--si-gray-50); }

.si-section__header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.si-section__header .si-chip {
  margin-bottom: 10px;
}
.si-section__title {
  font-family: var(--si-font);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--si-dark);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.si-section__desc {
  font-size: 0.92rem;
  color: var(--si-gray-500);
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 560px;
}
.si-section__cta {
  display: inline-flex;
}

/* ============================================
   7. CATEGORY TABS
   ============================================ */
.si-tabs-wrap {
  position: relative;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--si-gray-200);
}
.si-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.si-tabs::-webkit-scrollbar { display: none; }
.si-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--si-gray-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--si-transition), border-color var(--si-transition);
  position: relative;
}
.si-tab__icon { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.si-tab:hover {
  color: var(--si-primary);
  text-decoration: none;
}
.si-tab.active {
  color: var(--si-primary);
  border-bottom-color: var(--si-primary);
  background: transparent;
}
.si-tabs__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--si-white);
  color: var(--si-gray-700);
  box-shadow: var(--si-shadow);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--si-transition);
}
.si-tabs__arrow--left { left: -15px; }
.si-tabs__arrow--right { right: -15px; }
.si-tabs__arrow:hover { background: var(--si-primary); color: var(--si-white); }

/* ============================================
   8. EXAM CARDS
   ============================================ */
.si-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.si-exam-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--si-white);
  border-radius: var(--si-radius);
  border: 1.5px solid var(--si-gray-200);
  text-decoration: none;
  color: inherit;
  transition: all var(--si-transition);
}
.si-exam-card:hover {
  border-color: var(--si-primary);
  box-shadow: var(--si-shadow);
  transform: translateY(-2px);
  color: inherit;
}
.si-exam-card:hover .si-exam-card__arrow { transform: translateX(3px); color: var(--si-primary); }
.si-exam-card__icon { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.si-exam-card__icon-placeholder {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--si-primary), #7c3aed);
  color: var(--si-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.si-exam-card__info { flex: 1; min-width: 0; }
.si-exam-card__name {
  font-size: 0.85rem; font-weight: 700; color: var(--si-dark);
  margin: 0 0 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.si-exam-card__meta {
  display: flex; gap: 12px; font-size: 0.73rem; color: var(--si-gray-500);
}
.si-exam-card__meta strong {
  font-weight: 700; color: var(--si-primary); margin-right: 2px;
}
.si-exam-card__arrow { color: var(--si-gray-400); transition: all var(--si-transition); flex-shrink: 0; font-size: 0.7rem; }
.si-loading { grid-column: 1 / -1; text-align: center; padding: 40px; }

/* ============================================
   9. PRODUCT CARDS (Courses & Test Series)
   ============================================ */
.si-product-card {
  background: var(--si-white);
  border-radius: var(--si-radius-lg);
  overflow: hidden;
  border: 1px solid var(--si-gray-200);
  transition: all var(--si-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.si-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--si-shadow-xl);
  border-color: transparent;
}
.si-product-card--bundle { border-color: rgba(168,85,247,0.2); }
.si-product-card--bundle:hover { border-color: transparent; }
.si-product-card__img {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.si-product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.si-product-card:hover .si-product-card__img img { transform: scale(1.05); }
.si-product-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px; pointer-events: none;
}
.si-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--si-radius-full);
  font-size: 0.78rem; font-weight: 600;
  backdrop-filter: blur(8px); width: fit-content;
}
.si-tag--duration, .si-tag--tests { background: rgba(255,255,255,0.92); color: var(--si-gray-700); }
.si-tag--bundle { background: linear-gradient(135deg, #a855f7, #ec4899); color: var(--si-white); }
.si-tag--price { background: rgba(255,255,255,0.95); color: var(--si-dark); align-self: flex-end; }
.si-price--current { font-weight: 700; color: var(--si-primary); font-size: 0.9rem; }
.si-price--old { text-decoration: line-through; color: var(--si-gray-400); font-size: 0.78rem; margin-left: 4px; }
.si-price--off {
  background: var(--si-accent); color: var(--si-white);
  padding: 1px 6px; border-radius: var(--si-radius-full);
  font-size: 0.65rem; font-weight: 700; margin-left: 4px;
}
.si-price--free { color: var(--si-green); font-weight: 700; }
.si-product-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.si-product-card__title {
  font-size: 1.05rem; font-weight: 700; color: var(--si-dark);
  margin: 0 0 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.si-product-card__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.si-product-card__meta span { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--si-gray-500); }
.si-product-card__meta span i { color: var(--si-gray-400); font-size: 0.72rem; }
.si-product-card__features {
  list-style: none; padding: 0; margin: 0 0 20px;
  border-top: 1px solid var(--si-gray-100); padding-top: 16px; flex: 1;
}
.si-product-card__features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--si-gray-500); margin-bottom: 8px;
}
.si-product-card__features li:last-child { margin-bottom: 0; }
.si-product-card__features li i { color: var(--si-green); font-size: 0.7rem; flex-shrink: 0; }

/* ============================================
   10. SCROLL CONTAINER (Test Series)
   ============================================ */
.si-scroll-container { position: relative; }
.si-scroll-track {
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 8px;
}
.si-scroll-track::-webkit-scrollbar { display: none; }
.si-scroll-item { flex-shrink: 0; width: 360px; }
.si-scroll-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--si-white); color: var(--si-gray-700);
  box-shadow: var(--si-shadow-lg); cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--si-transition);
}
.si-scroll-arrow--left { left: -20px; }
.si-scroll-arrow--right { right: -20px; }
.si-scroll-arrow:hover { background: var(--si-primary); color: var(--si-white); }

/* ============================================
   11. TESTIMONIALS
   ============================================ */
.si-testimonial-featured {
  position: relative; background: var(--si-white);
  border-radius: var(--si-radius-xl); box-shadow: var(--si-shadow-lg);
  padding: 40px; margin-bottom: 32px; border: 1px solid var(--si-gray-200);
}
.si-testimonial-featured__quote {
  position: absolute; top: 16px; left: 32px;
  font-size: 72px; color: var(--si-primary); opacity: 0.06; line-height: 1;
}
.si-testimonial-featured__inner { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.si-testimonial-featured__avatar { text-align: center; }
.si-testimonial-featured__avatar img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--si-gray-100); margin-bottom: 12px;
}
.si-testimonial-featured__avatar h5 { font-size: 1rem; font-weight: 700; color: var(--si-dark); margin-bottom: 4px; }
.si-testimonial-featured__role { font-size: 0.82rem; color: var(--si-primary); font-weight: 600; margin-bottom: 8px; }
.si-testimonial-featured__content p {
  font-size: 1.05rem; color: var(--si-gray-500); line-height: 1.8;
  font-style: italic; margin-bottom: 20px;
}
.si-testimonial-featured__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.si-stars { display: flex; gap: 2px; color: var(--si-amber); font-size: 0.9rem; }
.si-stars .far { color: var(--si-gray-200); }
.si-stars--sm { font-size: 0.75rem; }
.si-avatar-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--si-primary-soft); color: var(--si-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; margin: 0 auto 12px;
}
.si-avatar-placeholder--sm { width: 48px; height: 48px; font-size: 1rem; margin: 0; flex-shrink: 0; }
.si-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 8px; }
.si-review-card {
  background: var(--si-white); border-radius: var(--si-radius-lg);
  padding: 24px; border: 1px solid var(--si-gray-200);
  transition: all var(--si-transition); display: flex; flex-direction: column;
}
.si-review-card:hover { transform: translateY(-4px); box-shadow: var(--si-shadow); border-color: transparent; }
.si-review-card__header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 16px; }
.si-review-card__user { display: flex; align-items: center; gap: 12px; }
.si-review-card__user img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--si-gray-100); flex-shrink: 0;
}
.si-review-card__user h6 { font-size: 0.9rem; font-weight: 700; color: var(--si-dark); margin: 0 0 2px; }
.si-review-card__user span { font-size: 0.75rem; color: var(--si-primary); font-weight: 500; }
.si-review-card__quote {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--si-primary-light); color: var(--si-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.si-review-card__text { font-size: 0.88rem; color: var(--si-gray-500); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.si-review-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* ============================================
   12. CTA BANNER
   ============================================ */
.si-cta-banner { padding: 0; }
.si-cta-banner__inner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: var(--si-radius-xl); padding: 48px; margin: 0;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  gap: 24px 48px; align-items: center;
}
.si-cta-banner__content { grid-row: 1; }
.si-cta-banner__content h2 { font-size: 1.8rem; font-weight: 800; color: var(--si-white); margin: 12px 0 8px; }
.si-cta-banner__content p { color: rgba(255,255,255,0.6); font-size: 1rem; margin: 0; }
.si-cta-banner__actions { grid-row: 1; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.si-cta-banner__badges { grid-column: 1 / -1; display: flex; gap: 24px; flex-wrap: wrap; }
.si-cta-banner__badges span { font-size: 0.82rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }
.si-cta-banner__badges span i { color: var(--si-amber); }
.si-cta-banner__badges span:nth-child(2) i { color: var(--si-green); }
.si-cta-banner__badges span:nth-child(3) i { color: #38bdf8; }

/* ============================================
   13. CENTER CTA & EMPTY STATE
   ============================================ */
.si-center-cta { text-align: center; margin-top: 40px; }
.si-empty-state {
  text-align: center; padding: 48px 24px;
  background: var(--si-gray-50); border-radius: var(--si-radius-lg);
  border: 1px dashed var(--si-gray-200);
}
.si-empty-state i { font-size: 2rem; color: var(--si-gray-400); margin-bottom: 12px; display: block; }
.si-empty-state h5 { font-weight: 700; color: var(--si-gray-700); margin-bottom: 4px; }
.si-empty-state p { color: var(--si-gray-500); font-size: 0.88rem; margin: 0; }

/* ============================================
   14. OWL CAROUSEL OVERRIDES
   ============================================ */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  width: 40px !important; height: 40px !important; border-radius: 50% !important;
  background: var(--si-white) !important; border: 1px solid var(--si-gray-200) !important;
  box-shadow: var(--si-shadow) !important; color: var(--si-gray-700) !important;
  font-size: 0.85rem !important; transition: all var(--si-transition) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  margin: 0 4px !important;
}
.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background: var(--si-primary) !important; color: var(--si-white) !important;
  border-color: var(--si-primary) !important;
}
.owl-carousel .owl-nav { text-align: right !important; margin-top: 20px !important; }
.owl-carousel .owl-item { padding: 4px 0; }

/* ============================================
   15. RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .si-hero__slide-title { font-size: 2rem; }
  .si-hero__slides { height: 65vh; min-height: 350px; }
  .si-hero__fallback { height: 65vh; min-height: 350px; }
}

@media (max-width: 992px) {
  .si-exam-grid { grid-template-columns: repeat(2, 1fr); }
  .si-section__title { font-size: 1.5rem; }
  .si-testimonial-featured__inner { grid-template-columns: 1fr; text-align: center; }
  .si-reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .si-cta-banner__inner { grid-template-columns: 1fr; grid-template-rows: auto; padding: 32px; }
  .si-cta-banner__content { grid-row: auto; }
  .si-cta-banner__actions { grid-row: auto; justify-content: flex-start; }
  .si-tabs__arrow { display: none !important; }
  .si-hero__slides { height: 55vh; min-height: 300px; }
  .si-hero__fallback { height: 55vh; min-height: 300px; align-items: center; padding-bottom: 0; }
  .si-hero__fallback-content { padding-top: 70px; }
  .si-hero__fallback-logo { max-width: 280px; max-height: 90px; }
  .si-hero__fallback-name { font-size: clamp(1.6rem, 4vw, 2.4rem); }
  .si-hero__slide-cta { bottom: 24px; right: 24px; }
}

@media (max-width: 768px) {
  .si-section { padding: 20px 0 48px 0; }
  .si-section__title { font-size: 1.35rem; }
  .si-exam-grid { grid-template-columns: 1fr; }
  .si-reviews-grid { grid-template-columns: 1fr; }
  .si-testimonial-featured { padding: 24px; }
  .si-cta-banner__inner { padding: 24px; overflow: hidden; }
  .si-cta-banner__content h2 { font-size: 1.4rem; }
  .si-cta-banner__actions { grid-row: auto; width: 100%; flex-direction: column; }
  .si-cta-banner__actions .si-btn--lg { padding: 10px 20px; font-size: 0.88rem; width: 100%; justify-content: center; box-sizing: border-box; }
  .si-cta-banner__content p { font-size: 0.9rem; }
  .si-scroll-item { width: 300px; }
  .si-scroll-arrow { display: none !important; }

  .si-hero__slides { height: 50vh; min-height: 280px; }
  .si-hero__fallback { height: 50vh; min-height: 320px; max-height: 450px; align-items: center; padding-bottom: 0; }
  .si-hero__fallback-content { padding-top: 60px; }
  .si-hero__fallback-logo { max-width: 220px; max-height: 70px; margin-bottom: 14px; }
  .si-hero__fallback-name { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 10px; }
  .si-hero__fallback-tagline { font-size: 0.88rem; line-height: 1.5; margin-bottom: 18px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .si-hero__fallback-btn { padding: 9px 18px; font-size: 0.85rem; }
  .si-hero__slide-cta { bottom: 20px; right: 20px; }
  .si-hero__cta-btn { padding: 8px 18px; font-size: 0.82rem; }
  .si-hero__arrow { width: 34px; height: 34px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .si-section > .container { padding-left: 12px !important; padding-right: 12px !important; }
  .si-section__title { font-size: 1.2rem; }
  .si-scroll-item { width: 280px; }

  /* Exam cards */
  .si-exam-card { padding: 12px; gap: 10px; }
  .si-exam-card__name { font-size: 0.8rem; }
  .si-exam-card__meta { gap: 8px; font-size: 0.7rem; }
  .si-exam-card__icon, .si-exam-card__icon-placeholder { width: 32px; height: 32px; }

  /* CTA banner */
  .si-cta-banner__inner { padding: 20px 16px; }
  .si-cta-banner__content h2 { font-size: 1.2rem; }
  .si-cta-banner__content p { font-size: 0.82rem; }
  .si-cta-banner__actions .si-btn--lg { padding: 9px 16px; font-size: 0.8rem; }
  .si-cta-banner__badges { gap: 12px; }
  .si-cta-banner__badges span { font-size: 0.75rem; }

  /* Hero */
  .si-hero__slides { height: 50vh; min-height: 260px; }
  .si-hero__fallback { height: 55vh; min-height: 300px; max-height: 420px; align-items: center; padding-bottom: 0; }
  .si-hero__fallback-content { padding-top: 56px; }
  .si-hero__fallback-logo { max-width: 180px; max-height: 56px; margin-bottom: 10px; }
  .si-hero__fallback-name { font-size: 1.3rem; margin-bottom: 8px; }
  .si-hero__fallback-tagline { display: none; }
  .si-hero__fallback-btn { padding: 8px 16px; font-size: 0.82rem; }
  .si-hero__slide-cta { bottom: 14px; right: 14px; }
  .si-hero__cta-btn { padding: 7px 14px; font-size: 0.78rem; gap: 5px; }
  .si-hero__arrow { width: 30px; height: 30px; }
  .si-hero__dots { bottom: 10px; gap: 6px; }
  .si-hero__dot { width: 6px; height: 6px; }
  .si-hero__dot.active { width: 18px; }
}

@media (max-width: 360px) {
  .si-section > .container { padding-left: 10px !important; padding-right: 10px !important; }
  .si-exam-card { padding: 10px; gap: 8px; }
  .si-exam-card__meta { flex-wrap: wrap; gap: 4px 8px; }
  .si-cta-banner__inner { padding: 16px 12px; }
  .si-cta-banner__content h2 { font-size: 1.1rem; }
  .si-cta-banner__content p { font-size: 0.78rem; }
  .si-cta-banner__actions .si-btn--lg { padding: 8px 14px; font-size: 0.75rem; }
}

/* ============================================
   Carousel load-failure fallback
   Renders .owl-carousel items as a horizontal
   flex row when Owl JS fails to initialize.
   ============================================ */
.owl-carousel.ms-carousel-fallback {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.owl-carousel.ms-carousel-fallback > * {
  flex: 0 0 auto;
  width: clamp(240px, 33%, 360px);
  scroll-snap-align: start;
}
.owl-carousel.ms-carousel-fallback.instructors-courses > * { width: clamp(180px, 20%, 240px); }
