/* ── Events Page ─────────────────────────────────────────────────── */

/* Hero Banner */
.events-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.events-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.events-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.events-hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 20px;
}
.events-hero-content .eyebrow {
  font-family: 'Saira', sans-serif;
  font-size: 13px; letter-spacing: 4px;
  text-transform: uppercase; color: #7dd3fc;
  margin-bottom: 10px;
}
.events-hero-content h1 {
  font-family: 'Saira', sans-serif;
  font-size: 48px; font-weight: 700;
  line-height: 1.1; margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,.7);
}
.events-hero-content p {
  font-size: 18px; font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
@media (max-width: 768px) {
  .events-hero { height: 250px; }
  .events-hero-content h1 { font-size: 32px; }
  .events-hero-content p { font-size: 16px; }
}

/* ── Section wrapper ── */
.events-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Upcoming / Past / Process sections ── */
.ev-upcoming, .ev-past, .ev-process {
  overflow-x: hidden;
}

/* ── Section heading ── */
.ev-section-head {
  text-align: center;
  margin-bottom: 44px;
}
.ev-section-head .tag {
  display: inline-block;
  font-family: 'Saira', sans-serif;
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: #0693e3;
  background: #e8f4fd; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 14px;
}
.ev-section-head h2 {
  font-family: 'Saira', sans-serif;
  font-size: 38px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 0;
}
.ev-divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, #0693e3, #68b34c);
  border-radius: 2px; margin: 14px auto 0;
}

