/* ==========================================================================
   HALAMAN PROGRAM (program.html)
   ========================================================================== */
/* ==========================================================================
   PERLEBAR CONTAINER & RUANG HALAMAN (MORE WIDESCREEN & FILLING)
   ========================================================================== */
.program-catalog-grid {
  gap: 30px; /* Jarak antar kartu lebih proporsional */
}

/* ==========================================================================
   5. DETAIL KELAS (`detail-kelas.html`)
   ========================================================================== */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF8E9;
  color: #B78103;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ==========================================================================
   PERBAIKAN ORNAMEN HERO PROGRAM (STACKING LAYER FIX)
   ========================================================================== */
.program-hero {
  position: relative !important;
  padding: 50px 0 30px;
  background-color: var(--bg-main, #F6F5E4);
  overflow: hidden;
}

/* 1. Latar Belakang Kartu (Layer Paling Bawah di Dalam Hero) */
.program-hero-wrapper {
  position: relative;
  z-index: 1; /* Diubah ke z-index: 1 agar berada di bawah ornamen */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-orange-light, #FFFBF3);
  border: 1px solid #FDF0ED;
  border-radius: 32px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(232, 151, 67, 0.06);
  box-sizing: border-box;
}

/* 2. Container Ornamen (Layer Tengah: Di atas background kartu, di bawah teks) */
.program-hero .hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2 !important; /* Dinaikkan ke z-index: 2 agar berada di ATAS background wrapper */
  pointer-events: none; /* Agar klik kursor tetap menembus ke tombol/teks */
}

/* 3. Teks Utama (Layer Paling Atas) */
.program-hero-text {
  position: relative;
  z-index: 3; /* Dinaikkan ke z-index: 3 agar teks berada di ATAS ornamen */
  flex-grow: 1;
  max-width: 720px;
  padding: 0;
  text-align: center;
}

.program-hero-text .page-title {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--navy);
}

.program-hero-text .page-lead {
  font-size: 17.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Responsif Layar Tablet & HP */
@media (max-width: 768px) {
  .program-hero {
    padding: 30px 0 20px;
  }
  .program-hero-wrapper {
    padding: 32px 20px;
    border-radius: 24px;
  }
  .program-hero-text .page-title {
    font-size: 36px;
  }
  .program-hero-text .page-lead {
    font-size: 15px;
  }
}


.hero-bubble-left {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #E1F3FE;
  color: var(--blue);
  box-shadow: none;
}

.floating-text-right {
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 16px;
  color: var(--blue);
  line-height: 1.2;
  text-align: right;
  font-weight: 700;
}

/* ==========================================================================
   PROGRAM CATALOG CARDS (REFERENSI DESAIN PRESISI)
   ========================================================================== */
.program-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
  margin-top: 40px;
}

.program-card-new {
  position: relative;
  border-radius: 28px;
  padding: 45px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 25px rgba(43, 58, 122, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(43, 58, 122, 0.08);
}

/* Icon Frame Melayang di Atas Card */
.card-icon-floating {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(43, 58, 122, 0.08);
  padding: 8px;
}

.card-icon-floating img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-card-new h3 {
  font-family: "Baloo 2", cursive, sans-serif;
  font-size: 22px;
  color: var(--navy);
  margin: 10px 0 6px;
}
/* Badge Usia */
.age-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 15px;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 18px;
  flex-grow: 1;
}

/* Baris Meta Data (Dotted Line Separator) */
.card-meta-row {
  width: 100%;
  border-top: 2px dashed rgba(100, 116, 139, 0.2);
  padding-top: 14px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.meta-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.price-text {
  color: #E11D48;
  font-weight: 700;
}

.program-card-new .btn {
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13.5px;
}

@media (max-width: 980px) {
  /* Responsif Mobile & Tablet */
  .program-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 18px;
  }
}

@media (max-width: 600px) {
  .program-catalog-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ==========================================================================
   10. MEDIA QUERIES (RESPONSIVE DISATUKAN)
   ========================================================================== */

@media (max-width: 980px) {
  .program-catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bubble-left, .floating-text-right { display: none; }
}

@media (max-width: 576px) {
  .program-catalog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HERO SECTION DECORATIVE ORNAMENTS (BACKGROUND LEVEL)
   ========================================================================== */

/* 1. Pastikan section hero menjadi acuan koordinat (relative) & overflow aman */
.hero, .hero-about, .detail-hero, .program-hero, .gallery-hero, .contact-hero-section {
  position: relative !important;
  overflow: hidden; /* Mencegah ornamen keluar dari batas layar */
}

/* 2. Pastikan Konten Utama (Teks, Tombol, Gambar Utama) Berada DI ATAS Ornamen */
.hero .container,
.hero-text-side,
.hero-art-side,
.hero-grid {
  position: relative;
  z-index: 2; /* Layer Konten Utama */
}

/* 3. Container Khusus Ornamen Background */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Layer Background di Bawah Konten */
  pointer-events: none; /* Agar ornamen tidak menghalangi klik kursor/mouse */
}

/* 4. Base Class Semua Ornamen */
.decor-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.85; /* Transparansi lembut agar terlihat seperti elemen background */
}

/* ==========================================================================
   TATA LETAK MASING-MASING ORNAMEN (CONPOSING & POSISIONING)
   ========================================================================== */

