/* ==========================================================================
   NEET Support Pro - Refined Elegant Stylesheet
   Harmonious Medical Palette: Deep Sapphire Blue, Medical Teal, Clean Slate
   Typography: Decent, crisp & modern Plus Jakarta Sans / Inter
   ========================================================================== */

:root {
  /* Harmonious Color Palette */
  --primary: #1e40af;           /* Deep Sapphire Blue */
  --primary-hover: #1d4ed8;     /* Bright Royal Blue */
  --primary-dark: #0f172a;      /* Deep Slate Dark */
  --primary-light: #eff6ff;     /* Soft Blue Tint */
  --primary-border: #bfdbfe;    /* Light Blue Border */
  
  --secondary: #0d9488;         /* Professional Medical Teal */
  --secondary-hover: #0f766e;   /* Darker Teal */
  --secondary-light: #f0fdfa;   /* Soft Teal Tint */
  --secondary-border: #99f6e4;  /* Teal Border */
  
  --accent: #d97706;            /* Warm Amber Gold */
  --accent-hover: #b45309;      /* Darker Gold */
  --accent-light: #fffbeb;      /* Soft Amber Tint */
  
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --success: #16a34a;
  --success-light: #f0fdf4;
  
  /* Slate Neutral Grays */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  
  /* Refined Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-main);
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.65;
  font-size: 0.95rem;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Container - Unified 1340px Width */
.container {
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.topbar {
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar a {
  color: var(--slate-300);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.topbar a:hover {
  color: #38bdf8;
}

.topbar-badge {
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
}

.main-header {
  background: var(--white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  max-width: 225px;
  width: auto;
  object-fit: contain;
  display: block;
}

.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.835rem;
  font-weight: 600;
  cursor: pointer;
}

.user-dropdown-menu {
  right: 0 !important;
  left: auto !important;
  min-width: 210px;
}

.main-header .container {
  max-width: 1340px;
}

/* Nav Menu - Single Line No-Wrap Guarantee */
.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.navbar-nav li {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-700);
  padding: 0.4rem 0.35rem;
  position: relative;
  transition: var(--transition);
  white-space: nowrap !important;
  display: inline-block;
  letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-link-row {
  display: inline-flex;
  align-items: center;
}

.dropdown-chevron-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

/* Submenu Dropdowns */
.nav-item {
  position: relative;
}

.has-dropdown {
  position: relative;
}

.dropdown-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  display: inline-block;
  opacity: 0.75;
}

.has-dropdown:hover > .nav-link-row .dropdown-chevron,
.has-dropdown.open > .nav-link-row .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--white);
  min-width: 235px;
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.15), 0 6px 12px -4px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  list-style: none;
  padding: 0.45rem 0;
  margin: 0;
  display: none;
  z-index: 1050;
  animation: dropdownFadeIn 0.15s ease-out;
}

/* Invisible bridge so mouse movement never leaves hover area */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1121px) {
  .has-dropdown:hover > .dropdown-menu {
    display: block;
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  color: var(--slate-700);
  font-size: 0.835rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.dropdown-dot {
  color: var(--primary);
  font-size: 0.9rem;
  margin-right: 0.4rem;
  line-height: 1;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-left: 1.3rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-toggle {
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-800);
  cursor: pointer;
  padding: 0.45rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.mobile-toggle:hover,
.mobile-toggle.active {
  background: var(--primary-light);
  border-color: #bfdbfe;
  color: var(--primary);
}

/* ==========================================================================
   Buttons & UI Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.885rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.28);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--slate-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 0.985rem;
  border-radius: var(--radius-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}

.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-secondary { background: var(--secondary-light); color: var(--secondary); border: 1px solid var(--secondary-border); }
.badge-warning { background: var(--accent-light); color: var(--accent); border: 1px solid #fde68a; }
.badge-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.badge-success { background: var(--success-light); color: var(--success); border: 1px solid #bbf7d0; }
.badge-dark { background: var(--slate-800); color: var(--white); }

/* ==========================================================================
   Hero Banner Section & Slider (Form-Free)
   ========================================================================== */
.hero-alert-strip {
  background: #09101f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
  font-size: 0.815rem;
  color: var(--slate-300);
}

.hero-alert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.75rem;
  color: #f43f5e;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  background: rgba(244, 63, 94, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  background-color: #f43f5e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #f43f5e;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.hero-alert-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
}

.hero-alert-action {
  flex-shrink: 0;
}

.hero-alert-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-alert-link:hover {
  color: #ffffff;
}

/* Pure Image Hero Banner Slider (No Text Overlay) */
.hero-pure-image-section {
  position: relative;
  width: 100%;
  background: #091326;
  overflow: hidden;
  padding: 0;
}

.hero-image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  line-height: 0;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-slide {
  display: none;
  opacity: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.hero-image-slide.active {
  display: block;
  opacity: 1;
  animation: bannerFade 0.5s ease-out forwards;
}

@keyframes bannerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
  line-height: 0;
}

.hero-banner-img {
  width: 100%;
  height: clamp(240px, 34vw, 540px);
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-banner-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(30, 58, 138, 0.35) 0%, transparent 55%),
              linear-gradient(135deg, #091326 0%, #0f172a 45%, #1e293b 85%, #0d2847 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: relative;
  opacity: 0;
  padding: 4.25rem 0 4.75rem;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
  display: block;
  opacity: 1;
  animation: slideFadeIn 0.5s ease-out;
}

.hero-slide-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 19, 38, 0.95) 0%, rgba(15, 23, 42, 0.88) 52%, rgba(15, 23, 42, 0.68) 100%),
              radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.22) 0%, transparent 45%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

