/* ===== Optimized Dark Theme Variables ===== */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5649c0;
  --primary-light: #a29bfe;
  --secondary: #00cec9;
  --dark: #0f0f1b;
  --darker: #0a0a12;
  --light: #f1f1f6;
  --gray: #6d6d80;
  --light-gray: #2a2a3a;
  --white: #ffffff;
  --glass: rgba(21, 21, 36, 0.7);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --header-height: 80px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* ===== Base & Layout Styles ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--light);
  background: linear-gradient(135deg, var(--darker), var(--dark));
  padding-top: var(--header-height);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  cursor: pointer;
  display: block;
}

.logo:hover {
  opacity: 0.9;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 1.5rem;
}

.logo p {
  font-size: 0.8rem;
  color: var(--gray);
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.navbar a.active,
.navbar a:hover {
  color: var(--white);
}

.navbar a.active::after,
.navbar a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #00a8a8);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: transparent;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, rgba(15, 15, 27, 0.9), rgba(10, 10, 18, 0.9)), 
              url('../images/doctor-hero.jpg') center/cover fixed;
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.15), transparent 60%);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s ease;
}

.hero .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-header p {
  color: var(--gray);
  max-width: 700px;
  margin-inline: auto;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--primary-light);
  font-weight: 400;
}

/* ===== Grid & Card Components ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(108, 92, 231, 0.3);
}

/* ===== Services Section ===== */
.services-grid.grid.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  text-align: center;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  background: rgba(108, 92, 231, 0.1);
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-inline: auto;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(108, 92, 231, 0.2);
  transform: scale(1.1);
}

/* ===== About Section ===== */
.about-preview {
  position: relative;
}

.about-wrapper {
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
}



.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.02);
}

/* ===== Visiting Hours ===== */
.visiting-hours {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.visiting-hours::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 206, 201, 0.05), transparent 60%);
  z-index: 0;
}

.visiting-hours .section-header {
  margin-bottom: 3rem;
}

.visiting-hours .section-header h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.visiting-hours .section-header .subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 400;
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.schedule-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(108, 92, 231, 0.3);
}

.schedule-card.highlight {
  border-left: 4px solid var(--primary);
}

.schedule-icon {
  text-align: center;
  margin-bottom: 1.2rem;
}

