/* Gyermekrét Rendelő - Family-Friendly Pediatric Website */
:root {
  /* Family-friendly pediatric color palette */
  --primary-teal: #4db6ac;
  --primary-cyan: #80deea;
  --primary-green: #81c784;
  --primary-blue: #64b5f6;
  --accent-blue: #2196f3;
  --accent-teal: #00897b;
  --accent-yellow: #ffd54f;
  --accent-pink: #f48fb1;

  /* Neutral colors */
  --neutral-dark: #333333;
  --neutral-gray: #757575;
  --neutral-light: #f5f5f5;
  --white: #ffffff;
  --off-white: #fafafa;

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

  /* Typography */
  --font-family-sans:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: "Quicksand", sans-serif;
  --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: 3.5rem;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
  --transition: all 0.3s ease;
}

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

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

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--neutral-dark);
  background: #ebf5f0; /* Slightly deeper meadow tint */
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(129, 199, 132, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 213, 79, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(128, 222, 234, 0.2) 0%,
      transparent 60%
    );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Hero Header */
.site-header {
  background: linear-gradient(
    135deg,
    var(--primary-teal) 0%,
    var(--primary-cyan) 100%
  );
  /* Colorful & Randomized flower pattern overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill-opacity='0.12'%3E%3C!-- White Flower --%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='40' cy='30' r='8'/%3E%3Ccircle cx='52' cy='38' r='8'/%3E%3Ccircle cx='46' cy='52' r='8'/%3E%3Ccircle cx='34' cy='52' r='8'/%3E%3Ccircle cx='28' cy='38' r='8'/%3E%3C/g%3E%3C!-- Yellow Flower --%3E%3Cg fill='%23ffd54f'%3E%3Ccircle cx='140' cy='60' r='6'/%3E%3Ccircle cx='150' cy='66' r='6'/%3E%3Ccircle cx='146' cy='76' r='6'/%3E%3Ccircle cx='134' cy='76' r='6'/%3E%3Ccircle cx='130' cy='66' r='6'/%3E%3C/g%3E%3C!-- Pink Flower --%3E%3Cg fill='%23f48fb1'%3E%3Ccircle cx='80' cy='150' r='7'/%3E%3Ccircle cx='90' cy='157' r='7'/%3E%3Ccircle cx='85' cy='168' r='7'/%3E%3Ccircle cx='75' cy='168' r='7'/%3E%3Ccircle cx='70' cy='157' r='7'/%3E%3C/g%3E%3C!-- Small White Flower --%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='170' cy='140' r='5'/%3E%3Ccircle cx='178' cy='145' r='5'/%3E%3Ccircle cx='175' cy='153' r='5'/%3E%3Ccircle cx='165' cy='153' r='5'/%3E%3Ccircle cx='162' cy='145' r='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  color: var(--white);
  padding: var(--spacing-md) 0;
  position: relative;
  overflow: hidden;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

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

.logo-wrapper picture img,
.logo {
  max-width: 80px;
  height: auto;
  border-radius: var(--border-radius);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.header-tagline {
  text-align: left;
  margin-top: 0;
}

.header-tagline h1 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-tagline .subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.header-info {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-info p {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Main Content */

/* Misty whiteish + colorful smaller flowers */
#main-content {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 200 200'%3E%3Cg fill-opacity='0.15'%3E%3Cg fill='%23ffd54f'%3E%3Ccircle cx='30' cy='25' r='6'/%3E%3Ccircle cx='38' cy='31' r='6'/%3E%3Ccircle cx='34' cy='40' r='6'/%3E%3Ccircle cx='26' cy='40' r='6'/%3E%3Ccircle cx='22' cy='31' r='6'/%3E%3C/g%3E%3Cg fill='%23f48fb1'%3E%3Ccircle cx='110' cy='45' r='5'/%3E%3Ccircle cx='117' cy='50' r='5'/%3E%3Ccircle cx='114' cy='57' r='5'/%3E%3Ccircle cx='107' cy='57' r='5'/%3E%3Ccircle cx='104' cy='50' r='5'/%3E%3C/g%3E%3Cg fill='%2380deea'%3E%3Ccircle cx='60' cy='120' r='5'/%3E%3Ccircle cx='67' cy='125' r='5'/%3E%3Ccircle cx='64' cy='133' r='5'/%3E%3Ccircle cx='57' cy='133' r='5'/%3E%3Ccircle cx='54' cy='125' r='5'/%3E%3C/g%3E%3Cg fill='%23ffab91'%3E%3Ccircle cx='135' cy='110' r='4'/%3E%3Ccircle cx='140' cy='114' r='4'/%3E%3Ccircle cx='138' cy='119' r='4'/%3E%3Ccircle cx='133' cy='119' r='4'/%3E%3Ccircle cx='131' cy='114' r='4'/%3E%3C/g%3E%3Cg fill='%23ce93d8'%3E%3Ccircle cx='85' cy='80' r='4'/%3E%3Ccircle cx='89' cy='83' r='4'/%3E%3Ccircle cx='87' cy='87' r='4'/%3E%3Ccircle cx='83' cy='87' r='4'/%3E%3Ccircle cx='81' cy='83' r='4'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='20' cy='100' r='3'/%3E%3Ccircle cx='23' cy='102' r='3'/%3E%3Ccircle cx='22' cy='106' r='3'/%3E%3Ccircle cx='19' cy='106' r='3'/%3E%3Ccircle cx='18' cy='102' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 245, 230, 0.8) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(240, 248, 255, 0.8) 0%,
      transparent 50%
    ),
    #fafcfc;
  background-size:
    150px 150px,
    100% 100%,
    100% 100%,
    auto;
  background-position:
    top left,
    top left,
    top left,
    top left;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

