/* Badan halaman beranda P4M (di bawah panel pencarian). */

:root {
  --hm-sh-1: 0 1px 2px rgba(60, 0, 8, 0.05), 0 10px 28px -10px rgba(60, 0, 8, 0.16);
  --hm-sh-2: 0 2px 6px rgba(60, 0, 8, 0.07), 0 26px 50px -16px rgba(60, 0, 8, 0.32);
  --hm-grad: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 55%, var(--accent-light) 100%);
}

.hm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kerangka bagian ---------- */
.hm-sec { padding: 70px 0; position: relative; }
.hm-sec.tight { padding-top: 34px; }
.hm-sec.band {
  background:
    radial-gradient(700px 300px at 8% 0%, rgba(99, 0, 3, 0.05), transparent 70%),
    linear-gradient(180deg, #fbf4f4 0%, #fff8f7 100%);
}

.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.hm-eyebrow2 {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-color);
}
.hm-eyebrow2:before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: #f4bb35; }
.hm-head h3 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--heading-color); }
.hm-head p { margin: 8px 0 0; font-size: 14px; color: #6b5b5c; max-width: 620px; line-height: 1.6; }
.hm-more {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent-color); background: #fff; border: 1px solid var(--accent-border); box-shadow: var(--hm-sh-1);
  transition: 0.25s;
}
.hm-more:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: translateY(-2px); }

/* ---------- Muncul saat di-scroll ---------- */
.hm-js .hm-rev { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--i, 0s); }
.hm-js .hm-rev.in { opacity: 1; transform: none; }

/* ---------- Statistik ---------- */
.hm-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 30px; position: relative; z-index: 2; }
.hm-stat {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  padding: 20px 18px; border-radius: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, #fff 0%, #fdf6f6 100%);
  box-shadow: var(--hm-sh-1); border: 1px solid rgba(227, 195, 197, 0.55);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hm-stat:before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--hm-grad); }
