/* ============================================
   Tanwir Healthcare Platform - Design System
   ============================================ */

:root {
  /* Colors */
  --color-primary: #173B66;
  --color-primary-light: #2D8CFF;
  --color-accent: #28A745;
  --color-bg: #F5F8FA;
  --color-bg-card: #FFFFFF;
  --color-text: #173B66;
  --color-text-muted: #6B7B8C;
  --color-border: #E0E8EF;
  
  /* Gradients - FIGMA: darker blue left → teal-green right */
  --gradient-header: linear-gradient(90deg, #0F2D4F 0%, #173B66 30%, #1A4D6E 60%, #1E6B7C 100%);
  /* FIGMA Footer: dark teal left → medium blue right */
  --gradient-footer: linear-gradient(90deg, #267272 0%, #296F70 35%, #2A7A9E 70%, #2D72AD 100%);
  /* FIGMA Header - exact colors */
  --header-bg: rgba(26, 62, 98, 0.95);
  --header-border-light: rgba(255, 255, 255, 0.4);
  --header-text-muted: #D0D4DB;
  --cta-gradient-start: #00A3FF;
  --cta-gradient-end: #00C29E;
  --gradient-cta: linear-gradient(135deg, #2D8CFF 0%, #20B2AA 100%);
  --gradient-cta-hover: linear-gradient(135deg, #3D9CFF 0%, #30C2BA 100%);
  
  /* Panel backgrounds */
  --color-document-panel: #FFF9E6;
  --color-dept-panel: #F0E6FF;
  
  /* Typography */
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(23, 59, 102, 0.08);
  --shadow-md: 0 4px 12px rgba(23, 59, 102, 0.1);
  --shadow-lg: 0 8px 24px rgba(23, 59, 102, 0.12);
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* If logo has black bg, blend so dark areas show header/footer through */
.site-header .logo img,
.site-footer .logo img {
  mix-blend-mode: lighten;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 720px;
  justify-content: flex-end;
  margin-left: var(--space-2xl);
}

/* FIGMA: transparent bg, thin white border, light grey text, white icons */
.location-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--header-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--header-border-light);
  white-space: nowrap;
}
.location-selector:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.location-selector { position: relative; }
.location-selector svg { flex-shrink: 0; color: #FFFFFF; }
.location-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
}
.location-dropdown.show { display: block; }
.location-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.location-dropdown-item:hover { background: #f5f7fa; }
.location-dropdown-item svg { color: var(--color-primary); flex-shrink: 0; }

/* FIGMA: same style as location - transparent, thin border, white icon */
.search-wrapper {
  flex: 1;
  max-width: 380px;
  min-width: 200px;
  position: relative;
}
.search-wrapper input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1px solid var(--header-border-light);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #FFFFFF;
  transition: border-color 0.2s, background 0.2s;
}
.search-wrapper input::placeholder { color: var(--header-text-muted); }
.search-wrapper input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}
.search-wrapper svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  pointer-events: none;
}
.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(45, 140, 255, 0.06); }
.search-result-name { font-weight: 500; }
.search-result-dept { font-size: 12px; color: var(--color-text-muted); }
.search-no-results { justify-content: center; color: var(--color-text-muted); cursor: default; }

/* Language switcher - matches backend topbar: globe icon, Bootstrap dropdown */
.site-header .nav-item.dropdown {
  display: flex;
  align-items: center;
}
.site-header .language-dropdown-toggle {
  padding: 10px 14px !important;
  color: var(--header-text-muted) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--header-border-light);
  border-radius: var(--radius-full);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.site-header .language-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF !important;
}
.site-header .language-dropdown-toggle::after {
  display: none !important;
}
.site-header .language-dropdown-toggle .icon {
  width: 18px;
  height: 18px;
}
.site-header .dropdown-menu.language-dropdown {
  min-width: 170px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: rgba(23, 59, 102, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.site-header .dropdown-menu.language-dropdown .dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
}
.site-header .dropdown-menu.language-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.site-header .dropdown-menu.language-dropdown .dropdown-item strong {
  color: #FFFFFF;
}
/* Checkmark for active language - matches backend checkbox-checked */
.checkbox-checked {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328A745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 18px 18px;
}
.checkbox-checked.m0 { margin: 0 !important; }

/* FIGMA CTA: gradient #00A3FF → #00C29E, thin white border, subtle shadow */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--cta-gradient-start) 0%, var(--cta-gradient-end) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 163, 255, 0.35);
  transition: all 0.2s ease;
}
.btn-cta:hover {
  background: var(--gradient-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 140, 255, 0.5);
}

.btn-cta-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #FFFFFF !important;
  box-shadow: none;
}
.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 1);
}

/* ============================================
   Footer - FIGMA match
   ============================================ */
