

    /* Carousel */
    .carousel-container {
      position: relative;
      overflow: hidden;
      margin: 40px auto;
    }
    .carousel-track {
      display: flex;
      transition: transform 0.6s ease-in-out;
    }
    .cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* space between cards */
}

.event-card {
  flex: 0 0 calc(100% / 3); /* 3 cards per row */
  max-width: calc(100% / 3);
  display: flex;
  padding: 20px;
}

.event-card .card {
  border: none;
  border-radius: 18px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 6px 16px rgba(90, 62, 157, 0.15);
  
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes button to bottom */
  height: 100%; /* makes all cards same height */
}

.event-card img {
  border-radius: 12px;
}

.event-card .card-title {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.event-card .card-text {
  font-size: 0.9rem;
  color: #666;
  flex-grow: 1; /* fills space to push button down */
}

.event-card .btn {
  margin-top: 10px;
  border-radius: 10px;
  background: #6a4fc9;
  width: 85px;
  border: none;
  align-self: flex-start; /* optional, aligns left */
}
.event-card .btn:hover {
  background: #5a3e9d;
}


    /* Buttons */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #fff;
      border: 2px solid #e5dbff;
      color: #5a3e9d;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
    .carousel-btn:hover {
      background: #f4f0ff;
    }
    .carousel-btn.prev { left: 2px; }
    .carousel-btn.next { right: 12px; }

    /* Modal */
    .modal-content {
      border-radius: 16px;
      padding: 0px;
    }
    .modal-title {
      color: #5a3e9d;
      font-weight: 600;
    }
    #eventModalDesc {
      font-size: 1rem;
      line-height: 1.6;
      color: #444;
    }
    /* Responsive number of visible cards */
  .event-card {
    flex: 0 0 calc(100% / 3);
    max-width: calc(100% / 3);
    padding: 20px;
  }

  @media (max-width: 992px) {
    .event-card {
      flex: 0 0 calc(100% / 2);
      max-width: calc(100% / 2);
    }
  }

  @media (max-width: 576px) {
    .event-card {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  .card-img-top{
    max-height: 230px;
    display: flex;
  }

  /* Container animation effect */
.animated-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5a3e9d; /* light purple for sporty vibe */
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: linear-gradient(90deg, #5a3e9d, #a97df0, #5a3e9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 3s linear infinite;
  margin-top: 20px;
}

.animated-subtitle {
  font-size: 1.1rem;
  color: #666;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.5s;
}

/* Gradient animation for title */
@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fade in from below */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: add small underline effect */
.animated-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background-color: #a97df0;
  margin-top: 8px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 1s ease forwards;
  animation-delay: 1s;
}

@keyframes underline-grow {
  to {
    transform: scaleX(1);
  }
}
.animated-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(270deg, #a655cb, #d9b2e0ac, #9a50c6);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-text 6s linear infinite;
  display: inline-block;
}

@keyframes animate-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-subtitle {
  font-size: 1.1rem;
  color: #666;
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
