@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Montserrat';
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.events-section {
  position: relative;
  min-height: 80vh;
  color: #fff;
  text-align: center;
}

.background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.slides {
 
  display: flex;
  animation: slide 12s infinite;
  height: 100%;
  width: 300%; /* Added to match the 3 slide animation */
}

.slides img {
  width: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-100%);
  }
  66% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 50, 0.7); /* Transparent blue overlay */
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  padding: 50px 20px;
}
.header{
  margin-top: 12vw;
}
.header h1 {
  font-size: 5.5rem;
  margin: 0;
}

.underline {
  font-size: 7.5rem;
  width: 150px;
  height: 3px;
  background-color: #fff;
  margin: 10px auto;
}

.events-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -20vh; /* Replaces top: 30vw */
  z-index: 2;
  position: relative;
  transform: translateX(0); /* Keeps centering logic */
}

.event-card {
  width: 300px;
  height: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover img {
  transform: scale(1.1);
}
/*------------------------------------------------*/
/* Media Queries for Responsive Events Section */

/* Tablets */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 4rem;
  }

  .underline {
    width: 100px;
    height: 3px;
  }

  .events-gallery {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: -15vh;
  }

  .event-card {
    width: 250px;
    height: 250px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .header {
    margin-top: 20vw;
  }

  .header h1 {
    font-size: 3rem;
  }

  .underline {
    width: 80px;
    height: 2px;
  }

  .content {
    padding: 30px 15px;
  }

  .slides {
    animation: slide 12s infinite;
    flex-direction: row;
  }

  .event-card {
    width: 90%;
    height: auto;
  }

  .event-card img {
    height: 200px;
  }

  .events-gallery {
    flex-direction: column;
    align-items: center;
    margin-top: -10vh;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .header h1 {
    font-size: 2.2rem;
  }

  .underline {
    width: 60px;
  }

  .event-card img {
    height: 180px;
  }
}

/*----------------------
.recent-events {
  position: relative;
  background: #000038; /* Dark blue background 
  color: white;
  padding: 110px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  margin-top: 10vh; /* Replaces top: 23vw 
}

.runderline {
  position: fixed;
  font-size: 7.5rem;
  width: 150px;
  height: 3px;
  background-color: #fff;
  margin: 10px auto;
}
.recent-events-content {
  max-width: 50%;
}

.recent-events h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.recent-events p {
  font-size: 1rem;
  max-width: 650px;
  margin-bottom: 20px;
}

.recent-events-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 0; /* Remove absolute and top 
  position: relative;
  right: 0;
}

.recent-event-card {
  background: #ddd;
  width: 300px;
  min-height: 350px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.recent-event-card h3 {
  font-size: 1rem;
  color: black;
  font-weight: bold;
}----------------------*/
/*--------------------------------*/
.event-section {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.event-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.event-section-heading {
  position: relative;
  display: inline-block;
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #000038, #0400ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideIn 1s ease-out;
}

.event-section-heading::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: -8px;
  width: 50%;
  height: 4px;
  background-color: #000038;
  border-radius: 2px;
}

.event-section-description {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
  animation: fadeIn 2s ease-in;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Event Section Styling */
.event-section-container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  margin-top: 2vh; /* Replaces top: 20vw */
}

/* Grid Layout */
.event-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  margin-top: 20px;
}

/* Individual Event Card */
.event-section-card {
  
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
}

.event-section-thumbnail {
  height: 150px;
  width: 100%;
  overflow: hidden;
}

.event-section-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Event Details */
.event-section-details {
  padding: 15px;
}

.event-section-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #0a2a4a;
}

.event-section-text {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.event-section-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.event-section-link:hover {
  text-decoration: underline;
}
/*--------------------------------*/
/* Media Queries for Responsiveness */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .event-section-heading {
    font-size: 3.5rem;
  }

  .event-section-description {
    font-size: 1.1rem;
  }

  .event-section-container {
    padding: 15px;
  }

  .event-section-grid {
    gap: 30px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .event-section-heading {
    font-size: 2.5rem;
  }

  .event-section-heading::after {
    left: 20%;
    width: 60%;
    height: 3px;
  }

  .event-section-description {
    font-size: 1rem;
  }

  .event-section-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }

  .event-section-title {
    font-size: 15px;
  }

  .event-section-text {
    font-size: 13px;
  }

  .event-section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .event-section-heading {
    font-size: 2rem;
  }

  .event-section-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .event-section-thumbnail {
    height: 120px;
  }

  .event-section-details {
    padding: 12px;
  }

  .event-section-title {
    font-size: 14px;
  }

  .event-section-text {
    font-size: 12.5px;
  }

  .event-section-link {
    font-size: 13px;
  }
}

