/* Events section */

.events-section {
  width: 100%;
  padding: 60px 0;
  background: transparent;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

.events-section *,
.events-section *::before,
.events-section *::after {
  box-sizing: border-box;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.events-section .section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.events-section .header-line {
  width: 5px;
  height: 32px;
  background: #1d939a;
  flex-shrink: 0;
}

.events-section .section-title {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #222222;
}

/* ---------- Grid ---------- */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

/* ---------- Image (1:1) ---------- */

.event-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
}

.event-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-img {
  transform: scale(1.05);
}

/* Date badge – top left */
.event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 58px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.date-day {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.date-month {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d939a;
}

.date-year {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
}

/* Location tag – bottom left */
.event-location-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-location-tag i {
  color: #1d939a;
}

/* ---------- Content (same height on every card) ---------- */

.event-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1d939a;
}

/* Reserves space for 3 lines; longer titles are trimmed with "…" */
.event-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  min-height: calc(1.4em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-section {
    padding: 48px 0;
  }
}

@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .events-section .section-title {
    font-size: 26px;
  }
  .events-section .header-line {
    height: 26px;
  }
}
