/* ==========================================================
   MELAJOO HOME PAGE
   Semua style hero di file ini sengaja dibuat eksplisit agar
   mudah di-inspect dan diedit lewat Chrome DevTools.
   Tidak ada hero image di pseudo-element / background CSS.
   Gambar hero adalah elemen <img class="hero-art"> di HTML.
   ========================================================== */

:root {
  --home-container: 1360px;
  --hero-height: 520px;
  --hero-left: #073f77;
  --hero-mid: #07518f;
  --hero-right: #0961aa;
  --hero-teal: #13d8c5;
}

/* Header: lebih rapat dan logo lebih besar */
.container {
  width: min(var(--home-container), calc(100% - 48px));
}

.nav-wrap {
  height: 66px;
  gap: 18px;
}

.site-header .logo img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.nav {
  gap: 18px;
  margin-left: 8px;
}

.nav a {
  padding: 22px 0;
  font-size: 13px;
}

.search-pill {
  min-width: 238px;
  padding: 9px 14px;
}

/* HERO */
.hero {
  position: relative;
  min-height: var(--hero-height);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 48% 88%, rgba(20, 207, 194, .24), transparent 20%),
    linear-gradient(90deg, var(--hero-left) 0%, #064784 48%, var(--hero-mid) 70%, var(--hero-right) 100%);
}

/* Matikan dekorasi pseudo-element lama agar semua bisa diedit via DOM */
.hero::before,
.hero::after,
.hero-visual::before,
.hero-visual::after {
  content: none !important;
  display: none !important;
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  align-items: center;
  min-height: var(--hero-height);
  padding: 42px 0 28px;
  gap: 0;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 640px;
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: #22ead7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(46px, 4.35vw, 64px);
  line-height: 1.035;
  letter-spacing: -.045em;
}

.hero h1 em {
  color: #12dbca;
  font-style: normal;
  white-space: nowrap;
}

.hero .lead {
  max-width: 550px;
  margin: 0 0 22px;
  color: #e2edf8;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  min-height: 46px;
  padding: 10px 20px;
  font-size: 13px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
}

.hero-point > span:last-child {
  display: grid;
  gap: 2px;
}

.hero-point b {
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.hero-point small {
  color: #c8dcec;
  font-size: 10.5px;
  line-height: 1.3;
}

.hero .icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #19dfcf;
  background: rgba(3, 47, 90, .35);
  border: 1px solid rgba(84, 218, 221, .40);
}

/*
   Hero artwork berupa IMG biasa, bukan CSS background.
   Silakan inspect .hero-art untuk mengubah width/right/top.
*/
.hero-art {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: min(61vw, 950px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

.hero-visual-spacer {
  min-height: 1px;
}

/* Dekorasi juga elemen DOM nyata, bukan pseudo-element */
.hero-bg-accent {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-accent--middle {
  width: 250px;
  height: 250px;
  left: 42%;
  bottom: -120px;
  background: rgba(22, 201, 195, .34);
}

.hero-bg-accent--right {
  width: 330px;
  height: 250px;
  right: -125px;
  bottom: -115px;
  background: #15cfc4;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.45fr;
  align-items: stretch;
  padding: 20px 0;
}

.stat {
  min-height: 82px;
  padding: 8px 18px;
}

.stat b {
  font-size: 23px;
}

.stat span {
  font-size: 11.5px;
}

.stat-quote {
  align-items: flex-start;
  text-align: left;
}

.stat-quote p {
  margin: 0;
  color: #61758a;
  font-size: 12.5px;
  line-height: 1.5;
}

.stat-quote small {
  margin-top: 5px;
  color: #8495a6;
  font-size: 11px;
}

/* Section spacing dibuat lebih compact */
.section {
  padding: 48px 0;
}

.section-sm {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 1120px) {
  :root { --hero-height: 500px; }

  .hero-grid {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  }

  .hero-art {
    width: 58vw;
  }

  .hero h1 {
    font-size: clamp(42px, 5vw, 56px);
  }
}

@media (max-width: 900px) {
  :root { --hero-height: auto; }

  .container {
    width: min(100% - 28px, var(--home-container));
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 38px 0 330px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-art {
    top: auto;
    bottom: 0;
    width: min(100%, 720px);
    height: 330px;
    object-position: right bottom;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-quote {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 780px) {
  .site-header .logo img {
    height: 39px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero .lead {
    font-size: 14px;
  }

  .hero-grid {
    padding-bottom: 285px;
  }

  .hero-art {
    height: 285px;
  }

  .hero-points {
    gap: 14px 18px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-grid {
    padding-bottom: 235px;
  }

  .hero-art {
    height: 235px;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat-quote {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================
   FEATURED PROGRAM CARDS
   Scoped hanya ke section di bawah hero.
   Header/menu, sticky header, hero, stats, dan footer tidak diubah.
   ========================================================== */
.featured-programs {
  background: #fff;
}

.featured-programs .section-head {
  align-items: flex-end;
  margin-bottom: 22px;
}

.featured-program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.featured-program-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e7f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 57, 111, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.featured-program-card:hover {
  transform: translateY(-3px);
  border-color: #b9dbe8;
  box-shadow: 0 16px 34px rgba(6, 57, 111, .11);
}

.featured-program-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8f7ff, #effdfb);
}

.featured-program-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  transition: transform .3s ease;
}

.featured-program-card:hover .featured-program-media img {
  transform: scale(1.025);
}

/* Kategori sekarang HTML/CSS asli, bukan bagian dari gambar */
.course-chip {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(8, 48, 87, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-chip--teal {
  background: rgba(25, 215, 194, .94);
  color: #063b51;
}

.course-chip--blue {
  background: rgba(214, 244, 255, .95);
  color: #07779e;
}

.course-chip--purple {
  background: rgba(239, 232, 255, .95);
  color: #6547b4;
}

.course-chip--orange {
  background: rgba(255, 238, 209, .96);
  color: #a45a09;
}

.featured-program-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 16px;
}

.featured-program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #7890a7;
  font-size: 10.5px;
  line-height: 1.35;
}

.featured-program-card h3 {
  margin: 0 0 7px;
  color: #07396f;
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -.015em;
}

.featured-program-card p {
  margin: 0 0 14px;
  color: #6d8298;
  font-size: 11.5px;
  line-height: 1.55;
}

.featured-program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 2px;
}

.featured-program-footer .price {
  color: #07396f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.featured-program-footer .price small {
  margin-right: 5px;
  color: #91a2b3;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: line-through;
}

.featured-program-footer .btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 11.5px;
}

@media (max-width: 1120px) {
  .featured-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .featured-programs .section-head {
    align-items: flex-start;
  }

  .featured-program-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-program-media {
    aspect-ratio: 16 / 8.5;
  }
}
