/* Active Navbar Link */
.nav-link.active {
  color: #0d3b66 !important;
  font-weight: 600;
}

/* Gallery Section */
.gallery-section {
  background-color: #f8f9fa;
  padding-top: 120px !important; /* Fixed navbar spacing */
}

.gallery-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004aad;
}

.gallery-section p {
  font-size: 1.1rem;
  color: #555;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  width: 100%;
  height: 300px;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

/* Gallery Images */
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.5s ease;
}

/* Hover Effects */
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover img {
  transform: scale(1.08);
  filter: brightness(85%);
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  text-align: center;
  padding: 15px;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.overlay h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.overlay p {
  font-size: 0.9rem;
  color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-card {
    height: 220px;
  }

  .gallery-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .gallery-card {
    height: 200px;
  }

  .gallery-section h2 {
    font-size: 1.8rem;
  }

  .gallery-section p {
    font-size: 1rem;
  }
}