/* ===== UPCOMING EVENTS SECTION ===== */
.upcoming-events-section {
  background-color: #f9f9f9;
  padding: 96px 0;
}

/* ===== SECTION HEADER ===== */
.upcoming-events-header {
  display: flex;
  flex-direction: column;
  gap: 8px; /* 8px gap between heading & desc */
  margin-bottom: 40px; /* 40px gap below description */
  text-align: left;
}

.upcoming-events-title {
  font-size: 36px;
  line-height: 125%;
  color: #181c20;
  font-weight: 700;
  margin: 0;
}

.upcoming-events-desc {
  font-size: 16px;
  line-height: 150%;
  color: #3e4a3c;
  margin: 0;
}

/* ===== CARDS GRID ===== */
.upcoming-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px; /* 32px between all cards */
}

/* ===== SINGLE CARD ===== */
.event-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0px 1px 2px 0px #0000000d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.event-card:hover {
  box-shadow: 0 8px 24px rgba(0, 110, 37, 0.1);
  transform: translateY(-4px);
}

/* ===== CARD IMAGE ===== */
.event-card-img-wrapper {
  width: 100%;
  flex-shrink: 0;
}

.event-card-img-placeholder {
  width: 100%;
  height: 220px;
  background-color: #b5c9b7;
}

.event-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===== CARD CONTENT ===== */
.event-card-content {
  padding: 32px; /* 32px padding all sides */
  display: flex;
  flex-direction: column;
  flex: 1; /* Fills remaining space */
}

/* ===== DATE ROW ===== */
.event-card-date {
  display: flex;
  align-items: center;
  gap: 8px; /* 8px gap between icon & text */
  margin-bottom: 12px; /* 12px gap below date */
}

.event-card-date-text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  color: #006e25;
  letter-spacing: 0.3px;
}

/* ===== CARD TITLE ===== */
.event-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 125%;
  color: #181c20;
  margin: 0 0 12px 0; /* 12px gap below title */
}

/* ===== CARD DESCRIPTION ===== */
.event-card-desc {
  font-size: 14px;
  line-height: 150%;
  color: #3e4a3c;
  margin: 0 0 12px 0; /* 12px gap below description */
  flex: 1; /* Pushes button to bottom */
}

/* ===== VIEW DETAILS BUTTON ===== */
.event-card-btn {
  display: block;
  width: 100%;
  padding: 17px 0; /* 17px top & bottom */
  text-align: center;
  background-color: #ebf3ee;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #006e25;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
  margin-top: auto; /* Always sticks to bottom of card */
}

.event-card-btn:hover {
  background-color: #006e25; /* bg becomes text color */
  color: #ffffff; /* text becomes white */
}

.event-card-btn.disabled, .event-card-btn.disabled:hover {
  background-color: #e5e5e5;
  color: #878787;
  cursor:initial;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
  .upcoming-events-section {
    padding: 60px 0;
  }

  .upcoming-events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .upcoming-events-title {
    font-size: 28px;
  }
}

/* Small Tablet */
@media (max-width: 768px) {
  .upcoming-events-header {
    margin-bottom: 28px;
  }

  .event-card-content {
    padding: 24px;
  }

  .event-card-img-placeholder,
  .event-card-img {
    height: 190px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .upcoming-events-section {
    padding: 48px 0;
  }

  .upcoming-events-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .upcoming-events-title {
    font-size: 24px;
  }

  .event-card-img-placeholder,
  .event-card-img {
    height: 220px;
  }
}
