/* =====================================================================
   DESKTOP ENHANCEMENT — hanya aktif di layar lebar (mobile-first).
   Tablet >= 768px | Laptop >= 1024px | Layar besar >= 1280px
   ===================================================================== */

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .section-img { max-width: 720px; }
  .section, .section--wide { margin-bottom: 72px; }
  .list__body, .schedule-notes, .profile-body { text-align: left; }
  .site-header { padding: 16px 0; }
  .site-header__logo { width: 42px; height: 42px; }
  .site-header__title { font-size: 1.2rem; }
}

/* ---------- Laptop ---------- */
@media (min-width: 1024px) {
  :root { --fs-besar: 2.6rem; --fs-sedang: 1.65rem; }

  main { max-width: 1160px; padding-top: 56px; }
  .floating-btn-wrap, .backtotop-wrap { max-width: 1160px; }
  .site-footer__inner { max-width: 1160px; }

  /* Hero: dua kolom — foto kiri, teks kanan, video di bawah */
  .hero {
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: center;
    margin-bottom: 80px;
  }
  /* Tinggi foto mengikuti tinggi kolom teks: foto diposisikan absolut
     sehingga tidak ikut menentukan tinggi baris grid. */
  .hero__img-wrap {
    position: relative;
    align-self: stretch;
    min-height: 380px;
    margin-bottom: 0;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
  }
  .hero__img {
    position: absolute;
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
  }
  .hero__content { align-items: flex-start; text-align: left; }
  .hero__title { align-items: flex-start; gap: 8px; }
  .hero__title-sub2 { text-align: left; }
  .hero__desc, .hero__location { text-align: left; font-size: 1.1rem; margin-top: 12px; }
  .hero__cta-badge { text-align: left; margin-top: 20px; padding: .5em 1.3em; border-radius: 18px; }
  .badge-blink-wrap { text-align: left; margin-top: 16px; }
  .hero > .video-thumb {
    grid-column: 1 / -1;
    max-width: 760px;
    margin: 16px auto 0;
  }

  /* Section: judul besar, daftar jadi grid kartu */
  .section, .section--wide { max-width: 1080px; }
  .list { max-width: 100%; margin-top: 32px; }
  .list__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
  }
  .list__item {
    background: var(--navy-card);
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,.06);
    border-top: 3px solid var(--gold-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .list__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
    border-top-color: var(--gold-light);
  }
  .list__item:has(.branch-gallery, .video-thumb) { grid-column: 1 / -1; }

  /* Galeri asrama: 3 kolom */
  .branch-gallery { flex-direction: row; gap: 20px; }
  .branch { flex: 1 1 0; min-width: 0; }

  .ciri-khas-badge--block { width: 100%; text-align: center; padding: 20px 28px; }
  .section--tight .list__items { grid-template-columns: 1fr; }

  /* FAQ: dua kolom */
  .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }
  .faq-card { padding: 20px 24px; transition: transform .2s ease; }
  .faq-card:hover { transform: translateY(-2px); }

  /* Jadwal & catatan */
  .schedule-list, .schedule-notes { max-width: 760px; }

  /* Profil */
  .profile-body { padding: 36px 48px; font-size: 1.05rem; }
  .profile-badge { padding: 22px; }

  /* Footer */
  .site-footer { padding: 56px 32px 28px; margin-bottom: 96px; }
  .site-footer__cols { gap: 56px; }

  /* Tombol melayang: tampil lebih jelas di desktop */
  .btn-wa-float { height: 52px; padding: 0 22px; font-size: 1rem; }
  .btn-menu-float, #backToTop { width: 52px; height: 52px; }
  .nav-popup__badge { font-size: .95rem; padding: 11px 22px; }
}

/* ---------- Layar besar ---------- */
@media (min-width: 1280px) {
  html { font-size: 17px; }
  main, .floating-btn-wrap, .backtotop-wrap, .site-footer__inner { max-width: 1240px; }
  .section, .section--wide, .hero { max-width: 1160px; }
}

/* Hormati preferensi kurangi gerakan */
@media (prefers-reduced-motion: reduce) {
  .list__item, .faq-card { transition: none; }
  .list__item:hover, .faq-card:hover { transform: none; }
  .badge-blink, .blink-dot { animation: none; }
  html { scroll-behavior: auto; }
}
