/* Modal Styles */
.event-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  padding: 2rem 1rem;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  overflow-y: auto; /* This enables scrolling if modal content is too tall */
}

.event-details-modal.hidden {
  display: none;
}

.event-details-content {
  background: white;
  max-width: 800px;
  width: 100%;
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  max-height: 90vh;       /* prevent too tall modal */
  overflow-y: auto;       /* enable scrolling inside */
}

/* Close Button Styles */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
   display: flex;
  align-items: center;
  margin: 1rem 0;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 300%; /* or 100% * number of slides */
}

.single-image {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px; /* constrain max height */
  border-radius: 10px;
}



/* Galery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
 aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 6, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  z-index: 9999;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}


.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none;
}


/* Event Video Styles */
.event-video iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Additional Styling */
.event-description {
  margin-top: 1rem;
}

.event-description ul {
  list-style-type: disc;
  margin-left: 20px;
}

.event-description strong {
  font-weight: bold;
}
.event-video {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  max-width: 100%;
}

.event-video wistia-player,
.event-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}
.responsive-video {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
}

.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Optional: Make sure players scale correctly */
@media (max-width: 768px) {
  .event-video {
    padding: 1rem 0.5rem;
  }

  .event-video iframe,
  .event-video wistia-player {
    aspect-ratio: 16 / 9;
  }
}

/* Responsive Media Query for Smaller Devices */
@media (max-width: 768px) {
  .event-details-content {
    padding: 1rem;
  }

  .carousel-btn {
    font-size: 1.2rem;
    padding: 0.3rem 0.8rem;
  }

  .event-video iframe {
    height: 250px;
  }
}

.course__image {
  width: 100%;
  height: 350px !important; 
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.course__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the container */
 background-color: #c6caca;
 transition: all 0.5s ease-in-out;
}
.course{
  overflow: hidden;
}
.course:hover{
  cursor: pointer;
  .course__image img{
    scale: 1.1;
    filter: brightness(0.7);
  }
}
