/*
 * @zalika-file: style-main.css
 *
 * @zalika-role:
 *   - asset
 *
 * @zalika-context:
 *   - home
 *
 * @zalika-affects:
 *   - template-parts/hero.php
 *   - template-parts/why.php
 *   - template-parts/programs.php
 *   - template-parts/cta.php
 *
 * @zalika-loaded-by:
 *   - functions.php
 *
 * @zalika-restrictions:
 *   - tidak digunakan oleh page.php
 *   - tidak digunakan oleh single.php
 *   - tidak digunakan sebagai global base style
 *
 * @zalika-notes:
 *   - CSS khusus Home / Landing Page
 *   - Perubahan berdampak ke seluruh Home section
 */


/* ======================================================
   [FROZEN] HOME BASE & HEADER
   - header.php
   - navigation
   - layout offset
   ====================================================== */

/* =========================
   RESET (HOME SKOPE)
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* =========================
   BODY (HOME ONLY)
========================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  background: #ffffff;

  /* ruang untuk header fixed */
  padding-top: 90px;
}





/* =====================================================
   CTA SECTION (BOTTOM)
===================================================== */


.home-cta {
  padding: 80px 80px;
  
  background: #0F3D2E;
  color: #ffffff;
}

.home-cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}



.home-cta__text h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.home-cta__text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}


/* CTA Button */

.home-cta__button {
  display: inline-block;
  background: #22c55e;
  color: #064E3B;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}




/* ======================================================
   [END FROZEN] HOME BASE & HEADER
   ⚠ Jangan ubah kecuali redesign navigasi / header
====================================================== */


/* ======================================================
   [LOCKED] HOME – HERO SECTION
   - template-parts/hero.php
   - inc/home-hero.php
   - assets/images/hero/*
   ====================================================== */
/* ======================================================
   HERO – STABLE SLIDER VERSION (FIXED)
====================================================== */

.home-hero {
  position: relative;
  min-height: 520px;   /* tinggi fix desktop */
  height: 65vh;        /* proporsional */
  max-height: 700px;   /* batas atas */
  overflow: hidden;

  margin-top: -90px;
  padding-top: 90px;
}


/* Slides container fix */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Image full cover */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s linear;
  
}

/* Overlay (di atas gambar, di bawah tombol) */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.30),
    rgba(0, 0, 0, 0.15)
  );
  z-index: 2;
  pointer-events: none;
}

/* Pastikan tombol di atas overlay */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 22px;
  z-index: 3;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-prev:hover,
.hero-next:hover {
  background: rgba(0,0,0,0.6);
}

.home-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 4;
}

.home-hero__content {
  background: rgba(0,0,0,0.03);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  padding: 28px 28px;
  display: inline-block;		
}

/* Paksa warna teks */
.home-hero__content h1{
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,0.55);
}

.home-hero__content p{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

/* Link */
.home-hero__content a,
.home-hero__content a:visited{
  color: #fff !important;
  font-weight: 600;
  text-decoration: underline;
}



/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {

  .home-hero {
    height: 55vh;
    min-height: 420px;
    margin-top: -80px;
    padding-top: 80px;
  }
  
  .home-hero__content{
    padding: 18px 18px;
    border-radius: 14px;
  }

}



/* ======================================================
   [END LOCKED] HOME – HERO SECTION
   ⚠ Jangan ubah kecuali redesign besar
====================================================== */

/* ======================================================
   [LOCKED] HOME – WHY SECTION
   - template-parts/why.php
   ====================================================== */

.home-why {
  padding: 72px 0;
  background: #ffffff;
}

.home-why__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.home-why__header {
  max-width: 720px;
  margin-bottom: 40px;
}

.home-why__title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #0F172A;
}


.home-why__lead {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
}


/* Grid */
.home-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}


/* Card */
.home-why__card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.home-why__card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0F172A;
}


.home-why__card p {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}


/* Hover (desktop only, halus & elegan) */
@media (hover: hover) {
  .home-why__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  }
}


/* =========================
   RESPONSIVE WHY SECTION
========================= */

@media (max-width: 900px) {
  .home-why {
    padding: 56px 0;
  }


  .home-why__grid {
    grid-template-columns: 1fr;
  }


  .home-why__title {
    font-size: 26px;
  }

  
   .home-why__lead {
    font-size: 15px;
  }

  
  .home-why__card {
    padding: 22px 20px;
  }
}

/* ======================================================
   [END LOCKED] HOME – WHY SECTION
   ⚠ Jangan ubah kecuali redesign besar
====================================================== */

 
/* ======================================================
   [LOCKED] HOME – PROGRAMS SECTION (FINAL)
   - template-parts/programs.php
   - inc/home-teaser.php
   ====================================================== */

.home-programs {
  padding: 72px 0;
  background: #ffffff;
}

.home-programs__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.home-programs__header {
  max-width: 720px;
  margin-bottom: 40px;
}

.home-programs__title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #0F172A;
}

.home-programs__lead {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
}

/* Grid */
.home-programs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Card (FINAL SOURCE OF TRUTH) */
.home-programs__card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 56px 24px 28px; /* ruang badge + nafas */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* Badge (category) */
.home-programs__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
}


/* Category tones (soft & calm)*/
.home-programs__badge--kemanusiaan {
  background: rgba(37, 99, 235, 0.12); /* biru lembut */
  color: #1E3A8A;
}

.home-programs__badge--pendidikan {
  background: rgba(22, 163, 74, 0.12); /* hijau lembut */
  color: #14532D;
}

.home-programs__badge--lingkungan {
  background: rgba(132, 204, 22, 0.14); /* olive lembut */
  color: #365314;
}

/* Content */
.home-programs__text {
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 18px;
}



/* CTA */
.home-programs__link {
  font-weight: 600;
  text-decoration: none;
  color: #16A34A;
}



.home-programs__link:hover {
  text-decoration: underline;
}



/* Hover (desktop only) */
@media (hover: hover) {
  .home-programs__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  }
}




/* =========================
   RESPONSIVE PROGRAMS
========================= */
@media (max-width: 900px) {
  .home-programs {
    padding: 56px 0;
  }

  .home-programs__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-programs__card {
    padding: 52px 20px 26px;
  }
}



/* ======================================================
   [END LOCKED] HOME – PROGRAMS SECTION
   ⚠ Jangan ubah kecuali redesign besar
====================================================== */

