/* ==========================================================================
   Papua Center — Redesign Halaman Utama (luwes, hangat, on-brand)
   Palet Cendrawasih: maroon/burgundy · emas · hijau · oranye khas brosur
   Prefix .ph- agar tidak bentrok dengan framework lain yang dimuat halaman.
   ========================================================================== */
:root {
  --ph-maroon: #7a1e12;
  --ph-maroon-dark: #5c1509;
  --ph-maroon-light: #9a3320;
  --ph-gold: #f2b01e;
  --ph-gold-dark: #d6960a;
  --ph-orange: #f07c1a;
  --ph-green: #2f7d3a;
  --ph-ink: #2b2016;
  --ph-cream: #fbf6ee;
  --ph-soft: #f4ede2;
  --ph-radius: 18px;
  --ph-shadow: 0 18px 40px rgba(92, 21, 9, .10);
}

/* Lebar konten & irama antar-section */
.ph-section { padding: 68px 0; }
.ph-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.ph-band-cream { background: var(--ph-cream); }
.ph-band-soft { background: linear-gradient(180deg, #ffffff 0%, var(--ph-soft) 100%); }

.ph-eyebrow { color: var(--ph-gold-dark); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; }
.ph-title { color: var(--ph-maroon); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 6px 0 0; line-height: 1.15; }
.ph-title .accent { color: var(--ph-gold-dark); }
.ph-lead { color: #5f5347; font-size: 1.05rem; line-height: 1.85; }
.ph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.ph-head .ph-title { margin-top: 4px; }
.ph-morelink { color: var(--ph-maroon); font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--ph-gold); padding-bottom: 2px; transition: color .15s ease; }
.ph-morelink:hover { color: var(--ph-gold-dark); }

.ph-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--ph-maroon); color: #fff !important; padding: 12px 26px; border-radius: 30px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 22px rgba(92, 21, 9, .22); transition: transform .12s ease, background .15s ease; }
.ph-btn:hover { background: var(--ph-maroon-dark); transform: translateY(-2px); color: #fff; }
.ph-btn.ghost { background: transparent; color: var(--ph-maroon) !important; border: 2px solid var(--ph-maroon); box-shadow: none; }
.ph-btn.ghost:hover { background: var(--ph-maroon); color: #fff !important; }

/* ---------- HERO: scrim + tipografi lebih elegan ---------- */
#pace-slider .sliderFeaturedPosts { border-radius: var(--ph-radius); overflow: hidden; box-shadow: var(--ph-shadow); background: transparent !important; }
#pace-slider .img-bg { position: relative; }

/* Foto slider rasio 3:2 (1600x1066) sedangkan container aslinya 2.6:1 -> bagian
   atas & bawah terpotong rata (kepala orang ikut hilang). Perbaikan: tinggikan
   hero di layar lebar + kunci titik fokus ke ATAS supaya kepala/papan nama aman. */
@media (min-width: 992px) {
  #pace-slider .img-bg {
    height: 620px;
    background-position: center top;
  }
}
@media (min-width: 1400px) {
  #pace-slider .img-bg { height: 680px; }
}
#pace-slider .img-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(46,12,6,.15) 55%, rgba(46,12,6,.82) 100%); z-index: 1; }
#pace-slider .img-bg-inner { position: relative; z-index: 2; padding: 34px 40px 40px; max-width: 760px; }
#pace-slider .img-bg-inner h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 0 0 8px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
#pace-slider .img-bg-inner h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--ph-gold); border-radius: 3px; margin-top: 12px; }
#pace-slider .img-bg-inner p { color: #f4e9da; font-size: 1.08rem; line-height: 1.65; margin: 12px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
#pace-slider .swiper-slide:hover { transform: none !important; background: transparent !important; }

/* ---------- WELCOME / sambutan ---------- */
.ph-welcome-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 42px; align-items: center; }
.ph-welcome-text .ph-lead { margin: 16px 0 26px; }
.ph-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ph-stat { background: #fff; border-radius: 14px; padding: 22px 20px; text-align: center; box-shadow: var(--ph-shadow); border-top: 3px solid var(--ph-gold); }
.ph-stat .n { font-size: 1.65rem; font-weight: 800; color: var(--ph-maroon); line-height: 1.1; }
.ph-stat .l { font-size: .84rem; color: #6b5d4d; margin-top: 5px; }
.ph-stat.wide { grid-column: 1 / -1; }

/* ---------- VIDEO ---------- */
.ph-video-frame { border-radius: var(--ph-radius); overflow: hidden; box-shadow: 0 22px 46px rgba(92,21,9,.22); background: #000; max-width: 900px; margin: 0 auto; position: relative; }
.ph-video-frame video { display: block; width: 100%; height: auto; }
.ph-video-mute { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.5); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease; }
.ph-video-mute:hover { background: var(--ph-maroon); }

/* ---------- KABAR TERBARU: kartu ---------- */
.ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ph-card { background: #fff; border-radius: var(--ph-radius); overflow: hidden; box-shadow: var(--ph-shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease; }
.ph-card:hover { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(92,21,9,.16); color: inherit; }
.ph-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.ph-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ph-card:hover .thumb img { transform: scale(1.06); }
.ph-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ph-chip { align-self: flex-start; background: rgba(242,176,30,.16); color: var(--ph-gold-dark); font-weight: 700; font-size: .72rem; letter-spacing: .4px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.ph-card h3 { color: var(--ph-maroon); font-weight: 800; font-size: 1.12rem; line-height: 1.4; margin: 12px 0 8px; }
.ph-card .date { color: #9a8b78; font-size: .82rem; margin-top: auto; }
.ph-card .rm { color: var(--ph-maroon); font-weight: 700; font-size: .9rem; margin-top: 10px; }
.ph-empty { grid-column: 1 / -1; text-align: center; color: #8a7c6a; padding: 30px; }

/* ---------- MITRA: marquee ---------- */
.ph-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ph-marquee-track { display: flex; gap: 30px; width: max-content; animation: ph-scroll 46s linear infinite; }
.ph-marquee:hover .ph-marquee-track { animation-play-state: paused; }
/* Tanpa box: latar transparan agar menyatu di mode terang maupun gelap */
.ph-logo { flex: 0 0 auto; width: 260px; height: 180px; background: transparent; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; padding: 8px; }
.ph-logo img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: .92; transition: opacity .2s ease, transform .2s ease; }
.ph-logo:hover img { opacity: 1; transform: scale(1.06); }
@keyframes ph-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Pagination ---------- */
.ph-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.ph-pagination a, .ph-pagination span { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; color: var(--ph-maroon); background: #fff; box-shadow: 0 4px 12px rgba(43,32,22,.06); transition: all .15s ease; }
.ph-pagination a:hover { background: var(--ph-soft); color: var(--ph-maroon-dark); }
.ph-pagination .current { background: var(--ph-maroon); color: #fff; box-shadow: 0 8px 18px rgba(92,21,9,.22); }
.ph-pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- Konten artikel (prose) ---------- */
.ph-content { color: #40372c; font-size: 1.05rem; line-height: 1.9; max-width: 860px; }
.ph-content p { margin: 0 0 16px; }
.ph-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.ph-content h1, .ph-content h2, .ph-content h3, .ph-content h4 { color: var(--ph-maroon); font-weight: 800; margin: 26px 0 12px; line-height: 1.3; }
.ph-content a { color: var(--ph-maroon); font-weight: 600; }
.ph-content a:hover { color: var(--ph-gold-dark); }
.ph-content ul, .ph-content ol { padding-left: 22px; margin: 0 0 16px; }
.ph-content li { margin-bottom: 8px; }
.ph-content table { max-width: 100%; }
.ph-content iframe { max-width: 100%; border-radius: 12px; }

/* Kartu daftar dokumen (journal / publikasi) */
.ph-doclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ph-doc { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: var(--ph-shadow); border-left: 4px solid var(--ph-gold); display: flex; flex-direction: column; gap: 6px; }
.ph-doc .t { color: var(--ph-maroon); font-weight: 800; font-size: 1.05rem; line-height: 1.4; }
.ph-doc .m { color: #8a7c6a; font-size: .86rem; }
.ph-doc .acts { display: flex; gap: 10px; margin-top: 10px; }
.ph-doc .acts a { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: 22px; }
.ph-doc .acts .dl { background: var(--ph-maroon); color: #fff; }
.ph-doc .acts .dl:hover { background: var(--ph-maroon-dark); }
.ph-doc .acts .vw { background: var(--ph-soft); color: var(--ph-maroon); }
.ph-doc .acts .vw:hover { background: #e9dcc8; }

/* ---------- Search bar ---------- */
.ph-searchbar { display: flex; gap: 10px; max-width: 560px; margin: 6px 0 0; }
.ph-searchbar input { flex: 1; border: 1px solid #e2d8c8; border-radius: 30px; padding: 12px 20px; font-size: 1rem; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.ph-searchbar input:focus { border-color: var(--ph-gold); box-shadow: 0 0 0 .18rem rgba(242,176,30,.22); }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .ph-welcome-grid { grid-template-columns: 1fr; gap: 28px; }
  .ph-cards { grid-template-columns: 1fr; }
  .ph-section { padding: 48px 0; }
  #pace-slider .img-bg-inner { padding: 24px 22px 28px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .ph-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
