
/* ================= CHOOSE SCHOOL ================= */

.choose-school {
  padding: 90px 0;
  background: #ffffff;
}

.choose-school__title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #2b136a;
  margin-bottom: 56px;
}

/* ---------- GRID ---------- */

.choose-school__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ---------- CARD ---------- */

.school-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 360px;
}

.school-card img {
  width: 100%;
  height: 100%;
  /*object-fit: cover;*/
}

/* Overlay */
.school-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.15)
  );
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.school-card__overlay h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.school-card__overlay p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

/* ---------- HOVER (DESKTOP ONLY) ---------- */

@media (hover: hover) {
  .school-card img {
    transition: transform 0.4s ease;
  }

  .school-card:hover img {
    transform: scale(1.05);
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .choose-school__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .school-card img {
    transform: scale(1.08);          /* 👈 image thodi badi */
    transition: transform 0.4s ease;
  }

}

/* Mobile: horizontal scroll */
@media (max-width: 640px) {
  .choose-school__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    margin: 0;
    width: 100%;
  }

   .school-card {
    flex: 0 0 100vw;               /* ✅ exactly 1 card per view */
    max-width: 100%;
    height: 340px;
    scroll-snap-align: center;
    flex: 0 0 calc(100% - 32px);
    border-radius: 0;
  }

  .choose-school__grid::-webkit-scrollbar {
    display: none;
  }
}
