/* Bagian "Kegiatan terdekat" di Home */
.l4l-ev, .l4l-ev * { box-sizing: border-box; }
.l4l-ev { padding: clamp(56px, 7vw, 104px) 0; background: #fff; color: var(--l4l-ink); }
.l4l-ev__inner { max-width: calc(var(--l4l-max) + 2 * var(--l4l-gutter)); margin: 0 auto; padding: 0 var(--l4l-gutter); }
.l4l-ev ul { list-style: none; margin: 0; padding: 0; }

.l4l-ev__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 48px); }
.l4l-ev .l4l-ev__title { margin: 0; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; word-spacing: .08em; color: var(--l4l-green); text-wrap: balance; }
.l4l-ev__title > span { display: block; }
.l4l-ev .l4l-ev__note { margin: 12px 0 0; max-width: 56ch; font-size: 1.0625rem; line-height: 1.6; color: #3c4b47; }
.l4l-ev .l4l-ev__all {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--l4l-green); border-radius: 999px; color: var(--l4l-green); font-size: .9375rem; font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.l4l-ev .l4l-ev__all:hover { background: var(--l4l-green); color: #fff; }
.l4l-ev__all svg { transition: transform .25s var(--l4l-ease); }
.l4l-ev__all:hover svg { transform: translateX(4px); }

.l4l-ev__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.l4l-ev__grid.is-single { grid-template-columns: minmax(0, 1fr); }

/* Kegiatan utama */
.l4l-ev-lead { position: relative; }
.l4l-ev-lead__media { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #e3ebe8; }
.l4l-ev .l4l-ev-lead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--l4l-ease); }
.l4l-ev-lead:hover .l4l-ev-lead__media img { transform: scale(1.04); }
.l4l-ev-lead__date {
  position: absolute; left: 20px; bottom: 20px; display: block; min-width: 104px; padding: 14px 18px 12px; border-radius: 18px;
  background: #fff; color: var(--l4l-ink); text-align: center; box-shadow: 0 10px 30px rgba(5, 28, 24, .28);
}
.l4l-ev-lead__day { display: block; overflow: hidden; font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--l4l-green); font-variant-numeric: tabular-nums; }
.l4l-ev-lead__day > span, .l4l-ev-row__day > span { display: block; }
.l4l-ev-lead__month { display: block; margin-top: 4px; font-size: .875rem; font-weight: 600; color: var(--l4l-ink-soft); }
.l4l-ev-lead__body { padding: 24px 4px 0; }
.l4l-ev .l4l-ev-lead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: .9375rem; color: var(--l4l-ink-soft); }
.l4l-ev-chip { padding: 5px 14px; border-radius: 999px; background: #e3ebe8; color: #33433e; font-size: .875rem; font-weight: 700; }
.l4l-ev-chip.is-next { background: var(--l4l-orange-strong); color: #fff; }
.l4l-ev .l4l-ev-lead__title { margin: 14px 0 0; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); font-weight: 700; line-height: 1.28; letter-spacing: -.01em; text-wrap: pretty; }
.l4l-ev .l4l-ev-lead__title a { color: var(--l4l-ink); text-decoration: none; transition: color .2s; }
.l4l-ev-lead__title a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.l4l-ev .l4l-ev-lead:hover .l4l-ev-lead__title a { color: var(--l4l-green); }
.l4l-ev .l4l-ev-lead__text { margin: 12px 0 0; max-width: 64ch; font-size: 1rem; line-height: 1.65; color: #3c4b47; }

/* Agenda */
.l4l-ev .l4l-ev__sub { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 700; color: var(--l4l-ink); }
.l4l-ev ul + .l4l-ev__sub { margin-top: 36px; }
.l4l-ev-row { position: relative; }
.l4l-ev-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #d3dfda; transform-origin: left; }
.l4l-ev-row:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #d3dfda; }
.l4l-ev .l4l-ev-row a {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 20px; gap: 18px; align-items: start;
  padding: 22px 10px 22px 4px; color: var(--l4l-ink); text-decoration: none; transition: background-color .2s;
}
.l4l-ev .l4l-ev-row a:hover { background: #f3f8f6; }
.l4l-ev-row__date { display: block; }
.l4l-ev-row__day { display: block; overflow: hidden; font-size: 2.125rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--l4l-green); font-variant-numeric: tabular-nums; }
.l4l-ev-row__month { display: block; margin-top: 3px; font-size: .875rem; font-weight: 600; color: var(--l4l-ink-soft); }
.l4l-ev-row__text { display: block; min-width: 0; padding-top: 4px; }
.l4l-ev-row__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; /* judul sering berbeda hanya di ujungnya */ overflow: hidden;
  font-size: 1rem; font-weight: 600; line-height: 1.42; transition: color .2s;
}
.l4l-ev-row a:hover .l4l-ev-row__title { color: var(--l4l-green); }
.l4l-ev-row__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font-size: .875rem; color: var(--l4l-ink-soft); }
.l4l-ev-row__meta strong { font-weight: 700; color: var(--l4l-orange-strong); }
.l4l-ev-row__arrow { margin-top: 8px; color: var(--l4l-green); opacity: .45; transition: transform .25s var(--l4l-ease), opacity .2s; }
.l4l-ev-row a:hover .l4l-ev-row__arrow { transform: translateX(4px); opacity: 1; }

