/* Bagian "Blog Terbaru" di Home */
.l4l-blog, .l4l-blog * { box-sizing: border-box; }
.l4l-blog { padding: clamp(56px, 7vw, 104px) 0; background: #0a2e29; color: #fff; overflow: hidden; }
.l4l-blog__inner { max-width: calc(var(--l4l-max) + 2 * var(--l4l-gutter)); margin: 0 auto; padding: 0 var(--l4l-gutter); }

.l4l-blog__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.l4l-blog .l4l-blog__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: #fff; }
.l4l-blog__title > span { display: block; }
.l4l-blog .l4l-blog__all {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; color: #fff; font-size: .9375rem; font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.l4l-blog .l4l-blog__all:hover { background: #fff; border-color: #fff; color: var(--l4l-green); }
.l4l-blog__all svg { transition: transform .25s var(--l4l-ease); }
.l4l-blog__all:hover svg { transform: translateX(4px); }

.l4l-blog__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.l4l-blog__grid.is-single { grid-template-columns: minmax(0, 1fr); }

.l4l-blog .l4l-blog__cat { margin: 0; font-size: .875rem; font-weight: 700; line-height: 1.4; color: #ffa676; }
.l4l-blog .l4l-blog__meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .76); }
.l4l-blog__meta span { position: relative; }
.l4l-blog__meta span::before { content: ""; position: absolute; left: -10px; top: .35em; height: .85em; width: 1px; background: rgba(255, 255, 255, .45); }

/* Artikel utama: teks di atas foto */
.l4l-blog-lead { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 600px; border-radius: 28px; overflow: hidden; background: #14413c; }
.l4l-blog-lead__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.l4l-blog .l4l-blog-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--l4l-ease); }
.l4l-blog-lead:hover .l4l-blog-lead__media img { transform: scale(1.04); }
.l4l-blog-lead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 22, 19, .95) 0%, rgba(4, 22, 19, .84) 34%, rgba(4, 22, 19, .3) 66%, rgba(4, 22, 19, .05) 100%); }
.l4l-blog-lead__body { padding: 32px; }
.l4l-blog .l4l-blog-lead__title { margin: 8px 0 0; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.l4l-blog .l4l-blog-lead__title a, .l4l-blog .l4l-blog-card__title a { color: #fff; text-decoration: none; }
.l4l-blog-lead__title a::after, .l4l-blog-card__title a::after { content: ""; position: absolute; inset: 0; }
.l4l-blog .l4l-blog-lead__text { margin: 12px 0 0; max-width: 58ch; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.l4l-blog .l4l-blog-lead__body .l4l-blog__meta { margin-top: 16px; }

/* Empat artikel lain */
.l4l-blog__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 28px; list-style: none; margin: 0; padding: 0; }
.l4l-blog-card { position: relative; display: flex; flex-direction: column; }
.l4l-blog-card__media { aspect-ratio: 16 / 10; margin-bottom: 16px; border-radius: 18px; overflow: hidden; background: #14413c; }
.l4l-blog .l4l-blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--l4l-ease); }
.l4l-blog-card:hover .l4l-blog-card__media img { transform: scale(1.06); }
.l4l-blog .l4l-blog-card__title { margin: 5px 0 10px; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.l4l-blog-card__title a, .l4l-blog-lead__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--l4l-ease); padding-bottom: 2px; }
.l4l-blog-card:hover .l4l-blog-card__title a, .l4l-blog-lead:hover .l4l-blog-lead__title a { background-size: 100% 2px; }

.l4l-blog a:focus-visible { outline: 3px solid #ffa676; outline-offset: 4px; border-radius: 6px; }
.l4l-blog .l4l-blog__all:focus-visible { border-radius: 999px; }
.l4l-blog-lead__title a:focus-visible, .l4l-blog-card__title a:focus-visible { outline: 0; }
.l4l-blog-lead__title a:focus-visible::after { outline: 3px solid #ffa676; outline-offset: -6px; border-radius: 28px; }
.l4l-blog-card__title a:focus-visible::after { outline: 3px solid #ffa676; outline-offset: 4px; border-radius: 18px; }

@media (max-width: 1099.98px) {
  .l4l-blog__grid { grid-template-columns: minmax(0, 1fr); }
  .l4l-blog-lead { min-height: 520px; }
}
/* Ponsel: artikel lain bisa digeser menyamping */
@media (max-width: 767.98px) {
  .l4l-blog-lead { min-height: 500px; border-radius: 22px; }
  .l4l-blog-lead__body { padding: 22px; }
  .l4l-blog__list {
    display: flex; gap: 18px; margin: 0 calc(-1 * var(--l4l-gutter)); padding: 6px var(--l4l-gutter) 14px;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--l4l-gutter); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent;
  }
  .l4l-blog-card { flex: 0 0 72%; scroll-snap-align: start; }
  .l4l-blog .l4l-blog__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-blog-rise { from { transform: translateY(115%); } to { transform: none; } }
  @keyframes l4l-blog-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes l4l-blog-wipe { from { clip-path: inset(0 100% 0 0 round 28px); } to { clip-path: inset(0 round 28px); } }
  @keyframes l4l-blog-lift { from { clip-path: inset(100% 0 0 0 round 18px); transform: translateY(30px); } to { clip-path: inset(0 round 18px); transform: none; } }
  @keyframes l4l-blog-settle { from { transform: scale(1.2); } to { transform: none; } }

  .l4l-motion .l4l-blog__title { overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
  .l4l-motion .l4l-blog__head:not(.is-in) .l4l-blog__title > span { transform: translateY(115%); }
  .l4l-motion .l4l-blog__head:not(.is-in) .l4l-blog__all,
  .l4l-motion .l4l-blog__grid:not(.is-in) > * { opacity: 0; }

  .l4l-motion .l4l-blog__head.is-in .l4l-blog__title > span { animation: l4l-blog-rise .95s cubic-bezier(.16, 1, .3, 1) both; }
  .l4l-motion .l4l-blog__head.is-in .l4l-blog__all { animation: l4l-blog-up .7s var(--l4l-ease) .25s backwards; }

  /* Artikel utama tersingkap dari kiri, lalu teksnya */
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-lead { animation: l4l-blog-wipe 1.15s cubic-bezier(.65, 0, .15, 1) backwards; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-lead__media img { animation: l4l-blog-settle 1.9s cubic-bezier(.16, .8, .24, 1) backwards; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-lead__body > * { animation: l4l-blog-up .65s var(--l4l-ease) .75s backwards; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-lead__body > :nth-child(2) { animation-delay: .84s; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-lead__body > :nth-child(3) { animation-delay: .93s; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-lead__body > :nth-child(4) { animation-delay: 1.02s; }

  /* Kartu: foto terangkat satu per satu, teks menyusul */
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-card__media { animation: l4l-blog-lift .85s cubic-bezier(.3, .8, .2, 1) calc(.35s + var(--i) * .13s) backwards; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-card__media img { animation: l4l-blog-settle 1.3s var(--l4l-ease) calc(.35s + var(--i) * .13s) backwards; }
  .l4l-motion .l4l-blog__grid.is-in .l4l-blog-card > :not(.l4l-blog-card__media) { animation: l4l-blog-up .6s var(--l4l-ease) calc(.7s + var(--i) * .13s) backwards; }

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

/* Aksen bagian berikutnya tidak menimpa tepi blog */
.l4l-blog + .publication-area::before, .l4l-blog + .publication-area::after { display: none; }