.schedule-icon i {
  font-size: 2.5rem;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.schedule-card:hover .schedule-icon i {
  background: rgba(108, 92, 231, 0.2);
  transform: rotate(10deg);
}

.schedule-content {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.schedule-content h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.hospital-label {
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.schedule-details {
  margin-top: 1.2rem;
}

.schedule-details > div {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.schedule-details i {
  margin-right: 0.7rem;
  color: var(--primary);
  width: 16px;
}

.schedule-details span {
  color: var(--light);
  font-size: 0.95rem;
}

.schedule-actions {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-call, .schedule-actions .btn-outline {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  width: 100%;
  font-size: 0.95rem;
}

.btn-call {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.btn-call:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.schedule-actions .btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-top: 0.5rem;
}

.schedule-actions .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.schedule-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

.schedule-cta .btn {
  margin: 0 0.5rem;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--darker), #080811);
  color: var(--white);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.1), transparent 60%);
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer h3, .footer h4 {
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h3::after, .footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer a {
  color: var(--gray);
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== Form Styles ===== */
.contact-form {
  position: relative;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.form-group {
  position: relative;
  animation: fadeInUp 0.5s ease;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
  transform: translateY(-2px);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ff6b6b;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00cec9;
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(0, 206, 201, 0.1);
  animation: fadeInUp 0.4s ease;
}

.form-success i {
  font-size: 1.2rem;
}

/* ===== Contact Page Specific Styles ===== */
.contact-section {
  padding: 4rem 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  transition: var(--transition);
  margin-bottom: 1rem;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.info-card h3 i {
  color: var(--primary);
  font-size: 1.2rem;
}

.location-item {
  margin-bottom: 1.5rem;
}

.location-item:last-child {
  margin-bottom: 0;
}

.map-container {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.emergency-card {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
  border-left: 4px solid #ff6b6b;
}

.emergency-card h3 {
  color: #ff6b6b;
}

.emergency-card h3 i {
  color: #ff6b6b;
}

/* Footer Contact Styles */
.footer-contact h5 {
  font-size: 1rem;
  color: var(--primary-light);
  margin: 1rem 0 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact h5 i {
  color: var(--primary);
  font-size: 1.2rem;
}

.footer-contact-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-contact-columns div {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.footer-contact-columns div:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

/* ===== Trust Indicators ===== */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem; /* Increased gap for better spacing */
  margin-bottom: 2rem;
  justify-items: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem; /* Slightly increased padding for balance */
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  transition: var(--transition);
  width: 100%;
  max-width: 250px; /* Ensures consistent item width */
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.trust-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.trust-icon i {
  color: var(--primary);
  font-size: 1.5rem;
}

.trust-value {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ===== Emergency Contact ===== */
.emergency-contact {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.2rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.emergency-contact h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-light);
}

.emergency-contact h5 i {
  color: var(--primary);
}

.emergency-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.emergency-number:hover {
  color: var(--primary-light);
}

.availability {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ===== Footer Resources ===== */
.footer-resources {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-resources h5 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-light);
}

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.resource-links a:hover {
  color: var(--primary-light);
}

/* ===== Footer Bottom Content ===== */
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-extras {
  display: flex;
  align-items: center;
}

.policy-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.policy-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.policy-links a:hover {
  color: var(--primary-light);
}

.policy-links span {
  color: var(--gray);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.back-to-top a:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
}


/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .trust-item {
    max-width: 300px; /* Slightly wider for tablet balance */
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-extras {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .navbar {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, rgba(21, 21, 36, 0.9), rgba(33, 33, 57, 0.85));
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 999;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar.active {
    left: 0;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .navbar a {
    padding: 1rem;
    font-size: 1.1rem;
    display: block;
    border-radius: var(--radius);
  }

  .navbar a:hover,
  .navbar a.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--white);
  }

  .navbar a.active::after,
  .navbar a:hover::after {
    display: none;
  }

  .header .btn-primary {
    display: none;
    width: 100%;
    max-width: 250px;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .cols-2, .cols-3, .services-grid.grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .service-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

  .schedule-cards {
    grid-template-columns: 1fr;
  }

  .visiting-hours .section-header h2 {
    font-size: 2rem;
  }

  .schedule-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .schedule-cta .btn {
    margin: 0;
    width: 100%;
    max-width: 300px;
  }

  .contact-section {
    padding: 3rem 0;
  }

  .contact-form, 
  .contact-info {
    width: 100%;
  }

  .map-container {
    height: 180px;
  }

  .form {
    padding: 1.5rem;
  }

  .footer-contact-columns {
    grid-template-columns: 1fr;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }

  .footer-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }

  .services-container .text-center {
    display: flex;
    justify-content: center;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .trust-item {
    max-width: 200px;
  }

  .policy-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .policy-links span {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 6rem 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .fullscreen-contact .form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
  }

  .emergency-section .info-card {
    padding: 1.5rem;
  }

  .locations-section .map-container {
    height: 200px;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Smaller gap for mobile */
  }

 .trust-item {
    max-width: 250px; /* Consistent width for mobile */
    padding: 1.2rem; /* Slightly reduced padding for mobile */
  }
  .trust-icon {
    width: 45px;
    height: 45px;
  }

  .trust-icon i {
    font-size: 1.3rem;
  }

  .trust-value {
    font-size: 1.3rem;
  }
}

@media (pointer: coarse) {
  .navbar a {
    padding: 1.2rem;
    font-size: 1.2rem;
  }

  .btn, .service-card {
    min-height: 48px;
    padding: 1.5rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.schedule-card.highlight:nth-child(1) {
  border-left: 4px solid var(--primary);
}

.schedule-card.highlight:nth-child(2) {
  border-left: 4px solid var(--secondary);
}

.footer-contact .fa-map-marker-alt {
  min-width: 20px;
  text-align: center;
}

/* ===== Fullscreen Contact Form ===== */
@media (min-width: 993px) {
  .fullscreen-contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .fullscreen-contact .contact-form {
    display: flex;
    justify-content: center;
  }

  .fullscreen-contact .form {
    width: 100%;
    max-width: 1200px;
  }

  .locations-section .grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    max-width: 350px;
  }

  .footer-links {
    justify-self: center;
  }

  .footer-contact {
    max-width: 350px;
  }

  .footer-contact-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-contact-columns div {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
  }
}

/* ===== Emergency Section ===== */
.emergency-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
  margin-top: -2rem;
  padding-top: 2rem;
}

.emergency-section .info-card {
  max-width: 1200px;
  width: 100%;
  justify-items: center;
}

/* ===== Locations Section ===== */
.locations-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.locations-section .info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.locations-section .map-container {
  margin-top: 1rem;
  height: 250px;
}

.locations-section .map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.locations-section .info-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.locations-section .info-card p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.locations-section .info-card p i {
  color: var(--primary);
  min-width: 18px;
  text-align: center;
  margin-top: 0.2rem;
}

/* ===== Contact Page Responsive Fix ===== */
@media (max-width: 992px) {
  .fullscreen-contact {
    min-height: auto;
    padding: 3rem 0;
  }

  .fullscreen-contact .form {
    width: 100%;
    max-width: 100%;
  }

  .emergency-section {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .locations-section .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .locations-section .map-container {
    height: 220px;
  }
}