/* ==========================================================================
   Global Medical Academy — Design Tokens
   Deep ink base, teal + amber dual accent, Space Grotesk / Inter / JetBrains Mono
   ========================================================================== */

:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #10162B;
  --bg-elevated: #161D33;
  --bg-elevated-hover: #1C2440;

  --accent-teal: #00D9C0;
  --accent-teal-dim: rgba(0, 217, 192, 0.14);
  --accent-amber: #FFB020;
  --accent-amber-dim: rgba(255, 176, 32, 0.14);

  --text-primary: #F5F7FA;
  --text-secondary: #C3C9D6;
  --text-muted: #8B93A7;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --section-pad: 7rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.text-muted-custom { color: var(--text-muted); }
.text-secondary-custom { color: var(--text-secondary); }

a { text-decoration: none; color: inherit; }

::selection { background: var(--accent-teal); color: var(--bg-primary); }

:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
}

.container-xl { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--bg-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent-teal);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
button, input[type="button"], input[type="submit"], input[type="reset"] {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: transparent;
  color: inherit;
  border: none;
  cursor: pointer;
}

.btn-vx-primary {
  background: var(--accent-teal) !important;
  background-color: var(--accent-teal) !important;
  color: #04140F !important;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--accent-teal) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 0 0 0 rgba(0, 217, 192, 0.4);
}
.btn-vx-primary:hover, .btn-vx-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 217, 192, 0.55);
  background: #00f0d4 !important;
  background-color: #00f0d4 !important;
  border-color: #00f0d4 !important;
  color: #04140F !important;
  text-decoration: none;
}

.btn-vx-ghost {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-vx-ghost:hover, .btn-vx-ghost:focus {
  border-color: var(--accent-teal) !important;
  background: var(--accent-teal-dim) !important;
  background-color: var(--accent-teal-dim) !important;
  color: var(--accent-teal) !important;
  text-decoration: none;
}
.btn-vx-ghost.text-danger {
  color: #ff6b6b !important;
  border-color: rgba(255, 107, 107, 0.35) !important;
  background: transparent !important;
}
.btn-vx-ghost.text-danger:hover, .btn-vx-ghost.text-danger:focus {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.15) !important;
  background-color: rgba(255, 107, 107, 0.15) !important;
  color: #ff6b6b !important;
}

/* ---------- Navbar ---------- */
.vx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 1.1rem 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.vx-nav.is-scrolled {
  border-bottom-color: var(--border-subtle);
  background: rgba(10, 14, 26, 0.85);
}
.vx-logo {
  font-family: var(--font-display, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-decoration: none !important;
  line-height: 1.05;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.vx-logo:hover {
  opacity: 0.92;
}
.vx-logo-title {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  line-height: 1.1;
}
.vx-logo-sub {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-teal, #00D9C0);
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  margin-top: 1px;
  line-height: 1;
}
.vx-logo .dot { display: none; }
.vx-nav-links { display: flex; align-items: center; gap: 2.1rem; }
.vx-nav-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}
.vx-nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent-teal);
  transition: width 0.25s ease;
}
.vx-nav-links a:hover { color: var(--text-primary); }
.vx-nav-links a:hover::after { width: 100%; }

.vx-nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: #F5F7FA !important;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.vx-nav-toggle i {
  color: #F5F7FA !important;
}
.vx-nav-toggle:hover { border-color: var(--accent-teal); color: var(--accent-teal) !important; }
.vx-nav-toggle:hover i { color: var(--accent-teal) !important; }

.btn-close-custom {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #F5F7FA !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
  flex-shrink: 0;
}
.btn-close-custom:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--accent-teal) !important;
  color: var(--accent-teal) !important;
}
.btn-close-custom i {
  color: inherit !important;
  font-size: 1.1rem !important;
}

/* Restore visible SVG icon for standard Bootstrap btn-close */
.btn-close, .btn-close-white {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  opacity: 0.8 !important;
}
.btn-close:hover, .btn-close-white:hover {
  opacity: 1 !important;
}

.vx-mobile-nav {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: min(340px, 88vw);
  max-width: 100vw;
  height: 100dvh !important;
  max-height: 100dvh !important;
}
.vx-mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vx-mobile-nav .offcanvas-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 2rem)) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vx-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.vx-mobile-links a {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.vx-mobile-links a:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.vx-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 9.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(0, 217, 192, 0.16), transparent 60%),
    radial-gradient(500px 380px at 85% 10%, rgba(255, 176, 32, 0.10), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--accent-teal); }