/* Splatter/Bercak Cat (Cat Spill) - Pojok Kiri Atas */
.decor-cat-spill {
  top: -20px;
  left: 40px;
  width: 280px;
  height: auto;
  transform: rotate(-15deg);
}

/* Bintang Berkilau (Blink Stars) - Kiri Tengah Samping Teks */
.decor-blink-star {
  top: 60%;
  left: 10%;
  width: 155px;
  height: auto;
}

/* Deretan 5 Bintang (5Star) - Kanan Atas di Belakang Gambar Utama */
.decor-5star {
  top: 5px;
  right: 2%;
  width: 210px;
  height: auto;
}

/* Garis Gelombang (Wavy Line) - Bawah Kiri Dekat Tombol */
.decor-wavy {
  bottom: 0px;
  right: 25%;
  width: 250px;
  height: auto;
}

/* Garis Setengah Lingkaran (Half Circle Line) - Kanan Bawah */
.decor-half-circle {
  Top : 70px;
  right: 3%;
  width: 400px;
  height: auto;
}

/* Ikon Hati / Heart - Melayang di Tengah */
.decor-heart {
  top: 13%;
  left: 45%;
  width: 155px;
  height: auto;
  transform: rotate(12deg);
}

/* Ikon Bintang / Star - Melayang di Kanan Atas */
.decor-star {
  top: 5%;
  right: 55%;
  width: 300px;
  height: auto;
  transform: rotate(5deg);
}

/* ==========================================================================
   RESPONSIF ORNAMEN HERO
   Semua ornamen tetap tampil di semua ukuran layar. Yang disesuaikan hanya
   ukuran dan letaknya: makin kecil layar, ornamen makin kecil dan makin
   dirapatkan ke tepi kartu agar tidak mendekati teks.
   Tata letak & ukuran default (di atas 1200px) tidak diubah.
   ========================================================================== */

   @media (max-width: 1440px) {
  .decor-half-circle { top: 50%;   right: 1%;   width: 250px; }
  .decor-cat-spill   { top: -14px; left: -25px; }
  .decor-wavy        { bottom: 1px; right: 30%;  width: 200px; }
}  

/* --- Laptop kecil (≤ 1200px) --- */
@media (max-width: 1200px) {
  .decor-cat-spill   { top: -14px; left: 0;     width: 170px; }
  .decor-blink-star  { top: 36%;   left: 2%;    width: 70px; }
  .decor-star        { top: auto; bottom: 10px; left: 3%; right: auto; width: 140px; }
  .decor-5star       { top: 10px;  right: 2%;   width: 150px; }
  .decor-heart       { top: 20%;    right: 22%;  width: 110px; }
  .decor-half-circle { top: 50%;   right: 1%;   width: 230px; }
  .decor-wavy        { bottom: 12px; right: 26%; width: 150px; }
}

/* --- Tablet (≤ 992px) --- */
@media (max-width: 992px) {
  .decor-cat-spill   { top: -12px; left: -8px;  width: 140px; }
  .decor-blink-star  { top: 38%;   left: 1%;    width: 58px; }
  .decor-star        { bottom: 8px; left: 2%;   width: 110px; }
  .decor-5star       { top: 10px;  right: 1%;   width: 115px; }
  .decor-heart       { top: 20%;   right: 2%;   width: 70px; }
  .decor-half-circle { top: 48%;   right: 0;    width: 170px; }
  .decor-wavy        { bottom: 10px; right: 28%; width: 115px; }
}

/* --- Tablet kecil & HP besar (≤ 768px) --- */
@media (max-width: 768px) {
  .decor-cat-spill   { top: -10px; left: -12px; width: 110px; }
  .decor-blink-star  { top: 35%;   left: 5%;    width: 66px; }
  .decor-star        { bottom: 8px; left: 2%;   width: 86px; }
  .decor-5star       { top: 8px;   right: 2%;   width: 92px; }
  .decor-heart       { top: 10%;    right: 45%;  width: 100px; }
  .decor-half-circle { top: 55%;   right: 1%;   width: 130px; }
  .decor-wavy        { bottom: 8px; right: 30%;  width: 90px; }
}

/* --- HP (≤ 600px) --- */
@media (max-width: 600px) {
  .decor-cat-spill   { top: -8px;  left: -14px; width: 88px; }
  .decor-blink-star  { top: 44%;   left: 1%;    width: 56px; }
  .decor-star        { bottom: 6px; left: 2%;   width: 66px; }
  .decor-5star       { top: 6px;   right: 2%;   width: 72px; }
  .decor-heart       { top: 20%;   right: 45%;   width: 62px; }
  .decor-half-circle { top: 58%;   right: 1%;   width: 100px; }
  .decor-wavy        { bottom: 6px; right: 30%;  width: 72px; }
}

/* --- HP kecil (≤ 430px) --- */
@media (max-width: 430px) {
  .decor-cat-spill   { top: 12px;  left: -12px; width: 70px; }
  .decor-blink-star  { top: 46%;   left: 5%;    width: 38px; }
  .decor-star        { bottom: 5px; left: 1%;   width: 72px; }
  .decor-5star       { top: 5px;   right: 1%;   width: 58px; }
  .decor-heart       { top: 19%;   right: 41%;   width: 52px; }
  .decor-half-circle { top: 68%;   right: -2%;   width: 80px; }
  .decor-wavy        { bottom: 10px; right: 30%;  width: 76px; }
}

