
  /* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Section */
.event-section {
  padding: 70px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #004d40;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Event list */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Event card container */
.event-card {
  position: relative;
  border-left: #f39c12 solid 5px;
  background: #ffffff;
  border-radius:12px;
  box-shadow: 0 4px 10px rgba(0, 14, 12, 0.15);
  transition: all 0.3s ease;
  overflow: visible;
}

.event-card:hover {
  transform: translateY(-4px);
  border-left: #f39c12 solid 5px;
  box-shadow: 0 3px 8px rgba(0, 14, 12, 0.425);
}

/* Card header */
.event-card-header {
  padding: 25px;
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s ease;
}

.event-card:hover .event-card-header {
  background: #387661;
    border-bottom-left-radius: 0px ;
  border-bottom-right-radius: 0px ;
  color: #fff;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #004d40;
  transition: color 0.3s ease;
}

.event-date {
  color: #387661;
  font-weight: 600;
  transition: color 0.3s ease;
}

.short-desc {
  margin-top: 6px;
  color: #004d40;
  transition: color 0.3s ease;
}

/* Hover text color */
.event-card:hover h3,
.event-card:hover .short-desc,
.event-card:hover .event-date {
  color: #fff;
}

/* Sliding section below */
.event-slider {
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  overflow: hidden;

  /* Start hidden */
  max-height: 0;
  opacity: 0;
  padding: 0 25px;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-slider p {
  color: #004d40;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 12px 0;
}

/* When hovered: reveal the slider smoothly downward */
.event-card:hover .event-slider {
  max-height: 300px;
  opacity: 1;
  padding: 20px 25px;
  margin-top: 5px;
}



/* Responsive */
@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }

  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
