/* ==========================================================================
   DegreeBuddy AI — Design System & Responsive Stylesheet
   Mobile-first & Fully Responsive across all viewports (320px to 4K)
   ========================================================================== */

:root {
  /* Modern AI Color Palette */
  --ai-blue: #2563eb;
  --ai-blue-hover: #1d4ed8;
  --ai-cyan: #22d3ee;
  --ai-violet: #7c3aed;
  --ai-purple: #a855f7;
  --ai-green: #10b981;
  --ai-bg: #f8faff;
  --ai-dark: #07142f;
  --ai-card-bg: rgba(255, 255, 255, 0.94);
  --ai-shadow: 0 20px 60px rgba(25, 45, 100, 0.12);
  --ai-shadow-sm: 0 8px 24px rgba(25, 45, 100, 0.08);

  /* Foundation Colors */
  --navy: #0F1B2D;
  --navy-2: #16273F;
  --paper: #FBF8F1;
  --paper-2: #F3EEE1;
  --ink: #1B2430;
  --ink-soft: #4A5162;
  --muted: #64748B;
  --gold: #C89B3C;
  --teal: #2F6F62;
  --teal-deep: #1E4E45;
  --line: rgba(37, 99, 235, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);
  --radius-card: 20px;
  --radius-pill: 999px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 40%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .serif {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
  color: var(--ai-dark);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Responsive Container */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

/* ==========================================================================
   Navigation Bar & Mobile Drawer
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 4px 20px rgba(15, 27, 45, 0.05);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ai-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto 0 36px;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--ai-dark);
  opacity: 0.8;
  font-weight: 600;
  transition: opacity 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--ai-blue);
}

.nav-mobile-contact {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-call, .nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-call {
  background: linear-gradient(135deg, var(--ai-blue), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.nav-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.nav-whatsapp {
  background: #e9f8ef;
  color: #168447;
  border: 1px solid #bfe8cf;
}

.nav-whatsapp:hover {
  background: #daf4e4;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ai-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-inner {
    padding: 0 20px;
    height: 66px;
  }
  .nav-contact {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 12px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 20px 50px rgba(15, 27, 45, 0.12);
    display: none;
    transform-origin: top;
    animation: navSlideDown 0.22s ease forwards;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 15.5px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.03);
  }
  .nav-links a:hover {
    background: rgba(37, 99, 235, 0.08);
  }
  .nav-mobile-contact {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(37, 99, 235, 0.10);
  }
  .nav-mobile-contact a {
    flex: 1;
    justify-content: center;
    padding: 12px 14px;
    text-align: center;
    font-size: 14px;
  }
}

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

/* ==========================================================================
   Credibility Strip
   ========================================================================== */
.credibility-strip {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  overflow: hidden;
  position: relative;
}

.credibility-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  text-align: center;
}

.credibility-quote {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 2.5vw, 22px);
  color: var(--paper);
  line-height: 1.4;
}

.credibility-brands {
  font-weight: 800;
  font-size: clamp(20px, 4vw, 32px);
  color: #ffffff;
  display: block;
  margin-top: 6px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff 0%, #a5f3fc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
  .credibility-strip { min-height: 90px; }
  .credibility-text { padding: 18px 16px; }
}

/* ==========================================================================
   Hero Section & Teaser Card
   ========================================================================== */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.18), transparent 25%),
    radial-gradient(circle at 70% 85%, rgba(124, 58, 237, 0.22), transparent 28%),
    linear-gradient(135deg, #061431 0%, #0b1e49 52%, #10184b 100%);
  color: #ffffff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 10vw, 110px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to right, black, transparent 90%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -130px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 0 100px rgba(37, 99, 235, 0.15), inset 0 0 80px rgba(124, 58, 237, 0.08);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: #a5f3fc;
  font-size: clamp(11px, 2.7vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 100%;
}

.kicker-icon {
  color: #22d3ee;
  font-size: 11px;
  text-shadow: 0 0 10px #22d3ee;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.kicker-text {
  white-space: nowrap;
}

@media (max-width: 440px) {
  .kicker {
    padding: 5px 11px;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0;
  }
}

@media (max-width: 350px) {
  .kicker {
    border-radius: 12px;
    align-items: flex-start;
    padding: 6px 10px;
  }
  .kicker-text {
    white-space: normal;
    line-height: 1.35;
  }
  .kicker-icon {
    margin-top: 2px;
  }
}


.hero h1 {
  font-size: clamp(28px, 5.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #ffffff;
  max-width: 680px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--ai-cyan), var(--ai-violet));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.55);
}

