/* ==========================================================================
   DistanceEducationCollege.in - Main Design System
   A unit of Edunexsys (Nexsys Outsourcing Pvt Ltd)
   High-converting, SEO-optimized, lightweight CSS
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #0b2b5c;         /* Trustworthy Navy Blue */
  --primary-dark: #071a38;
  --primary-light: #16438a;
  --accent: #ff6b2c;          /* High-converting Action Orange */
  --accent-hover: #e05316;
  --accent-gold: #f59e0b;     /* Accents & ratings */
  --secondary: #00875a;       /* Success / Verified / Approvals Green */
  --secondary-light: #e3fcef;
  --whatsapp: #25d366;        /* Official WhatsApp Green */
  --whatsapp-hover: #1ebd5a;
  
  /* Neutral Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Transition */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 60px; /* Space for sticky mobile bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button, input, select, textarea {
  font: inherit;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.35rem; }
  h3 { font-size: 1.65rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.75rem, 2.5vw, 1.75rem);
  padding-right: clamp(0.75rem, 2.5vw, 1.75rem);
  box-sizing: border-box;
}

.container-narrow {
  max-width: 900px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: normal;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.25;
  min-height: 44px; /* Accessible touch target */
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 44, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 107, 44, 0.45);
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

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

.btn-sm {
  padding: 0.38rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    max-width: 100%;
  }
}

.btn-block {
  width: 100%;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-approved {
  background-color: #e3fcef;
  color: #006644;
  border: 1px solid #b3f5d3;
}

.badge-warning {
  background-color: #fff0b3;
  color: #8f6b00;
}

.badge-info {
  background-color: #deebff;
  color: #0747a6;
}

.badge-accent {
  background-color: rgba(255, 107, 44, 0.12);
  color: var(--accent);
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

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

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

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.top-bar-link:hover {
  color: var(--accent);
}

.top-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 900px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .top-bar-right {
    display: none;
  }
  .top-bar-link {
    white-space: normal;
    text-align: center;
    font-size: 0.76rem;
  }
}

/* Main Navigation Header */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  min-width: 0;
}

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