.site-footer {
  background: var(--gradient-footer);
  padding: 20px var(--space-xl);
  margin-top: auto;
  min-height: 70px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.site-footer .logo {
  flex-shrink: 0;
}
.site-footer .logo img {
  height: 34px;
  width: auto;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.footer-links a:first-child { padding-left: 0; }
.footer-links a:last-child {
  border-right: none;
  padding-right: 0;
}
.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,59,102,0.85) 0%, rgba(23,59,102,0.6) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
  color: white;
  margin: 0 0 var(--space-md);
  line-height: 1.2;
}
.hero h1 strong { font-weight: 800; }
.hero p {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.95);
  max-width: 560px;
  margin: 0 0 var(--space-xl);
  line-height: 1.6;
}
.hero .btn-cta { padding: var(--space-md) var(--space-xl); font-size: var(--font-size-base); }

/* Hero Carousel - fills viewport below header */
.hero-carousel {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23,59,102,0.88) 0%, rgba(23,59,102,0.5) 100%);
}
/* Hero content - same container as header for alignment with logo */
.hero-slide .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.hero-carousel .hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) 0;
  width: 100%;
  max-width: 560px;
}
/* Hero typography - pure white, left-aligned */
.hero-carousel .hero-content h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}
.hero-carousel .hero-content h1 strong {
  font-weight: 700;
  color: #ffffff;
}
.hero-carousel .hero-content p {
  color: #ffffff;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  margin: 0 0 var(--space-xl);
  max-width: 520px;
}
.hero-carousel .hero-content .btn-cta {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--space-md) var(--space-xl);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
}
.hero-carousel .hero-content h1,
.hero-carousel .hero-content p,
.hero-carousel .hero-content .btn-cta { opacity: 0; transform: translateX(-20px); }
.hero-slide.active .hero-content h1,
.hero-slide.active .hero-content p,
.hero-slide.active .hero-content .btn-cta {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.hero-slide.active .hero-content p { transition-delay: 0.3s; }
.hero-slide.active .hero-content .btn-cta { transition-delay: 0.4s; }

/* Hero responsive - on smaller screens content uses more width */
@media (max-width: 768px) {
  .hero-carousel .hero-content {
    max-width: 100%;
  }
}

.hero-dots {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 3;
}
.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dots span.active {
  background: white;
  transform: scale(1.2);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}
.breadcrumb a:hover { color: var(--color-primary-light); }
.breadcrumb span { margin: 0 var(--space-xs); color: var(--color-text-muted); }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body { padding: var(--space-md); }
.card-title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  text-align: center;
}

/* Department/Service grid cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

/* ============================================
   About Section (Home) - 3 columns per FIGMA
   ============================================ */
.about-section {
  padding: var(--space-3xl) 0;
  background: white;
}
.about-three-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: clamp(var(--space-xl), 4vw, var(--space-3xl));
  align-items: start;
}
@media (max-width: 1024px) {
  .about-three-col { grid-template-columns: 1fr; }
  .about-three-col .about-col-center { order: -1; }
}
.about-col {
  min-width: 0;
}
/* Left column - info blocks */
.about-col-left .about-info-block {
  margin-bottom: var(--space-xl);
}
.about-col-left .about-info-block:last-child {
  margin-bottom: 0;
}
.about-info-block h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}
.about-info-block p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}
/* Center column - feature image */
.about-col-center img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}
/* Right column - about platform */
.about-subtitle {
  color: var(--color-primary-light);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin: 0 0 var(--space-sm);
}
.about-heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-md);
  line-height: 1.3;
}
.about-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-xl);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item { text-align: center; }
.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: block;
}
.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-primary-light);
  margin-top: var(--space-xs);
}

/* ============================================
   Popular Services - Carousel per FIGMA
   ============================================ */
.popular-services {
  padding: var(--space-3xl) 0;
  background: #E8F1F7;
}
.popular-services-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: #337AB7;
  margin: 0 0 var(--space-xl);
  padding-left: 0;
}
.services-carousel-wrapper {
  position: relative;
}
.services-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}
.services-carousel::-webkit-scrollbar {
  display: none;
}
.services-carousel.active {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.services-track {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-sm);
}
.service-card {
  flex: 0 0 220px;
  display: block;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.service-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}
.service-card-label {
  display: block;
  padding: var(--space-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #337AB7;
  text-align: center;
}

@media (max-width: 768px) {
  .service-card { flex: 0 0 180px; }
}

/* ============================================
   Info Panels (Document checklist, Dept/Service)
   ============================================ */
.panel-document {
  background: var(--color-document-panel);
  border-radius: var(--radius-lg);
  border-left: 4px solid #D4C97A;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-md);
}
.panel-dept {
  background: var(--color-dept-panel);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.panel-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  margin: 0 0 var(--space-lg);
  color: var(--color-text);
}
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.checklist li::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #28A745;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
}
.panel-dept .info-row {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}
.panel-dept .info-row strong { display: block; margin-top: 2px; }

