/* ==========================================================================
   Ramshila Hospital - Complete Stylesheet
   Design System: Primary #0F6CBD → #073257 | Secondary #DCFCE7
   Typography: Poppins (headings) + Inter (body)
   ========================================================================== */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Primary Gradient */
  --primary-start: #0F6CBD;
  --primary-end: #073257;
  --primary-gradient: linear-gradient(135deg, var(--primary-start), var(--primary-end));

  /* Secondary & Background */
  --secondary: #DCFCE7;
  --bg-light: #E6F2FF;
  --bg-white: #ffffff;

  /* Text Colors */
  --text-primary: #234A6B;
  --text-secondary: #009389;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;

  /* Accent Colors */
  --cta: #f59e0b;
  --cta-hover: #d97706;
  --emergency: #ef4444;
  --emergency-hover: #dc2626;
  --whatsapp: #22c55e;
  --whatsapp-hover: #16a34a;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --top-bar-height: 60px;
  --nav-bar-height: 56px;
  --header-height: 116px;
  /* top-bar + nav-bar */
  --mobile-bar-height: 64px;
  --container-max: 1200px;
}

@media (max-width: 767px) {
  :root {
    --header-height: var(--top-bar-height);
  }
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 0;
  }
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 12px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   DUAL-LAYER NAVBAR
   ========================================================================== */

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-gradient);
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.top-bar-logo .logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* ── Actual hospital logo (replaces placeholder circle) ── */
.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .navbar-logo {
    height: 36px;
  }
}

@media (max-width: 767px) {
  .navbar-logo {
    height: 30px;
  }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.top-bar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.top-bar-link.active {
  color: #fff;
}

.top-bar-cta {
  background: var(--cta);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-bar-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.top-bar-social {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.top-bar-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.top-bar-social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .top-bar-social {
    display: flex;
  }
}

/* --- Navigation Bar (Second layer) --- */
.nav-bar {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 108, 189, 0.1);
  height: var(--nav-bar-height);
  transition: box-shadow var(--transition-base);
}

.nav-bar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0;
  }
}

.nav-links a {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-links a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-start);
  background: rgba(15, 108, 189, 0.06);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

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

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-start);
  background: rgba(15, 108, 189, 0.06);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Mobile – Emergency Strip */
.nav-bar-emergency {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
}

@media (min-width: 1024px) {
  .nav-bar-emergency {
    display: none;
  }
}

.nav-bar-emergency a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.nav-bar-emergency .call-icon {
  background: rgba(15, 108, 189, 0.1);
  color: var(--primary-start);
}

.nav-bar-emergency .wa-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--whatsapp);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(15, 108, 189, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 108, 189, 0.4);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

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

.btn-emergency {
  background: var(--emergency);
  color: #fff;
  animation: pulse-emergency 2s infinite;
}

.btn-emergency:hover {
  background: var(--emergency-hover);
}

.btn-outline {
  border: 2px solid var(--primary-start);
  color: var(--primary-start);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-start);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

@keyframes pulse-emergency {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
}

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, #0d4c8b, #1e6bb8);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  /* Ensure it sits below the fixed navbar */
  margin-top: var(--header-height);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
}

.page-header .subtitle {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

.page-header .breadcrumb {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.page-header .breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.page-header .breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Page Banner (shared across all inner pages) ---------- */
.page-banner {
  width: 100%;
  line-height: 0;
  /* removes phantom gap below inline img */
  overflow: hidden;
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  /* preserve aspect ratio — no cropping, no distortion */
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-gradient);
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 50, 87, 0.85), rgba(15, 108, 189, 0.7));
  z-index: 1;
}

.hero-bg-video,
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  margin-top: 70px;
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  padding: 40px 0;
}

