/* ===== CSS Variables & Theme Configuration ===== */
:root {
  /* Brand Colors */
  --primary-color: #0f9d58;
  --primary-dark: #0b7e41;
  --primary-light: #14b866;

  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Accent Colors */
  --accent-gold: #fcd34d;
  --accent-blue: #60a5fa;

  /* Typography */
  --font-family-en: "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== Typing and Counting Animations ===== */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--primary-color);
  animation: blink 1s infinite;
  margin-right: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-left: 2px solid var(--primary-color);
  animation: typing-cursor 0.5s step-end infinite;
}

@keyframes typing-cursor {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

.counting-number {
  display: inline-block;
  position: relative;
}

.counting-number::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -90deg,
    transparent,
    rgba(15, 157, 88, 0.3),
    transparent
  );
  animation: numberShine 2s ease-in-out;
  pointer-events: none;
}

@keyframes numberShine {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Enhanced loading text animation */
.loading-text.typing {
  position: relative;
}

.loading-text.typing::after{
  content: "|";
  position: absolute;
  left: -10px;
  color: var(--white);
  animation: blink 1s infinite;
  pointer-events: none;
}

/* Hero section typing enhancements */
.hero-title.typing,
.hero-subtitle.typing {
  overflow: hidden;
  white-space: nowrap;
  max-width: fit-content;
}

.hero-title.typing::after,
.hero-subtitle.typing::after {
  content: "|";
  color: var(--primary-color);
  animation: blink 1s infinite;
  margin-right: 2px;
}

/* Remove cursor after typing completes */
.typing-complete::after {
  display: none;
}

/* ===== Global Animated Backgrounds ===== */
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(15, 157, 88, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(20, 184, 102, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 60%,
      rgba(15, 157, 88, 0.02) 0%,
      transparent 50%
    );
  animation: backgroundFloat 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes backgroundFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10px, -10px) rotate(-1deg);
  }
  50% {
    transform: translate(10px, 10px) rotate(1deg);
  }
  75% {
    transform: translate(-5px, 5px) rotate(-0.5deg);
  }
}

/* Floating particles */
.floating-particles {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after{
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(15, 157, 88, 0.1);
  border-radius: 50%;
  animation: floatUp 15s infinite linear;
  pointer-events: none;
}

.floating-particles::before {
  right: 10%;
  animation-delay: 0s;
}

.floating-particles::after {
  right: 80%;
  animation-delay: 5s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Enhanced text clarity */
/* Only text-shadow survives here. color, font-weight and line-height were all
   re-declared by the second bare h1-h6 block further down this same file, at
   equal specificity, so this block's versions never rendered - they just made
   the file read as if the brand green applied to every heading when it did
   not. The live values live in that later block. */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-shadow: 0 1px 2px rgba(15, 157, 88, 0.1);
}

p {
  /* colour omitted on purpose - the later bare p block sets --gray-600 and wins. */
  font-weight: 400;
  line-height: 1.7;
  max-width: none;
}

/* Card enhancements with animated backgrounds */
.about-card,
.stat-card,
.oncology-card,
.service-card,
.hospital-card,
.story-card {
  position: relative;
  overflow: hidden;
}

.about-card::before{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -45deg,
    transparent 30%,
    rgba(15, 157, 88, 0.05) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translate(50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(30%, -30%) rotate(-180deg);
  }
}

/* Hero section animated background */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(15, 157, 88, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(20, 184, 102, 0.1) 0%,
      transparent 50%
    );
  animation: heroPulse 10s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

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

/* Section backgrounds */
.service-category,
.journey-features,
.network-stats-section {
  position: relative;
}

.service-category::before,
.journey-features::before,
.network-stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      -135deg,
      rgba(15, 157, 88, 0.02) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(20, 184, 102, 0.03) 0%,
      transparent 50%
    );
  z-index: 0;
  pointer-events: none;
}

.service-category > *,
.journey-features > *,
.network-stats-section > * {
  position: relative;
  z-index: 1;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family-en);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #22c55e;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-600);
}

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

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

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  transition: opacity var(--transition-slow);
}

.loading-screen::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  animation: loadingFloating 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes loadingFloating {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(-1deg);
  }
  66% {
    transform: translateY(20px) rotate(1deg);
  }
}

