/* ==========================================================================
   DR. KAVOURAS CARDIOLOGY - DESIGN SYSTEM & STYLES
   Vanilla CSS3 Architecture for Speed, Premium Aesthetics, & Accessibility
   ========================================================================== */

/* 1. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
  /* Harmonious Color Palette (Clinical & Cozy) */
  --primary-navy: #1F4E79;       /* Primary Navy Blue - Deep, authoritative clinical blue */
  --primary-navy-light: #2c6ea9; /* Medium Navy Blue */
  --primary-navy-dark: #12304c;  /* Deepest Navy Blue for text/headings/heros */
  
  --clinical-teal: #5DADE2;      /* Secondary Sky Blue - Calming, clear light blue */
  --clinical-teal-light: #85c1e9;/* Bright light Sky Blue */
  --clinical-teal-dark: #3498db; /* Deep rich Sky Blue */
  --clinical-teal-glow: rgba(93, 173, 226, 0.12);
  
  --health-accent: #C0392B;      /* Accent Deep Red representing heart health (used very sparingly) */
  --health-accent-dark: #962c20; /* Darker Deep Red for highlights */
  --health-accent-glow: rgba(192, 57, 43, 0.12);
  
  --neutral-white: #ffffff;      /* Pure white (extremely important for minimal sections) */
  --neutral-cozy: #F8FAFC;       /* Light slate background (gives white-space breathing room) */
  --neutral-soft: #e2e8f0;       /* Light border slate */
  --neutral-muted: #64748b;      /* Cool slate grey for captions/paragraphs */
  --neutral-charcoal: #1E293B;   /* Soft charcoal for main body text (Text) */
  
  --success: #2E8B57;            /* Secondary Medical Green representing health, balance and hygiene */
  --success-glow: rgba(46, 139, 87, 0.12);
  --error: #ef4444;
  
  /* Typography System */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Inter', var(--font-family);
  
  /* Layout Scales */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  
  /* Dynamic Elevation (Shadows) */
  --shadow-sm: 0 2px 4px rgba(31, 78, 121, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 78, 121, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(31, 78, 121, 0.12), 0 8px 10px -6px rgba(31, 78, 121, 0.12);
  --shadow-teal: 0 10px 25px -5px rgba(93, 173, 226, 0.25);
  
  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. BASE RESET & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-charcoal);
  background-color: var(--neutral-cozy);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
  color: var(--neutral-charcoal);
}

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

a:hover {
  color: var(--clinical-teal-dark);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Keyboard Accessibility Focus Rings */
*:focus-visible {
  outline: 3px solid var(--clinical-teal-light);
  outline-offset: 3px;
}

/* Screen reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section Container & Grid Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.text-center { text-align: center; }
.text-teal { color: var(--clinical-teal); }
.text-accent { color: var(--health-accent); }

/* Common Headers */
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clinical-teal);
  margin-bottom: 0.75rem;
  background-color: var(--clinical-teal-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-round);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--neutral-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
  .section-desc { font-size: 1rem; margin-bottom: 2rem; }
}

/* 3. PREMIUM UI COMPONENT STYLES
   ========================================================================== */

