/* ═══════════════════════════════════════════════════════════
   event.css — Event Selanjutnya & Event Sebelumnya
   Requires style.css (base vars, navbar, footer)
═══════════════════════════════════════════════════════════ */

.page-main {
  min-height: 0;
  background: #ffffff;
}

.event-btn-back-wrap {
  padding: 16px 30px 0;
  background: #f5f7fc;
}
/* ════════════════════════════════════
   SECTION WRAPPER
════════════════════════════════════ */
.event-section {
  padding: 48px 60px 56px;
}

.event-section--upcoming {
  background: #ffffff;
}

.event-section--past {
  background: var(--orange);
}

.event-section__heading {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.event-section--upcoming .event-section__heading {
  color: var(--navy);
}

.event-section--past .event-section__heading {
  color: #ffffff;
}

/* ════════════════════════════════════
   EVENT CARD
════════════════════════════════════ */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

/* Light card (upcoming) */
.event-card:not(.event-card--dark) {
  background: #ffffff;
  border: 1px solid #e8eaf0;
}

/* Dark card (past — white bg still, but on orange section) */
.event-card--dark {
  background: #ffffff;
}

/* ── Image ── */
.event-card__img {
  width: 180px;
  min-height: 130px;
  background: #d0d5e8;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body ── */
.event-card__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.event-card__title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-card__divider {
  width: 100%;
  height: 1.5px;
  background: var(--orange);
  margin: 6px 0 8px;
}

.event-card__meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #333;
  line-height: 1.5;
}

/* ── Skeleton ── */
.event-card--skeleton {
  background: #f0f2f5;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.event-card__img--skeleton {
  background: #dde0e8;
  animation: shimmer 1.4s infinite linear;
}

.event-card__skel-line {
  background: #dde0e8;
  border-radius: 4px;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ── Empty state ── */
.event-empty {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #888;
  padding: 20px 0;
}

.event-section--past .event-empty {
  color: rgba(255,255,255,0.8);
}

/* ════════════════════════════════════
   PAGINATION (upcoming)
════════════════════════════════════ */
.event-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.event-pag__btn,
.event-pag__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1.5px solid #d0d5e8;
  background: #fff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.event-pag__num.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 700;
}

.event-pag__btn:hover:not(:disabled),
.event-pag__num:hover:not(.is-active) {
  border-color: var(--orange);
  color: var(--orange);
}

.event-pag__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ════════════════════════════════════
   "LIHAT EVENT LAINNYA" BUTTON (past)
════════════════════════════════════ */
.event-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-decoration: none;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  transition: background 0.2s, color 0.2s;
}

.event-more-btn:hover {
  background: var(--navy);
  color: #ffffff;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .event-section {
    padding: 40px 32px 48px;
  }
}

@media (max-width: 640px) {
  .event-section {
    padding: 32px 20px 40px;
  }

  .event-card {
    grid-template-columns: 120px 1fr;
  }

  .event-card__img {
    width: 120px;
    min-height: 100px;
  }

  .event-card__body {
    padding: 12px 14px;
  }

  .event-card__title {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__img {
    width: 100%;
    height: 160px;
  }
}

/* ── Pagination inside orange (past) section — inverted colours ── */
.event-pagination--past {
  margin-top: 24px;
}

.event-pag__btn--inv,
.event-pag__num--inv {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.event-pag__num--inv.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--orange);
}

.event-pag__btn--inv:hover:not(:disabled),
.event-pag__num--inv:hover:not(.is-active) {
  background: rgba(255,255,255,0.3);
  border-color: #fff;
  color: #fff;
}

.event-pag__btn--inv:disabled {
  opacity: 0.3;
  cursor: default;
}
/* ════════════════════════════════════
   EVENT HEADLINE — top featured card
════════════════════════════════════ */
.event-headline {
  background: #f5f7fc;
  padding: 40px 60px;
}

.event-headline__skeleton {
  height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e8eaf0 25%, #f4f5f8 50%, #e8eaf0 75%);
  background-size: 200% 100%;
  animation: evHeadShimmer 1.4s infinite;
  max-width: 1100px;
  margin: 0 auto;
}

@keyframes evHeadShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.event-headline__card {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(26,42,94,0.1);
  text-decoration: none;
  max-width: 1100px;
  margin: 0 auto;
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-headline__card:hover {
  box-shadow: 0 10px 36px rgba(26,42,94,0.15);
  transform: translateY(-3px);
}

.event-headline__img {
  overflow: hidden;
  min-height: 220px;
}

.event-headline__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.event-headline__card:hover .event-headline__img img {
  transform: scale(1.04);
}

.event-headline__img--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #3d5aad 100%);
  min-height: 220px;
}

.event-headline__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.event-headline__badge {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 3px 12px;
  align-self: flex-start;
}

.event-headline__title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

.event-headline__divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.event-headline__meta {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.event-headline__cta {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .event-headline { padding: 32px 32px; }
  .event-headline__card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 640px) {
  .event-headline { padding: 24px 20px; }
  .event-headline__card { grid-template-columns: 1fr; }
  .event-headline__img { min-height: 180px; }
  .event-headline__body { padding: 20px 20px; }
}