/* =====================================================================
   Bidaya Foundation — events.css
   Event page laid out like an Eventbrite listing:
   banner -> title block -> details sections, with a sticky ticket card.
   Loaded after style.css on events.html only.
   ===================================================================== */

.page-events { background: var(--white); }

/* header sits on a solid band here: no transparent-over-hero state */
.page-events .site-header { background: var(--forest); border-bottom-color: var(--forest-soft); }
.header__nav a[aria-current="page"] { color: var(--ochre); }
.page-events .btn { border-radius: 999px; }

/* ---------- banner ---------- */
.ev-banner {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 24px;
  background: var(--forest-deep);
}
.ev-banner__blur {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(36px) saturate(1.1);
  opacity: 0.7;
}
.ev-banner .container { position: relative; max-width: calc(940px + 2 * var(--pad-x)); }
.ev-banner__img {
  width: 100%;
  height: clamp(240px, 40vw, 470px);
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 16px;
}

/* ---------- layout ---------- */
.ev-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  max-width: calc(1040px + 2 * var(--pad-x));
  padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 112px);
}

/* ---------- title block ---------- */
.ev-date { font-weight: 700; color: var(--ink); }
.ev-title {
  font-size: var(--step-3);
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.ev-summary { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin-top: 16px; }

.ev-organiser {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 14px;
}
.ev-organiser__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ochre);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.ev-organiser p { max-width: none; }
.ev-organiser__name { font-size: var(--step-0); }
.ev-organiser__note { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- sections ---------- */
.ev-section { margin-top: clamp(32px, 4vw, 44px); }
.ev-section h2 {
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: 14px;
}
.ev-section p + p, .ev-section p + ul { margin-top: 14px; }

.ev-row { display: flex; gap: 14px; align-items: flex-start; }
.ev-row svg {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ev-link { display: block; width: max-content; margin-top: 6px; color: var(--forest-soft); font-weight: 700; }
.ev-link::after { content: " \2192"; }

.ev-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--forest);
}
.ev-refund { margin-top: 16px; color: var(--ink-soft); }
.ev-refund strong { color: var(--ink); }

.ev-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.ev-list li { position: relative; padding-left: 20px; }
.ev-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ochre);
}

/* ---------- ticket card ---------- */
.ev-ticket {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border: 1px solid rgba(23, 20, 15, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(3, 63, 35, 0.08);
  background: var(--white);
}
.ev-ticket p { max-width: none; }
.ev-ticket__price { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); color: var(--ink); line-height: 1.1; }
.ev-ticket__when { color: var(--ink-soft); margin-top: 4px; }
.ev-ticket__btn { width: 100%; margin-top: 20px; }
.ev-ticket__note { font-size: var(--step--1); color: var(--ink-soft); text-align: center; margin-top: 12px; }

/* ---------- mobile ticket bar ---------- */
.ev-bar .sticky-bar__inner { align-items: center; justify-content: space-between; }
.ev-bar__info { display: flex; flex-direction: column; color: var(--white); line-height: 1.3; }
.ev-bar__info strong { font-family: var(--font-display); font-size: var(--step-1); }
.ev-bar__info span { font-size: var(--step--1); color: var(--cream); }
.ev-bar .btn { flex: none; }

@media (max-width: 899px) {
  .ev-layout { grid-template-columns: 1fr; }
  .ev-ticket { position: static; }
}
@media (max-width: 759px) {
  .ev-ticket { display: none; }
  .ev-banner { padding-block: var(--header-h) 0; background: none; }
  .ev-banner__blur { display: none; }
  .ev-banner .container { padding-inline: 0; }
  .ev-banner__img { border-radius: 0; height: 62vw; }
}