.logo-symbol {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(11, 43, 92, 0.25);
  flex-shrink: 0;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-title span {
  color: var(--accent);
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 1299px) {
  .logo-subtitle {
    display: none;
  }
}

.nav-menu {
  display: none;
  align-items: center;
  gap: clamp(0.75rem, 1.3vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0.35rem;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* AI College Finder Feature Link */
.nav-link-ai {
  background: rgba(255, 107, 44, 0.08);
  color: var(--accent) !important;
  font-weight: 700;
  padding: 0.35rem 0.8rem !important;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 107, 44, 0.25);
  transition: all var(--transition-fast) !important;
}

.nav-link-ai:hover {
  background: rgba(255, 107, 44, 0.16);
  transform: translateY(-1px);
}

.nav-link-ai::after {
  display: none;
}

/* Dropdown Menu in Header */
.nav-item-dropdown {
  position: relative;
  list-style: none;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-toggle svg {
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-toggle svg,
.nav-item-dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Invisible bridge so mouse hover doesn't break */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  z-index: 250;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--accent);
}

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

/* Vertical CTA Stack for WhatsApp & Free Counselling */
.header-cta-vertical {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
  justify-content: center;
}

.btn-header-cta {
  padding: 0.22rem 0.85rem !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  min-height: 27px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast) !important;
}

.btn-header-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Also support direct buttons placed vertically via CSS Grid if wrapper is omitted */
.header-actions:not(:has(.header-cta-vertical)) {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 3px 8px;
  align-items: center;
}

.header-actions:not(:has(.header-cta-vertical)) > .btn-whatsapp {
  grid-column: 1;
  grid-row: 1;
  padding: 0.22rem 0.85rem;
  font-size: 0.76rem;
  min-height: 27px;
  line-height: 1.2;
}

.header-actions:not(:has(.header-cta-vertical)) > .btn-primary {
  grid-column: 1;
  grid-row: 2;
  padding: 0.22rem 0.85rem;
  font-size: 0.76rem;
  min-height: 27px;
  line-height: 1.2;
}

.header-actions:not(:has(.header-cta-vertical)) > .mobile-menu-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (min-width: 1080px) {
  .nav-menu {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 576px) {
  .header-inner {
    height: 62px;
    gap: 0.35rem;
  }

  .brand-logo {
    gap: 0.4rem;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-symbol {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
    flex-shrink: 0;
  }

  .logo-title {
    font-size: clamp(0.72rem, 3.1vw, 0.92rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-cta-vertical {
    gap: 2px;
  }

  .btn-header-cta,
  .header-actions:not(:has(.header-cta-vertical)) > .btn {
    padding: 0.15rem 0.48rem !important;
    font-size: 0.68rem !important;
    min-height: 22px !important;
    letter-spacing: 0;
  }

  .mobile-menu-toggle {
    width: 30px;
    height: 30px;
    padding: 4px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    height: 56px;
    gap: 0.25rem;
  }

  .brand-logo {
    gap: 0.3rem;
  }

  .logo-symbol {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .logo-title {
    font-size: 0.68rem;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .btn-header-cta,
  .header-actions:not(:has(.header-cta-vertical)) > .btn {
    padding: 0.12rem 0.35rem !important;
    font-size: 0.62rem !important;
    min-height: 20px !important;
  }

  .mobile-menu-toggle {
    width: 28px;
    height: 28px;
    padding: 3px;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-surface);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.drawer-nav-item a:hover {
  background-color: var(--bg-subtle);
  color: var(--accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #1d4ed8 0%, #0d2f6d 40%, #06152d 100%);
  color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -15%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(37, 99, 235, 0.14) 45%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 1;
}

.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: #f8fafc;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-compare-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.65), 0 3px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
  color: #ffffff !important;
}

.hero-compare-btn .cta-pill {
  background: #ffffff;
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.hero-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-ai-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-compare-btn {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 0.72rem 0.85rem;
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
    gap: 0.4rem;
  }

  .hero-ai-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.72rem 0.85rem;
    font-size: clamp(0.82rem, 3.2vw, 0.92rem);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 450px);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

.hero-content {
  min-width: 0;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: clamp(1.45rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-content h1 mark {
  background: none;
  color: #fb923c;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: clamp(0.9rem, 1.1vw, 1.12rem);
  margin-bottom: 1.75rem;
  max-width: 580px;
  line-height: 1.6;
  word-break: break-word;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.75rem, 2.5vw, 0.88rem);
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .hero-highlight-item {
    white-space: normal;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
  }
}

.hero-highlight-item svg {
  color: #34d399;
  flex-shrink: 0;
}

/* Quick Search Box */
.hero-search-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .hero-search-box {
    flex-direction: row;
    align-items: center;
    padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.search-input-wrap svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.hero-search-box input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  box-sizing: border-box;
  padding: 0.5rem 0;
  background: transparent;
}

/* University & Course Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  }
}

.uni-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.uni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.uni-card-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.uni-logo-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.uni-logo-img {
  width: 100%;
  height: 100%;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.uni-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.course-card-thumb {
  width: calc(100% + 3.5rem);
  height: 140px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card-thumb.fallback-thumb {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.course-card-thumb.fallback-thumb::after {
  content: '🎓 UGC-DEB Recognized Program';
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.uni-card-header > div:last-child {
  flex: 1;
  min-width: 0;
}

.uni-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.uni-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.uni-approvals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.uni-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-subtle);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.uni-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.uni-stat-val {
  font-weight: 700;
  color: var(--primary-dark);
}

.uni-stat-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.25;
}

.uni-courses-tags {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Intent Links Pill Layout */
.uni-intent-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.uni-intent-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.25rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.uni-intent-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-dark);
}

@media (max-width: 480px) {
  .uni-intent-hub {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .uni-intent-link {
    padding: 0.45rem 0.35rem;
    font-size: 0.78rem;
  }
}

.uni-card-footer {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
}

.uni-card-footer .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.6rem 0.5rem;
  min-height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
}

@media (max-width: 480px) {
  .uni-card-footer {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
  }
  .uni-card-footer .btn {
    font-size: 0.82rem;
    padding: 0.55rem 0.35rem;
    min-height: 40px;
  }
}

/* University Directory Header */
.uni-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.uni-directory-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .uni-directory-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
  }
  .uni-directory-header h2 {
    font-size: 1.25rem;
  }
  .uni-directory-header .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
}

/* University Filter Bar */
.uni-filter-section {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .uni-filter-section {
    position: static;
    padding: 1rem 0;
    box-shadow: none;
  }
}

/* Course Card */
.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.course-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.course-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Detail Page Two-Column Responsive Layout */
.detail-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.detail-two-col > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 992px) {
  .detail-two-col {
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 420px) !important;
    gap: 2.5rem;
  }
}

/* Section Common Styles */
.section {
  padding: 4.5rem 0;
}

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

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.15rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background-color: #071a38;
  color: #94a3b8;
  padding-top: 4.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
}

.footer-col-about {
  grid-column: span 1;
}

@media (min-width: 992px) {
  .footer-col-about {
    grid-column: span 2;
  }
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

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

.company-declaration {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.company-declaration strong {
  color: #ffffff;
}

/* Floating WhatsApp Button (Desktop only; on mobile the sticky-mobile-bar handles WhatsApp) */
.whatsapp-floating-btn {
  display: none !important;
}

@media (min-width: 992px) {
  .whatsapp-floating-btn {
    display: flex !important;
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background-color: var(--whatsapp);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 990;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .whatsapp-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  }
}

/* Sticky Mobile Bottom Lead Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  z-index: 980;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

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

.sticky-mobile-bar .btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Course Page Fee Comparison Matrix */
.fee-comparison-wrapper {
  width: 100%;
  margin-top: 1rem;
  position: relative;
}

.fee-table-desktop {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow-x: hidden;
}

.fee-cards-mobile {
  display: none;
}

.fee-compare-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  table-layout: fixed;
  box-sizing: border-box;
}

.fee-compare-table th {
  background: #f8fafc;
  padding: 0.75rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  text-align: left;
  white-space: normal;
  word-break: normal;
}

.fee-compare-table td {
  padding: 0.75rem 0.65rem;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  white-space: normal;
  word-break: normal;
}

.fee-compare-table tr:last-child td {
  border-bottom: none;
}

.fee-compare-table tr:hover td {
  background-color: #f8fafc;
}

.fee-compare-table th:last-child,
.fee-compare-table td:last-child {
  text-align: center;
  white-space: normal;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.fee-compare-table td .btn,
.fee-compare-table th .btn,
.fee-compare-table .btn {
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.25rem;
  box-sizing: border-box !important;
  text-align: center;
}

.fee-highlight-pill {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.fee-total-pill {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

.fee-emi-pill {
  font-size: 0.74rem;
  color: #059669;
  font-weight: 600;
}

/* Mobile Fee Card Stack */
.uni-fee-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uni-fee-card:hover {
  box-shadow: var(--shadow-md);
}

.uni-fee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.uni-fee-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: var(--bg-subtle);
  padding: 0.85rem;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .fee-table-desktop {
    display: none !important;
  }
  .fee-cards-mobile {
    display: block !important;
  }
}

.uni-fee-card .btn {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 44px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.3 !important;
  padding: 0.6rem 0.65rem !important;
  box-sizing: border-box !important;
}

/* University Detail Mobile Responsive Rules */
.uni-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.jump-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow-x: hidden;
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.25rem;
  font-size: 0.82rem;
}

.jump-nav-pills a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  flex-shrink: 0;
}

.jump-nav-pills a:hover,
.jump-nav-pills a:focus {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 576px) {
  .uni-hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }
  .uni-hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 44px !important;
  }
  .landing-banner-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 0.5rem;
  }
  .landing-banner-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 44px !important;
  }
  .btn-mobile-full {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  .fee-scholarship-box {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }
  .fee-scholarship-box .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 42px !important;
  }
  .card[style*="padding: 1.75rem"],
  .card[style*="padding:1.75rem"] {
    padding: 1.15rem 0.75rem !important;
  }
  div:has(> .fee-compare-table),
  .card div:has(> .fee-compare-table) {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  .fee-compare-table {
    table-layout: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .fee-compare-table th {
    padding: 0.45rem 0.2rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0 !important;
  }
  .fee-compare-table td {
    padding: 0.45rem 0.2rem !important;
    font-size: 0.76rem !important;
  }
  .fee-compare-table .fee-highlight-pill {
    font-size: 0.8rem !important;
  }
  .fee-compare-table th:last-child,
  .fee-compare-table td:last-child {
    position: static !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  .fee-compare-table td .btn,
  .fee-compare-table th .btn,
  .fee-compare-table .btn {
    padding: 0.3rem 0.15rem !important;
    font-size: 0.7rem !important;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   Learning Mode Comparison: Zero-Scroll Component
   ========================================================================== */
.mode-compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.mode-compare-table th {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--border-color);
  text-align: left;
}

.mode-compare-table th.col-feature {
  width: 28%;
  background: #f8fafc;
  color: var(--text-muted);
}

.mode-compare-table th.col-online {
  width: 38%;
  background: #ecfdf5;
  color: #065f46;
  border-left: 1px solid #a7f3d0;
}

.mode-compare-table th.col-distance {
  width: 34%;
  background: #f1f5f9;
  color: #475569;
  border-left: 1px solid var(--border-color);
}

.mode-compare-table td {
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  word-break: break-word;
}

.mode-compare-table tr:last-child td {
  border-bottom: none;
}

.mode-compare-table td.col-feature {
  font-weight: 700;
  color: var(--text-main);
  background: #fafafa;
}

.mode-compare-table td.col-online {
  color: #065f46;
  background: #f0fdf4;
  border-left: 1px solid #dcfce7;
}

.mode-compare-table td.col-distance {
  color: #475569;
  background: #ffffff;
  border-left: 1px solid var(--border-color);
}

/* Mobile Mode Cards (Zero horizontal scroll on small screens) */
.mode-compare-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.mode-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.mode-card-feature-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.mode-card-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.mode-card-row:last-child {
  margin-bottom: 0;
}

.mode-badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  background: #dcfce7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.mode-badge-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.mode-card-text {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.mode-card-text.online-text {
  color: #065f46;
}

.mode-card-text.distance-text {
  color: #475569;
}

@media (max-width: 768px) {
  .mode-compare-table-desktop {
    display: none !important;
  }
  .mode-compare-cards-mobile {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .mode-compare-table-desktop {
    display: table !important;
  }
  .mode-compare-cards-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   SEO Interlink Silo Matrix & Flow Elements
   ========================================================================== */
.seo-silo-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.seo-silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.seo-silo-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seo-silo-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.seo-silo-col li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.seo-silo-col li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.flow-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.flow-link-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