.hero p.lede {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.6;
  color: #c9d7f3;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.30);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1.2px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-teal {
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.20);
}

.btn-teal:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
  max-width: 560px;
}

.stat {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.stat b {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2.8vw, 24px);
  color: #ffffff;
  display: block;
}

.stat span {
  font-size: 11.5px;
  color: #AEB6C6;
  line-height: 1.3;
  display: block;
  margin-top: 3px;
}

/* Teaser Card */
.teaser-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.teaser-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.teaser-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ai-dark);
}

.teaser-head span {
  font-size: 12px;
  color: var(--muted);
}

.teaser-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.6fr;
  padding: 10px 8px;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.12);
  align-items: center;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.teaser-row:last-child {
  border-bottom: none;
}

.teaser-row:hover {
  background: #f4f8ff;
}

.teaser-row .uni {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ai-dark);
}

.teaser-row .prog {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.teaser-row .fee {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ai-blue);
}

.teaser-row .dur {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.teaser-row .rate {
  font-size: 12.5px;
  color: var(--ai-violet);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 580px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 13px 18px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }
  .stat {
    padding: 10px 8px;
    text-align: center;
  }
  .stat b { font-size: 18px; }
  .stat span { font-size: 10px; }

  /* Teaser card mobile grid */
  .teaser-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 10px 6px;
  }
  .teaser-row > div:first-child {
    flex: 1 1 100%;
  }
  .teaser-row .fee, .teaser-row .dur, .teaser-row .rate {
    font-size: 12.5px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stat {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .stat span { margin-top: 0; }
}

/* ==========================================================================
   AI Trust Strip
   ========================================================================== */
.ai-trust-strip {
  position: relative;
  z-index: 5;
  margin-top: -26px;
}

.ai-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 16px 45px rgba(25, 45, 100, 0.12);
  backdrop-filter: blur(18px);
}

.ai-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: var(--ai-blue);
  font-weight: 900;
  flex-shrink: 0;
}

.ai-trust-inner b {
  color: var(--ai-dark);
  font-size: 14.5px;
}

.ai-trust-inner span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .ai-trust-inner {
    margin: 0 16px;
    text-align: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 16px;
  }
  .ai-trust-inner b { width: 100%; }
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section {
  padding: clamp(56px, 8vw, 92px) 0;
}

.section.tight {
  padding: clamp(40px, 6vw, 64px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-head h2 {
  font-size: clamp(24px, 4.5vw, 36px);
  color: var(--ai-dark);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-cyan));
}

.section-head p {
  margin-top: 12px;
  font-size: clamp(14.5px, 2vw, 16px);
  color: var(--ink-soft);
  line-height: 1.6;
}

.on-tint {
  background: #f4f7fd;
}

/* ==========================================================================
   AI Matcher Section
   ========================================================================== */
.matcher {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  box-shadow: var(--ai-shadow);
  background: #ffffff;
  overflow: hidden;
}

.matcher-form {
  padding: clamp(24px, 4vw, 40px);
  border-right: 1px solid var(--line);
}

.matcher-form h3 {
  font-size: 20px;
  color: var(--ai-dark);
}

.matcher-form .sub, .form-card .sub {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ai-dark);
  margin-bottom: 8px;
}

select, input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #fbfdff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 768px) {
  /* Prevent automatic zoom on iOS Safari */
  select, input[type=text], input[type=email], input[type=tel] {
    font-size: 16px;
  }
}

