/* ============================================================
   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 — EDITORIAL LAYOUT
   ============================================================ */

.event-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Two-column layout */
.event-single__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

/* ── Image ───────────────────────────────────────────────── */
.event-single__image-col {
    position: sticky;
    top: 100px;
}

.event-single__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ── Content ─────────────────────────────────────────────── */
.event-single__title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--e-global-color-primary, #1a1a1a);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

/* ── Meta ────────────────────────────────────────────────── */
.event-single__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.event-single__meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-text, #333);
}

.event-single__meta-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.event-single__meta-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.event-single__map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--e-global-color-accent, #666);
    text-decoration: none;
    font-weight: 600;
}

.event-single__map-link:hover {
    text-decoration: underline;
}

.event-single__ext-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Body ────────────────────────────────────────────────── */
.event-single__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--e-global-color-text, #444);
    margin-bottom: 36px;
}

.event-single__body p {
    margin-bottom: 1em;
}

/* ── Actions ─────────────────────────────────────────────── */
.event-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.event-single__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 150ms ease, transform 150ms ease;
    white-space: nowrap;
}

.event-single__btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.event-single__btn--primary {
    background: var(--e-global-color-accent, #333);
    color: #fff !important;
    border: none;
}

.event-single__btn--outline {
    background: transparent !important;
    color: var(--e-global-color-text, #333) !important;
    border: 1.5px solid currentColor !important;
    box-shadow: none !important;
}

.event-single__btn--outline .event-single__meta-icon svg {
    width: 15px;
    height: 15px;
}

/* ── Calendar dropdown ───────────────────────────────────── */
.event-single__cal-wrap {
    position: relative;
}

.event-single__cal-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}

.event-single__cal-wrap.is-open .event-single__cal-dropdown {
    display: block;
}

.event-single__cal-dropdown a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--e-global-color-text, #333);
    text-decoration: none;
    transition: background 100ms ease;
}

.event-single__cal-dropdown a:hover {
    background: rgba(0,0,0,.04);
}

/* ── Share ───────────────────────────────────────────────── */
.event-single__share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.event-single__share-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: .6;
}

.event-single__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.15);
    color: var(--e-global-color-text, #333);
    transition: border-color 150ms, color 150ms, transform 150ms;
}

.event-single__share-btn:hover {
    border-color: var(--e-global-color-accent, #333);
    color: var(--e-global-color-accent, #333);
    transform: translateY(-2px);
}

.event-single__share-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 860px ) {
    .event-single__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .event-single__image-col {
        position: static;
    }
}

/* ============================================================
   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;
}
/* ============================================================
   EVENT TYPE BADGE — CARD
   ============================================================ */

.event-card__type-badge {
    display: inline-block;
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

.event-card__type-badge--event {
    background: var(--e-global-color-accent, #5b4fcf);
    color: #fff;
}

.event-card__type-badge--special {
    background: var(--e-global-color-secondary, #e8a020);
    color: #fff;
}

.event-card__type-badge--announcement {
    background: #555;
    color: #fff;
}

/* ============================================================
   EVENT TYPE BADGE — SINGLE
   ============================================================ */

.event-single__type-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 12px;
}

.event-single__type-badge--event {
    background: var(--e-global-color-accent, #5b4fcf);
    color: #fff;
}

.event-single__type-badge--special {
    background: var(--e-global-color-secondary, #e8a020);
    color: #fff;
}

.event-single__type-badge--announcement {
    background: #555;
    color: #fff;
}