.hero-badge {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero p {
  padding: 12px;
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.15rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Global Search ---------- */
.search-container {
  position: relative;
  max-width: 560px;
  margin: 32px auto 5px;
}

.search-input-wrapper {
  margin: 12px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 20px;
  transition: all var(--transition-base);
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.search-input-wrapper i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 0;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  margin: 0 0 0 -15px;
  background: var(--cta);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-btn:hover {
  background: var(--cta-hover);
}

/* Search Dropdown overlay */
.search-results {
  position: relative;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
  /* slightly below input */
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--bg-light);
}

.search-result-item .result-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.search-result-item .result-icon.doctor {
  background: rgba(15, 108, 189, 0.1);
  color: var(--primary-start);
}

.search-result-item .result-icon.department {
  background: rgba(0, 147, 137, 0.1);
  color: var(--text-secondary);
}

.search-result-item .result-icon.facility {
  background: rgba(245, 158, 11, 0.1);
  color: var(--cta);
}

.search-result-item .result-info {
  flex: 1;
  min-width: 0;
}

.search-result-item .result-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.search-result-item .result-label mark {
  background: rgba(15, 108, 189, 0.15);
  color: var(--primary-start);
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-item .result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-result-item .result-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* In-page search (non-hero) */
.page-search .search-input-wrapper {
  background: #fff;
  border: 2px solid rgba(15, 108, 189, 0.15);
}

.page-search .search-input-wrapper:focus-within {
  background: #fff;
  border-color: var(--primary-start);
  box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.1);
}

.page-search .search-input-wrapper i {
  color: var(--text-muted);
}

.page-search .search-input {
  color: var(--text-dark);
}

.page-search .search-input::placeholder {
  color: var(--text-muted);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-body {
  padding: 24px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(15, 108, 189, 0.08), rgba(15, 108, 189, 0.15));
  color: var(--primary-start);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Card grid */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Doctor Cards ---------- */
.doctor-card {
  text-align: center;
  padding: 32px 24px;
}

.doctor-card .doctor-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg-light);
  object-fit: cover;
  border: 3px solid rgba(15, 108, 189, 0.15);
  overflow: hidden;
}

.doctor-card .doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.doctor-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.doctor-card .doctor-qual {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.doctor-card .doctor-dept {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.doctor-card-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-about {
  background: transparent;
  border: 2px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-about:hover {
  background: var(--text-secondary);
  color: #fff;
}

/* ---------- Doctors Swiper Slider (3D Coverflow) ---------- */
.doctor-swiper {
  width: 100%;
  padding: 40px 0 50px;
  overflow: hidden;
}

.doctor-swiper .swiper-slide {
  width: 300px;
  height: auto;
  display: flex;
  transition: all 0.3s ease;
}

.doctor-swiper .swiper-slide-active {
  transform: scale(1.1);
  opacity: 1;
  z-index: 10;
}

.doctor-swiper .swiper-slide-prev,
.doctor-swiper .swiper-slide-next {
  opacity: 0.7;
}

.doctor-swiper .swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.9);
}

.doctor-swiper .card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.doctor-swiper .card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doctor-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

/* Swiper Controls Customization */
.doctor-swiper .swiper-button-next,
.doctor-swiper .swiper-button-prev {
  color: var(--primary-start);
  background: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  margin-top: -22px;
  transition: all 0.3s ease;
}

.doctor-swiper .swiper-button-next:hover,
.doctor-swiper .swiper-button-prev:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.doctor-swiper .swiper-button-next::after,
.doctor-swiper .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 800;
}

.doctor-swiper .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.doctor-swiper .swiper-pagination-bullet-active {
  background: var(--cta);
  opacity: 1;
  transform: scale(1.3);
}

@media (max-width: 639px) {

  .doctor-swiper .swiper-button-next,
  .doctor-swiper .swiper-button-prev {
    display: none;
  }
}

/* ---------- Doctor Modal ---------- */
.doctor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.doctor-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.doctor-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: calc(100% - 40px);
  margin: 20px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
}

.doctor-modal-overlay.active .doctor-modal {
  transform: scale(1);
  opacity: 1;
}

.doctor-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
  border: none;
}

.doctor-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--emergency);
}

.doctor-modal-header {
  text-align: center;
  padding: 32px 24px 16px;
  background: linear-gradient(180deg, var(--bg-white) 0%, #fff 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.doctor-modal-header .modal-doc-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #fff;
  border: 4px solid rgba(15, 108, 189, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-start);
  overflow: hidden;
}

.doctor-modal-header .modal-doc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.doctor-modal-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.doctor-modal-header .modal-qual {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.doctor-modal-header .modal-dept {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.doctor-modal-body {
  padding: 20px 24px 28px;
}

.modal-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.modal-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(15, 108, 189, 0.08), rgba(15, 108, 189, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-start);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.modal-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-info-value {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

.doctor-modal-footer {
  padding: 0 24px 24px;
  text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  padding: 28px;
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: rgba(15, 108, 189, 0.15);
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.testimonial-card .author-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- FAQ Section ---------- */
.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color var(--transition-fast);
  gap: 12px;
}

.faq-question:hover {
  color: var(--primary-start);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary-start);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--emergency);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(15, 108, 189, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--emergency);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--emergency);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

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

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Contact Info Boxes ---------- */
.info-box {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-box-icon.call {
  background: rgba(15, 108, 189, 0.1);
  color: var(--primary-start);
}

.info-box-icon.email {
  background: rgba(0, 147, 137, 0.1);
  color: var(--text-secondary);
}

.info-box-icon.whatsapp {
  background: rgba(34, 197, 94, 0.1);
  color: var(--whatsapp);
}

.info-box h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.info-box p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Gallery (9:16 Reel-Style) ---------- */
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/16;
  background: var(--bg-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery lightbox/modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow.prev {
  left: 20px;
}

.lightbox-arrow.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-gradient);
  color: #fff;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--cta);
  border-radius: 1px;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: #fff;
}

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

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--cta);
  color: #fff;
  transform: translateY(-2px);
}

