/* Hero carousel styling */

.hero-carousel {
  height: 70vh;
  min-height: 380px;
  overflow: hidden;
  position: relative;
  margin-bottom: 3rem;
}

.hero-carousel .carousel-item img {
  object-fit: cover;
  height: 70vh;
  width: 100%;
  filter: brightness(0.75);
  transition: transform 1s ease;
}

.carousel-item.active img {
  transform: scale(1.05);
}

/* Hero captions simple fade */

.carousel-caption h2, .carousel-caption p {
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(15px);
}

.carousel-item.active .carousel-caption h2, .carousel-item.active .carousel-caption p {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section heading underline */

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  color: #064663;
  text-transform: uppercase;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 4px;
  background: #0b819e;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 2px;
  box-shadow: 0 0 10px #0b819e;
}

/* Category Filter Bar */

#category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#category-filter button {
  background: #064663;
  color: white;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(6,70,99,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
}

#category-filter button:hover, #category-filter button.active {
  background: #0b819e;
  box-shadow: 0 8px 25px rgba(11,129,158,0.8);
  transform: scale(1.1);
  z-index: 2;
}

/* Activity cards - fixed dimensions for neat grid */

.activity-card {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
  height: 360px;
  display: flex;
  flex-direction: column;
  background: white;
}

.activity-card .card-img-top {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.activity-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover animation with bounce */

.activity-card:hover {
  animation: hoverBounce 0.6s ease forwards;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

@keyframes hoverBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
  70% {
    transform: translateY(-6px) scale(1.03);
  }
  100% {
    transform: translateY(-6px) scale(1.03);
  }
}

.fade-scale-in {
  animation: fadeScaleIn 0.5s ease forwards;
  opacity: 10;
  transform: scale(0.9);
  display: block !important;
}

.fade-scale-out {
  animation: fadeScaleOut 0.5s ease forwards;
}

@keyframes fadeScaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeScaleOut {
  to {
    opacity: 0;
    transform: scale(0.85);
    display: none;
  }
}