/* Top Utility Bar */
.top-bar {
  background-color: var(--primary-navy);
  color: var(--neutral-cozy);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.top-contacts {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-contacts a {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.top-contacts a:hover {
  color: var(--clinical-teal-light);
}

.top-contacts svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.top-actions {
  display: flex;
  gap: 1rem;
}

.top-actions a {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neutral-white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-actions .ask-doc {
  background-color: rgba(255, 255, 255, 0.1);
}

.top-actions .ask-doc:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.top-actions .book-now {
  background-color: var(--health-accent);
}

.top-actions .book-now:hover {
  background-color: var(--health-accent-dark);
}

@media (max-width: 900px) {
  .top-bar {
    display: block;
    padding: 0.35rem 0; /* Thinner padding for mobile */
  }
  .top-bar .container {
    justify-content: center;
    padding: 0 0.75rem;
  }
  .top-contacts {
    width: 100%;
    justify-content: space-around;
    gap: 0.35rem;
    flex-wrap: nowrap; /* Keep items in a single horizontal row */
  }
  .top-contacts a {
    font-size: 10px; /* Small font size to prevent wrapping */
    font-weight: 500;
    gap: 0.2rem;
    white-space: nowrap;
  }
  .top-contacts svg {
    width: 12px;
    height: 12px;
  }
  .top-actions {
    display: none; /* Hide action buttons on mobile */
  }
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.main-header.scrolled {
  padding: 0.25rem 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.main-header.scrolled .header-container {
  height: 70px;
}

.main-header.scrolled .logo-icon {
  width: 36px;
  height: 36px;
}

.main-header.scrolled .logo-title {
  font-size: 20px;
}

.main-header.scrolled .logo-subtitle {
  font-size: 11px;
  max-width: 300px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: var(--transition-normal);
}

/* Logo */
.logo {
  display: flex;
  align-items: flex-start; /* Align vertically with the title line */
  gap: 0.75rem;
  text-decoration: none;
  padding-top: 6px; /* Space on top to prevent touching the top bar */
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: -2px; /* Centering vertical alignment with the first title line */
  transition: var(--transition-normal);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px; /* slightly smaller gap to sit nicely in 90px header height */
  transition: var(--transition-normal);
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  transition: var(--transition-normal);
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--clinical-teal);
  line-height: 1.2;
  max-width: 400px; /* prevent menu overlap by wrapping text */
  white-space: normal !important; /* Force wrapping on all viewports */
  display: block;
  transition: var(--transition-normal);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--primary-navy-light);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clinical-teal);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--clinical-teal);
}

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

.nav-link.active {
  color: var(--clinical-teal-dark);
}

.cta-header-btn {
  background-color: var(--clinical-teal);
  color: var(--neutral-white) !important;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-round);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.cta-header-btn:hover {
  background-color: var(--clinical-teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-navy);
  margin: 5px 0;
  transition: var(--transition-normal);
  border-radius: 2px;
}

@media (min-width: 993px) and (max-width: 1200px) {
  .nav-menu {
    gap: 0.75rem; /* reduce gap to give logo more space */
  }
  .logo-title {
    font-size: 20px;
  }
  .logo-subtitle {
    font-size: 11px;
    max-width: 260px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 992px) {
  .logo-title {
    font-size: 20px;
  }
  .logo-subtitle {
    font-size: 11px;
    line-height: 1.2;
    max-width: 240px;
  }
  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 118px; /* Bottom of header when unscrolled with top-bar on mobile */
    right: 0;
    width: 100%;
    height: calc(100vh - 118px);
    background-color: var(--neutral-white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }
  
  .main-header.scrolled .nav-menu {
    top: 78px; /* Bottom of header when scrolled on mobile */
    height: calc(100vh - 78px);
  }
  
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    display: block;
  }
  
  /* Mobile Menu Icon Animations */
  .mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }
}

/* 4. SECTIONS
   ========================================================================== */

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.08) 0%, rgba(255, 255, 255, 0) 60%), 
              linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 6.5rem 0 6rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--neutral-soft) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  z-index: 10;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clinical-teal);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tagline::after {
  content: '';
  width: 40px;
  height: 2px;
  background-color: var(--clinical-teal);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--clinical-teal) 0%, var(--primary-navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-charcoal);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-round);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--clinical-teal);
  color: var(--neutral-white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background-color: var(--clinical-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.btn-secondary {
  background-color: var(--neutral-white);
  color: var(--primary-navy);
  border: 2px solid var(--neutral-soft);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--clinical-teal);
  color: var(--clinical-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--health-accent);
  color: var(--neutral-white);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

.btn-accent:hover {
  background-color: var(--health-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--neutral-muted);
  font-weight: 500;
}

/* Hero Medical graphic side */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.graphic-bg-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.graphic-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.5rem;
  z-index: 2;
  overflow: visible;
  animation: float 6s ease-in-out infinite;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: left;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
  transform: scaleX(-1); /* Mirror horizontally to face the text on the left */
  transition: var(--transition-normal);
}

.hero-photo:hover {
  transform: scaleX(-1) scale(1.02); /* Keep mirrored orientation while zooming */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.clinical-badge {
  position: absolute;
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.badge-top-left {
  top: 15%;
  left: -8%;
}

.badge-bottom-right {
  bottom: 12%;
  right: -5%;
}

.clinical-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--health-accent);
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

.badge-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--neutral-muted);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero-title { font-size: 2.75rem; }
  
  .clinical-badge {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
  }
  
  .badge-top-left {
    top: 12%;
    left: 2%;
  }
  
  .badge-bottom-right {
    bottom: 10%;
    right: 2%;
  }
}