.hm-stat:after {
  content: ""; position: absolute; right: -26px; bottom: -34px; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 0, 3, 0.09), transparent 70%);
}
.hm-stat:hover { transform: translateY(-5px); box-shadow: var(--hm-sh-2); }
.hm-stat .ic {
  flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--hm-grad); color: #fff; font-size: 22px; box-shadow: 0 10px 18px -6px rgba(99, 0, 3, 0.5);
}
.hm-stat strong { display: block; font-size: 28px; line-height: 1.05; font-weight: 700; color: var(--heading-color); }
.hm-stat span.lb { font-size: 12.5px; color: #6b5b5c; }
.hm-stat .go { position: absolute; right: 12px; top: 12px; font-size: 12px; color: var(--accent-color); opacity: 0; transition: 0.25s; }
.hm-stat:hover .go { opacity: 1; }

/* ---------- Ekosistem ---------- */
.hm-ecos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-eco {
  position: relative; overflow: hidden; display: block; text-decoration: none; color: inherit;
  padding: 26px 26px 24px; border-radius: 20px; min-height: 178px;
  background: #fff; border: 1px solid rgba(227, 195, 197, 0.55); box-shadow: var(--hm-sh-1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.hm-eco:hover { transform: translateY(-6px); box-shadow: var(--hm-sh-2); border-color: var(--accent-border); }
.hm-eco .ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 25px;
  color: var(--accent-color); background: var(--accent-soft); transition: 0.3s;
}
.hm-eco:hover .ic { background: var(--hm-grad); color: #fff; box-shadow: 0 12px 22px -8px rgba(99, 0, 3, 0.55); }
.hm-eco h4 { margin: 18px 0 6px; font-size: 19px; font-weight: 700; color: var(--heading-color); }
.hm-eco p { margin: 0; max-width: 86%; font-size: 13.5px; line-height: 1.6; color: #6b5b5c; }
.hm-eco .wm { position: absolute; right: -8px; bottom: -22px; font-size: 118px; line-height: 1; color: rgba(99, 0, 3, 0.05); transition: 0.4s; }
.hm-eco:hover .wm { color: rgba(99, 0, 3, 0.09); transform: scale(1.08) rotate(-4deg); }
.hm-eco .arr {
  position: absolute; right: 20px; top: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--accent-border); color: var(--accent-color); font-size: 14px; transition: 0.3s;
}
.hm-eco:hover .arr { background: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: rotate(-45deg); }
.hm-eco.feat { background: var(--hm-grad); border-color: transparent; color: #fff; }
.hm-eco.feat h4, .hm-eco.feat p { color: #fff; }
.hm-eco.feat p { opacity: 0.86; }
.hm-eco.feat .ic { background: rgba(255, 255, 255, 0.16); color: #ffd98a; }
.hm-eco.feat:hover .ic { background: #fff; color: var(--accent-color); }
.hm-eco.feat .wm { color: rgba(255, 255, 255, 0.09); }
.hm-eco.feat .arr { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.hm-eco.feat:hover .arr { background: #fff; color: var(--accent-color); }

/* ---------- Profil unggulan ---------- */
.hm-pfs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-pf {
  position: relative; overflow: hidden; display: block; text-decoration: none; color: inherit; text-align: center;
  border-radius: 22px; background: #fff; border: 1px solid rgba(227, 195, 197, 0.55); box-shadow: var(--hm-sh-1);
  padding: 0 24px 24px; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
}
.hm-pf:hover { transform: translateY(-7px); box-shadow: var(--hm-sh-2); }
.hm-pf .cover {
  height: 104px; margin: 0 -24px; position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 14px),
    radial-gradient(240px 120px at 80% 0%, rgba(244, 187, 53, 0.35), transparent 70%),
    var(--hm-grad);
}
.hm-pf .av {
  width: 104px; height: 104px; margin: -52px auto 0; border-radius: 50%; overflow: hidden; position: relative;
  border: 5px solid #fff; background: var(--accent-soft); display: grid; place-items: center;
  box-shadow: 0 14px 28px -10px rgba(60, 0, 8, 0.5);
}
.hm-pf .av img { width: 100%; height: 100%; object-fit: cover; }
.hm-pf .av span { font-size: 40px; font-weight: 700; color: var(--accent-color); }
.hm-pf h4 { margin: 14px 0 4px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--heading-color); }
.hm-pf .sub { margin: 0 0 12px; font-size: 13px; color: #6b5b5c; }
.hm-pf .chips { min-height: 54px; flex: 1; }
.hm-chip { display: inline-block; margin: 3px 2px; padding: 4px 11px; border-radius: 999px; font-size: 11px; background: #e8f2ff; color: #1464a1; }
.hm-pf .nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--accent-border); }
.hm-pf .nums b { display: block; font-size: 22px; line-height: 1.1; color: var(--accent-color); }
.hm-pf .nums span { font-size: 11px; color: #6b5b5c; }
.hm-pf .cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent-color); align-self: center;
}
.hm-pf .cta i { transition: transform 0.25s; }
.hm-pf:hover .cta i { transform: translateX(5px); }

/* ---------- Dua kolom: penelitian terbaru & dampak ---------- */
.hm-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: start; }
.hm-col-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hm-col-title h4 { margin: 0; font-size: 20px; font-weight: 700; color: var(--heading-color); }
.hm-col-title a { font-size: 13px; font-weight: 600; color: var(--accent-color); text-decoration: none; }

.hm-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px; margin-bottom: 14px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(227, 195, 197, 0.55); box-shadow: var(--hm-sh-1); transition: transform 0.3s, box-shadow 0.3s;
}
.hm-item:hover { transform: translateX(6px); box-shadow: var(--hm-sh-2); }
.hm-item .no {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff;
  background: var(--hm-grad); box-shadow: 0 12px 22px -8px rgba(99, 0, 3, 0.55);
}
.hm-item h5 {
  margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--heading-color);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: #6b5b5c; }
.hm-meta a { color: var(--accent-color); text-decoration: none; font-weight: 500; }
.hm-meta i { color: var(--accent-color); margin-right: 4px; }
.hm-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--accent-soft); color: var(--accent-color); }

.hm-impact {
  overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid rgba(227, 195, 197, 0.55); box-shadow: var(--hm-sh-1);
}
.hm-impact .head {
  position: relative; height: 138px; display: grid; place-items: center; color: #fff; font-size: 46px; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 14px),
    radial-gradient(260px 140px at 20% 0%, rgba(244, 187, 53, 0.35), transparent 70%),
    var(--hm-grad);
}
.hm-impact .head:after {
  content: "Dampak"; position: absolute; left: 22px; bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); color: #ffe2a0;
}
.hm-impact .txt { padding: 20px 22px 22px; }
.hm-impact h5 { margin: 0 0 10px; font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--heading-color); }
.hm-news { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--accent-border); }
.hm-news strong { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b5b5c; }
.hm-news a {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.5; text-decoration: none; color: var(--heading-color); background: #fbf5f5; transition: 0.25s;
}
.hm-news a i { color: var(--accent-color); margin-top: 2px; }
.hm-news a:hover { background: var(--accent-soft); transform: translateX(4px); }

