/* ================= ROOT ================= */
:root {
  --red: #ed1c24;
  --black: #252525;
  --white: #f5f5f5;
  --transition: all 0.4s ease;
}

/* ================= CAROUSEL CONTAINER ================= */

.carousel-container {
  position: relative;
  width: 100%;
  padding: 50px 0;
  overflow: hidden;

  max-width: 1320px;
  margin: 0 auto;

}
.home-carousel{
  background: url("../images/Rectangle 27.png") center / cover no-repeat;
}

/* ================= TITLE ================= */
/* .facilities-title {
  font-family: EB Garamond;
  font-size: 36px;
  padding-left: 70px;
  margin-bottom: 40px;
  position: relative;
  font-weight: 400;
}

.facilities-title::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--red);
  top: -3px;
  left: 75px;
} */



.facilities-title {
  font-family: "EB Garamond";
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 1%;
  color: #252525;

  display: flex;
  flex-direction: column; /* stack line + text */
  align-items: flex-start;
  gap: 2px;

  margin-bottom: 35px;
  position: relative;
  /* padding-left: 70px; */
}


/* small line above */
.facilities-title::before {
  content: "";
  width: 32px;          /* very small line */
  height: 4px;
  background: #e11b22;  /* change color if needed */
  border-radius: 2px;
}

/* ================= TRACK ================= */
.carousel-track {
  display: flex;
  gap: 40px;
  padding: 20px 60px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: none; /* ❌ VERY IMPORTANT */

}

/* ================= CARD ================= */
.card {
  flex: 0 0 350px;
  min-width: 350px;
  max-width: 350px;
  height: 450px;
  background: linear-gradient(145deg, #1a1a1a, #000);
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  backface-visibility: hidden;
  /* ✅ ADD THIS */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease;
}

/* ================= HOVER (SAFE) ================= */
.card:hover {
  transform: translateY(-20px) scale(1.04);
}

/* ================= CARD CONTENT ================= */
.card-number {
  position: absolute;
  top: 15px;
  left: 220px;
  font-size: 48px;
  color: rgba(237, 28, 36, 0.6);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

/* ================= CARD IMAGE LAYER ================= */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* ===== IMAGE MAPPING (WORKS WITH DUPLICATION) ===== */

/* Smart Classroom */
/* ================= IMAGE CYCLE (1 → 8) ================= */

/* Smart Classroom (1, 5, 9, 13...) */
/* 1. Smart Classroom */
.card:nth-child(11n + 1)::before {
  background-image: url("../images/Rectangle 62 (1).png");
}

/* 2. Physics Lab */
.card:nth-child(11n + 2)::before {
  background-image: url("../images/Rectangle 62 (3).png");
}

/* 3. Biology Lab */
.card:nth-child(11n + 3)::before {
  background-image: url("../images/Rectangle 62 (2).png");
}

/* 4. Botany Lab */
.card:nth-child(11n + 4)::before {
  background-image: url("../clg-img/WhatsApp\ Image\ 2026-01-17\ at\ 3.33.54\ PM.jpeg");
}

/* 5. Football */
.card:nth-child(11n + 5)::before {
  background-image: url("../clg-img/football.jpeg");
}

/* 6. Gym */
.card:nth-child(11n + 6)::before {
  background-image: url("../clg-img/gym.jpeg");
}

/* 7. Badminton */
.card:nth-child(11n + 7)::before {
  background-image: url("../clg-img/badminton.jpeg");
}

/* 8. Basketball */
.card:nth-child(11n + 8)::before {
  background-image: url("../clg-img/basketball.jpeg");
}

/* 9. Hockey */
.card:nth-child(11n + 9)::before {
  background-image: url("../clg-img/hokey.jpeg");
}

/* 10. Volleyball */
.card:nth-child(11n + 10)::before {
  background-image: url("../clg-img/volleyball.jpeg");
}

/* 11. College Canteen */
.card:nth-child(11n + 11)::before {
  background-image: url("../clg-img/canteen.jpeg");
}

/* Hover zoom */
.card:hover::before {
  transform: scale(1.08);
  opacity: 0.32;
}

/* Keep content above image */
.card > * {
  position: relative;
  z-index: 2;
}

.facilities-card-heading {
  font-family: EB Garamond;
  font-size: 26px;
}

.facilities-card-para {
  font-family: Outfit;
  font-size: 17px;
  margin-top: 14px;
  line-height: 1.5;
}

/* ================= NAV ================= */
.carousel-nav {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.nav-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--black);
  color: #fff;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .carousel-track {
    padding: 20px;
  }
  .facilities-title {
    padding-left: 25px;
  }
  .facilities-title::before {
    left: 30px;
  }
}
