/* Events page (modern) */
.ev{ background: var(--bg); }

/* HERO */
.ev-hero{
  padding: 36px 0 18px;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(14,165,233,.16), transparent 55%),
    radial-gradient(900px 520px at 90% 25%, rgba(11,103,163,.18), transparent 55%),
    linear-gradient(180deg, rgba(2,6,23,.03), transparent 70%);
}
.ev-hero__row{
  display:grid;
  grid-template-columns: 1.1fr .75fr;
  gap: 16px;
  align-items: stretch;
}
.ev-eyebrow{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ev-title{
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
}
.ev-sub{
  margin: 0;
  color:#334155;
  line-height: 1.75;
  max-width: 75ch;
}
.ev-meta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top: 14px;
}
.ev-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(2,6,23,.06);
  font-weight: 900;
  font-size: 13px;
}
.ev-chip i{ color: var(--accent); }

.ev-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 16px;
}
.ev-btn{
  border:0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color:#fff;
  background: linear-gradient(90deg, var(--brand2), var(--accent));
  box-shadow: 0 14px 30px rgba(11,103,163,.22);
}
.ev-btn:hover{ filter: brightness(1.05); }
.ev-btn--ghost{
  background: transparent;
  color:#0b3a5b;
  border: 1px solid rgba(2,6,23,.16);
  box-shadow:none;
}
.ev-btn--ghost:hover{ background: rgba(2,6,23,.04); }

/* Hero image card */
.ev-hero__media{ height: 100%; }
.ev-mediaCard{
  height: 100%;
  min-height: 360px;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  background:#e5e7eb;
}
.ev-mediaCard img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ev-mediaBadge{
  position:absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color:#fff;
  font-weight: 900;
  font-size: 13px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ev-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239,68,68,.22);
}

/* Strip */
.ev-strip{ padding: 8px 0 18px; }
.ev-strip__grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.ev-stripCard{
  background:#fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color:#334155;
}
.ev-stripCard i{ color: var(--accent); margin-top: 2px; }
.ev-stripCard b{ display:block; color:#0f172a; }
.ev-stripCard small{ color: var(--muted); font-weight: 700; }

/* Schedule */
.ev-section{ padding: 18px 0 44px; }
.ev-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
  flex-wrap:wrap;
}
.ev-head h2{ margin:0; font-size: 24px; }
.ev-head p{ margin: 6px 0 0; color: var(--muted); }

.ev-filters{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.ev-filter{
  border: 1px solid rgba(2,6,23,.14);
  background:#fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 900;
  cursor:pointer;
}
.ev-filter:hover{ background: rgba(2,6,23,.03); }
.ev-filter.is-active{
  background: rgba(14,165,233,.14);
  border-color: rgba(14,165,233,.22);
  color: var(--accent);
}

.ev-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ev-card{
  background:#fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color:#334155;
}
.ev-cardTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}
.ev-tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.04);
  font-weight: 900;
  font-size: 12px;
  color:#0f172a;
}
.ev-time{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
}
.ev-card h3{
  margin: 0;
  font-size: 18px;
  color:#0f172a;
}
.ev-card p{ margin: 0; line-height: 1.7; }

.ev-cardFoot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-top:auto;
  padding-top: 10px;
  border-top: 1px solid rgba(2,6,23,.08);
}
.ev-day{
  color: var(--muted);
  font-weight: 800;
  display:inline-flex;
  gap: 8px;
  align-items:center;
}
.ev-link{
  font-weight: 900;
  color: #1f6feb;
  text-decoration:none;
}
.ev-link:hover{ text-decoration:underline; }

/* CTA */
.ev-cta{
  padding: 10px 0 54px;
  background: #f8fafc;
}
.ev-cta__box{
  background:#fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.ev-cta__box h2{ margin: 6px 0 8px; }
.ev-cta__box p{ margin: 0; color:#334155; line-height: 1.7; max-width: 70ch; }
.ev-cta__actions{ display:flex; gap: 10px; flex-wrap:wrap; }

/* Responsive */
@media (max-width: 980px){
  .ev-hero__row{ grid-template-columns: 1fr; }
  .ev-strip__grid{ grid-template-columns: 1fr; }
  .ev-grid{ grid-template-columns: 1fr; }
  .ev-mediaCard{ min-height: 220px; }
}

/* =========================
   EVENTS – Card header tint (like Quick Facts)
   Paste at END of stylesheet
========================= */

.ev-card{
  overflow: hidden; /* lets the tinted header follow rounded corners */
}

.ev-cardTop{
  margin: -16px;               /* cancels the .ev-card padding */
  margin-bottom: 10px;
  padding: 14px 16px;

  background: rgba(14,165,233,.10);  /* soft brand tint */
  border-bottom: 1px solid rgba(2,6,23,.08);
}

/* keep the pill/tag readable on tint */
.ev-cardTop .ev-tag{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(2,6,23,.06);
}

/* =========================
   EVENTS – PHOTO GALLERY
========================= */
.ev-gallery{
  padding: 10px 0 54px;
  background: #f8fafc;
}

.ev-galleryGrid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.ev-galleryItem{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.ev-galleryItem img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.ev-galleryItem:hover img{
  transform: scale(1.06);
}

/* Lightbox */
.ev-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.78);
  z-index: 9999;
}

.ev-lightbox.open{ display: flex; }

#evLightboxImg{
  max-width: min(1100px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
}

.ev-lightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  color: #111827;
  display: grid;
  place-items: center;
}

/* Responsive */
@media (max-width: 980px){
  .ev-galleryGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .ev-galleryGrid{ grid-template-columns: 1fr; }
}

@media (min-width: 900px){
  .ev-hero__row,
  .ev-strip,
  .ev-section,
  .ev-cta,
  .ev-gallery{
    padding-left: 40px;
  }
}