:root {
  --primary-color: #2a7f8c;
  --primary-dark: #1f5f6a;
  --secondary: #f0f4f8;
  --text-color: #333;
  --heading-font: "Merriweather", serif;
  --body-font: "Open Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background Image Styling */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/images/blur-hospital.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Dark Overlay for Readability */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}

/* Clinic Card Styles */
.clinic-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: block;
  background-color: rgba(255, 255, 255, 0.95); /* Slight transparency */
  backdrop-filter: blur(10px);
}

.clinic-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.clinic-card:hover .arrow-icon {
  transform: translateX(8px);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

/* Address Link Styling */
.address-link {
  transition: color 0.3s ease;
}

.address-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Focus states */
.clinic-card:focus-visible,
.address-link:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