/* ── Filter bar ── */
.ev-filters {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.ev-filter-btn {
  padding: 9px 22px;
  border: 1.5px solid #d0d8e4;
  background: #fff; color: #555;
  border-radius: 30px;
  font-family: 'Saira', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.ev-filter-btn:hover { border-color: #0693e3; color: #0693e3; }
.ev-filter-btn.active {
  background: #0693e3; border-color: #0693e3;
  color: #fff; box-shadow: 0 4px 14px rgba(6,147,227,.3);
}

/* ── Upcoming section ── */
.ev-upcoming { padding: 72px 0 56px; background: #f5f7fb; }

@media (max-width: 767px) {
  .ev-upcoming { padding: 48px 0 36px !important; }
  .ev-past { padding: 40px 0 !important; }
  .ev-process { padding: 56px 0 !important; }
}

/* ── Event grid ── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ev-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 700px) {
  .ev-upcoming, .ev-past, .ev-process { padding-left: 0; padding-right: 0; }
  .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ev-section-head h2 { font-size: 28px; }
  .ev-steps { flex-wrap: wrap; gap: 24px; }
  .ev-step { flex: 0 0 calc(50% - 12px); }
  .ev-step::after, .ev-step::before { display: none; }
  .ev-filters { padding: 0 4px; }
}
@media (max-width: 480px) {
  .ev-grid { grid-template-columns: 1fr; gap: 12px; }
  .ev-step { flex: 0 0 100%; }
  .ev-card-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ev-card-foot > div:last-child { width: 100%; justify-content: flex-end; }
}
.ev-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

/* card image */
.ev-card-img {
  position: relative; height: 210px; overflow: hidden;
}
.ev-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.ev-card:hover .ev-card-img img { transform: scale(1.06); }

/* date chip */
.ev-date-chip {
  position: absolute; top: 14px; left: 14px;
  background: #fff; border-radius: 10px;
  padding: 8px 12px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  min-width: 52px; line-height: 1;
}
.ev-date-chip .day {
  display: block; font-family: 'Saira', sans-serif;
  font-size: 24px; font-weight: 700; color: #0693e3;
}
.ev-date-chip .mon {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; color: #888; margin-top: 2px;
}

/* price badge */
.ev-price-badge {
  position: absolute; top: 14px; right: 14px;
  background: #0693e3; color: #fff;
  padding: 5px 13px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(6,147,227,.4);
}
.ev-price-badge.free { background: #68b34c; }

/* availability */
.ev-avail {
  position: absolute; bottom: 12px; left: 12px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
}
.ev-avail.open   { background: #e6f9ee; color: #1a7a3c; }
.ev-avail.limited { background: #fff4e0; color: #b85c00; }
.ev-avail.full   { background: #fdecea; color: #c0392b; }

/* card body */
.ev-card-body { padding: 20px 20px 14px; flex: 1; }
.ev-card-type {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #0693e3; background: #e8f4fd;
  padding: 3px 10px; border-radius: 10px;
  margin-bottom: 10px;
}
.ev-card-title {
  font-family: 'Saira', sans-serif;
  font-size: 18px; font-weight: 700;
  color: #1a1a2e; line-height: 1.3;
  margin-bottom: 12px;
}
.ev-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #777; margin-bottom: 7px; }
.ev-meta svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .6; }

/* card footer */
.ev-card-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
}
.ev-tickets {
  display: flex; flex-direction: column;
}
.ev-tickets .lbl { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.ev-tickets .val { font-size: 14px; font-weight: 700; color: #0693e3; }

.ev-btn {
  padding: 9px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all .25s;
}
.ev-btn.outline {
  background: transparent; color: #0693e3; border-color: #0693e3;
}
.ev-btn.outline:hover { background: #0693e3; color: #fff; }
.ev-btn.solid {
  background: linear-gradient(135deg, #0693e3, #057ab8);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(6,147,227,.35);
}
.ev-btn.solid:hover { opacity: .88; transform: translateX(2px); }
.ev-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── Past events ── */
.ev-past { padding: 64px 0; background: #fff; }
.ev-past .ev-card-img { height: 180px; }
.ev-past .ev-card { opacity: .88; }
.ev-past .ev-card:hover { opacity: 1; }

/* ── Process section ── */
.ev-process {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f1b35 0%, #1a3a5c 100%);
  color: #fff;
}
.ev-process .ev-section-head .tag { background: rgba(255,255,255,.12); color: #7dd3fc; }
.ev-process .ev-section-head h2 { color: #fff; }

.ev-steps {
  display: flex; justify-content: center;
  gap: 0; flex-wrap: nowrap;
  position: relative;
}
.ev-step {
  flex: 1; text-align: center;
  padding: 0 16px; position: relative;
}
.ev-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 36px; right: -1px;
  width: 50%; height: 2px;
  background: rgba(255,255,255,.15);
}
.ev-step:not(:first-child)::before {
  content: '';
  position: absolute; top: 36px; left: -1px;
  width: 50%; height: 2px;
  background: rgba(255,255,255,.15);
}
.ev-step-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px; color: #7dd3fc;
  transition: all .3s;
}
.ev-step:hover .ev-step-icon {
  background: #0693e3; border-color: #0693e3;
  color: #fff; transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(6,147,227,.5);
}
.ev-step h4 {
  font-family: 'Saira', sans-serif;
  font-size: 15px; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.ev-step p { font-size: 12px; color: rgba(255,255,255,.55); margin: 0; }

/* ── Empty / loading states ── */
.ev-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 0;
  color: #aaa; font-size: 15px;
}

/* ── Event Detail Modal ──────────────────────────────────────────── */
.evd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.evd-overlay.open { display: flex; }

.evd-dialog {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  animation: evdIn .25s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
@keyframes evdIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.evd-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .15s, transform .15s;
}
.evd-close:hover { background: rgba(0,0,0,.75); transform: scale(1.1); }

.evd-hero {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #111;
  height: 260px;
}
.evd-hero img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .4s ease, opacity .2s;
}
.evd-hero img:hover { transform: scale(1.03); opacity: .92; }
.evd-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.evd-hero-content {
  position: absolute;
  bottom: 20px; left: 22px; right: 56px;
}
.evd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: .03em;
}
.evd-badge.open { background: #dcfce7; color: #15803d; }
.evd-badge.full { background: #fee2e2; color: #b91c1c; }
.evd-badge.past { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }

.evd-hero-content h2 {
  font-family: 'Saira', sans-serif;
  font-size: 24px; font-weight: 800;
  color: #fff; line-height: 1.2; margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.evd-body {
  padding: 22px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Meta grid: 2 columns */
.evd-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f2f5;
}
.evd-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
}
.evd-meta-row.full-width { grid-column: 1 / -1; }
.evd-meta-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0693e3;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.evd-meta-label { font-size: 10px; color: #9ca3af; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.evd-meta-val { font-size: 13px; font-weight: 600; color: #1a1a2e; line-height: 1.3; }

.evd-progress-wrap { margin-top: 4px; }
.evd-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #9ca3af; margin-bottom: 5px;
}
.evd-progress-bar {
  height: 5px; background: #e5e7eb;
  border-radius: 99px; overflow: hidden;
}
.evd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0693e3, #68b34c);
  border-radius: 99px;
  transition: width .6s ease;
}

.evd-desc {
  font-size: 13.5px; color: #4b5563;
  line-height: 1.75;
  margin-bottom: 20px;
}

.evd-tickets-section { margin-bottom: 20px; }
.evd-tickets-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #9ca3af; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.evd-tickets-label::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: #0693e3;
  border-radius: 2px;
}
.evd-ticket-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px; color: #1a1a2e;
  transition: border-color .15s;
}
.evd-ticket-row:hover { border-color: #0693e3; }
.evd-ticket-row strong { color: #0693e3; font-weight: 700; }

.evd-register-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0693e3, #057ab8);
  color: #fff;
  font-family: 'Saira', sans-serif;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 6px 20px rgba(6,147,227,.4);
  letter-spacing: .02em;
}
.evd-register-btn:hover { opacity: .9; transform: translateY(-1px); }

.evd-status-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 13px; font-weight: 600;
}
.evd-status-full { background: #fee2e2; color: #b91c1c; }

/* card footer with two buttons */
.ev-card-foot { flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .evd-hero { height: 200px; }
  .evd-hero-content h2 { font-size: 19px; }
  .evd-body { padding: 16px 18px 20px; }
  .evd-meta { grid-template-columns: 1fr; }
}

/* ── Image Lightbox ──────────────────────────────────────────────── */
.ev-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.ev-lightbox.open { display: flex; }

.ev-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
  animation: lbIn .2s ease;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ev-lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 1;
}
.ev-lightbox-close:hover { background: rgba(255,255,255,.3); }
