/**
 * Public events listing — /event.php
 */

.nefsa-events-list {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
  background: #f7f5f2;
}

.nefsa-events-list .nefsa-events-list__intro {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.nefsa-events-list .nefsa-events-list__intro p {
  margin: 0;
  color: #5a5d5f;
  font-size: 15px;
  line-height: 1.6;
}

.nefsa-events-list__grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .nefsa-events-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .nefsa-events-list__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nefsa-events-list__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(35, 39, 40, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nefsa-events-list__card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.nefsa-events-list__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #edeae6;
  overflow: hidden;
}

.nefsa-events-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nefsa-events-list__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
}

.nefsa-events-list__date {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7d80;
  line-height: 1.35;
  order: -1;
}

.nefsa-events-list__title {
  margin: 0;
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--firdip-secondary, #232728);
}

.nefsa-events-list__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(to right, currentcolor 0%, currentcolor 100%) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s ease, color 0.2s ease;
}

.nefsa-events-list__title a:hover {
  color: var(--firdip-base, #ca4445);
  background-size: 100% 1px;
}

.nefsa-events-list__empty {
  padding: 48px 24px;
  text-align: center;
  color: #5a5d5f;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed rgba(35, 39, 40, 0.15);
}

.nefsa-events-list__empty p {
  margin: 0;
  font-size: 16px;
}