@media (max-width: 576px) {
  .clinical-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.5rem;
    width: 110px;
    height: auto;
  }
  
  .clinical-badge svg {
    width: 20px;
    height: 20px;
  }
  
  .badge-text {
    font-size: 0.65rem;
  }
  
  .badge-text span {
    font-size: 0.55rem;
  }
  
  .badge-top-left {
    top: 6%;
    left: 2%;
  }
  
  .badge-bottom-right {
    bottom: 6%;
    right: 2%;
  }
}

/* Quick Facts bar */
.quick-facts {
  background-color: var(--neutral-white);
  box-shadow: var(--shadow-md);
  margin-top: -30px;
  position: relative;
  z-index: 30;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-soft);
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-card {
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-right: 1px solid var(--neutral-soft);
}

.fact-card:last-child {
  border-right: none;
}

.fact-icon-container {
  background-color: var(--clinical-teal-glow);
  color: var(--clinical-teal);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact-icon-container svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fact-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fact-info p {
  font-size: 0.85rem;
  color: var(--neutral-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .quick-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-card {
    border-bottom: 1px solid var(--neutral-soft);
  }
  .fact-card:nth-child(2),
  .fact-card:nth-child(4) {
    border-right: none;
  }
  .fact-card:nth-child(3),
  .fact-card:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .quick-facts { margin-top: 0; }
  .quick-facts-grid {
    grid-template-columns: 1fr;
  }
  .fact-card {
    border-right: none !important;
    border-bottom: 1px solid var(--neutral-soft) !important;
  }
  .fact-card:last-child {
    border-bottom: none !important;
  }
}

/* Biography / About Section */
.bio {
  background-color: var(--neutral-white);
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.bio-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.bio-image-frame {
  position: relative;
  background-color: var(--neutral-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 4px solid var(--neutral-white);
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 360px;
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: var(--transition-normal);
}

.bio-image-frame:hover .bio-photo {
  transform: scale(1.03);
}

.bio-exp-badge {
  position: absolute;
  bottom: -20px;
  right: 10px;
  background-color: var(--primary-navy);
  color: var(--neutral-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 10;
}

.bio-exp-badge h4 {
  color: var(--clinical-teal-light);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.bio-exp-badge p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.bio-heading h3 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.bio-specialty {
  color: var(--clinical-teal);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.bio-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--neutral-charcoal);
  margin-bottom: 1.25rem;
}

.bio-bullets {
  list-style: none;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bio-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.bio-bullets svg {
  width: 18px;
  height: 18px;
  fill: var(--clinical-teal);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .bio-bullets {
    grid-template-columns: 1fr;
  }
}

/* Specialty Pillars Section (Pediatric vs Adult) */
.pillars {
  background-color: var(--neutral-cozy);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.pillar-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-soft);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--neutral-soft);
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-card.pediatric:hover::before {
  background-color: var(--clinical-teal);
}

.pillar-card.adult:hover::before {
  background-color: var(--health-accent);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.pillar-card.pediatric .pillar-icon {
  background-color: var(--clinical-teal-glow);
  color: var(--clinical-teal);
}

.pillar-card.adult .pillar-icon {
  background-color: var(--health-accent-glow);
  color: var(--health-accent);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1);
}

.pillar-icon svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pillar-card p {
  color: var(--neutral-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pillar-services-list {
  list-style: none;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--neutral-soft);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.pillar-services-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.pillar-services-list svg {
  width: 16px;
  height: 16px;
  fill: var(--clinical-teal);
}

.pillar-card.adult .pillar-services-list svg {
  fill: var(--health-accent);
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar-card {
    padding: 2rem;
  }
}

/* Services Grid Section */
.services {
  background-color: var(--neutral-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--neutral-cozy);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-soft);
  padding: 2.25rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card::after {
  content: '→';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.25rem;
  color: var(--neutral-muted);
  transition: var(--transition-fast);
  opacity: 0;
  transform: translateX(-5px);
}

.service-card:hover {
  background-color: var(--neutral-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.2);
}

.service-card:hover::after {
  opacity: 1;
  transform: translateX(0);
  color: var(--clinical-teal);
}

.service-card-icon {
  background-color: var(--neutral-white);
  color: var(--clinical-teal);
  box-shadow: var(--shadow-sm);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-card-icon {
  background-color: var(--clinical-teal);
  color: var(--neutral-white);
  transform: rotateY(180deg);
}

.service-card-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  padding-right: 1.5rem; /* Space for the arrow link */
}

.service-card p {
  font-size: 0.9rem;
  color: var(--neutral-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

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

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* 5. INTERACTIVE SVG HEART HOTSPOTS SECTION
   ========================================================================== */
.heart-interactive {
  background-color: var(--primary-navy);
  color: var(--neutral-white);
  position: relative;
  overflow: hidden;
}

.heart-interactive::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 30px 30px;
  opacity: 0.5;
}

.heart-interactive .section-title {
  color: var(--neutral-white);
}

.heart-interactive .section-tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--clinical-teal-light);
}

.heart-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Dynamic Panel that changes content based on hotspot hover/click */
.heart-explanation-panel {
  background-color: var(--primary-navy-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-normal);
}

.panel-header-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clinical-teal-light);
  background-color: var(--clinical-teal-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.panel-title {
  color: var(--neutral-white);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.panel-content {
  font-size: 1.025rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.panel-cta {
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clinical-teal-light);
  transition: var(--transition-fast);
}

.panel-cta:hover {
  color: var(--neutral-white);
  transform: translateX(3px);
}

/* Responsive SVG Heart Hotspots styling */
.heart-illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.heart-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  z-index: 5;
}

/* Pulse Glowing Hotspots directly embedded as DOM overlay or inline SVG */
.hotspot-trigger {
  cursor: pointer;
}

.hotspot-trigger circle {
  transition: var(--transition-normal);
}

.hotspot-trigger:hover circle:first-child,
.hotspot-trigger.active circle:first-child {
  fill: var(--health-accent);
  stroke: var(--neutral-white);
  stroke-width: 3px;
}

.hotspot-trigger:hover circle:last-child,
.hotspot-trigger.active circle:last-child {
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
  stroke: var(--health-accent);
}

.pulse-circle {
  transform-origin: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Custom interactive markers and pointer icons */
.hotspot-connector {
  stroke-dasharray: 4;
  opacity: 0.4;
  transition: var(--transition-normal);
}

.hotspot-trigger:hover ~ .hotspot-connector,
.hotspot-trigger.active ~ .hotspot-connector {
  opacity: 0.9;
  stroke: var(--health-accent-light);
}

@media (max-width: 992px) {
  .heart-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .heart-explanation-panel {
    order: 2;
    min-height: auto;
  }
  .heart-illustration-container {
    order: 1;
    max-width: 380px;
  }
}

/* 6. TESTIMONIALS SLIDER SECTION
   ========================================================================== */
.testimonials {
  background-color: var(--neutral-cozy);
  overflow: hidden;
}

.testimonials-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.testimonials-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1.5rem;
}

.testimonial-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-soft);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 8rem;
  color: var(--neutral-soft);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 1;
  opacity: 0.8;
}

.testimonial-quote {
  position: relative;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--neutral-charcoal);
  margin-bottom: 2rem;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--clinical-teal-glow);
  color: var(--clinical-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-meta p {
  font-size: 0.8rem;
  color: var(--neutral-muted);
  margin-bottom: 0;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.testimonial-rating svg {
  width: 20px;
  height: 20px;
  fill: #ffb300; /* Google review star color */
}

.google-reviews-btn {
  margin-top: 2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-google-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0.6;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.testimonial-card:hover .testimonial-google-badge {
  opacity: 1;
}

/* Slider Navigation */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--clinical-teal);
  width: 24px;
  border-radius: var(--radius-round);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
  color: var(--neutral-charcoal);
}

.slider-nav-btn:hover {
  background-color: var(--clinical-teal);
  color: var(--neutral-white);
  border-color: var(--clinical-teal);
  box-shadow: var(--shadow-md);
}

.slider-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.slider-prev { left: -60px; }
.slider-next { right: -60px; }

@media (max-width: 992px) {
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .testimonial-card { padding: 2rem; }
}

/* 7. FAQ ACCORDION SECTION (GEO OPTIMIZED)
   ========================================================================== */
.faq {
  background-color: var(--neutral-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--neutral-cozy);
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-soft);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(20, 184, 166, 0.25);
  background-color: var(--neutral-white);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-navy);
  font-family: var(--font-heading);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--neutral-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clinical-teal);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--neutral-charcoal);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

/* FAQ Active States styled with class names */
.faq-item.active {
  border-color: var(--clinical-teal);
  background-color: var(--neutral-white);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  background-color: var(--clinical-teal);
  color: var(--neutral-white);
  transform: rotate(180deg);
}

.faq-item.active .faq-content {
  border-top-color: var(--neutral-soft);
}

/* 8. APPOINTMENT FORM & CONTACT INFO SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--neutral-cozy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

/* Appointment Form Card */
.appointment-card {
  background-color: var(--neutral-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-soft);
}

.appointment-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.appointment-card p {
  color: var(--neutral-muted);
  margin-bottom: 2rem;
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 2px solid #cbd5e1;
  background-color: var(--neutral-cozy);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.form-control:hover {
  border-color: #94a3b8;
}

.form-control:focus {
  border-color: var(--clinical-teal);
  background-color: var(--neutral-white);
  outline: none;
  box-shadow: 0 0 0 4px var(--clinical-teal-glow);
}

/* Real-time Validation States */
.form-control.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.form-control.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.validation-message {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}

.validation-message.is-valid { color: var(--success); }
.validation-message.is-invalid { display: block; color: var(--error); }

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

.submit-btn-container {
  grid-column: span 2;
  margin-top: 1rem;
}

.form-status {
  grid-column: span 2;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Contact Info list */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-widget h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--clinical-teal);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--neutral-white);
  color: var(--clinical-teal);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--neutral-soft);
}

