/* ─────────────────────────────────────────
   EVENTS PAGE — matches about.css exactly
   Prefix: epg-  (events page)
───────────────────────────────────────── */

/* ── CSS vars (same as about page) ── */
.aci-events-pg {
  --pg-navy:   #1a1a6e;
  --pg-orange: #ff6600;
  --pg-org2:   #e05500;
  --pg-muted:  #555577;
  --pg-disp:   'Segoe UI', system-ui, sans-serif;
  --pg-card-r: 18px;
}

/* ── Scroll progress bar ── */
.epg-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pg-navy), var(--pg-orange));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Shared layout ── */
.epg-wrap          { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.epg-divider       { border: none; border-top: 1px solid rgba(26,26,110,.1); margin: 0; }

/* ── Scroll-reveal ── */
.epg-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.epg-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Labels & titles ── */
.epg-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(26,26,110,.1);
  color: var(--pg-navy);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.epg-title {
  font-family: var(--pg-disp);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--pg-navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.epg-title em { font-style: normal; color: var(--pg-orange); }
.epg-title.light { color: #fff; }
.epg-sub {
  font-size: 15px;
  color: var(--pg-muted);
  line-height: 1.8;
}


/* ══════════════════════════════════
   1. HERO
══════════════════════════════════ */
.epg-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,26,110,.07) 0%, transparent 70%);
}
.epg-hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .35;
  pointer-events: none;
}
.epg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .12;
  pointer-events: none;
}
.epg-blob1 { width: 480px; height: 480px; background: var(--pg-navy);  top: -100px; left: -120px; animation: blobFloat1 9s ease-in-out infinite; }
.epg-blob2 { width: 360px; height: 360px; background: var(--pg-orange); top: 30%;  right: -80px;  animation: blobFloat2 11s ease-in-out infinite; }
.epg-blob3 { width: 300px; height: 300px; background: var(--pg-navy);  bottom: 0; left: 40%;     animation: blobFloat3 13s ease-in-out infinite; }

@keyframes blobFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,40px)} }
@keyframes blobFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes blobFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(15px,-25px)} }

.epg-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  width: 100%;
}

/* ── Hero left ── */
.epg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pg-navy);
  background: rgba(26,26,110,.08);
  border: 1px solid rgba(26,26,110,.15);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 22px;
}
.epg-hero-badge span {
  width: 8px; height: 8px;
  background: var(--pg-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.epg-hero-left h1 {
  font-family: var(--pg-disp);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--pg-navy);
  margin-bottom: 20px;
}
.epg-hero-left h1 em { font-style: normal; color: var(--pg-orange); }
.epg-hero-left > p {
  font-size: 16px;
  color: var(--pg-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.epg-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.epg-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pg-navy);
  color: #fff;
  padding: 13px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.epg-btn-solid:hover { background: var(--pg-orange); transform: translateY(-2px); }

.epg-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--pg-navy);
  color: var(--pg-navy);
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.epg-btn-outline:hover { background: var(--pg-navy); color: #fff; transform: translateY(-2px); }

.epg-btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,26,110,.08);
  color: var(--pg-navy);
  border: 2px solid var(--pg-navy);
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.epg-btn-navy:hover { background: var(--pg-navy); color: #fff; transform: translateY(-2px); }

.epg-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid rgba(26,26,110,.12);
}
.epg-hstat-num { font-size: 28px; font-weight: 800; color: var(--pg-navy); }
.epg-hstat-lbl { font-size: 12px; color: var(--pg-muted); margin-top: 2px; }

/* ── Hero right ── */
.epg-hero-right {
  position: relative;
  height: 420px;
}

.epg-fcard {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(26,26,110,.12);
  border-radius: var(--pg-card-r);
  padding: 18px 22px;
  box-shadow: 0 8px 30px rgba(26,26,110,.1);
  min-width: 160px;
  animation: floatCard 6s ease-in-out infinite;
}
.epg-fcard1 { top: 20px;  left: 10px;  animation-delay: 0s; }
.epg-fcard2 { top: 90px;  right: 0px;  animation-delay: 2s; }
.epg-fcard3 { bottom: 80px; left: 30px; animation-delay: 4s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.epg-fcard-icon { font-size: 24px; color: var(--pg-orange); margin-bottom: 6px; }
.epg-fcard-val  { font-size: 18px; font-weight: 700; color: var(--pg-navy); }
.epg-fcard-sub  { font-size: 12px; color: var(--pg-muted); margin-top: 2px; }

/* Decorative calendar widget */
.epg-cal-widget {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: var(--pg-navy);
  border-radius: 16px;
  padding: 18px 22px;
  width: 200px;
  animation: floatCard 8s ease-in-out infinite 1s;
}
.epg-cal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.epg-cal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.epg-cal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-orange { background: var(--pg-orange); }
.dot-blue   { background: #4fc3f7; }
.dot-green  { background: #69f0ae; }

.epg-cal-bar {
  height: 6px;
  background: rgba(255,255,255,.25);
  border-radius: 4px;
  animation: barLoad 2s ease forwards;
}
@keyframes barLoad { from{width:0} }


/* ══════════════════════════════════
   2. FEATURED EVENT
══════════════════════════════════ */
.epg-featured-section { padding: 72px 0; }
.epg-featured-section .epg-label,
.epg-featured-section .epg-title { display: block; }

.epg-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26,26,110,.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(26,26,110,.08);
  margin-top: 32px;
}

.epg-featured-img {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,26,110,.08), rgba(255,102,0,.06));
}
.epg-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.epg-featured-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(26,26,110,.25);
}
.epg-featured-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--pg-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.epg-featured-body { padding: 40px 40px 40px 0; }