.loading-content {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.loading-logo i {
  font-size: 4rem;
  color: var(--white);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.loading-logo span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.loading-spinner i {
  font-size: 3rem;
  color: var(--white);
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.9;
  animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
  }
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: var(--spacing-lg) auto 0;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  animation: progressLoad 2s ease-in-out infinite;
}

@keyframes progressLoad {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(15, 157, 88, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: var(--spacing-md) 0;
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  transition: all var(--transition-normal);
  position: relative;
  text-shadow: 0 2px 4px rgba(15, 157, 88, 0.1);
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-logo::before{
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  left: -5px;
  bottom: -5px;
  background: linear-gradient(
    -45deg,
    var(--primary-color),
    var(--primary-light),
    var(--primary-color)
  );
  border-radius: 12px;
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.nav-logo:hover::before {
  opacity: 0.1;
}

.nav-logo:hover {
  color: var(--primary-dark);
}

.nav-logo .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-left: var(--spacing-sm);
  flex-shrink: 0;
  border: 1px solid rgba(15, 157, 88, 0.3);
  border-radius: 4px;
}

.nav-logo .logo-img-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-logo i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(15, 157, 88, 0.2));
}

.nav-logo:hover i {
  transform: rotate(-10deg) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(15, 157, 88, 0.3));
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

/* Nine links plus the brand need 1294px on one line, and the bar is 1200px.
   Left to itself the flex row solved that by breaking labels mid-phrase
   ("Our / Network") — at every width, 1600px included. nowrap forbids the
   break, the tighter side padding buys back the missing ~110px, and below
   1200px responsive.css swaps the whole row for the menu button. */
.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  padding: var(--spacing-sm) 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.nav-link::after{
  content: "";
  position: absolute;
  bottom: -2px;
  right: 50%;
  transform: translateX(50%) scaleX(0);
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: all var(--transition-normal);
  border-radius: 1px;
  pointer-events: none;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(15, 157, 88, 0.03);
}

.nav-link:hover::after {
  transform: translateX(50%) scaleX(1);
  width: 60%;
}

/* The markup has always carried .active on the current page's link, but nothing
   styled it, so the underline stayed at width 0 and the only green mark under
   the bar was a decorative 60px stub pinned to the centre of the navbar. It read
   as a broken "you are here" indicator because it sat under no link at all. The
   stub is gone; the underline now marks the page you are actually on. */
.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.active::after {
  transform: translateX(50%) scaleX(1);
  width: 60%;
  height: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  padding: 6px;
  background: rgba(15, 157, 88, 0.05);
  border: 1px solid rgba(15, 157, 88, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(15, 157, 88, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.mobile-menu-toggle:hover {
  background: rgba(15, 157, 88, 0.1);
  border-color: rgba(15, 157, 88, 0.2);
  color: rgba(15, 157, 88, 0.6);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.btn::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  /* was 0.3 — it washed the green out to 2.4:1 under the white label on hover */
  background: rgba(255, 255, 255, 0.1);
  transform: translate(50%, -50%);
  transition: width 0.6s, height 0.6s;
  /* negative: paints above the button background but under the label, so a
     label written as a bare text node (no <span>) is never covered */
  z-index: -1;
  pointer-events: none;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-primary {
  /* darker stops than --primary-color: white label needs >=4.5:1 (WCAG AA); #0f9d58 is only 3.5:1 */
  background: linear-gradient(-135deg, #0a7040 0%, #0b7d46 100%);
  color: var(--white);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(15, 157, 88, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 4;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover span,
.btn-primary:hover i {
  transform: translateY(-1px);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary.green-text {
  color: var(--white);
}

.btn-primary::before{
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  /* hover shade must stay dark enough for the white label (>=4.5:1) */
  background: linear-gradient(-135deg, #0b7d46 0%, #096339 100%);
  transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
  pointer-events: none;
}

.btn-primary:hover::before {
  right: 0;
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-4px) rotateX(5deg);
  box-shadow: 0 12px 35px rgba(15, 157, 88, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--primary-color);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  /* #0f9d58 on a light card is only 3.5:1; #0a7040 is 6.2:1 (WCAG AA) */
  color: #0a7040;
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.btn-secondary span,
.btn-secondary i {
  position: relative;
  z-index: 4;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover span,
.btn-secondary:hover i {
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary::before{
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(-135deg, #0b7d46 0%, #096339 100%);
  transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
  pointer-events: none;
}

.btn-secondary:hover::before {
  right: 0;
}

.btn-secondary:hover {
  color: var(--white);
  transform: translateY(-4px) rotateX(5deg);
  box-shadow: 0 12px 35px rgba(15, 157, 88, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--primary-color);
}

.btn-outline {
  background: var(--white);
  /* #0f9d58 on white is only 3.5:1; #0a7040 is 6.2:1 (WCAG AA) */
  color: #0a7040;
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(15, 157, 88, 0.2);
  transition: all 0.3s ease;
}

.btn-outline span,
.btn-outline i {
  position: relative;
  z-index: 4;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline::before{
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(-135deg, #0b7d46 0%, #096339 100%);
  transition: right 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.btn-outline:hover::before {
  right: 0;
}

.btn-outline:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 157, 88, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(-135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}

.btn-whatsapp span,
.btn-whatsapp i {
  position: relative;
  z-index: 2;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-whatsapp i {
  font-size: 16px;
}

.btn-whatsapp:hover {
  background: linear-gradient(-135deg, #128c7e 0%, #0a6d5f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.btn-outline span {
  position: relative;
  z-index: 2;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for cards */
.scroll-animate.hospital-card,
.scroll-animate.stat-card,
.scroll-animate.oncology-card,
.scroll-animate.service-card,
.scroll-animate.about-card,
.scroll-animate.story-card {
  transition-delay: 0.1s;
}

.scroll-animate.hospital-card:nth-child(2),
.scroll-animate.stat-card:nth-child(2),
.scroll-animate.oncology-card:nth-child(2),
.scroll-animate.service-card:nth-child(2),
.scroll-animate.about-card:nth-child(2),
.scroll-animate.story-card:nth-child(2) {
  transition-delay: 0.2s;
}

.scroll-animate.hospital-card:nth-child(3),
.scroll-animate.stat-card:nth-child(3),
.scroll-animate.oncology-card:nth-child(3),
.scroll-animate.service-card:nth-child(3),
.scroll-animate.about-card:nth-child(3),
.scroll-animate.story-card:nth-child(3) {
  transition-delay: 0.3s;
}

.scroll-animate.hospital-card:nth-child(4),
.scroll-animate.stat-card:nth-child(4),
.scroll-animate.oncology-card:nth-child(4),
.scroll-animate.service-card:nth-child(4),
.scroll-animate.about-card:nth-child(4),
.scroll-animate.story-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* Special animations for sections */
.scroll-animate.journey-cta {
  transform: translateY(50px) scale(0.95);
}

.scroll-animate.journey-cta.animate-in {
  transform: translateY(0) scale(1);
}

.scroll-animate.page-header {
  transform: translateY(-30px);
}

.scroll-animate.page-header.animate-in {
  transform: translateY(0);
}
.page-header {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    -135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  overflow: hidden;
}

.page-header::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  color: var(--white);
}

.page-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: var(--white);
}

/* ===== Service Categories ===== */
.service-category {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

.service-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  text-align: right;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(-135deg, var(--primary-color) 0%, #0d9d68 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(15, 157, 88, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-icon::before{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.service-icon:hover::before {
  opacity: 1;
  animation: shine 0.6s ease;
}

.service-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(15, 157, 88, 0.4);
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.service-icon:hover i {
  transform: rotate(-10deg);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

@keyframes shine {
  0% {
    transform: translateX(100%) translateY(-100%) rotate(-45deg);
  }
  100% {
    transform: translateX(-100%) translateY(100%) rotate(-45deg);
  }
}

.service-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.service-title p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0;
}

/* ===== Journey Features ===== */
.journey-features {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Network Stats ===== */
.network-stats-section {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Laboratories ===== */
.laboratories-section {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Diagnostic Services ===== */
.diagnostic-services {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Patient Support ===== */
.patient-support {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Office Locations ===== */
.office-locations {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: var(--spacing-xl) 0;
  background: var(--gray-50);
}

/* ===== Hospital Cards ===== */
.hospital-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.hospital-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -45deg,
    transparent 40%,
    rgba(34, 197, 94, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(100%) skewX(15deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.hospital-card:hover::before {
  transform: translateX(-100%) skewX(15deg);
}

.hospital-card::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(34, 197, 94, 0.03) 10px,
    rgba(34, 197, 94, 0.03) 20px
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: hospitalStripes 1s linear infinite;
  pointer-events: none;
}

@keyframes hospitalStripes {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: right 20px top 20px;
  }
}

.hospital-card:hover::after {
  opacity: 1;
}

[data-theme="dark"] .hospital-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

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

.hospital-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hospital-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hospital-image img:hover {
  transform: scale(1.05);
}

.hospital-content {
  text-align: center;
}

.hospital-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.hospital-content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

[data-theme="dark"] .hospital-content p {
  color: var(--gray-400);
}

.hospital-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.feature {
  background: var(--gray-100);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

[data-theme="dark"] .feature {
  background: var(--gray-700);
  color: var(--gray-300);
}

.feature i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* ===== Timeline ===== */
.journey-timeline-section {
  padding: var(--spacing-3xl) 0;
}

.journey-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.journey-timeline::before{
  content: "";
  position: absolute;
  right: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(50%);
  pointer-events: none;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-2xl);
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* top is load-bearing: without it, this absolutely positioned circle falls
   back to its flex static position, which — under .timeline-item's
   align-items:center — is the vertical middle of the card, landing on
   whatever paragraph text happens to be there. Fixed at desktop widths too;
   the mobile/tablet rules in responsive.css already pin it the same way. */
.timeline-marker {
  position: absolute;
  top: 14px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

[data-theme="dark"] .timeline-content {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.timeline-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

[data-theme="dark"] .timeline-content p {
  color: var(--gray-400);
}

.timeline-details ul {
  list-style: none;
  padding: 0;
}

.timeline-details li {
  padding: var(--spacing-xs) 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  position: relative;
  padding-right: var(--spacing-md);
  line-height: 1.5;
}

[data-theme="dark"] .timeline-details li {
  color: var(--gray-400);
}

.timeline-details li::before{
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-color);
  pointer-events: none;
}

/* ===== Contact Form ===== */
.contact-form-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .form-container {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.form-header p {
  color: var(--gray-600);
  line-height: 1.6;
}

[data-theme="dark"] .form-header p {
  color: var(--gray-400);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--spacing-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.45);
}

.file-upload {
  position: relative;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-label:hover {
  border-color: var(--primary-color);
  background: var(--gray-50);
}

.file-upload input[type="file"] {
  display: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
  margin-top: var(--spacing-xs);
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .service-header {
    flex-direction: column;
    text-align: center;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-content {
    width: 100%;
  }

  .journey-timeline::before {
    right: 20px;
  }

  .timeline-marker {
    right: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===== Service Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.service-item {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .service-item {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.service-item::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(-135deg, transparent, rgba(34, 197, 94, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.service-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-item:hover::before {
  opacity: 1;
}

.item-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.item-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.service-item p {
  color: var(--gray-600);
  line-height: 1.6;
}

[data-theme="dark"] .service-item p {
  color: var(--gray-400);
}

/* ===== Surgery Types ===== */
.surgery-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.surgery-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .surgery-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.surgery-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(-135deg, transparent, rgba(34, 197, 94, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.surgery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.surgery-card:hover::before {
  opacity: 1;
}

.surgery-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.surgery-icon i {
  font-size: 2rem;
  color: var(--white);
}

.surgery-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.surgery-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

[data-theme="dark"] .surgery-card p {
  color: var(--gray-400);
}

.surgery-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0 0 0;
}

.surgery-list li {
  background: var(--white);
  color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] .surgery-list li {
  background: var(--gray-800);
  color: var(--primary-color);
  border-color: var(--gray-700);
}

/* ===== Diagnostic Grid ===== */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.diagnostic-item {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .diagnostic-item {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.diagnostic-item::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    -180deg,
    rgba(34, 197, 94, 0.03) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.diagnostic-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(34, 197, 94, 0.15);
}

.diagnostic-item:hover::before {
  opacity: 1;
}

.diagnostic-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(-135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.diagnostic-icon::after{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.diagnostic-item:hover .diagnostic-icon::after {
  transform: rotate(-45deg) translate(-50%, 50%);
}

.diagnostic-icon i {
  font-size: 2rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.diagnostic-item h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-weight: 600;
}

.diagnostic-item p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
}

[data-theme="dark"] .diagnostic-item p {
  color: var(--gray-400);
}

/* ===== Follow-up Services ===== */
.followup-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.followup-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .followup-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.followup-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    -180deg,
    rgba(34, 197, 94, 0.03) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.followup-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(34, 197, 94, 0.15);
}

.followup-card:hover::before {
  opacity: 1;
}

.followup-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(-135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.followup-icon::after{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.followup-card:hover .followup-icon::after {
  transform: rotate(-45deg) translate(-50%, 50%);
}

.followup-icon i {
  font-size: 2rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.followup-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-weight: 600;
}

.followup-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
}

[data-theme="dark"] .followup-card p {
  color: var(--gray-400);
}

/* ===== Contact Methods ===== */
.contact-methods {
  padding: var(--spacing-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.contact-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .contact-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.contact-card::before{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: all 0.4s ease;
  transform: scale(0.5);
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.contact-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.contact-icon i {
  font-size: 2rem;
  color: var(--white);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.contact-card p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

[data-theme="dark"] .contact-card p {
  color: var(--gray-400);
}

/* ===== Office Locations ===== */
.office-locations {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.location-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
}

[data-theme="dark"] .location-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

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

.location-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.location-header i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.location-header h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 0;
}

.location-details {
  display: none;
}

[data-theme="dark"] .location-details {
  color: var(--gray-300);
}

.location-details p {
  margin-bottom: var(--spacing-sm);
}

.location-details strong {
  color: var(--white);
}

[data-theme="dark"] .location-details strong {
  color: var(--gray-100);
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: var(--spacing-3xl) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .faq-item {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.faq-item:hover {
  box-shadow: var(--shadow-xl);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  background: #1f2937;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-normal);
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

.faq-question::before{
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: right 0.5s ease;
  pointer-events: none;
}

.faq-question:hover::before {
  right: 100%;
}

.faq-question:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question h3 {
  font-size: 1.125rem;
  margin: 0;
}

.faq-question i {
  transition: transform var(--transition-fast);
}

.faq-answer {
  padding: var(--spacing-lg);
  color: var(--gray-600);
  display: none;
  line-height: 1.6;
}

[data-theme="dark"] .faq-answer {
  color: var(--gray-400);
}

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

.faq-item.active .faq-question i {
  transform: rotate(-180deg);
}

/* ===== Journey Features ===== */
.journey-features {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .feature-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.feature-card::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(-90deg, #22c55e, #16a34a, #22c55e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(34, 197, 94, 0.2);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

[data-theme="dark"] .feature-card p {
  color: var(--gray-400);
}

/* ===== Journey CTA ===== */
.journey-cta {
  padding: var(--spacing-xl) 0;
  /* Deliberately darker than the brand green used everywhere else. White body
     text on the old #0f9d58 -> #14b866 measured 3.51:1 falling to 2.60:1 across
     the sweep, against the 4.5:1 the text needs. These two greens are already in
     the palette (--primary-dark, and the shade .btn-outline:hover uses) and hold
     4.73:1 at the worst point even after the 5% white wash ::before lays on top. */
  background: linear-gradient(
    -135deg,
    #0a7040 0%,
    #0b7e41 100%
  );
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.journey-cta::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  animation: ctaFloating 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaFloating {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(-1deg);
  }
  66% {
    transform: translateY(10px) rotate(1deg);
  }
}

.journey-cta > * {
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.journey-cta .btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 600;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.journey-cta .btn-outline::before{
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  transition: right 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.journey-cta .btn-outline:hover::before {
  right: 0;
}

.journey-cta .btn-outline:hover {
  /* green-on-white after the overlay slides in: #0f9d58 is 3.5:1, #0a7040 is 6.2:1 */
  color: #0a7040;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--white);
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Form Messages */
.form-message {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: var(--success-color, #10b981);
  color: var(--white);
}

.form-message.error {
  background: var(--error-color, #ef4444);
  color: var(--white);
}

.form-message.info {
  background: var(--info-color, #3b82f6);
  color: var(--white);
}

/* File Upload */
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
}

.file-item i {
  margin-left: var(--spacing-xs);
  color: var(--primary-color);
}

[data-theme="dark"] .file-item {
  background: var(--gray-700);
  color: var(--gray-300);
}

/* ===== Network Stats ===== */
.network-stats-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.stat-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  display: block;
}

.stat-card:nth-child(1) .stat-icon {
  color: var(--accent-blue);
}

.stat-card:nth-child(2) .stat-icon {
  color: var(--primary-color);
}

.stat-card:nth-child(3) .stat-icon {
  color: var(--accent-gold);
}

.stat-card:nth-child(4) .stat-icon {
  color: var(--primary-dark);
}

[data-theme="dark"] .stat-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.stat-number::before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 2px;
  vertical-align: baseline;
  line-height: 1;
}

.stat-number::after {
  display: none;
}

.stat-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--spacing-xs);
}

[data-theme="dark"] .stat-label {
  color: var(--gray-200);
}

.stat-desc {
  color: var(--gray-600);
  font-size: 0.875rem;
}

[data-theme="dark"] .stat-desc {
  color: var(--gray-400);
}

/* ===== Hospital Category ===== */
.hospital-category {
  padding: var(--spacing-3xl) 0;
}

.category-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.category-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.category-desc {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

/* ===== Laboratories ===== */
.laboratories-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

/* ===== Radiology Centers ===== */
.radiology-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.radiology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.radiology-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
}

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

.radiology-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.radiology-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.radiology-image img:hover {
  transform: scale(1.05);
}

.radiology-content {
  text-align: center;
}

.radiology-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.radiology-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.radiology-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

[data-theme="dark"] .radiology-card p {
  color: var(--gray-400);
}

[data-theme="dark"] .radiology-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.lab-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
}

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

.lab-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lab-image img:hover {
  transform: scale(1.05);
}

.lab-content {
  text-align: center;
}

.lab-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.lab-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.lab-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

[data-theme="dark"] .lab-card p {
  color: var(--gray-400);
}

.lab-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.lab-icon i {
  font-size: 2rem;
  color: var(--white);
}

.lab-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.lab-card p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

[data-theme="dark"] .lab-card p {
  color: var(--gray-400);
}

.lab-services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lab-services li {
  padding: var(--spacing-xs) 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  position: relative;
  padding-right: var(--spacing-md);
  line-height: 1.5;
}

[data-theme="dark"] .lab-services li {
  color: var(--gray-400);
}

.lab-services li::before{
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-color);
  pointer-events: none;
}

/* ===== Oncology Overview ===== */
.oncology-overview {
  padding: var(--spacing-3xl) 0;
}

.overview-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overview-text h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.overview-text p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.key-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.feature-item span {
  color: var(--gray-700);
  font-weight: 500;
}

.overview-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.overview-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== Diagnostic Services ===== */
.diagnostic-services {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.diagnostic-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
}

[data-theme="dark"] .diagnostic-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

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

.diagnostic-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.diagnostic-icon i {
  font-size: 2rem;
  color: var(--white);
}

.diagnostic-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.diagnostic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.diagnostic-list li {
  padding: var(--spacing-xs) 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  position: relative;
  padding-right: var(--spacing-md);
  line-height: 1.5;
}

[data-theme="dark"] .diagnostic-list li {
  color: var(--gray-400);
}

.diagnostic-list li::before{
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary-color);
  pointer-events: none;
}

/* ===== Treatment Modalities ===== */
.treatment-modalities {
  padding: var(--spacing-3xl) 0;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  transform: translateZ(0);
  position: relative;
}

[data-theme="dark"] .treatment-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.treatment-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    -180deg,
    rgba(34, 197, 94, 0.03) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.treatment-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(34, 197, 94, 0.15);
}

.treatment-card:hover::before {
  opacity: 1;
}

.treatment-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background: linear-gradient(-135deg, #22c55e, #16a34a);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.treatment-header h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
}

.treatment-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  position: relative;
}

.treatment-content {
  padding: var(--spacing-xl);
}

.treatment-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
  font-size: 1rem;
}

[data-theme="dark"] .treatment-content p {
  color: var(--gray-400);
}

.treatment-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.treatment-features span {
  background: var(--white);
  color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

.treatment-features span:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

[data-theme="dark"] .treatment-features span {
  background: var(--gray-800);
  color: var(--primary-color);
  border-color: var(--gray-700);
}

/* ===== Patient Support ===== */
.patient-support {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.support-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .support-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.support-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    -180deg,
    rgba(34, 197, 94, 0.03) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.support-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(34, 197, 94, 0.15);
}

.support-card:hover::before {
  opacity: 1;
}

.support-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(-135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.support-icon::after{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.support-card:hover .support-icon::after {
  transform: rotate(-45deg) translate(-50%, 50%);
}

.support-icon i {
  font-size: 2rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.support-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-weight: 600;
}

.support-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== Success Stories ===== */
.success-stories {
  padding: var(--spacing-3xl) 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.story-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

.story-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    -180deg,
    rgba(34, 197, 94, 0.03) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.story-card::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at top,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: storyGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes storyGlow {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }
}

.story-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 70px rgba(34, 197, 94, 0.15);
}

.story-card:hover::before {
  opacity: 1;
}

.story-card:hover::after {
  opacity: 0.5;
}

.story-content p {
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-size: 1rem;
}

.story-author strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
  font-weight: 600;
}

.story-author span {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.section-subtitle {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    -135deg,
    var(--primary-color) 0%,
    var(--primary-light) 50%,
    var(--primary-color) 100%
  );
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
  0% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-section::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(34, 197, 94, 0.1) 0%,
      transparent 50%
    );
  animation: floatingBubbles 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatingBubbles {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(-120deg);
  }
  66% {
    transform: translateY(20px) rotate(-240deg);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Section Styles ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Section ===== */
.about-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-xl);
}

.about-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.about-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -90deg,
    transparent,
    rgba(34, 197, 94, 0.1),
    transparent
  );
  transition: right 0.6s ease;
  pointer-events: none;
}

.about-card:hover::before {
  right: 100%;
}

.about-card::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -135deg,
    rgba(34, 197, 94, 0.03) 0%,
    transparent 50%,
    rgba(34, 197, 94, 0.03) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: cardShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShimmer {
  0%,
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
  50% {
    opacity: 1;
    transform: translateX(-100%);
  }
}

.about-card:hover::after {
  opacity: 0.3;
}

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

.about-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.about-icon i {
  font-size: 2rem;
  color: var(--white);
}

.about-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.about-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Network Preview Section ===== */
.network-preview-section {
  padding: var(--spacing-3xl) 0;
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.stat-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  display: block;
}

.stat-card:nth-child(1) .stat-icon {
  color: var(--accent-blue);
}

.stat-card:nth-child(2) .stat-icon {
  color: var(--primary-color);
}

.stat-card:nth-child(3) .stat-icon {
  color: var(--accent-gold);
}

.stat-card:nth-child(4) .stat-icon {
  color: var(--primary-dark);
}

.stat-card::before{
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--primary-color) 90deg,
    var(--primary-light) 180deg,
    transparent 270deg,
    transparent 360deg
  );
  animation: statRotate 4s linear infinite;
  opacity: 0.1;
  pointer-events: none;
}

@keyframes statRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.stat-card::after{
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  left: 2px;
  bottom: 2px;
  background: var(--white);
  border-radius: calc(var(--radius-xl) - 2px);
  z-index: 1;
  pointer-events: none;
}

.stat-card > * {
  position: relative;
  z-index: 2;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.stat-number::before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 2px;
  vertical-align: baseline;
  line-height: 1;
}

.stat-number::after {
  display: none;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--spacing-xs);
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.network-cta {
  text-align: center;
}

/* ===== Oncology Preview Section ===== */
.oncology-preview-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.oncology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.oncology-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.oncology-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -45deg,
    transparent 30%,
    rgba(34, 197, 94, 0.05) 50%,
    transparent 70%
  );
  transform: translateX(100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.oncology-card:hover::before {
  transform: translateX(-100%);
}

.oncology-card::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(34, 197, 94, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: oncologyPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes oncologyPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.oncology-card:hover::after {
  opacity: 0.5;
}

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

.oncology-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    -135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.oncology-icon i {
  font-size: 2rem;
  color: var(--white);
}

.oncology-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.oncology-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

.oncology-cta {
  text-align: center;
}

/* ===== Services Preview Section ===== */
.services-preview-section {
  padding: var(--spacing-3xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.service-card::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -135deg,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 25%,
    transparent 75%,
    rgba(34, 197, 94, 0.1) 100%
  );
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.service-card:hover::before {
  transform: translateY(100%);
}

.service-card::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.15) 0%,
    transparent 70%
  );
  transform: translate(50%, -50%);
  transition: all 0.8s ease;
  border-radius: 50%;
  pointer-events: none;
}

.service-card:hover::after {
  width: 300px;
  height: 300px;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: color var(--transition-normal);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Patient Journey Section ===== */
.journey-preview-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

[data-theme="dark"] .journey-preview-section {
  background: var(--gray-900);
}

.journey-timeline {
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
  position: relative;
}

.journey-timeline::before{
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  pointer-events: none;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Same fix as the .timeline-marker rule above — this is a second,
   pre-existing definition of the same class for the journey-timeline variant.
   Left as-is rather than merged: both are live on ~23 pages and only `top`
   was actually missing. */
.timeline-marker {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  position: absolute;
  top: 14px;
  right: 50%;
  transform: translateX(50%);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.timeline-content {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: calc(50% - 40px);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .timeline-content {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: auto;
  margin-left: 0;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.timeline-content p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.journey-cta {
  text-align: center;
}

/* ===== Contact Preview Section ===== */
.contact-preview-section {
  padding: var(--spacing-3xl) 0;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--spacing-xl);
}

.contact-card {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

[data-theme="dark"] .contact-card {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
  background: var(--primary-color);
}

.contact-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: color var(--transition-normal);
}

.contact-card:hover .contact-icon i {
  color: var(--white);
}

.contact-card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.contact-card p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  /* Bottom padding is deliberately bigger than the top: the chat launcher
     (#hmap-bubble, 60px at this width) sits fixed at bottom/inset-inline-end
     20px, so anyone scrolled to the true end of the page always has it
     hovering over the last ~80px of the viewport. Reserving that much space
     below .footer-legal — inside the footer's own dark background, not as
     blank page margin — means Privacy/Terms are never the thing sitting
     under it. Mobile widths use a smaller widget and get a smaller reserve
     below, in responsive.css. */
  padding: var(--spacing-3xl) 0 96px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.footer-logo i {
  font-size: 1.5rem;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  max-width: 280px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.3);
}

.footer-social a i {
  font-size: 16px;
  z-index: 2;
  position: relative;
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--gray-400);
}

.contact-item i {
  color: var(--primary-color);
  width: 20px;
}

/* Email, phone, WhatsApp and the address are all links in the footer, so they
   all light up the same way. These two declarations used to be written inline
   on each <a> as style="color:inherit;text-decoration:none" — an inline
   declaration beats any selector, so no :hover rule could ever repaint them
   and only the address (the one link without the attribute) responded. */
a.contact-item {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.contact-item:hover,
a.contact-item:focus-visible {
  color: var(--primary-light);
}

a.contact-item:hover i,
a.contact-item:focus-visible i {
  color: var(--primary-light);
}

/* The address on the contact page sits in running text on a light background,
   where --primary-light does not carry enough contrast. It gets the darker
   brand green and an underline on hover instead. */
.map-link {
  color: #0a7040;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.map-link:hover,
.map-link:focus-visible {
  color: var(--primary-dark);
  border-bottom-color: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright p {
  color: var(--gray-400);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-legal a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

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

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: right;
}
.text-right {
  text-align: left;
}

.hidden {
  display: none;
}
.visible {
  display: block;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--spacing-xs);
}
.mb-2 {
  margin-bottom: var(--spacing-sm);
}
.mb-3 {
  margin-bottom: var(--spacing-md);
}
.mb-4 {
  margin-bottom: var(--spacing-lg);
}
.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: var(--spacing-xs);
}
.mt-2 {
  margin-top: var(--spacing-sm);
}
.mt-3 {
  margin-top: var(--spacing-md);
}
.mt-4 {
  margin-top: var(--spacing-lg);
}
.mt-5 {
  margin-top: var(--spacing-xl);
}


/* Accessibility: skip link + visible keyboard focus (SEO sprint 2026-07-28) */
.skip-link {
  position: absolute;
  top: -48px;
  right: 8px;
  z-index: 3000;
  padding: 10px 18px;
  background: #0a7040;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease-out;
}
.skip-link:focus {
  top: 8px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0a7040;
  outline-offset: 2px;
}


/* Post/article cards (generated by the admin panel) */
.post-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 8px;
  justify-content: center;
}
.post-date i { color: #0a7040; font-size: 0.75rem; }
.hospital-content h3 a { color: inherit; text-decoration: none; }
.hospital-content h3 a:hover { text-decoration: underline; }

/* ===== Touch targets =====
   Measured at 390px: the menu button was 32x32, the footer social circles 40x40,
   the footer contact links 26px tall and the consent checkbox 13x13 — all below
   the 44px minimum, and the menu button is now the only way to navigate on
   anything under 1200px. Grow the hit area without moving the visible design:
   padding on the links, a real box on the button and checkbox. */
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
}

.footer-contact .contact-item,
.footer-section .contact-item {
  padding-block: 9px;
  min-height: 44px;
}

.checkbox-group input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--primary-color);
  margin-top: 0;
}

.checkbox-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 44px;
}

/* The privacy and terms links sit in their own row, so padding here costs
   nothing visually and takes them from 26px tall to 44px. */
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
}

/* The honeypot field. Hidden the careful way: off-canvas rather than
   display:none, because some bots skip fields that are display:none, and
   aria-hidden + tabindex=-1 keep it away from screen readers and the keyboard
   so no real visitor can ever land in it. */
.hp-field {
  position: absolute;
  right: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Floating buttons =====
   The chat launcher is injected by app.hospitalscoegypt.com/widget.js as
   #hmap-bubble (60px) inside a fixed container at bottom/inset-inline-end 20px,
   with z-index 2147483000. Our own .back-to-top sat in exactly the same corner
   at bottom/right 24px, so it was being buried by a button 2 billion layers
   above it — invisible and unclickable whenever it appeared. Stack them
   instead, and give the launcher a smaller footprint on a phone, where a 60px
   circle over a 390px column covers real words.
   Not an iframe, so these rules do reach it; if the widget ever stops loading,
   .back-to-top simply sits a little higher than before. */
.back-to-top {
  inset-inline-end: var(--spacing-lg);
  left: auto;
  bottom: 96px;
}

@media (max-width: 767px) {
  #hmap-bubble {
    width: 52px;
    height: 52px;
    font-size: 22px;
    transition: opacity 0.15s ease;
  }
  /* Only below 768px: this is where the widget's footprint is wide relative
     to the column of text running underneath it. main.js toggles the class;
     reduced-motion visitors just get an instant hide with no transition. */
  html.is-scrolling #hmap-bubble {
    opacity: 0.25;
    pointer-events: none;
  }
  .back-to-top {
    bottom: 84px;
  }
  .footer {
    padding-bottom: 88px;   /* 52px widget + 20px inset + margin */
  }
}

@media (max-width: 480px) {
  #hmap-bubble {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .back-to-top {
    bottom: 76px;
  }
  .footer {
    padding-bottom: 84px;   /* 48px widget + 20px inset + margin */
  }
}

/* ===== Reading-page image =====
   The cards use .hospital-image: a fixed 250px box with object-fit:cover, which
   is right for a grid of hospital photos and wrong for an article, where it
   cropped a 1400x750 photo to a 250px band and cut the subjects' heads off.
   Here the image keeps its own shape. aspect-ratio reserves the space before
   the file arrives, so nothing below it jumps once it loads. */
.entry-image {
  margin: 0 auto var(--spacing-lg);
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: var(--gray-100);
  aspect-ratio: 1400 / 750;
}

.entry-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* only trims if the upload is a different shape */
}

/* The card's own way in. The title is a link as well, but a small line of type
   is a poor target — this gives the card an obvious, full-width one. */
.entry-more {
  margin: var(--spacing-md) 0 0;
}

.entry-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: #0a7040;
  text-decoration: none;
}

.entry-more a::after {
  content: "\2192";          /* arrow, flipped automatically in the RTL build */
  transition: transform var(--transition-fast);
}

.entry-more a:hover::after,
.entry-more a:focus-visible::after {
  transform: translateX(-3px);
}

/* ------------------------------------------------------------------
   Sections that paint their own background get their text colour back.

   This file declares `h1..h6 { color: var(--primary-color) }` and
   `p { color: var(--gray-600) }` globally. A rule that matches an element
   directly always beats a colour inherited from an ancestor, so every
   section that sets a dark or brand background on itself silently lost its
   text colour: the CTA heading rendered green on green (1.54:1 measured)
   and the footer paragraph grey on near-black (2.35:1) on all 42 pages.
   `inherit` hands each element back the colour its section already declares.
   ------------------------------------------------------------------ */
.journey-cta h1,
.journey-cta h2,
.journey-cta h3,
.journey-cta p,
.faq-question h1,
.faq-question h2,
.faq-question h3,
.faq-question h4,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer p {
  color: inherit;
}
