:root {
  --fac-gap: 16px;
  --fac-item-width: 320px;
  --fac-item-height: 440px;
  --fac-duration: 18s;
}

/* FULL WIDTH */
.fac-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 16px 0;
   background: linear-gradient(rgb(238, 245, 255), rgb(255, 255, 255));
}

.fac-carousel__track {
  display: flex;
  gap: var(--fac-gap);
  white-space: nowrap;
  will-change: transform;
  animation: fac-scroll var(--fac-duration) linear infinite;
}

.fac-slides {
  display: flex;
  gap: var(--fac-gap);
}

.fac-slide {
  flex: 0 0 var(--fac-item-width);
  width: var(--fac-item-width);
  height: var(--fac-item-height);
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.fac-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pause on hover */
.fac-carousel:hover .fac-carousel__track {
  animation-play-state: paused;
}

/* Animation */
@keyframes fac-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Fade edges */
.fac-fade-left,
.fac-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 5;
}

.fac-fade-left {
  left: 0;
  background: linear-gradient(90deg, #fafafa 0%, transparent 100%);
}

.fac-fade-right {
  right: 0;
  background: linear-gradient(-90deg, #fafafa 0%, transparent 100%);
}

/* SECTION */
.facilities-section {
  padding: 40px 70px;
   background: linear-gradient(rgb(238, 245, 255), rgb(255, 255, 255));
}

.facilities-section h2 {
   font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-size: 40px;
  text-transform: uppercase;
  color: #2c3e50;
  text-align: center;
  position: relative;
  margin-bottom: 25px;
}

.facilities-section h2::after {
  content: "";
  width: 50px;
  height: 4px;
 background: #007bff;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
}

/* -------------------------------------- */
/* RESPONSIVE BREAKPOINTS                 */
/* -------------------------------------- */

/* Tablets (900px ↓) */
@media (max-width: 900px) {
  :root {
    --fac-item-width: 260px;
    --fac-item-height: 360px;
  }

  .facilities-section {
    padding: 35px 40px;
  }

  .facilities-section h2 {
    font-size: 34px;
  }
}

/* Mobile (600px ↓) */
@media (max-width: 600px) {
  :root {
    --fac-item-width: 200px;
    --fac-item-height: 270px;
  }

  .facilities-section {
    padding: 30px 20px;
  }

  .facilities-section h2 {
    font-size: 28px;
  }

  .fac-fade-left,
  .fac-fade-right {
    width: 50px;
  }
}

/* Small Mobile (420px ↓) */
@media (max-width: 420px) {
  :root {
    --fac-item-width: 160px;
    --fac-item-height: 220px;
  }

  .facilities-section h2 {
    font-size: 24px;
  }

  .fac-fade-left,
  .fac-fade-right {
    width: 40px;
  }
}