/* Banner Graphic Showcase Card (100% Form-Free) */
.hero-banner-graphic {
  position: relative;
  z-index: 3;
}

.banner-display-card {
  position: relative;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.15);
  color: var(--white);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.banner-display-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.banner-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.banner-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #38bdf8;
  text-transform: uppercase;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseDot 2s infinite;
}

.banner-accent-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
}

.banner-hero-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
}

.feature-icon-box {
  font-size: 1.85rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.feature-text-box h4 {
  font-size: 0.975rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.feature-text-box p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
}

.banner-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.825rem;
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-weight: 500;
}

.metric-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.metric-val {
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.835rem;
}

.banner-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatars-group {
  display: flex;
  align-items: center;
}

.avatar-pill {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-right: -6px;
  border: 2px solid #0f172a;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 0.825rem;
  color: #f8fafc;
  font-weight: 700;
}

.trust-text span {
  font-size: 0.725rem;
  color: #94a3b8;
}

.banner-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.banner-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

/* Slider Controls (Arrows & Dots) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  outline: none;
}

.slider-arrow-prev {
  left: 1.25rem;
}

.slider-arrow-next {
  right: 1.25rem;
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.slider-dot.active {
  width: 28px;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Hero Feature Badges Bar */
.hero-feature-bar {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.35rem 0;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-bar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-bar-icon {
  font-size: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-bar-content strong {
  display: block;
  font-size: 0.885rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.feature-bar-content span {
  display: block;
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Legacy Hero Section Fallback */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
  color: var(--white);
  padding: 3.75rem 0 4.25rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.025rem;
  color: var(--slate-300);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.stat-item h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item h4 span {
  color: #38bdf8;
}

.stat-item p {
  font-size: 0.775rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

/* Hero Predictor Card */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--slate-800);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.hero-card-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.hero-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.hero-card-header p {
  font-size: 0.825rem;
  color: var(--slate-500);
}

/* Form Controls */
.form-group {
  margin-bottom: 0.9rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.3rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.625rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--slate-800);
  background-color: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  padding: 3.75rem 0;
}

.section-bg {
  background-color: var(--slate-100);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
  letter-spacing: 0.4px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
}

/* Service / Feature Card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.885rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

.service-price-box {
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border: 1px solid var(--slate-200);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.service-original-price {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-decoration: line-through;
}

.service-features-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-features-list li {
  font-size: 0.835rem;
  color: var(--slate-600);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.service-features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* College Card */
.college-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.college-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.college-header {
  padding: 1.25rem 1.25rem 0.85rem;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-100);
}

.college-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.college-name {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.college-location {
  font-size: 0.8rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.college-body {
  padding: 1.15rem 1.25rem;
  flex-grow: 1;
}

.college-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.meta-box {
  background: var(--slate-50);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.meta-box-label {
  font-size: 0.7rem;
  color: var(--slate-500);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-box-val {
  font-size: 0.885rem;
  font-weight: 700;
  color: var(--slate-800);
}

.cutoff-box {
  background: var(--success-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.cutoff-label {
  font-size: 0.775rem;
  color: #166534;
  font-weight: 600;
}

.cutoff-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d;
}

.college-footer {
  padding: 0.85rem 1.25rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  gap: 0.65rem;
}

/* Predictor Tool */
.predictor-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.predictor-filter-bar {
  background: var(--slate-900);
  padding: 1.75rem;
  color: var(--white);
}

.predictor-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: flex-end;
}

.predictor-filter-bar .form-control,
.predictor-filter-bar .form-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.predictor-filter-bar .form-control:focus,
.predictor-filter-bar .form-select:focus {
  background: var(--white);
  color: var(--slate-900);
}

.predictor-filter-bar .form-label {
  color: var(--slate-300);
}

.predictor-results-area {
  padding: 1.75rem;
}

.results-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
}

.author-info p {
  font-size: 0.775rem;
  color: var(--primary);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.1rem 1.25rem;
  font-size: 0.985rem;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease;
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.1rem;
  max-height: 300px;
}

/* Blogs */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.blog-card-img {
  height: 170px;
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.25rem;
}

.blog-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.775rem;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.65rem;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.55;
}

/* Footer */
.main-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 3.75rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pre-Footer Graphic White Banner Section */
.pre-footer-banner {
  background: #ffffff;
  padding: 3rem 0 0 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--slate-200);
}

.pre-footer-banner .container {
  padding-bottom: 0;
}

.pre-footer-banner-img {
  width: 100%;
  max-width: 1340px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.865rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.865rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.865rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.modal-header {
  padding: 1.1rem 1.25rem;
  background: var(--slate-900);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.35rem;
}

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.885rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--accent-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-light); color: #1e40af; border: 1px solid #bfdbfe; }

/* Responsive System */
@media (max-width: 1120px) {
  .hero-slide-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .slider-arrow { display: none; }
  .feature-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .main-nav-container {
    position: static;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.5rem;
    box-shadow: 0 25px 35px -5px rgba(15, 23, 42, 0.25);
    border-top: 1px solid var(--slate-200);
    border-bottom: 2px solid var(--slate-300);
    gap: 0;
    align-items: stretch;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
  }
  
  .navbar-nav.show { 
    display: flex !important; 
  }
  
  .mobile-toggle { 
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Clear separate divider line for every main menu */
  .navbar-nav > li.nav-item {
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0.2rem 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .navbar-nav > li.nav-item:last-child {
    border-bottom: none !important;
  }

  /* Full row flex container with right-aligned button */
  .nav-link-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.65rem 0.25rem !important;
  }

  /* Main menu link full width */
  .navbar-nav .nav-link {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--slate-800) !important;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: normal !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--slate-50);
  }

  .navbar-nav .nav-link.active::after {
    display: none !important;
  }

  /* Dropdown Chevron Button explicitly on the far right */
  .dropdown-chevron-btn {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--slate-100) !important;
    border: 1px solid var(--slate-300) !important;
    border-radius: 6px !important;
    color: var(--slate-700) !important;
    cursor: pointer !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease !important;
  }

  .dropdown-chevron-btn .dropdown-chevron {
    font-size: 0.85rem !important;
    opacity: 1 !important;
  }

  .has-dropdown.open > .nav-link-row .dropdown-chevron-btn {
    transform: rotate(180deg) !important;
    background: var(--primary-light) !important;
    border-color: #93c5fd !important;
    color: var(--primary) !important;
  }

  /* Mobile Submenu Accordion */
  .has-dropdown .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid var(--slate-200) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.4rem 0 !important;
    margin: 0.25rem 0 0.75rem 0.25rem !important;
    background: #f8fafc !important;
    display: none !important;
    width: calc(100% - 0.5rem) !important;
    animation: none !important;
  }

  .has-dropdown.open > .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu::before {
    display: none !important;
  }

  .dropdown-sub-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    list-style: none !important;
  }

  .dropdown-sub-item:last-child {
    border-bottom: none !important;
  }

  .dropdown-item {
    padding: 0.65rem 1rem !important;
    font-size: 0.875rem !important;
    color: var(--slate-700) !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    transition: all 0.15s ease;
  }

  .dropdown-bullet {
    color: var(--primary) !important;
    font-size: 1.15rem !important;
    margin-right: 0.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .dropdown-item:hover {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    padding-left: 1.25rem !important;
  }

  /* Mobile Drawer Footer CTA */
  .mobile-drawer-cta {
    width: 100% !important;
    padding: 1.25rem 0.25rem 0.5rem !important;
    margin-top: 0.5rem !important;
    border-top: 2px dashed var(--slate-200) !important;
    list-style: none !important;
  }
}

@media (max-width: 900px) {
  .colleges-layout {
    grid-template-columns: 1fr;
  }
  .predictor-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-badge {
    font-size: 0.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .header-actions .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.775rem;
  }
  .brand-logo-img {
    height: 40px;
    max-width: 180px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-slide {
    padding: 2.25rem 0 3.25rem;
  }
  .feature-bar-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .hero-alert-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .hero-alert-action {
    display: none;
  }
  .header-guidance-btn {
    display: none;
  }
  .header-login-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .topbar-right {
    display: none;
  }
  .topbar-content {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .user-dropdown-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.775rem;
  }
}