.hero-sub { font-size: 1.12rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.hero-stats-ticker {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.4rem;
}
.hero-stats-ticker strong { color: var(--text-primary); font-weight: 600; }

.hero-scene-wrap {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
#hero-canvas { width: 100%; height: 100%; display: block; }
.hero-scene-caption {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(10,14,26,0.5);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: left;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-teal);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.stat-label { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.35rem; }

/* ---------- Course category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--accent-teal); background: var(--bg-elevated-hover); }
.cat-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-teal-dim);
  color: var(--accent-teal);
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}
.cat-card .code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.cat-card h3 { font-size: 1.15rem; margin: 0.4rem 0 0.6rem; }
.cat-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.cat-link { font-size: 0.85rem; color: var(--accent-teal); display: inline-flex; align-items: center; gap: 0.4rem; }
.cat-link i { transition: transform 0.25s ease; }
.cat-card:hover .cat-link i { transform: translateX(4px); }

/* ---------- Why choose us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { padding: 0.5rem 0; }
.feature-num { font-family: var(--font-mono); color: var(--accent-amber); font-size: 0.78rem; margin-bottom: 0.9rem; display: block; }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Featured course cards (swiper) ---------- */
.course-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}
.course-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--accent-teal-dim), var(--accent-amber-dim));
  position: relative;
}
.course-thumb .level-badge {
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  background: rgba(10,14,26,0.6); border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem; border-radius: 999px; color: var(--text-secondary);
}
.course-body { padding: 1.4rem; }
.course-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.course-body h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border-subtle); }
.course-price { font-family: var(--font-mono); color: var(--accent-teal); font-weight: 600; }

/* ---------- Process timeline ---------- */
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; position: relative; }
.process-track::before {
  content: '';
  position: absolute; top: 26px; left: 5%; right: 5%; height: 1px;
  background: var(--border-subtle);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.process-step .step-idx {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--accent-teal);
  margin-bottom: 1.2rem;
}
.process-step h4 { font-size: 0.98rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Partner marquee ---------- */
.marquee-wrap { overflow: hidden; position: relative; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 2rem 0; }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  color: var(--text-muted); white-space: nowrap; opacity: 0.7;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.testi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-quote { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.6rem; line-height: 1.6; }
.testi-person { display: flex; align-items: center; gap: 0.9rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-amber));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #04140F; font-size: 0.9rem;
  flex-shrink: 0;
}
.testi-name { font-size: 0.92rem; font-weight: 600; }
.testi-role { font-size: 0.78rem; color: var(--text-muted); }

.testi-swiper {
  padding-bottom: 2.8rem !important;
}
.testi-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}
.testi-swiper .swiper-pagination-bullet-active {
  background: var(--accent-teal) !important;
  width: 22px !important;
  border-radius: 999px !important;
}

