.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.center-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

.center-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.center-video {
  width: 100%;
  height: auto;
  max-height: 400px;
  /* adjust if needed */
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.center-icon {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--primary);
}

.card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.center-address::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 1000;
  content: "\f3c5";
  margin-right: 8px;
  color: var(--primary);
}

.center-address {
  font-style: normal;
  margin: 10px 0;
  color: #555;
}

.directions-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.directions-btn:hover {
  background: var(--primary);
}

/* Swiper Styles */
.center-slider {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}

.center-slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.hero {
  background: linear-gradient(0deg, rgba(128, 0, 0, 0.7), rgba(128, 0, 0, 0.5)), url('images/centers/hero-back.jpg') center/cover no-repeat;
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.swiper-pagination-bullet {
  background: var(--primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-5%) scale(0.7);
  width: 44px;
  height: 44px;
  z-index: 10;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 28px !important;
}
/* 
h4 {
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
} */



/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 250px;
    padding: 80px 0 40px;
  }

  .center-slider {
    height: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .logo img {
    height: 35px;
  }

  /* Hero adjustments */
  .hero {
    padding: 100px 0 60px;
    min-height: 350px;
  }

  /* Centers grid mobile optimization */
  .centers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .center-card {
    padding: 20px;
    margin: 0 5px;
  }

  .center-slider {
    height: auto;
  }

  .card-header {
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .card-header h3 {
    text-align: center;
    line-height: 1.3;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  /* Swiper buttons smaller on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px !important;
    height: 36px !important;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 24px !important;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .center-card {
    padding: 15px;
    margin: 0;
  }

  .centers-grid {
    gap: 1rem;
  }

  .center-slider {
    height: auto;
  }

  .container {
    padding: 0 10px;
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    /* mobile menu on maroon background */
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    width: 100%;
    text-align: center;
  }

  /* Mobile menu link colors on primary background */
  .nav-links a {
    color: var(--white);
  }

  .nav-links a::before {
    background: var(--white);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--white);
  }

  .mobile-menu-btn {
    display: block;
  }
}