@media (max-width: 768px) {
  #main-content {
    background:
      radial-gradient(
        circle at 50% 50%,
        rgba(255, 245, 230, 0.6) 0%,
        rgba(250, 252, 252, 0.9) 100%
      ),
      #fafcfc;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
}

.main-container {
  background: #fdfdfd;
  background-image: none;
  margin: calc(var(--spacing-lg) * -1) auto var(--spacing-xl);
  max-width: 800px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Meadow Footer Decoration */
.main-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 L1200,120 L1200,100 C1100,110 1000,90 900,100 C800,110 700,90 600,100 C500,110 400,90 300,100 C200,110 100,90 0,100 Z' fill='%2381c784' fill-opacity='0.1'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%23ffd54f' fill-opacity='0.2'/%3E%3Ccircle cx='300' cy='95' r='4' fill='%23f48fb1' fill-opacity='0.2'/%3E%3Ccircle cx='550' cy='105' r='3' fill='%2380deea' fill-opacity='0.2'/%3E%3Ccircle cx='800' cy='98' r='5' fill='%23ffd54f' fill-opacity='0.2'/%3E%3Ccircle cx='1050' cy='102' r='3' fill='%23f48fb1' fill-opacity='0.2'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  opacity: 0.4;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

/* Doctors Section */
.doctors-section {
  background: #f1f9f8; /* Slightly deeper teal tint for better visibility */
  /* Subtle dot grid pattern */
  background-image: radial-gradient(
    rgba(77, 182, 172, 0.15) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  color: var(--neutral-dark);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(77, 182, 172, 0.2);
  margin-top: var(--spacing-md);
}

.doctors-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--primary-teal);
  font-family: var(--font-family-display);
}

.doctor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
}

.doctor-card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--neutral-dark);
  position: relative;
  overflow: hidden;
  border-left: 8px solid var(--primary-teal);
}

/* Postcard "Sticker" Detail */
.doctor-card::before {
  content: "♥";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0.2;
  transition: var(--transition);
}

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

/* 4 Distinct Colors for distinguishable cards */
.doctor-card:nth-child(4n + 1) {
  border-left-color: #4db6ac; /* Teal */
}
.doctor-card:nth-child(4n + 1)::before {
  color: #4db6ac;
}

.doctor-card:nth-child(4n + 2) {
  border-left-color: #ec407a; /* Rose */
}
.doctor-card:nth-child(4n + 2)::before {
  color: #ec407a;
}

.doctor-card:nth-child(4n + 3) {
  border-left-color: #ffa000; /* Amber */
}
.doctor-card:nth-child(4n + 3)::before {
  color: #ffa000;
}

.doctor-card:nth-child(4n + 4) {
  border-left-color: #7e57c2; /* Violet */
}
.doctor-card:nth-child(4n + 4)::before {
  color: #7e57c2;
}

.doctor-card h3 {
  color: var(--neutral-dark);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.doctor-title {
  color: var(--neutral-gray);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
  font-style: italic;
  line-height: 1.3;
}

.doctor-contact p {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
}

.doctor-contact i {
  width: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Icon colors matching the card accent */
.doctor-card:nth-child(4n + 1) i {
  color: #4db6ac;
}
.doctor-card:nth-child(4n + 2) i {
  color: #ec407a;
}
.doctor-card:nth-child(4n + 3) i {
  color: #ffa000;
}
.doctor-card:nth-child(4n + 4) i {
  color: #7e57c2;
}

.doctor-contact a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.doctor-contact a:hover {
  text-decoration-color: currentColor;
}

/* Schedule Section */
.schedule-section {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-light);
}

.schedule-intro {
  font-size: var(--font-size-xl);
  color: var(--primary-blue);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-weight: 600;
}

.section-title {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid rgba(77, 182, 172, 0.1);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-teal);
}

.badge-warning {
  background: var(--accent-yellow);
  color: var(--neutral-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

table.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--font-size-base);
}