/* ---------- Faculty ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.faculty-card { text-align: left; }
.faculty-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.8rem;
}
.faculty-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.faculty-role { font-size: 0.8rem; color: var(--accent-teal); margin-bottom: 0.6rem; }
.faculty-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.faculty-tags span {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted);
  border: 1px solid var(--border-subtle); padding: 0.2rem 0.55rem; border-radius: 999px;
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-elevated); }
.blog-thumb { height: 140px; background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated-hover)); }
.blog-body { padding: 1.4rem; }
.blog-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.6rem; display: block; }
.blog-body h3 { font-size: 1rem; margin-bottom: 0.7rem; }
.blog-body p { color: var(--text-muted); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.vx-accordion .accordion-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.vx-accordion .accordion-button {
  background: transparent; color: var(--text-primary);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  box-shadow: none; padding: 1.3rem 1.6rem;
}
.vx-accordion .accordion-button:not(.collapsed) { color: var(--accent-teal); background: transparent; }
.vx-accordion .accordion-button::after { filter: invert(1); }
.vx-accordion .accordion-body { color: var(--text-muted); padding: 0 1.6rem 1.4rem; font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--bg-elevated), var(--bg-secondary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-teal-dim), transparent 70%);
}
.cta-banner h3 { font-size: 1.6rem; max-width: 480px; }

/* ---------- Contact ---------- */
.contact-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.form-control-vx {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  width: 100%;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.form-control-vx:focus { outline: none; border-color: var(--accent-teal); background: var(--bg-secondary); color: var(--text-primary); }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-info-item i { color: var(--accent-teal); margin-top: 0.2rem; }
.contact-info-item h5 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.vx-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 4rem 0 2rem; }
.vx-footer h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1.2rem; }
.vx-footer ul { list-style: none; padding: 0; margin: 0; }
.vx-footer li { margin-bottom: 0.7rem; }
.vx-footer a { color: var(--text-secondary); font-size: 0.9rem; }
.vx-footer a:hover { color: var(--accent-teal); }
.footer-bottom { border-top: 1px solid var(--border-subtle); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: 0.82rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

/* Daily Case Timeline & Clinical Metrics */
.case-timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.score-shift-metric {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stat-row, .cat-grid, .feature-grid, .faculty-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scene-wrap { height: 360px; }
}

@media (max-width: 991px) {
  :root { --section-pad: 5rem; }
  .hero { padding: 6.5rem 0 3rem !important; }
  .vx-nav { padding: 0.75rem 0; }
  .vx-nav .container-xl { padding-left: 1rem; padding-right: 1rem; }
  .process-track::before { display: none; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .contact-panel { margin-top: 2rem; }
  .course-sidebar-sticky { position: static !important; top: auto !important; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem; }
  .hero { padding: 5.5rem 0 2.2rem !important; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .hero-sub { font-size: 0.95rem; margin-bottom: 1.4rem; }
  .hero-scene-wrap { height: 260px; margin-top: 1.5rem; margin-bottom: 2rem; }
  .vx-logo-title { font-size: 1.08rem; }
  .vx-logo-sub { font-size: 0.65rem; }
  
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { padding: 1.4rem 1.2rem; }
  .stat-num { font-size: 2rem; }
  
  .cat-grid, .blog-grid, .faculty-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .process-track { grid-template-columns: 1fr; gap: 1.25rem; }
  
  .section-head { margin-bottom: 2.2rem; }
  .section-head h2 { font-size: 1.75rem; }
  
  .cta-banner {
    padding: 2.2rem 1.6rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.5rem;
  }
  .cta-banner h3 { font-size: 1.35rem; max-width: 100%; margin: 0 auto; }
  .cta-banner .btn-vx-primary { width: 100%; justify-content: center; }

  /* Mobile Form Controls: Prevent Auto-Zoom on iOS (Must be >= 16px) */
  input, select, textarea, .form-control, .form-select, .form-control-vx {
    font-size: 16px !important;
  }
}

@media (max-width: 576px) {
  :root { --section-pad: 3.5rem; }
  .case-timeline-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .case-timeline-row .case-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }
  .hero { padding: 5.25rem 0 2rem !important; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero-scene-wrap { height: 210px; border-radius: var(--radius-md); }
  .hero-scene-caption { font-size: 0.65rem; left: 0.75rem; bottom: 0.75rem; }
  
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
  }
  .hero-ctas .btn-vx-primary,
  .hero-ctas .btn-vx-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-stats-ticker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    font-size: 0.75rem;
    padding-top: 1rem;
  }

  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card { padding: 1rem 0.85rem; border-radius: var(--radius-sm); }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.78rem; }

  .cat-grid, .faculty-grid, .blog-grid, .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cat-card { padding: 1.35rem; }

  .testi-card { padding: 1.5rem 1.25rem; }

  .vx-accordion .accordion-button {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }
  .vx-accordion .accordion-body {
    padding: 0 1.15rem 1rem;
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .vx-logo-title { font-size: 0.98rem; }
  .vx-logo-sub { font-size: 0.60rem; }
}

@media (max-width: 380px) {
  .stat-row { grid-template-columns: 1fr; }
  .hero-stats-ticker { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Curriculum & Lectures Scroll Slider & Accordion */
.curriculum-slider-wrap {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-teal, #00d4b8) rgba(255, 255, 255, 0.05);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.curriculum-slider-wrap::-webkit-scrollbar {
  width: 6px;
}

.curriculum-slider-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.curriculum-slider-wrap::-webkit-scrollbar-thumb {
  background: var(--accent-teal, #00d4b8);
  border-radius: 4px;
}

.curriculum-slider-wrap::-webkit-scrollbar-thumb:hover {
  background: #14b8a6;
}

/* =========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================= */
.vx-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1040;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  animation: vx-wa-pulse 3s infinite;
}

.vx-whatsapp-float i {
  color: #FFFFFF !important;
  line-height: 1;
}

.vx-whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.58), 0 4px 10px rgba(0, 0, 0, 0.35);
  color: #FFFFFF !important;
}

.vx-whatsapp-float:active {
  transform: scale(0.96);
}

.vx-whatsapp-float .vx-whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(15, 23, 42, 0.94);
  color: #F8FAFC;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body, system-ui, sans-serif);
}

.vx-whatsapp-float:hover .vx-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes vx-wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 767.98px) {
  .vx-whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
  .vx-whatsapp-float .vx-whatsapp-tooltip {
    display: none !important;
  }
}


