.edu-event .thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
}

.edu-event.portrait-event .thumbnail {
  padding-top: 133.33%;
}

.edu-event .thumbnail img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.edu-event .thumbnail:hover img {
  transform: translate(-50%, -50%) scale(1.05);
  border-radius: 12px;
}

.category-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #222e59;
  color: white;
  padding: 5px 15px;
  border-radius: 24px 0 0 24px;
  font-size: 14px;
  z-index: 1;
  text-transform: capitalize;
  line-height: 1.5;
}

.top-position.status-group.left-top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

.month-divider {
  margin: 30px 0 20px;
  padding: 10px 20px;
  background: #f5f5f5;
  border-left: 4px solid #2d76b2;
  border-radius: 4px;
}

.month-divider h3 {
  margin: 0;
  color: #222;
  font-size: 1.5rem;
}

.events-masonry-grid {
  column-count: 3;
  column-gap: 30px;
}

.event-masonry-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 40px;
}

.recent-events-carousel {
  position: relative;
}

.recent-events-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.recent-events-scroll::-webkit-scrollbar {
  display: none;
}

.recent-events-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.recent-events-track {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  user-select: none;
}

.recent-event-card {
  flex: 0 0 calc((100% - 60px) / 3);
  scroll-snap-align: start;
}

.recent-event-card img {
  pointer-events: none;
}

.recent-events-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.recent-events-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8dce9;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    width 0.2s ease;
}

.recent-events-dot.is-active {
  width: 28px;
  background: #222e59;
}

@media (max-width: 991px) {
  .events-masonry-grid {
    column-count: 2;
  }

  .recent-events-track {
    gap: 24px;
  }

  .recent-event-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 575px) {
  .events-masonry-grid {
    column-count: 1;
  }

  .recent-events-track {
    gap: 18px;
  }

  .recent-event-card {
    flex-basis: 86vw;
  }
}
