/* =======================================================
   KIBWEZI CATHOLIC HEALTH CENTRE - PROFESSIONAL STYLES
   Level 6 Enterprise Healthcare Website
   ======================================================= */

/* CSS Variables */
:root {
  /* Primary Colors - Deep Forest Teal */
  --primary: #0a5c5c;
  --primary-dark: #064040;
  --primary-light: #0d7a7a;
  --primary-lighter: #e6f4f4;

  /* Secondary Colors - Warm Amber */
  --secondary: #d97706;
  --secondary-dark: #b45309;
  --secondary-light: #f59e0b;

  /* Accent Colors */
  --accent: #0891b2;
  --success: #059669;
  --danger: #dc2626;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #f8fafc;
  --light: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --gray-800: #0f172a;
  --dark: #020617;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

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

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

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

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--gray-600);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
}

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

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

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

/* Emergency Top Bar */
.emergency-topbar {
  background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  position: relative;
  z-index: calc(var(--z-fixed) + 1);
}

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

.emergency-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-item i {
  font-size: 1rem;
}

.emergency-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

.emergency-link:hover {
  color: #fef3c7;
}

.btn-quick-appointment {
  background: var(--white);
  color: var(--danger);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition-base);
}

.btn-quick-appointment:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.pulse-animation {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Header Styles */
.header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.topbar {
  background: var(--gray-800);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}

.topbar a {
  color: var(--white);
}

.topbar a:hover {
  color: var(--secondary-light);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-left: 0.25rem;
  transition: var(--transition-base);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.social-links a.whatsapp:hover {
  background: #25d366;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.sitename {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.navmenu ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu > ul > li {
  position: relative;
}

.navmenu > ul > li > a {
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.navmenu > ul > li > a:hover,
.navmenu > ul > li > a.active {
  color: var(--primary);
  background: var(--primary-lighter);
}

.navmenu .dropdown > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
}

.navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navmenu .dropdown ul li a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--gray-600);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.navmenu .dropdown ul li a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

/* Donate Button in Nav */
.btn-donate-nav {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%) !important;
  color: var(--white) !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-donate-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

/* Quick Search Button */
.quick-search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--light);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  color: var(--gray-500);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.quick-search-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quick-search-btn kbd {
  background: var(--white);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  border: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(10, 92, 92, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #052e2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 92, 92, 0.4);
  color: var(--white);
}

.btn-emergency {
  background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
  color: var(--white);
  border-color: var(--danger);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-emergency:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Section Styles */
.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--gray-500);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 180px;
  padding-bottom: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 92, 92, 0.95) 0%, rgba(6, 64, 64, 0.9) 50%, rgba(10, 92, 92, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--secondary-light);
  position: relative;
}

.hero-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats .stat-item h3 {
  font-size: 2rem;
  color: var(--secondary-light);
  margin-bottom: 0.25rem;
}

.hero-stats .stat-item p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

/* Hero Cards */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.triage-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
}

.triage-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

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

.triage-header h4 {
  font-size: 1.125rem;
  margin: 0;
  flex: 1;
}

.triage-badge {
  font-size: 0.6875rem;
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.triage-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.triage-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
  transition: var(--transition-base);
}

.triage-option:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.triage-option.emergency {
  border-color: #fecaca;
  background: #fef2f2;
}

.triage-option.emergency:hover {
  border-color: var(--danger);
}

.triage-option.emergency i {
  color: var(--danger);
}

.triage-option.urgent i {
  color: var(--warning);
}

.triage-option.routine i {
  color: var(--success);
}

.triage-option i {
  font-size: 1.25rem;
}

.triage-option strong {
  display: block;
  color: var(--gray-800);
  font-size: 0.9375rem;
}

