/* ============================================================
   THEME TOKEN BRIDGE — ELEMENTOR
   (Swap this block only if switching themes)
   ============================================================ */
:root {

  /* =====================
     COLORS
     ===================== */
  --site-color-primary:   var(--e-global-color-primary);
  --site-color-secondary: var(--e-global-color-secondary);
  --site-color-text:      var(--e-global-color-text);
  --site-color-accent:    var(--e-global-color-accent);

  /* =====================
     TYPOGRAPHY
     ===================== */
  --site-font-heading:    var(--e-global-typography-primary-font-family);
  --site-font-body:       var(--e-global-typography-text-font-family);

  --site-font-weight-heading: var(--e-global-typography-primary-font-weight);
  --site-font-weight-body:    var(--e-global-typography-text-font-weight);

  --site-line-height-heading: var(--e-global-typography-primary-line-height);
  --site-line-height-body:    var(--e-global-typography-text-line-height);
}

/* ============================================================
   EVENT CARDS — GLOBAL WRAPPER
   ============================================================ */

.event-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================================
   EVENT CARD — BASE
   ============================================================ */

.event-card {
  position: relative;
  display: flex;
  width: 100%;
  background: #ffffff;
  border-radius: var(--ecards-radius);
  box-shadow: var(--ecards-shadow);
  overflow: hidden;
}

/* Entire card clickable */
.event-card__link {
  display: flex;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.event-card__link:hover {
  text-decoration: none;
}

/* ============================================================
   IMAGE COLUMN
   ============================================================ */

.event-card__image {
  flex: 0 0 420px;
  padding: 20px;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}

/* ============================================================
   CONTENT COLUMN
   ============================================================ */

.event-card__content {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  width: 100%;
}

.event-card__header {
  margin-bottom: 10px;
}

.event-card__title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family);
}

/* ============================================================
   DATE + LOCATION ROWS
   ============================================================ */

.event-card__date,
.event-card__location {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 6px;
  color: var(--e-global-color-text);
}

/* ============================================================
   ICON FIXES — SAFE + PREDICTABLE
   ============================================================ */

.event-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  line-height: 1;
  color: currentColor;
}

/* SVGs behave like icons, not text */
.event-card__icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;

  vector-effect: non-scaling-stroke;
}

/* Prevent inherited fills from nuking icons */
.event-card__icon svg * {
  fill: none !important;
  stroke: currentColor;
}

/* ============================================================
   EXCERPT
   ============================================================ */

.event-card__excerpt {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 680px;
  color: var(--e-global-color-text);
}

/* ============================================================
   FOOTER / BUTTON
   ============================================================ */

.event-card__footer {
  margin-top: auto;
  padding-top: 18px;
}

.event-card__footer .btn {
  display: inline-block;
  background: var(--e-global-color-primary);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  pointer-events: none; /* archive cards only */
}

/* ============================================================
   SINGLE EVENT OVERRIDES
   ============================================================ */

.event-card--single {
  max-width: 1100px;
  margin: 40px auto;
}

.event-card--single .event-card__footer .btn {
  pointer-events: auto;
  text-decoration: none;
}

/* ============================================================
   DATE BADGE (TOP RIGHT) — ELEMENTOR ACCENT
   ============================================================ */

.event-card__date-badge {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 64px;
  height: 64px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: var(--e-global-color-accent);
  color: #fff;

  border-radius: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;

  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  pointer-events: none;
  z-index: 2;
}

/* Optional depth enhancement (safe) */
@supports (background-color: color-mix(in srgb, red 50%, black)) {
  .event-card__date-badge {
    background-color: color-mix(
      in srgb,
      var(--e-global-color-accent) 90%,
      #000
    );
    border: 1px solid color-mix(
      in srgb,
      var(--e-global-color-accent) 70%,
      #000
    );
  }
}

.event-card__date-month {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.event-card__date-day {
  font-size: 26px;
  font-weight: 800;
}
/* ============================================================
   EMPTY STATE
   ============================================================ */

.event-empty-state {
  text-align: center;
  padding: 100px 20px 140px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 40px rgba(0,0,0,.06);
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-empty-state__heading {
  font-family: var(--site-font-heading);
  font-weight: var(--site-font-weight-heading);
  margin-bottom: 12px;
  color: var(--site-color-primary);
}

.event-empty-state__text {
  font-family: var(--site-font-body);
  line-height: var(--site-line-height-body);
  color: var(--site-color-text);
  max-width: 600px;
  margin: 0 auto;
  opacity: .85;
}
/* ============================================================
   EMPTY STATE ICON
   ============================================================ */

.event-empty-state__icon {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.event-empty-state__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--e-global-color-accent);
  fill: none;
  stroke-width: 2;
  opacity: .9;
  transition: transform 200ms ease, opacity 200ms ease;
}

.event-empty-state__icon svg:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

@media (max-width: 980px) {

  .event-card,
  .event-card__link {
    flex-direction: column;
  }

  .event-card__image {
    flex: none;
    width: 100%;
    padding: 0;
  }

  .event-card__image img {
    max-height: none;
    border-radius: 0;
  }

  .event-card__content {
    padding: 20px;
  }

  .event-card__date-badge {
    top: 12px;
    right: 12px;
    width: 56px;
    height: 56px;
  }

  .event-card__date-day {
    font-size: 22px;
  }
}
.event-more {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.event-more__heading {
  margin-bottom: 24px;
  padding: 20px;
}
/* ============================================================
   BREADCRUMBS
   ============================================================ */

.event-breadcrumbs {
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--e-global-color-text);
  opacity: .75;
}

.event-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.event-breadcrumbs a:hover {
  opacity: 1;
}

.event-breadcrumbs__sep {
  margin: 0 6px;
  opacity: .5;
}

.event-breadcrumbs__current {
  font-weight: 600;
  opacity: .9;
}
/* ============================================================
   HOME EVENTS CTA
   ============================================================ */

.event-home-more {
  margin-top: 40px;
  text-align: center;
}

.event-home-more__btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--e-global-color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

.event-home-more__btn:hover {
  transform: translateY(-2px);
  opacity: .9;
}
/* ============================================================
   HOME EVENTS BUTTON ICON
   ============================================================ */

.event-home-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-home-more__icon {
  display: inline-flex;
  align-items: center;
}

.event-home-more__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.event-home-more__btn:hover .event-home-more__icon svg {
  transform: translateY(-1px);
  transition: transform 150ms ease;
}