select:focus, input:focus {
  outline: none;
  border-color: var(--ai-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chip:hover {
  background: #f0f5ff;
  border-color: var(--ai-blue);
}

.chip.active {
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

#runMatch {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
}

.matcher-results {
  background: linear-gradient(145deg, #f7f9ff, #eef3ff);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.matcher-results h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--ai-dark);
}

.empty-hint {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--ai-shadow-sm);
}

.match-card .name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ai-dark);
}

.match-card .meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.match-score {
  font-size: 22px;
  font-weight: 900;
  color: var(--ai-blue);
  text-align: right;
  flex-shrink: 0;
}

.match-score span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .matcher {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .matcher-form {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 20px;
  }
  .matcher-results {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .chip-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .chip {
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.filters select {
  max-width: 220px;
  background: #ffffff;
}

@media (max-width: 560px) {
  .filters select {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100%;
  }
}

.table-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--ai-blue);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 800px) {
  .table-scroll-hint { display: block; }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 16px 45px rgba(25, 45, 100, 0.08);
}

#compareTable {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

#compareTable thead th {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  background: #fafcff;
  user-select: none;
  white-space: nowrap;
}

#compareTable thead th[data-key] {
  cursor: pointer;
}

#compareTable thead th[data-key]:hover {
  color: var(--ai-blue);
}

#compareTable tbody tr {
  border-bottom: 1px solid rgba(37, 99, 235, 0.07);
  transition: background 0.15s ease;
}

#compareTable tbody tr:last-child {
  border-bottom: none;
}

#compareTable tbody tr:hover {
  background: #f5f8ff;
}

#compareTable td {
  padding: 16px 18px;
  vertical-align: middle;
}

.uni-name {
  font-weight: 800;
  color: var(--ai-dark);
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.10);
  color: var(--ai-blue);
  margin-top: 4px;
}

.uni-tag {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.fee-cell {
  font-weight: 800;
  color: var(--ai-blue);
  font-size: 15px;
  white-space: nowrap;
}

.rate-cell {
  font-weight: 800;
  color: var(--ai-violet);
  white-space: nowrap;
}

.row-cta {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--ai-blue);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.row-cta:hover {
  background: var(--ai-blue);
  color: #ffffff;
}

/* ==========================================================================
   Counselling Form Section
   ========================================================================== */
.form-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.form-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 18px 50px rgba(25, 45, 100, 0.07);
  padding: clamp(24px, 4vw, 40px);
}

.g-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: #f4f6fa;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.g-tag .dots {
  display: flex;
  gap: 3px;
}