.epg-featured-title {
  font-family: var(--pg-disp);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  color: var(--pg-navy);
  margin: 12px 0 14px;
  line-height: 1.2;
}
.epg-featured-desc {
  font-size: 15px;
  color: var(--pg-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.epg-featured-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.epg-featured-btns { display: flex; gap: 14px; flex-wrap: wrap; }


/* ══════════════════════════════════
   Event type tags
══════════════════════════════════ */
.epg-event-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.epg-tag-workshop    { background: rgba(26,26,110,.1);  color: var(--pg-navy); }
.epg-tag-seminar     { background: rgba(14,116,144,.12); color: #0e7490; }
.epg-tag-result      { background: rgba(255,102,0,.12); color: var(--pg-org2); }
.epg-tag-celebration { background: rgba(124,58,237,.12); color: #7c3aed; }
.epg-tag-other       { background: rgba(100,100,120,.1); color: #555; }


/* ── Meta row (date, time, venue) ── */
.epg-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pg-muted);
}
.epg-meta-item i { color: var(--pg-orange); font-size: 14px; }


/* ══════════════════════════════════
   3. FILTER + GRID
══════════════════════════════════ */
.epg-grid-section { padding: 72px 0; }
.epg-grid-head    { text-align: center; margin-bottom: 40px; }

/* Filter bar */
.epg-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.epg-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 30px;
  border: 2px solid rgba(26,26,110,.18);
  color: var(--pg-muted);
  background: transparent;
  text-decoration: none;
  transition: all .2s;
}
.epg-filter-btn:hover,
.epg-filter-btn.active {
  background: var(--pg-navy);
  border-color: var(--pg-navy);
  color: #fff;
  transform: translateY(-2px);
}
.epg-filter-btn.active { box-shadow: 0 4px 16px rgba(26,26,110,.25); }

/* Events grid — 3 cols */
.epg-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Event tile */
.epg-event-tile {
  background: #fff;
  border: 1px solid rgba(26,26,110,.1);
  border-radius: var(--pg-card-r);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.epg-event-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,26,110,.12);
}

/* Tile image */
.epg-tile-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,26,110,.06), rgba(255,102,0,.05));
}
.epg-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.epg-event-tile:hover .epg-tile-img img { transform: scale(1.05); }
.epg-tile-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(26,26,110,.2);
}

/* Status badge on image */
.epg-tile-status {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-upcoming { background: var(--pg-navy); color: #fff; }
.status-past     { background: rgba(0,0,0,.5);  color: #fff; }

/* Tile body */
.epg-tile-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.epg-tile-title {
  font-family: var(--pg-disp);
  font-size: 17px;
  font-weight: 700;
  color: var(--pg-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}
.epg-tile-desc {
  font-size: 13px;
  color: var(--pg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.epg-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(26,26,110,.08);
}
.epg-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pg-orange);
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.epg-tile-link:hover { gap: 10px; color: var(--pg-org2); }

/* Empty state */
.epg-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--pg-muted);
}
.epg-empty i    { font-size: 64px; color: rgba(26,26,110,.18); display: block; margin-bottom: 20px; }
.epg-empty h3   { font-size: 22px; color: var(--pg-navy); margin-bottom: 10px; }
.epg-empty p    { font-size: 14px; margin-bottom: 24px; }


/* ══════════════════════════════════
   4. STATS (same as about)
══════════════════════════════════ */
.epg-stats { background: var(--pg-navy); padding: 64px 0; }
.epg-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.epg-stat-icon { font-size: 28px; color: var(--pg-orange); margin-bottom: 12px; }
.epg-stat-big  { font-size: 42px; font-weight: 800; color: #fff; line-height: 1; }
.epg-stat-lbl  { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 8px; }
.epg-stat-cell { padding: 16px; }


/* ══════════════════════════════════
   5. CTA (same as about)
══════════════════════════════════ */
.epg-cta { padding: 80px 0; }
.epg-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.epg-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .epg-events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .epg-hero-inner { grid-template-columns: 1fr; padding: 60px 24px 40px; }
  .epg-hero-right { display: none; }
  .epg-featured-card { grid-template-columns: 1fr; }
  .epg-featured-img  { height: 220px; }
  .epg-featured-body { padding: 24px; }
  .epg-events-grid   { grid-template-columns: 1fr; }
  .epg-stat-row      { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .epg-filter-row    { gap: 8px; }
  .epg-filter-btn    { font-size: 12px; padding: 7px 14px; }
}

@media (max-width: 480px) {
  .epg-stat-row { grid-template-columns: 1fr 1fr; }
  .epg-stat-big { font-size: 32px; }
}