/* General Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections */
.section {
  padding: 60px 20px;
  text-align: center;
}

@media (max-width: 576px) {
  .section {
    padding: 40px 15px;
  }
}

.upcoming {
  background-color: antiquewhite;
}

.past {
  background-color: #f5f5f5;
}

/* Headings */
.heading, .heading.dark {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  font-weight: 1000;
  color: #151370;
  margin-bottom: 50px;
}

/* Banner Image */
.banner {
  width: 90%;
  max-width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

/* WhatsApp Button */
.btn-box {
  margin-top: 20px;
}

.btn {
  background-color: #198754;
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1ebe5d;
}

/* Event Grid */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* Event Cards */
.card {
  background-color: white;
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Avoid invisible title on hover */
.card:hover .card-title {
  color: #f5f5f5;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #151370;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: #444;
}


/* Footer */
footer {
  background-color: #023c6c;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  bottom: 0;
}

footer p {
  color: white;
}



/* Medium Devices (Tablets) */
@media (max-width: 992px) {
  .heading {
    font-size: 2rem;
  }

  .grid {
    gap: 16px;
  }

  .card {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Small Devices (Mobiles) */
@media (max-width: 768px) {
  .heading {
    font-size: 1.8rem;
  }

  .grid {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 90%;
  }

  .btn {
    width: 30%;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .heading {
    font-size: 1.6rem;
  }

  .btn {
    width: 50%;
  }
}