table.table thead {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--accent-blue) 100%
  );
  color: var(--white);
}

table.table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

table.table th i {
  margin-right: 8px;
}

table.table tbody tr {
  border-bottom: 1px solid var(--neutral-light);
  transition: var(--transition);
}

table.table tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

table.table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

table.table td:first-child {
  font-weight: 600;
  color: var(--primary-blue);
}

/* Alert Styles */
.alert {
  background: linear-gradient(135deg, #fff3cd 0%, #ffecb5 100%);
  border-left: 4px solid #ffc107;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #ffc107, #ff9800);
}

.alert i {
  color: #ff9800;
  margin-right: var(--spacing-xs);
}

/* Info Sections */
.info-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.info-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-light);
  transition: var(--transition);
}

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

.info-card h3 {
  color: var(--primary-blue);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  border-bottom: 2px solid var(--neutral-light);
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
}

.info-card li::before {
  content: "•";
  color: var(--primary-teal);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-card strong {
  color: var(--neutral-dark);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--neutral-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  opacity: 0.8;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

  .branding {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .header-tagline {
    text-align: center;
  }

  .header-info {
    text-align: center;
    width: 100%;
  }

  .header-info p {
    justify-content: center;
  }

  .main-container {
    margin: var(--spacing-md) var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--border-radius);
  }

  .doctors-section,
  .schedule-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .doctor-cards {
    grid-template-columns: 1fr;
  }

  .main-container .container {
    padding: 0;
  }

  .hero-section {
    gap: var(--spacing-lg);
  }

  .table-container {
    margin: 0;
    width: 100%;
  }

  table.table th,
  table.table td {
    padding: 0.75rem 1rem;
    font-size: 0.9em;
  }

  .lang-switcher a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .btn-accessibility {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .info-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 100px;
  }

  .header-info p {
    font-size: var(--font-size-xl);
  }

  .main-container {
    padding: var(--spacing-md) var(--spacing-xs);
  }

  .doctors-section,
  .schedule-section {
    padding: var(--spacing-md) var(--spacing-xs);
  }
}

/* Animation for subtle effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-container {
  animation: fadeIn 0.6s ease-out;
}

.doctor-card,
.info-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.doctor-card:nth-child(1) {
  animation-delay: 0.1s;
}
.doctor-card:nth-child(2) {
  animation-delay: 0.2s;
}
.doctor-card:nth-child(3) {
  animation-delay: 0.3s;
}
.doctor-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* CTA Container */
.cta-container {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(
    135deg,
    var(--neutral-light) 0%,
    var(--white) 100%
  );
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--neutral-light);
}

.cta-title {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.cta-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Emergency Box Styles */
.info-sections .emergency-box {
  background: #fff5f5; /* Soft Rose tint */
  border: 2px solid rgba(236, 64, 122, 0.2);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.info-sections .emergency-box h3 {
  color: #ec407a;
  justify-content: center;
  border-bottom-color: rgba(236, 64, 122, 0.1);
}

.emergency-main-notice {
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--neutral-dark);
}

.emergency-main-notice strong {
  color: #d81b60;
  display: block;
  font-size: 1.3rem;
  margin-top: 0.25rem;
}

.hospital-detail {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px dashed rgba(236, 64, 122, 0.3);
  margin-bottom: var(--spacing-md);
}

.hospital-detail .label {
  color: #d81b60 !important;
  margin-bottom: 0.5rem;
}

.emergency-contacts {
  display: grid;
  gap: var(--spacing-md);
}

.emergency-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.emergency-item .label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--neutral-dark);
}

.emergency-item address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--neutral-gray);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ec407a;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-pill);
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(236, 64, 122, 0.2);
  transition: var(--transition);
}

.phone-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 64, 122, 0.3);
  background: #d81b60;
}

.phone-link.secondary {
  background: #f06292;
}

.phone-link.secondary:hover {
  background: #ec407a;
}

.info-link {
  margin-top: var(--spacing-md);
}

.info-card-full {
  margin-top: var(--spacing-lg);
  grid-column: 1 / -1;
}

