body.page-events { overflow-x: clip; }
body.page-events main,
main[data-events-page] { overflow-x: clip; width: 100%; max-width: 100%; }

.ev-hero {
  position: relative;
  padding: 24px 0 28px;
}
.ev-hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.ev-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fo-orange-dark);
  margin-bottom: 8px;
}
.ev-hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fo-orange);
}
.ev-hero h1 {
  font-family: var(--fo-font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ev-hero__lead {
  color: var(--fo-text-muted);
  font-size: 0.95rem;
  max-width: 38ch;
}
.ev-hero__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ev-stat {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--fo-border);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 96px;
  text-align: center;
}
.ev-stat strong {
  display: block;
  font-family: var(--fo-font-display);
  font-size: 1.25rem;
  color: var(--fo-blue-dark);
  line-height: 1.2;
}
.ev-stat span {
  font-size: 0.75rem;
  color: var(--fo-text-muted);
  font-weight: 600;
}

.ev-featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(232, 236, 240, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  color: inherit;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
}
.ev-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}
.ev-featured__media {
  position: relative;
  min-height: 280px;
  background-color: #e8edf2;
  background-size: cover;
  background-position: center;
}
.ev-featured__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, transparent 40%, rgba(15, 23, 42, 0.15));
}
.ev-featured__badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 1;
  background: linear-gradient(145deg, var(--fo-orange), var(--fo-orange-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(245, 130, 32, 0.35);
}
.ev-featured__date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fo-orange);
  margin: 0;
}
.ev-featured__body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.ev-featured__body h2 {
  font-family: var(--fo-font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
}
.ev-featured__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fo-text-muted);
}
.ev-featured__desc {
  font-size: 0.9rem;
  color: var(--fo-text-muted);
  line-height: 1.65;
  max-width: 36ch;
  margin: 0;
}
.ev-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fo-blue-dark);
}
.ev-featured__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}
.ev-featured:hover .ev-featured__cta { color: var(--fo-orange-dark); }
.ev-featured:hover .ev-featured__cta svg { transform: translateX(-2px); }
html[dir="ltr"] .ev-featured:hover .ev-featured__cta svg { transform: scaleX(-1) translateX(2px); }
html[dir="ltr"] .ev-featured__cta svg { transform: scaleX(-1); }

.ev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  margin: clamp(40px, 6vw, 64px) 0 22px;
}
.ev-toolbar h2 {
  font-family: var(--fo-font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ev-toolbar p {
  font-size: 0.82rem;
  color: var(--fo-text-muted);
  margin-top: 4px;
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  padding-bottom: clamp(48px, 7vw, 80px);
}
.ev-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(232, 236, 240, 0.75);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ev-card:hover {
  border-color: rgba(74, 144, 226, 0.28);
  transform: translateY(-2px);
}
.ev-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e8edf2;
  overflow: hidden;
}
.ev-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-card__date {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 7px 8px 6px;
  border-radius: 11px;
  background: #fff;
  line-height: 1.05;
}
.ev-card__date strong {
  font-family: var(--fo-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--fo-navy);
  letter-spacing: -0.02em;
}
.ev-card__date span {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--fo-text-muted);
  margin-top: 1px;
}
.ev-card__status {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: var(--fo-orange);
  padding: 4px 9px;
  border-radius: 999px;
}
.ev-card__body {
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.ev-card__name {
  font-family: var(--fo-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card__facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ev-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fo-text-muted);
  margin: 0;
  line-height: 1.4;
}
.ev-card__fact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #9aa3af;
}
.ev-card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ev-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fo-blue-dark);
}
.ev-card__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}
.ev-card:hover .ev-card__more { color: var(--fo-orange-dark); }
.ev-card:hover .ev-card__more svg { transform: translateX(-2px); }
html[dir="ltr"] .ev-card__more svg { transform: scaleX(-1); }
html[dir="ltr"] .ev-card:hover .ev-card__more svg { transform: scaleX(-1) translateX(2px); }

.ev-band {
  margin: 0 0 clamp(48px, 7vw, 80px);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 28px) clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  color: #fff;
  background: var(--fo-blue);
  border: none;
}
.ev-band h3 {
  font-family: var(--fo-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.ev-band p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
  line-height: 1.6;
}

.ev-grid + .pagination { margin-top: 16px; margin-bottom: 20px; }

.search-empty strong {
  display: block;
  font-size: 1.15rem;
  color: var(--fo-text);
  margin-bottom: 8px;
}
.search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.04s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.12s; }

@media (max-width: 1100px) {
  .ev-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .ev-featured { grid-template-columns: 1fr; }
  .ev-featured__media { min-height: 220px; }
}
@media (max-width: 720px) {
  .ev-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ev-hero__top { flex-direction: column; align-items: flex-start; }
  .ev-toolbar { margin-top: 36px; }
  .ev-band { text-align: center; justify-content: center; }
  .ev-card__media { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ev-card:hover,
  .ev-featured:hover .ev-featured__cta svg,
  .ev-card:hover .ev-card__more svg { transform: none; }
  html[dir="ltr"] .ev-featured__cta svg,
  html[dir="ltr"] .ev-card__more svg { transform: scaleX(-1); }
}