/* ---------- Grafik ---------- */
.hm-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hm-chart {
  position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: #fff;
  border: 1px solid rgba(227, 195, 197, 0.55); box-shadow: var(--hm-sh-1); min-height: 320px; transition: box-shadow 0.3s;
}
.hm-chart:hover { box-shadow: var(--hm-sh-2); }
.hm-chart h5 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--heading-color); }
.hm-chart .hint { margin: 0 0 6px; font-size: 12px; color: #8a7b7c; }

.hm-plot {
  position: relative; height: 190px; margin-top: 18px; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 26px 8px 0;
  background: repeating-linear-gradient(to top, #f4e9ea 0 1px, transparent 1px 47px);
}
.hm-plot .col { position: relative; flex: 1; max-width: 74px; height: 100%; display: flex; align-items: flex-end; }
.hm-bar {
  position: relative; width: 100%; border-radius: 10px 10px 4px 4px; transform-origin: bottom;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent-dark) 100%);
  box-shadow: 0 12px 20px -8px rgba(99, 0, 3, 0.5); transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--i, 0s);
}
.hm-js .hm-bar { transform: scaleY(0); }
.hm-js .in .hm-bar, .hm-js .hm-bar.in { transform: scaleY(1); }
.hm-bar b { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-color); }
.hm-years { display: flex; justify-content: center; gap: 22px; padding: 8px 8px 0; font-size: 12px; color: #6b5b5c; }
.hm-years span { flex: 1; max-width: 74px; text-align: center; }

.hm-donutwrap { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 12px; }
.hm-donut { position: relative; width: 156px; height: 156px; border-radius: 50%; box-shadow: 0 16px 30px -12px rgba(60, 0, 8, 0.35); }
.hm-donut:after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 2px 8px rgba(60, 0, 8, 0.08); }
.hm-donut .mid { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; }
.hm-donut .mid strong { font-size: 26px; line-height: 1; color: var(--accent-color); }
.hm-donut .mid span { font-size: 10.5px; color: #6b5b5c; }
.hm-legend { width: 100%; font-size: 12px; color: #4a3f40; }
.hm-legend div { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #f0e4e4; }
.hm-legend div:last-child { border-bottom: 0; }
.hm-legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.hm-legend em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--heading-color); }

.hm-big { margin-top: 22px; font-size: 54px; line-height: 1; font-weight: 800; color: var(--accent-color); }
.hm-bigsub { font-size: 12px; color: #6b5b5c; margin-top: 4px; }
.hm-split { margin-top: 26px; }
.hm-split .row-b { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 12px; margin: 14px 0; font-size: 12.5px; color: #4a3f40; }
.hm-split .track { height: 12px; border-radius: 999px; background: #f4e9ea; overflow: hidden; }
.hm-split .track i {
  display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  transform-origin: left; transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--i, 0.2s);
}
.hm-js .hm-split .track i { transform: scaleX(0); }
.hm-js .in .hm-split .track i { transform: scaleX(1); }
.hm-split b { text-align: right; color: var(--heading-color); }

/* ---------- Dokumen ---------- */
.hm-docgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-doc {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: var(--heading-color);
  background: #fff; border: 1px solid rgba(227, 195, 197, 0.55); box-shadow: var(--hm-sh-1); transition: transform 0.3s, box-shadow 0.3s;
}
.hm-doc:hover { transform: translateY(-5px); box-shadow: var(--hm-sh-2); }
.hm-doc .ic {
  flex: 0 0 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  color: var(--accent-color); background: var(--accent-soft); transition: 0.3s;
}
.hm-doc:hover .ic { background: var(--hm-grad); color: #fff; }
.hm-doc .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.hm-doc .nm small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: #8a7b7c; }
.hm-doc .dl {
  flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  color: var(--accent-color); background: #fff; border: 1px solid var(--accent-border); transition: 0.3s;
}
.hm-doc:hover .dl { background: var(--accent-color); color: #fff; border-color: var(--accent-color); transform: translateY(3px); }

/* ---------- Ajakan penutup ---------- */
.hm-cta2 { padding: 10px 0 84px; }
.hm-cta2 .box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 26px; color: #fff;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 16px),
    radial-gradient(600px 260px at 88% -20%, rgba(244, 187, 53, 0.4), transparent 70%),
    var(--hm-grad);
  box-shadow: 0 34px 60px -24px rgba(60, 0, 8, 0.6);
}
.hm-cta2 h3 { margin: 0 0 8px; font-size: 28px; font-weight: 700; color: #fff; }
.hm-cta2 p { margin: 0; max-width: 560px; font-size: 14.5px; line-height: 1.65; opacity: 0.88; }
.hm-cta2 .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-cta2 .btns a {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.25s;
}
.hm-cta2 .btns .a { background: #fff; color: var(--accent-color); box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.5); }
.hm-cta2 .btns .b { color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.hm-cta2 .btns a:hover { transform: translateY(-3px); }
.hm-cta2 .btns .b:hover { background: rgba(255, 255, 255, 0.14); }

.hm-empty { font-size: 13px; color: #8a7b7c; padding: 20px 0; }

/* ---------- Responsif ---------- */
@media (max-width: 1199px) {
  .hm-stats { grid-template-columns: repeat(3, 1fr); }
  .hm-two { grid-template-columns: 1fr; }
  .hm-charts { grid-template-columns: 1fr; }
  .hm-plot { max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 991px) {
  .hm-ecos, .hm-pfs, .hm-docgrid { grid-template-columns: repeat(2, 1fr); }
  .hm-sec { padding: 54px 0; }
  .hm-head h3 { font-size: 26px; }
}

@media (max-width: 640px) {
  .hm-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
  .hm-stat strong { font-size: 24px; }
  .hm-ecos, .hm-pfs, .hm-docgrid { grid-template-columns: 1fr; }
  .hm-head { flex-direction: column; align-items: flex-start; }
  .hm-head h3 { font-size: 23px; }
  .hm-item { grid-template-columns: 46px 1fr; padding: 14px; }
  .hm-item .no { width: 46px; height: 46px; font-size: 18px; }
  .hm-cta2 .box { padding: 32px 24px; }
  .hm-cta2 h3 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-js .hm-rev, .hm-js .hm-bar, .hm-js .hm-split .track i { opacity: 1 !important; transform: none !important; transition: none !important; }
}
