/* --- Események hero --- */

.events-hero {
  background-color: #ffffff;
}

.events-hero-frame {
  --events-hero-overhang: 60px;
  padding: 0 12px;
}

.events-hero-panel {
  position: relative;
  border-radius: 24px;
  background-color: transparent;
}

.events-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--events-hero-overhang);
  left: 0;
  z-index: 0;
  border-radius: 24px;
  background-color: var(--color-primary-100);
  background-image: var(--events-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.events-hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--events-hero-overhang);
  left: 0;
  z-index: 0;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.events-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

.events-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.events-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.events-hero-intro {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-primary-500);
  text-wrap: pretty;
}

.events-hero-intro > *:first-child {
  margin-top: 0;
}

.events-hero-intro > *:last-child {
  margin-bottom: 0;
}

.events-hero-intro p {
  margin: 0 0 0.75em;
}

.events-hero-intro a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.events-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.events-hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 99px;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.events-hero .btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.events-hero .btn-primary:hover {
  background-color: var(--color-primary-700);
  color: #ffffff;
}

.events-hero .btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px #dce7f2;
}

.events-hero .btn-secondary:hover {
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary-300);
}

.events-hero-media {
  position: relative;
  margin: 40px 0 0;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 1400 / 400;
}

.events-hero-media > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.events-hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 53, 0.1) 0%,
    rgba(0, 26, 53, 0.5) 100%
  );
}

.events-hero-media-logo {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  display: block;
  width: 120px;
  height: auto;
  pointer-events: none;
}

/* --- Események lista --- */

.events-list-section {
  position: relative;
  padding: 100px 0 96px;
  overflow: hidden;
  background-color: #ffffff;
}

.events-section-divider {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #dce7f2;
}

.events-list-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.events-list-decor-right,
.events-list-decor-left {
  position: absolute;
  display: block;
  width: min(280px, 28vw);
  aspect-ratio: 394 / 796;
  background-repeat: no-repeat;
  background-size: contain;
}

.events-list-decor-right {
  top: 40px;
  right: 0;
  background-image: url("../images/padel-bg-right.png");
  background-position: top right;
}

.events-list-decor-left {
  display: none;
  bottom: 0;
  left: 0;
  background-image: url("../images/padel-bg-left.png");
  background-position: bottom left;
}

/* Bal alsó dísz csak szélesebb layouton, ahol van hely neki */
@media (min-width: 1100px) {
  .events-list-decor-left {
    display: block;
  }
}

.events-list-section > .container {
  position: relative;
  z-index: 1;
}

.events-list-header {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.events-list-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 4px;
  border-radius: 999px;
  background-color: var(--color-primary-200);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.events-list-heading {
  margin: 18px 0 0;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.events-list-intro {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-primary-500);
  text-wrap: pretty;
}

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

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7f2;
  border-radius: 16px;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  border-color: var(--color-primary-300);
  box-shadow: 0 8px 24px rgba(0, 26, 53, 0.06);
}

.event-card-image {
  display: block;
  line-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-primary-100);
}

.event-card-image img,
.event-card-image-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-card-image-fallback {
  background:
    linear-gradient(135deg, var(--color-primary-200), var(--color-primary-100));
}

.event-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  padding: 18px 16px 18px 18px;
}

.event-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 2.75rem;
  line-height: 1;
  text-align: center;
}

.event-card-month {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: calc(18px * 1.3);
  color: var(--color-text);
}

.event-card-day {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.event-card-content {
  flex: 1;
  min-width: 0;
}

.event-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.event-card-title a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.event-card-title a:hover {
  color: var(--color-primary);
}

.event-card-excerpt {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-primary-500);
}

.event-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 50%;
  border: 1px solid #dce7f2;
  background-color: #ffffff;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.event-card:hover .event-card-arrow,
.event-card-arrow:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #ffffff;
}

.event-card-arrow .icon-arrow-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "fontello", sans-serif !important;
  font-size: 16px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  color: inherit;
}

.event-card-arrow .icon-arrow-right::before {
  content: none !important;
  display: none !important;
}

.events-empty {
  margin: 0;
  text-align: center;
  color: var(--color-primary-500);
}

/* Pagination */
.events-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.events-pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.events-pagination-item {
  margin: 0;
  padding: 0;
}

.events-pagination a,
.events-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dce7f2;
  background-color: #ffffff;
  color: var(--color-primary-500);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.events-pagination a:hover {
  border-color: var(--color-primary-300);
  background-color: var(--color-primary-100);
  color: var(--color-primary);
}

.events-pagination .current {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #ffffff;
}

.events-pagination .dots {
  border: none;
  background: transparent;
  color: var(--color-primary-500);
}

.events-pagination .icon-arrow-left,
.events-pagination .icon-arrow-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "fontello", sans-serif !important;
  font-size: 16px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  color: inherit;
}

.events-pagination .icon-arrow-left::before,
.events-pagination .icon-arrow-right::before {
  content: none !important;
  display: none !important;
}

/* --- ≤ 992px --- */
@media (max-width: 992px) {
  .events-hero-inner {
    padding-top: 56px;
  }

  .events-hero-title,
  .events-list-heading {
    font-size: 30px;
  }

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

/* --- ≤ 768px --- */
@media (max-width: 768px) {
  .events-hero-frame {
    --events-hero-overhang: 40px;
    padding: 0 12px;
  }

  .events-hero-panel {
    border-radius: 16px;
  }

  .events-hero-bg,
  .events-hero-overlay {
    border-radius: 16px;
  }

  .events-hero-inner {
    padding-top: 40px;
  }

  .events-hero-title {
    font-size: 26px;
  }

  .events-hero-intro {
    margin-top: 14px;
    font-size: 15px;
  }

  .events-hero-actions {
    margin-top: 24px;
  }

  .events-hero .btn {
    width: 100%;
  }

  .events-hero-media {
    margin: 28px 0 0;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
  }

  .events-hero-media-logo {
    right: auto;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
  }

  .events-list-section {
    padding: 72px 0 64px;
  }

  .events-list-header {
    margin-bottom: 28px;
  }

  .events-list-heading {
    font-size: 26px;
  }

  .events-list-intro {
    font-size: 15px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .events-pagination {
    justify-content: center;
  }
}

/* --- ≤ 576px --- */
@media (max-width: 576px) {
  .events-hero-title,
  .events-list-heading {
    font-size: 24px;
  }

  .events-list-eyebrow {
    font-size: 11px;
  }
}

/* --- ≤ 480px --- */
@media (max-width: 480px) {
  .events-hero-frame {
    --events-hero-overhang: 32px;
    padding: 0 8px;
  }

  .event-card-body {
    gap: 12px;
    padding: 16px;
  }

  .event-card-day {
    font-size: 36px;
  }

  .event-card-month {
    line-height: calc(17px * 1.3);
  }

  .event-card-title {
    font-size: 17px;
  }
}