/* ============================================
   Location Page
   ============================================ */
.location-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  min-height: 500px;
}
@media (max-width: 1024px) {
  .location-layout { grid-template-columns: 1fr; }
}
.gov-list, .wilayat-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.gov-btn, .wilayat-btn {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-primary-light);
  background: white;
  color: var(--color-text);
  font-size: var(--font-size-base);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.gov-btn:hover, .wilayat-btn:hover {
  background: rgba(45, 140, 255, 0.08);
}
.gov-btn.active, .wilayat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.wilayat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.map-container {
  background: var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 400px;
  overflow: hidden;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ============================================
   Hospitals List
   ============================================ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
}
.filter-group {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 36px 6px 20px;
  background: white;
  min-width: 170px;
}
.filter-group label {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.2;
  pointer-events: none;
}
.filter-group::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  pointer-events: none;
}
.filter-select {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.hospitals-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}
@media (max-width: 900px) { .hospitals-layout { grid-template-columns: 1fr; } }
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.hospital-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}
.hospital-card:hover { box-shadow: var(--shadow-md); }
.hospital-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.hospital-card .card-body { padding: var(--space-lg); }
.hospital-card h3 {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.hospital-card .view-link {
  color: var(--color-primary-light);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}
.hospital-card .view-link:hover { text-decoration: underline; }
.hospital-card .detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
.hospital-card .detail svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================
   Single Hospital
   ============================================ */
.hospital-hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.hospital-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,59,102,0.9) 0%, transparent 60%);
}
.hospital-hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: var(--font-size-3xl);
  margin: 0;
  padding: var(--space-xl) var(--space-lg);
}

.hospital-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}
.hospital-tab {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary-light);
  background: white;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hospital-tab:hover {
  background: rgba(45, 140, 255, 0.08);
}
.hospital-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.tab-content { display: none; padding: var(--space-xl) 0; }
.tab-content.active { display: block; }

/* Department cards (single hospital) */
.dept-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.dept-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-md);
  transition: all 0.2s ease;
}
.dept-card:hover { box-shadow: var(--shadow-md); }
.dept-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 140, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dept-card-icon svg { color: var(--color-primary); }
.dept-card h4 {
  margin: 0 0 var(--space-xs);
  font-size: var(--font-size-base);
}
.dept-card p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Doctor cards */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.doctor-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.doctor-card:hover { box-shadow: var(--shadow-md); }
.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-info {
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(180deg, #C7D4E8 0%, #A8BCD8 100%);
  text-align: center;
}
.doctor-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-primary);
  margin: 0 0 4px;
}
.doctor-specialty {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-sm);
}
.doctor-socials {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}
.doctor-socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.2s;
}
.doctor-socials a:hover { opacity: 0.8; color: #fff; }
.doctor-profile-btn {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: auto;
}
.doctor-profile-btn:hover { opacity: 0.9; color: #fff; }

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-md);
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(45, 140, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card h4 { margin: 0 0 4px; font-size: var(--font-size-base); }
.contact-card p { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); }

/* ============================================
   About Page
   ============================================ */
.about-hero {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.about-hero h1 {
  font-size: var(--font-size-4xl);
  padding-top: 120px;
}
.about-hero .subtitle { font-size: var(--font-size-xl); opacity: 0.9; }

.section-block {
  padding: var(--space-3xl) 0;
}
.section-block:nth-child(even) { background: var(--color-bg); }
.section-block h2 {
  font-size: var(--font-size-2xl);
  margin: 0 0 var(--space-xl);
  color: var(--color-text);
}
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 900px) { .about-two-col { grid-template-columns: 1fr; } }
.about-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.about-img-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.benefit-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.benefit-block {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}
.benefit-block h3 {
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
  font-size: var(--font-size-lg);
}
.support-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 768px) { .support-boxes { grid-template-columns: 1fr; } }
.support-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.support-box h3 {
  color: var(--color-primary);
  margin: 0 0 var(--space-lg);
  font-size: var(--font-size-lg);
}

/* ============================================
   Page Hero (generic)
   ============================================ */
.page-hero {
  min-height: 280px;
  background: var(--gradient-header);
  display: flex;
  align-items: flex-end;
}
.page-hero h1 {
  color: white;
  font-size: var(--font-size-3xl);
  margin: 0;
  padding: var(--space-xl) 0;
}

/* ============================================
   Responsive - Mobile Header
   ============================================ */
@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; }
  .header-nav { order: 3; flex: 1 1 100%; max-width: none; }
  .search-wrapper { max-width: none; }
  .location-selector span { display: none; }
  .location-selector::after { content: 'Location'; }
}
