/* assets/css/gallery.css */

.gallery-banner {
  padding: 165px 0 95px;
  background:
    linear-gradient(135deg, rgba(7, 26, 47, 0.94), rgba(15, 118, 110, 0.9)),
    url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gallery-banner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 75px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.28);
  animation: galleryFloat 6s infinite ease-in-out;
}

@keyframes galleryFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

.gallery-banner .container {
  position: relative;
  z-index: 2;
}

.gallery-badge {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--icsis-accent);
  font-weight: 900;
  margin-bottom: 18px;
}

.gallery-banner h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 14px;
}

.gallery-banner p {
  font-size: 22px;
  max-width: 760px;
  color: #dbeafe;
}

.gallery-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.08), transparent 34%),
    #f8fbfd;
}

.gallery-intro {
  max-width: 760px;
  margin: auto;
  color: #64748b;
  font-size: 17px;
}

.gallery-tabs {
  gap: 14px;
}

.gallery-tabs .nav-link {
  border-radius: 50px;
  padding: 13px 32px;
  background: #fff;
  color: var(--icsis-dark);
  font-weight: 900;
  border: 1px solid #e4eaf1;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: 0.3s ease;
}

.gallery-tabs .nav-link:hover,
.gallery-tabs .nav-link.active {
  background: var(--icsis-gradient);
  color: #fff;
  transform: translateY(-5px);
}

.gallery-year-title {
  background: #fff;
  border-radius: 26px;
  padding: 28px 32px;
  margin-bottom: 30px;
  border: 1px solid #e4eaf1;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.gallery-year-title h3 {
  color: var(--icsis-dark);
  font-weight: 900;
  margin-bottom: 6px;
}

.gallery-year-title p {
  margin: 0;
  color: #64748b;
  font-weight: 600;
}

.gallery-card {
  height: 280px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
    background: var(--icsis-gradient);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.55s ease;
}

.gallery-card:hover img {
  transform: scale(1.12);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 26, 47, 0.9), rgba(7, 26, 47, 0.15));
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 26px;
  opacity: 0;
  transition: 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 6px;
  transform: translateY(18px);
  transition: 0.35s ease;
}

.gallery-overlay span {
  display: inline-block;
  width: fit-content;
  color: var(--icsis-accent);
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 15px;
  border-radius: 50px;
  font-weight: 900;
  transform: translateY(18px);
  transition: 0.35s ease;
}

.gallery-card:hover .gallery-overlay h5,
.gallery-card:hover .gallery-overlay span {
  transform: translateY(0);
}

.tab-pane.fade {
  transition: opacity 0.35s ease;
}

@media (max-width: 991px) {
  .gallery-banner {
    padding: 140px 0 75px;
    text-align: center;
  }

  .gallery-banner p {
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-section {
    padding: 70px 0;
  }

  .gallery-card {
    height: 260px;
  }
}

@media (max-width: 575px) {
  .gallery-banner {
    padding: 125px 0 60px;
  }

  .gallery-banner h1 {
    font-size: 38px;
  }

  .gallery-banner p {
    font-size: 18px;
  }

  .gallery-section {
    padding: 55px 0;
  }

  .gallery-tabs .nav-item {
    width: 100%;
  }

  .gallery-tabs .nav-link {
    width: 100%;
  }

  .gallery-year-title {
    padding: 24px;
    text-align: center;
  }

  .gallery-card {
    height: 240px;
  }

  .gallery-overlay {
    opacity: 1;
  }

  .gallery-overlay h5,
  .gallery-overlay span {
    transform: translateY(0);
  }
}