/* EVENTS PAGE — SOIES Nepal events with photo galleries */

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5% 60px;
}

.events-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
}
.events-loading i {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: block;
}

/* ── Event Card ── */
.event-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  border-color: rgba(79,172,254,.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

/* ── Photo area ── */
.event-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,.02);
}
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.event-card:hover .event-photo img {
  transform: scale(1.05);
}

.photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 2.5rem;
  opacity: .3;
}

/* ── Event body ── */
.event-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: #4facfe;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.event-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.event-desc {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.event-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(79,172,254,.08);
  color: #4facfe;
  border: 1px solid rgba(79,172,254,.15);
}

.view-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: #4facfe;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: gap .2s;
}
.view-gallery-btn:hover { gap: 10px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background .2s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,.2); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.18); }

.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 600;
}

/* ── No events ── */
.no-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.no-events i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
  color: var(--text-dim);
  opacity: .5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-body { padding: 18px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}