.l4l-ev a:focus-visible { outline: 3px solid var(--l4l-orange); outline-offset: 3px; border-radius: 12px; }
.l4l-ev .l4l-ev__all:focus-visible { border-radius: 999px; }
.l4l-ev-lead__title a:focus-visible { outline: 0; }
.l4l-ev-lead__title a:focus-visible::after { outline: 3px solid var(--l4l-orange); outline-offset: 4px; }

@media (max-width: 1099.98px) {
  .l4l-ev__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 600px) {
  .l4l-ev-lead__media { border-radius: 22px; aspect-ratio: 4 / 3; }
  .l4l-ev-lead__date { left: 14px; bottom: 14px; min-width: 88px; padding: 10px 14px; }
  .l4l-ev-lead__day { font-size: 2.125rem; }
  .l4l-ev .l4l-ev-row a { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .l4l-ev-row__arrow { display: none; }
  .l4l-ev-row__day { font-size: 1.75rem; }
  .l4l-ev .l4l-ev__all { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------
   Animasi. Keadaan awal hanya berlaku bila JS memasang .l4l-motion.
------------------------------------------------------------------- */
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes l4l-ev-rise { from { transform: translateY(115%); } to { transform: none; } }
  @keyframes l4l-ev-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes l4l-ev-curtain { from { clip-path: inset(100% 0 0 0 round 28px); } to { clip-path: inset(0 round 28px); } }
  @keyframes l4l-ev-settle { from { transform: scale(1.18); } to { transform: none; } }
  @keyframes l4l-ev-pop { 0% { opacity: 0; transform: translateY(24px) scale(.8); } 65% { opacity: 1; transform: translateY(-3px) scale(1.04); } 100% { opacity: 1; transform: none; } }
  @keyframes l4l-ev-draw { from { transform: scaleX(0); } to { transform: none; } }

  /* Sebelum terlihat */
  .l4l-motion .l4l-ev__title { overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
  .l4l-motion .l4l-ev__head:not(.is-in) .l4l-ev__title > span { transform: translateY(115%); }
  .l4l-motion .l4l-ev__head:not(.is-in) .l4l-ev__note,
  .l4l-motion .l4l-ev__head:not(.is-in) .l4l-ev__all,
  .l4l-motion .l4l-ev__grid:not(.is-in) > * { opacity: 0; }

  .l4l-motion .l4l-ev__head.is-in .l4l-ev__title > span { animation: l4l-ev-rise .95s cubic-bezier(.16, 1, .3, 1) both; }
  .l4l-motion .l4l-ev__head.is-in .l4l-ev__note { animation: l4l-ev-up .7s var(--l4l-ease) .2s backwards; }
  .l4l-motion .l4l-ev__head.is-in .l4l-ev__all { animation: l4l-ev-up .7s var(--l4l-ease) .3s backwards; }

  /* Foto tersingkap dari bawah, tanggal muncul, lalu teks */
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__media { animation: l4l-ev-curtain 1.1s cubic-bezier(.65, 0, .15, 1) backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__media img { animation: l4l-ev-settle 1.7s cubic-bezier(.16, .8, .24, 1) backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__date { animation: l4l-ev-pop .65s var(--l4l-ease) .85s backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__day > span { animation: l4l-ev-rise .7s cubic-bezier(.16, 1, .3, 1) 1.05s backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__meta { animation: l4l-ev-up .6s var(--l4l-ease) .6s backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__title { animation: l4l-ev-up .6s var(--l4l-ease) .7s backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-lead__text { animation: l4l-ev-up .6s var(--l4l-ease) .8s backwards; }

  /* Agenda: garis tergambar, angka bergulir naik, judul menyusul */
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev__sub { animation: l4l-ev-up .5s var(--l4l-ease) .25s backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-row::before { animation: l4l-ev-draw .8s cubic-bezier(.65, 0, .2, 1) calc(.25s + var(--i) * .13s) backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-row__day > span { animation: l4l-ev-rise .75s cubic-bezier(.16, 1, .3, 1) calc(.45s + var(--i) * .13s) backwards; }
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-row__month,
  .l4l-motion .l4l-ev__grid.is-in .l4l-ev-row__text { animation: l4l-ev-up .6s var(--l4l-ease) calc(.5s + var(--i) * .13s) backwards; }

  .l4l-motion .l4l-ev .is-done, .l4l-motion .l4l-ev .is-done *, .l4l-motion .l4l-ev .is-done *::before { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { .l4l-ev * { transition-duration: .01ms !important; } }