.triage-option span {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.next-available-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.next-available-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.next-available-card .card-content {
  flex: 1;
}

.next-available-card .label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.next-available-card h5 {
  font-size: 1rem;
  margin: 0.25rem 0;
  color: var(--gray-800);
}

.next-available-card .doctor {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.btn-book {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-book:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.insurance-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.insurance-card .label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.insurance-badge {
  background: var(--light);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Quick Services Grid */
.quick-services {
  background: var(--off-white);
  padding: 3rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid transparent;
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: var(--white);
}

.service-icon.maternal {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.service-icon.emergency {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.service-icon.pediatrics {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.service-icon.surgery {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.service-icon.diagnostics {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.service-icon.outpatient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.service-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.service-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.service-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* About Section */
.about-visual {
  position: relative;
}

.about-visual .main-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.floating-card.emergency-float {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 3s ease-in-out infinite;
}

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

.emergency-float .icon {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  font-size: 1.25rem;
}

.emergency-float h4 {
  font-size: 0.9375rem;
  margin: 0;
}

.emergency-float p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}

.experience-badge {
  position: absolute;
  top: 2rem;
  right: -2rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.experience-badge .years {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.value-item {
  display: flex;
  gap: 1rem;
}

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

.value-item h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

/* Department Cards */
.department-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  height: 100%;
}

.department-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.department-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.department-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.department-badge {
  background: var(--white);
  color: var(--primary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.department-badge.emergency {
  background: var(--danger);
  color: var(--white);
}

.department-content {
  padding: 1.5rem;
  position: relative;
}

.department-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: -2.5rem;
  margin-bottom: 1rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.department-icon.emergency {
  background: #fef2f2;
  color: var(--danger);
}

.department-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.department-content p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.department-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.department-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  background: var(--light);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.department-features i {
  color: var(--success);
  font-size: 0.625rem;
}

.department-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
}

.department-link:hover {
  gap: 0.75rem;
}

/* Emergency Banner Section */
.emergency-banner-section {
  padding: 0;
  margin: 3rem 0;
}

.emergency-banner {
  background: linear-gradient(135deg, var(--danger) 0%, #991b1b 100%);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-2xl);
}

.emergency-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.emergency-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.emergency-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.emergency-content p {
  opacity: 0.9;
  margin: 0;
}

.emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--danger);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}

.emergency-btn:hover {
  transform: scale(1.05);
  color: var(--danger);
}

/* Doctor Cards */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.doctor-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.doctor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 92, 92, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

.doctor-card:hover .doctor-overlay {
  opacity: 1;
}

.doctor-overlay .social-links {
  display: flex;
  gap: 0.5rem;
}

.doctor-overlay .social-links a {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.875rem;
}

.doctor-overlay .social-links a:hover {
  background: var(--secondary);
  color: var(--white);
}

.availability-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.availability-badge.available {
  background: var(--success);
  color: var(--white);
}

.availability-badge.busy {
  background: var(--warning);
  color: var(--white);
}

.availability-badge.offline {
  background: var(--gray-400);
  color: var(--white);
}

.doctor-content {
  padding: 1.25rem;
}

.doctor-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.doctor-content .specialty {
  display: block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.doctor-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.doctor-rating i {
  color: var(--secondary-light);
  font-size: 0.75rem;
}

.doctor-rating span {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: 0.25rem;
}

.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.doctor-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.doctor-meta i {
  color: var(--primary);
}

.doctor-content .btn-book {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary-lighter);
  color: var(--primary);
  padding: 0.625rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition-base);
}

.doctor-content .btn-book:hover {
  background: var(--primary);
  color: var(--white);
}

/* Health Tips / Blog Section */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  height: 100%;
}

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

.blog-card.featured {
  height: 100%;
}

.blog-card.featured .blog-image {
  height: 280px;
}

.blog-card.small {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.blog-card.small .blog-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card.small .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-content {
  padding: 1.5rem;
}

.blog-card.small .blog-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-content h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

.read-more:hover {
  gap: 0.75rem;
}

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

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: var(--secondary-light);
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h5 {
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

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

/* Donation Section */
.donation-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.donation-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.donation-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.donation-impact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.impact-item .amount {
  font-weight: 700;
  color: var(--secondary-light);
  min-width: 100px;
}

.impact-item .impact {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.donation-visual {
  position: relative;
}

.donation-visual img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

.donation-stats {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.donation-stats .stat {
  text-align: center;
}

.donation-stats .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.donation-stats .label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding-top: 4rem;
}

.footer-top {
  padding-bottom: 3rem;
}

.footer-brand .logo img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

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

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h5,
.footer-contact h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9375rem;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 0.25rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-contact i {
  color: var(--primary-light);
  margin-top: 0.25rem;
}

.footer-contact a {
  color: var(--gray-300);
}

.footer-contact a:hover {
  color: var(--secondary-light);
}

.footer-bottom {
  background: var(--gray-900);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  font-size: 0.875rem;
  margin: 0;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal a {
  color: var(--gray-300);
}

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

.credits {
  color: var(--gray-500);
}

.credits a {
  color: var(--secondary-light);
}

/* Scroll Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: var(--z-fixed);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 4px solid var(--primary-lighter);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Quick Search Modal */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--gray-400);
}

.search-input-wrapper input {
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
  background: var(--light);
}

.search-input-wrapper input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-lighter);
}

.search-shortcut {
  position: absolute;
  right: 1rem;
}

.search-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.search-category {
  padding: 0.5rem 1rem;
  background: var(--light);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition-base);
}

.search-category.active,
.search-category:hover {
  background: var(--primary);
  color: var(--white);
}

.search-empty {
  text-align: center;
  padding: 3rem;
  color: var(--gray-400);
}

.search-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding-top: 150px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cards {
    margin-top: 2rem;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
  }

  .floating-card.emergency-float {
    left: 1rem;
    bottom: 1rem;
  }

  .experience-badge {
    right: 1rem;
  }

  .donation-card {
    padding: 2rem;
  }

  .footer-legal {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stats .stat-item h3 {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .emergency-content {
    flex-direction: column;
    text-align: center;
  }

  .emergency-btn {
    width: 100%;
    justify-content: center;
  }

  .department-card {
    margin-bottom: 1rem;
  }

  .donation-buttons {
    flex-direction: column;
  }

  .donation-buttons .btn {
    width: 100%;
  }

  .donation-stats {
    position: static;
    margin-top: 1rem;
    justify-content: center;
  }

  .blog-card.small {
    flex-direction: column;
  }

  .blog-card.small .blog-image {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .trust-badges {
    gap: 0.5rem;
  }

  .badge-item {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .triage-card {
    padding: 1rem;
  }

  .next-available-card {
    flex-direction: column;
    text-align: center;
  }

  .donation-card {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .scroll-top,
  .emergency-topbar,
  .hero-actions,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    color: #000;
  }
}