/* ============================================================
   hero.css — Hero Slider Narasi
   Warna brand:
     --gold   : #fab825
     --forest : #1a3726
     --green  : #147b28
     --cream  : #F0EBC0
   ============================================================ */


/* ── @keyframes ───────────────────────────────────────────── */

@keyframes heroSlowZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroShimmer {
  from { background-position: 0%; }
  to   { background-position: 200%; }
}

@keyframes heroScrollDown {
  from { top: -100%; }
  to   { top: 200%; }
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ── Section wrapper ─────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* Gradasi mulus: forest-green gelap → cream di bawah */
  background: linear-gradient(
    160deg,
    #1a3726 0%,
    #1d4a2e 30%,
    #2a6040 55%,
    #c8d89a 78%,
    #F0EBC0 100%
  );
}


/* ── Slide ────────────────────────────────────────────────── */

.hero__slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero__slide--active {
  display: grid;
  animation: heroFadeIn 0.6s ease both;
}


/* ── Panel Kiri: Gambar ───────────────────────────────────── */

.hero__image-panel {
  position: relative;
  background: #1a3726;
  overflow: hidden;
  height: auto;
}

/* Overlay gradien: kiri transparan → kanan cream (menyambung panel teks) */
.hero__image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 55, 38, 0.15) 0%,
    rgba(26, 55, 38, 0.05) 45%,
    #F0EBC0 100%
  );
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  animation: heroSlowZoom 12s ease-out forwards;
  display: block;
}


/* ── Panel Kanan: Konten ──────────────────────────────────── */

.hero__content-panel {
  position: relative;
  /* Gradasi panel teks: dari hijau gelap ke cream */
  background: linear-gradient(
    135deg,
    #2a6040 0%,
    #3d7a50 20%,
    #8ab87a 50%,
    #c8d89a 70%,
    #F0EBC0 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 64px 80px 56px;
  z-index: 2;
}


/* ── Eyebrow ─────────────────────────────────────────────── */

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: heroFadeUp 0.8s 0.2s both;
}

.hero__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F0EBC0;
  background: rgba(240, 235, 192, 0.18);
  border: 1px solid rgba(240, 235, 192, 0.3);
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

.hero__eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #fab825, transparent);
}

.hero__edition {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 235, 192, 0.6);
  white-space: nowrap;
}


/* ── Judul ───────────────────────────────────────────────── */

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #F0EBC0;
  margin-bottom: 28px;
  animation: heroFadeUp 0.8s 0.35s both;
  text-shadow: 0 2px 12px rgba(26, 55, 38, 0.3);
}

.hero__title em {
  font-style: italic;
  color: #fab825;
}


/* ── Deskripsi ───────────────────────────────────────────── */

.hero__description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240, 235, 192, 0.82);
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 44px;
  animation: heroFadeUp 0.8s 0.5s both;
}


/* ── Meta ────────────────────────────────────────────────── */

.hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
  animation: heroFadeUp 0.8s 0.6s both;
}

.hero__author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fab825;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1a3726;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(250, 184, 37, 0.3);
}

.hero__author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__author-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #F0EBC0;
}

.hero__meta-details {
  font-size: 0.74rem;
  color: rgba(240, 235, 192, 0.55);
  letter-spacing: 0.04em;
}

.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(240, 235, 192, 0.2);
  margin-left: 4px;
}

.hero__read-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__read-time-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fab825;
  line-height: 1;
}

.hero__read-time-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 235, 192, 0.5);
}


/* ── CTA ─────────────────────────────────────────────────── */

.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: heroFadeUp 0.8s 0.75s both;
}

.hero__btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a3726;
  color: #F0EBC0;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: color 0.25s;
}

/* Hover fill hijau dari kiri */
.hero__btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #147b28;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.hero__btn-primary:hover::before {
  transform: translateX(0);
}

.hero__btn-primary span,
.hero__btn-primary svg {
  position: relative;
  z-index: 1;
}

.hero__btn-primary svg {
  transition: transform 0.2s;
}

.hero__btn-primary:hover svg {
  transform: translateX(4px);
}

.hero__btn-secondary {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(240, 235, 192, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 235, 192, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero__btn-secondary:hover {
  color: #F0EBC0;
  border-color: #F0EBC0;
}


/* ── Dekorasi ─────────────────────────────────────────────── */

.hero__vertical-label {
  position: absolute;
  right: -72px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 235, 192, 0.25);
  white-space: nowrap;
  animation: heroFadeUp 1s 1s both;
}

.hero__issue-watermark {
  position: absolute;
  bottom: 48px;
  right: 64px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(240, 235, 192, 0.07);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}


/* ── Kontrol Slider ───────────────────────────────────────── */

.hero__controls {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 30;
}

.hero__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 235, 192, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.hero__dot--active {
  background: #fab825;
  transform: scale(1.3);
}

.hero__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 55, 38, 0.5);
  border: 1px solid rgba(250, 184, 37, 0.3);
  color: #F0EBC0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero__nav-btn:hover {
  background: #1a3726;
  border-color: #fab825;
}


/* ── Scroll indicator ─────────────────────────────────────── */

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
  animation: heroFadeUp 1s 1.2s both;
}

.hero__scroll-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 235, 192, 0.4);
}

.hero__scroll-bar {
  width: 1px;
  height: 48px;
  background: rgba(240, 235, 192, 0.15);
  position: relative;
  overflow: hidden;
}

.hero__scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fab825;
  animation: heroScrollDown 1.8s ease-in-out infinite;
}


/* ── Shimmer bar bawah ────────────────────────────────────── */

.hero__shimmer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fab825, #147b28, #fab825);
  background-size: 200%;
  animation: heroShimmer 4s linear infinite;
  z-index: 10;
}


/* ── Responsive ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .hero__content-panel {
    padding: 100px 40px 80px 40px;
  }

  .hero__vertical-label {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero__slide--active {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 1fr;
  }

  /* Gradien ke bawah di mobile */
  .hero__image-panel::after {
    background: linear-gradient(
      0deg,
      #2a6040 0%,
      rgba(26, 55, 38, 0.1) 55%,
      transparent 100%
    );
  }

  .hero__image-panel {
    height: 42vh;
  }

  .hero__content-panel {
    padding: 36px 28px 100px 28px;
    background: linear-gradient(
      170deg,
      #2a6040 0%,
      #5a9468 35%,
      #a8c888 65%,
      #F0EBC0 100%
    );
  }

  .hero__title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero__description {
    font-size: 0.92rem;
    margin-bottom: 32px;
  }

  .hero__meta {
    gap: 14px;
    margin-bottom: 32px;
  }

  .hero__issue-watermark {
    font-size: 3.5rem;
    right: 28px;
    bottom: 28px;
  }

  .hero__controls {
    bottom: 32px;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero__btn-primary {
    width: 100%;
    justify-content: center;
  }
}