.footer-map {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--cta);
  font-weight: 600;
}

/* Mobile: keep copyright above the fixed bottom bar */
@media (max-width: 1023px) {
  .footer {
    padding-bottom: 70px;
  }

  .footer-bottom {
    position: relative;
    z-index: 2;
  }
}

/* ---------- Sticky Mobile Bottom Bar ---------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  z-index: 998;
  display: flex;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}

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

.mobile-bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.mobile-bottom-bar a i {
  font-size: 1.2rem;
}

.mobile-bottom-bar a.call-btn {
  color: var(--primary-start);
}

.mobile-bottom-bar a.whatsapp-btn {
  color: var(--whatsapp);
}

.mobile-bottom-bar a.appt-btn {
  color: var(--cta);
}

/* ---------- Floating Buttons ---------- */
.floating-btns {
  position: fixed;
  bottom: 88px;
  right: 16px;
  z-index: 997;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 1024px) {
  .floating-btns {
    bottom: 24px;
  }
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.floating-btn.whatsapp {
  background: var(--whatsapp);
}

.floating-btn.emergency {
  background: var(--emergency);
  animation: pulse-emergency 2s infinite;
}

/* ---------- Page Header (Inner Pages) ---------- */
.page-header {
  background: var(--primary-gradient);
  padding: 100px 0 48px;
  text-align: center;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  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.04'%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");
}

.page-header h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
  position: relative;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- About Page ---------- */
.about-content {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(15, 108, 189, 0.1), rgba(15, 108, 189, 0.05));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-start);
  font-size: 3rem;
  border: 2px dashed rgba(15, 108, 189, 0.15);
}

.vision-mission {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .vision-mission {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vision-mission {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Leadership Cards */
.leader-card {
  text-align: center;
  padding: 32px 24px;
}

.leader-card .leader-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border: 3px solid rgba(15, 108, 189, 0.15);
  display: table;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-start);
}

.leader-card h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.leader-card .leader-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.leader-card p {
  font-size: 0.85rem;
}

/* ---------- Ayushman Bharat Page ---------- */
.ayushman-hero {
  background: linear-gradient(135deg, #059669, #047857);
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

.ayushman-hero h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.ayushman-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Ayushman About Banner ---------- */
.ayushman-about-banner {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.ayushman-about-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .ayushman-about-banner img {
    width: 100%;
    height: auto;
  }
}

.benefit-card .card-icon {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.2));
  color: #059669;
}

.ayushman-list {
  list-style: none;
  padding: 0;
}

.ayushman-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.ayushman-list li i {
  color: #059669;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--primary-gradient);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 12px;
  position: relative;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 2.25rem;
  }
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  font-size: 1rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ---------- Lazy Load ---------- */
.lazy-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-image.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Content Offset ---------- */
.page-content {
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .page-content {
    padding-bottom: 0;
  }
}

/* ---------- Stats Grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .btn-primary:hover,
  .btn-cta:hover,
  .btn-whatsapp:hover,
  .info-box:hover {
    transform: none !important;
  }

  .gallery-item:hover img {
    transform: none !important;
  }

  .lazy-image {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .doctor-modal {
    transform: scale(1) !important;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 108, 189, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 108, 189, 0.5);
}

/* ---------- Swiper Active Slide Animation (Doctor Cards) ---------- */
.swiper-slide {
  transition: all 0.4s ease-in-out;
}

.swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.85);
  opacity: 0.6;
}

.swiper-slide-active {
  transform: scale(1.12) translateY(-10px);
  opacity: 1;
  z-index: 10;
  animation: popIn 0.4s ease;
}

.swiper-slide-active .doctor-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

@keyframes popIn {
  0% {
    transform: scale(0.9) translateY(10px);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.12) translateY(-10px);
    opacity: 1;
  }
}