:root {
  --navy-950: #09111f;
  --navy-900: #0f1b33;
  --navy-800: #18284a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --sky-400: #38bdf8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-dark: rgba(9, 17, 31, 0.75);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 28px 70px rgba(15, 23, 42, 0.12);
  --shadow-hero: 0 40px 90px rgba(15, 23, 42, 0.22);
}

* {
  scroll-behavior: smooth;
}

html {
  background: #f4f7fb;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fd 54%, #f7f9fc 100%);
}

.font-display {
  font-family: "Poppins", sans-serif;
}

.surface-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.surface-card-strong {
  background: var(--surface-strong);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-card);
}

.surface-dark {
  background: linear-gradient(180deg, rgba(9, 17, 31, 0.92), rgba(15, 27, 51, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-hero);
}

.section-shell {
  position: relative;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(59, 130, 246, 0.08), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.08), transparent 25%);
}

.nav-link,
.submenu-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.95rem;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.site-header {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.site-nav-link {
  color: #0f172a;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.site-nav-link:hover {
  color: var(--blue-600);
}

.site-logo-title,
.site-logo-subtitle,
.site-menu-toggle,
.site-login-btn {
  transition: all 0.3s ease;
}

.site-logo-title {
  color: #0f172a;
}

.site-logo-subtitle {
  color: #64748b;
}

.site-menu-toggle {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.site-login-btn {
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(191, 219, 254, 0.95);
}

.site-login-btn:hover {
  background: var(--blue-600);
  color: #ffffff;
}

.site-header.scrolled .site-nav-link {
  color: #0f172a;
}

.site-header.scrolled .site-nav-link:hover,
.site-header.scrolled .site-nav-link.active {
  color: var(--blue-600);
}

.site-header.scrolled .site-logo-title {
  color: #0f172a;
}

.site-header.scrolled .site-logo-subtitle {
  color: #64748b;
}

.site-header.scrolled .site-menu-toggle {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.site-header.scrolled .site-login-btn {
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(191, 219, 254, 0.95);
}

.site-header.scrolled .site-login-btn:hover {
  background: var(--blue-600);
  color: #ffffff;
}

.mega-menu,
.mobile-drawer {
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.mega-menu.hidden-state,
.mobile-drawer.hidden-state {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(9, 17, 31, 0.82), rgba(15, 27, 51, 0.48) 46%, rgba(37, 99, 235, 0.16) 100%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 26%);
  z-index: 1;
}

.hero-slide {
  position: relative;
  z-index: 2;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-search-shell {
  position: relative;
  z-index: 5;
  margin-top: 2rem;
}

.cta-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  color: #fff;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(37, 99, 235, 0.3);
}

.cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.floating-whatsapp,
.mobile-sticky-cta {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.card-hover,
.exam-card,
.course-card,
.metric-card,
.question-card,
.material-card,
.download-card,
.related-card,
.dashboard-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover,
.exam-card:hover,
.course-card:hover,
.metric-card:hover,
.question-card:hover,
.material-card:hover,
.download-card:hover,
.related-card:hover,
.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 22%),
    linear-gradient(135deg, #09111f 0%, #16274a 38%, #2144b4 72%, #6d28d9 100%);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.page-banner > * {
  position: relative;
  z-index: 1;
}

.material-tab.active,
.material-subtopic.active {
  border-color: rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  color: #1638a5;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-item[data-open="true"] .faq-answer {
  max-height: 260px;
}

.youtube-frame {
  aspect-ratio: 16 / 9;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-gradient {
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-elevated {
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.search-result-hidden {
  display: none !important;
}

@media (max-width: 1023px) {
  .desktop-mega {
    display: none !important;
  }

  .hero-search-shell {
    margin-top: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
}