.g-tag .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.g-tag .dots i:nth-child(1) { background: #4285f4; }
.g-tag .dots i:nth-child(2) { background: #ea4335; }
.g-tag .dots i:nth-child(3) { background: #fbbc05; }
.g-tag .dots i:nth-child(4) { background: #34a853; }

.form-card h3 {
  font-size: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.confirm {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.confirm .tick {
  width: 54px;
  height: 54px;
  background: #e9f8ef;
  color: #168447;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto 16px;
}

.confirm h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.confirm p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.form-side {
  padding-top: 10px;
}

.form-side h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.form-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-side li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.num-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--ai-blue);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .form-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-card button[type=submit] {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.step {
  padding: 32px 24px 32px 0;
  border-right: 1px solid rgba(37, 99, 235, 0.10);
}

.step:last-child {
  border-right: none;
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
  color: var(--ai-blue);
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.step h4 {
  font-size: 17px;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    border-bottom: none;
  }
  .step {
    padding: 24px 16px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  }
  .step:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: none !important;
    padding: 20px 0;
  }
  .step:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Expert Callout Section
   ========================================================================== */
.expert {
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.16), transparent 25%),
    linear-gradient(135deg, #071735, #17245a);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 35, 90, 0.22);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  color: #ffffff;
}

.expert h2 {
  color: #ffffff;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.2;
}

.expert p {
  margin-top: 14px;
  color: #c9d7f3;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  max-width: 520px;
}

.expert-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
  text-align: center;
}

.expert-card .label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.expert-card .phone {
  display: block;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 900;
  color: var(--ai-blue);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  transition: transform 0.15s ease;
}

.expert-card .phone:hover {
  transform: scale(1.02);
}

.expert-card .hours {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.expert-card .btn {
  width: 100%;
}

@media (max-width: 860px) {
  .expert {
    grid-template-columns: 1fr;
    padding: 32px 22px;
    gap: 28px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #06132f;
  color: #ffffff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(48px, 8vw, 72px) 0 clamp(32px, 5vw, 48px);
}

footer .logo {
  color: #ffffff;
}

footer h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer ul a {
  font-size: 13.5px;
  color: #9aa2b5;
  transition: color 0.15s ease;
}

footer ul a:hover {
  color: #ffffff;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #788299;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ==========================================================================
   Floating AI Chatbot Widget
   ========================================================================== */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff;
  border-radius: 16px;
  padding: 13px 20px;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.32);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.40);
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 96;
  width: 350px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 35, 90, 0.30);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatPopup 0.2s ease forwards;
}

@keyframes chatPopup {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel.open {
  display: flex;
}

.chat-head {
  background: linear-gradient(135deg, #071735, #243b8f);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-head b {
  font-size: 14.5px;
  color: #ffffff;
}

.chat-head span {
  font-size: 11px;
  color: #9fe3c8;
  display: block;
  margin-top: 1px;
}

.chat-head button {
  background: none;
  border: none;
  color: #c9cfdb;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.chat-head button:hover {
  color: #ffffff;
}

.chat-body {
  padding: 16px;
  height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f8ff;
}

.msg {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.msg.bot {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.10);
  align-self: flex-start;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(25, 45, 100, 0.04);
}

.msg.bot a {
  color: var(--ai-blue);
  font-weight: 700;
  text-decoration: underline;
}

.msg.bot.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 14px;
}

.msg.bot.typing span {
  font-size: 22px;
  line-height: 8px;
  color: var(--ai-blue);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.msg.bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.bot.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.chat-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 6px;
}

.chat-card {
  background: #f4f7ff;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.chat-card b {
  color: var(--ai-dark);
  font-size: 12.5px;
  display: block;
}

.chat-call-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none !important;
}

.chat-call-cta:hover {
  opacity: 0.92;
}

.msg.user {
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff;
  align-self: flex-end;
}

.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  background: #f5f8ff;
}

.chat-suggest button {
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-suggest button:hover {
  background: #eef3ff;
  color: var(--ai-blue);
  border-color: var(--ai-blue);
}

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(37, 99, 235, 0.10);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 13px 14px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  border-radius: 0;
}

.chat-input-row input:focus {
  outline: none;
  box-shadow: none;
}

.chat-input-row button {
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-violet));
  color: #ffffff;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: opacity 0.15s ease;
}

.chat-input-row button:hover {
  opacity: 0.92;
}

@media (max-width: 540px) {
  .chat-fab {
    right: 14px;
    bottom: 14px;
    padding: 10px 15px;
    font-size: 12.5px;
    border-radius: var(--radius-pill);
  }
  .chat-panel {
    right: 10px !important;
    left: 10px !important;
    bottom: 68px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 84px) !important;
  }
}

/* ==========================================================================
   Validity & Trust Pillars Section
   ========================================================================== */
.validity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.validity-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 8px 24px rgba(25, 45, 100, 0.06);
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.validity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.validity-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
  color: var(--ai-blue);
}

.validity-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ai-dark);
}

.validity-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .validity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .validity-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 6px 20px rgba(25, 45, 100, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.25);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ai-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.faq-question span {
  font-size: 18px;
  color: var(--ai-blue);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Accessibility & Reduced Motion */
:focus-visible {
  outline: 2px solid var(--ai-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