.info-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.info-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.info-text p,
.info-text a {
  font-size: 1rem;
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 0;
}

.info-text a:hover {
  color: var(--clinical-teal);
}

.hospital-badge {
  background-color: var(--primary-navy);
  color: var(--neutral-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hospital-badge svg {
  width: 32px;
  height: 32px;
  fill: var(--health-accent);
  flex-shrink: 0;
}

.hospital-badge h4 {
  color: var(--neutral-white);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.hospital-badge p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 600px) {
  .appointment-card {
    padding: 2rem 1.5rem;
  }
  .appointment-form {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .submit-btn-container {
    grid-column: span 1;
  }
}

/* Map Section */
.map-container {
  height: 450px;
  width: 100%;
  border-bottom: 5px solid var(--primary-navy);
  box-shadow: var(--shadow-inner);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 9. DEEP FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4rem;
}

.footer-brand svg {
  height: 52px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-col h3 {
  color: var(--neutral-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--clinical-teal-light);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '›';
  color: var(--clinical-teal-light);
  font-size: 1.1rem;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--neutral-white);
  transform: translateX(3px);
}

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

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.footer-contact-list svg {
  width: 14px;
  height: 14px;
  fill: var(--clinical-teal-light);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list a:hover {
  color: var(--neutral-white);
}

/* Copyright Bar */
.copyright-bar {
  background-color: #020617;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.copyright-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-container a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.copyright-container a:hover {
  color: var(--neutral-white);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .copyright-container {
    flex-direction: column;
    text-align: center;
  }
}

/* 10. SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   11. DETAILED CV PAGE STYLES (bio.html)
   ========================================================================== */
.bio-hero {
  background: radial-gradient(circle at 80% 20%, rgba(93, 173, 226, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
              linear-gradient(135deg, var(--primary-navy-light) 0%, var(--primary-navy-dark) 100%);
  color: var(--neutral-white);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.6;
}

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

.bio-hero h1 {
  color: var(--neutral-white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.bio-hero h1 span {
  background: linear-gradient(135deg, var(--clinical-teal-light) 0%, var(--clinical-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bio-hero .bio-tagline {
  font-size: 1.25rem;
  color: var(--clinical-teal-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.bio-hero .bio-subtag {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.bio-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-white);
  font-weight: 700;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-round);
  transition: var(--transition-fast);
}

.bio-back-btn:hover {
  background-color: var(--clinical-teal);
  color: var(--neutral-white);
  transform: translateX(-3px);
}

/* Quick Cards */
.bio-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  margin-bottom: 4rem;
}

.overview-card {
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-soft);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.25);
}

.overview-card-icon {
  background-color: var(--clinical-teal-glow);
  color: var(--clinical-teal);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.overview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.overview-card p {
  font-size: 0.9rem;
  color: var(--neutral-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Section Styling */
.cv-section {
  padding: 5rem 0;
}

.cv-section:nth-child(even) {
  background-color: var(--neutral-white);
}

.cv-section:nth-child(odd) {
  background-color: var(--neutral-cozy);
}

.cv-section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.cv-section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--clinical-teal);
  margin: 0.75rem auto 0 auto;
  border-radius: var(--radius-round);
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #cbd5e1;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--neutral-white);
  border: 4px solid var(--clinical-teal);
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-badge {
  background-color: var(--clinical-teal);
  color: var(--neutral-white);
  transform: translateX(-50%) scale(1.1);
  box-shadow: var(--shadow-teal);
}

.timeline-item:nth-child(even) .timeline-badge {
  border-color: var(--health-accent);
}

.timeline-item:nth-child(even):hover .timeline-badge {
  background-color: var(--health-accent);
  border-color: var(--health-accent);
}

.timeline-content {
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: left;
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.2);
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clinical-teal);
  margin-bottom: 0.5rem;
  background-color: var(--clinical-teal-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--health-accent);
  background-color: var(--health-accent-glow);
}

.timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--neutral-charcoal);
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 30px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 5rem;
    padding-right: 1.5rem;
    text-align: left !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-badge {
    left: 30px;
    transform: translateX(-50%);
  }
  .timeline-item:hover .timeline-badge {
    transform: translateX(-50%) scale(1.1);
  }
}

/* Degrees Grid */
.degrees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.degree-card {
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.degree-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(244, 63, 94, 0.2);
}

.degree-icon {
  background-color: var(--health-accent-glow);
  color: var(--health-accent);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.degree-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.degree-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.degree-card p {
  font-size: 0.9rem;
  color: var(--neutral-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Tabs System */
.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--neutral-soft);
  margin-bottom: 2.5rem;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--neutral-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--clinical-teal);
}

.tab-btn.active {
  color: var(--clinical-teal);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--clinical-teal);
  border-radius: var(--radius-round);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Publications List */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-item {
  background-color: var(--neutral-white);
  border: 1px solid var(--neutral-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition-normal);
  text-align: left;
}

.pub-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.2);
}

.pub-number {
  background-color: var(--clinical-teal-glow);
  color: var(--clinical-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--neutral-charcoal);
  margin-bottom: 0;
}

.pub-text strong.author-highlight {
  color: var(--primary-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--clinical-teal-light);
  text-underline-offset: 2px;
}

/* Call to action at bottom */
.cv-footer-cta {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: var(--neutral-white);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cv-footer-cta h3 {
  color: var(--neutral-white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cv-footer-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}
