:root {
  --primary-color: #032d55;
  --primarycolor: #0459a5;
  --secondary-color: #ff4d4d;
  --thirdcolor: #ffd967;
}

body {
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Hero Section */
.hero-gallery {
  background: linear-gradient(rgba(3, 45, 85, 0.8), rgba(3, 45, 85, 0.8)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.hero-gallery h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--thirdcolor);
  animation: fadeInDown 1s ease-in-out;
}

.hero-gallery p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #eee;
  animation: fadeInUp 1.2s ease-in-out;
}

/* Section Title */
.facilities-section h2 {
  color: var(--primary-color);
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
  position: relative;
}

.facilities-section h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background-color: var(--thirdcolor);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Gallery Grid */
.row {
  justify-content: center; /* center all cards */
}

.gallery-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 280px; /* ensures all cards are equal height */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-img:hover img {
  transform: scale(1.08) rotate(1deg);
}

.gallery-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Event Title */
.event-title {
  text-align: center;
  margin-top: 12px;
  color: var(--primarycolor);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.event-title:hover {
  color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer-note {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .gallery-img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-gallery {
    padding: 70px 20px;
  }

  .hero-gallery h1 {
    font-size: 2rem;
  }

  .facilities-section h2 {
    font-size: 1.8rem;
  }

  .gallery-img {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .gallery-img {
    height: 200px;
  }

  .event-title {
    font-size: 0.9rem;
  }
}
