/* Homepage "Our Events" section */
.home-events {
  padding: 88px 0;
  background: #f4f6fa;
  color: #0d0d0d;
}

.home-events-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
}

.home-events-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c8161c;
  margin-bottom: 10px;
}

.home-events-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0d0d0d;
}

.home-events-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #0067da;
  white-space: nowrap;
  text-decoration: none;
}

.home-events-all:hover {
  color: #004fa8;
}

.home-events-all svg {
  transition: transform 0.2s ease;
}

.home-events-all:hover svg {
  transform: translateX(3px);
}

.home-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 30, 60, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 30, 60, 0.12);
}

.home-event-media {
  position: relative;
  display: block;
  aspect-ratio: 820 / 540;
  overflow: hidden;
}

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

.home-event-card:hover .home-event-media img {
  transform: scale(1.04);
}

.home-event-date {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 56px;
  height: 62px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-event-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #0d0d0d;
}

.home-event-month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #c8161c;
}

.home-event-status {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
}

.home-event-status.is-upcoming {
  background: #d0191f;
}

.home-event-status.is-past {
  font-weight: 600;
  background: rgba(13, 13, 13, 0.72);
}

.home-event-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
}

.home-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: #4a5260;
}

.home-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-event-meta svg {
  color: #0067da;
  flex-shrink: 0;
}

.home-event-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.home-event-title a {
  color: #0d0d0d;
  text-decoration: none;
}

.home-event-title a:hover {
  color: #0067da;
}

.home-event-desc {
  margin: 0 0 auto;
  font-size: 14px;
  line-height: 1.6;
  color: #515151;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-event-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin-top: 4px;
  border-radius: 12px;
  border: 1.5px solid #d6dce6;
  color: #0d0d0d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-event-btn:hover {
  border-color: #0d0d0d;
  color: #0d0d0d;
}

.home-event-btn.is-primary {
  background: #d0191f;
  border-color: #d0191f;
  color: #fff;
  font-weight: 700;
}

.home-event-btn.is-primary:hover {
  background: #a91217;
  border-color: #a91217;
  color: #fff;
}

@media (max-width: 1199px) {
  .home-events-title {
    font-size: 34px;
  }
}

/* Tablet: two columns */
@media (max-width: 991px) {
  .home-events {
    padding: 64px 0;
  }

  .home-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: swipeable row, next card peeks in */
@media (max-width: 767px) {
  .home-events {
    padding: 48px 0;
  }

  .home-events-head {
    margin-bottom: 24px;
  }

  .home-events-eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }

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

  .home-events-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    padding: 4px calc(var(--bs-gutter-x, 1.5rem) * 0.5) 16px;
    scroll-padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  }

  .home-events-grid::-webkit-scrollbar {
    display: none;
  }

  .home-event-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .home-event-card:hover {
    transform: none;
  }
}
