/*---------------------- Hero Section ----------------------*/
.gallery-hero {
  background: url("../images/gallery-hero.JPG") center/cover no-repeat;
  height: clamp(14rem, 40vw, 20rem);
  /* aspect-ratio: 1440 / 320; */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-overlay {
  background: rgba(2, 48, 71, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-content {
  text-align: center;
  color: #ffffff;
  padding: 2rem;
  max-width: 50rem;
}

.gallery-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery-content p {
  font-size: clamp(1rem, 3vw, 1.75rem);
  line-height: 1.6;
}

.gallery-content {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* ================= Gallery Section ================= */

.gallery-section {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #f8fafc;
}

.gallery-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #023047;
}

.gallery-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  color: #126782;
  font-size: 1.2rem;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: auto;
}

/* Item */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

/* Image */
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ================= Modal ================= */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s ease;
  z-index: 999;
}

.image-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  animation: zoomIn 0.4s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #ffb703;
}

/* Animation */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= Responsive ================= */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .modal-img {
    max-width: 95%;
  }

  .close-btn {
    top: 20px;
    right: 25px;
    font-size: 32px;
  }
}



/*----------------- Learning Banner Section -----------------*/
.learning-banner {
  background-color: #8ecae61a;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.learning-banner-content {
  max-width: 60rem;
  margin: 0 auto;
}

.learning-banner h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: #023047;
  line-height: 1.5;
}

/*----------------- CTA Section -----------------*/
.cta-section {
  background-color: #eaf6fb;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #023047;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  background-color: #ffc107;
  color: #000000;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.cta-btn:hover {
  background-color: #e0a800;
  transform: translateY(-0.125rem);
}

@media (max-width: 48rem) {
  .cta-section h2 {
    font-size: 1.4rem;
  }

  .cta-btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
  }
}