.service-area-intro {
  margin-bottom: var(--spacing-md);
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

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

.schedule-updated {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.cta-title {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.cta-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.cta-button {
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: white;
}

.cta-phone {
  background: var(--primary-teal);
}

.cta-email {
  background: var(--primary-blue);
}

/* Accessibility Helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accessibility-toolbar {
  background: #333;
  color: white;
  padding: 5px 0;
  font-size: 0.8rem;
}

.accessibility-toolbar .container {
  display: flex;
  justify-content: flex-end;
}

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

.lang-switcher {
  display: flex;
  gap: var(--spacing-xs);
  font-weight: 700;
}

.lang-switcher a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
  padding: 2px 4px;
}

.lang-switcher a:hover {
  color: white;
}

.lang-switcher a.active {
  color: white;
  border-bottom: 2px solid var(--primary-teal);
}

.btn-accessibility {
  background: #444;
  color: white;
  border: 1px solid #666;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-accessibility:hover {
  background: #555;
}

.high-contrast a {
  color: #ff0 !important;
  text-decoration: underline !important;
}

/* Opening Hours Tiles */
.info-sections .opening-hours-card {
  background: #f1f9f8 !important; /* Bluish teal tint */
  background-image: radial-gradient(
    rgba(77, 182, 172, 0.15) 1px,
    transparent 1px
  ) !important;
  background-size: 20px 20px !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(77, 182, 172, 0.2) !important;
}

.day-tiles-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

@media (max-width: 900px) {
  .day-tiles-container {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

.day-tile {
  background: white;
  border: 1px solid rgba(77, 182, 172, 0.2);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.day-tile .day-name {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.day-tile .day-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neutral-dark);
}

.day-tile.highlight {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
}

.day-tile.highlight .day-name {
  color: rgba(255, 255, 255, 0.9);
}

.day-tile.highlight .day-time,
.day-tile.highlight .day-time a {
  color: white;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.day-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-teal);
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid white;
}

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

.scroll-top:hover {
  transform: translateY(-5px);
  background: var(--accent-teal);
}

/* Print Styles - Optimized for fridge display */
@media print {
  body {
    background: white !important;
    background-image: none !important;
    padding: 0;
  }

  .site-header,
  .site-footer,
  .scroll-top,
  .emergency-box,
  .doctors-section h2 {
    display: none !important;
  }

  .main-container {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: white !important;
  }

  .hero-section {
    grid-template-columns: 1fr !important;
    margin: 0 !important;
  }

  .schedule-section {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .schedule-section h2 {
    color: black !important;
    text-align: left !important;
    font-size: 1.5rem !important;
  }

  .table-container {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }

  table.table thead {
    background: #f0f0f0 !important;
    color: black !important;
  }

  table.table td,
  table.table th {
    border: 1px solid #eee;
    padding: 8px !important;
    color: black !important;
  }

  .alert {
    border: 1px solid #ccc !important;
    background: white !important;
    color: black !important;
    margin: 10px 0 !important;
  }

  .doctor-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-top: 30px !important;
  }

  .doctor-card {
    border: 1px solid #ccc !important;
    width: 45% !important;
    page-break-inside: avoid;
    box-shadow: none !important;
    background: white !important;
  }
}

/* High Contrast Mode Overrides - MUST BE AT THE END */
body.high-contrast {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}

body.high-contrast .site-header,
body.high-contrast .site-footer,
body.high-contrast .main-container,
body.high-contrast .doctors-section,
body.high-contrast .schedule-section,
body.high-contrast .emergency-box,
body.high-contrast .hospital-detail,
body.high-contrast .doctor-card,
body.high-contrast .info-card,
body.high-contrast .opening-hours-card,
body.high-contrast .day-tile,
body.high-contrast .alert,
body.high-contrast .header-info,
body.high-contrast table.table {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast .site-header {
  border-bottom: 4px solid #ff0 !important;
}

body.high-contrast .doctor-card,
body.high-contrast .alert,
body.high-contrast .hospital-detail {
  border: 2px solid #ff0 !important;
}

body.high-contrast .doctor-card::before {
  display: none;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast i,
body.high-contrast .schedule-intro,
body.high-contrast .section-title,
body.high-contrast .label,
body.high-contrast .day-name,
body.high-contrast table.table td:first-child,
body.high-contrast .emergency-main-notice strong {
  color: #ff0 !important;
}

body.high-contrast .day-time,
body.high-contrast .emergency-main-notice,
body.high-contrast .emergency-item address,
body.high-contrast .subtitle,
body.high-contrast .text-muted,
body.high-contrast p {
  color: #fff !important;
}

body.high-contrast table.table thead {
  background: #000 !important;
  color: #ff0 !important;
  border-bottom: 2px solid #ff0 !important;
}

body.high-contrast table.table thead th i {
  color: #ff0 !important;
}

body.high-contrast table.table td,
body.high-contrast table.table th {
  border: 1px solid #fff !important;
}

body.high-contrast .phone-link {
  background: #ff0 !important;
  color: #000 !important;
  border: 2px solid #fff !important;
  box-shadow: none !important;
}

body.high-contrast .phone-link i {
  color: #000 !important;
}

body.high-contrast .scroll-top {
  background: #ff0 !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}

body.high-contrast .logo {
  filter: grayscale(1) contrast(3) invert(1);
}

body.high-contrast .badge-warning {
  background: #000 !important;
  color: #ff0 !important;
  border: 1px solid #ff0 !important;
}

body.high-contrast a {
  color: #ff0 !important;
  text-decoration: underline !important;
}
