/* ================== POSTINGAN (SISI PUBLIK) ================== */

/* Section di landing page */
.news { background: var(--cream); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.news-head p { margin: 10px 0 0; color: var(--ink-soft); }
.news-grid, .pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* Kartu postingan */
.pcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink);
  text-decoration: none; transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: 8px 8px 0 var(--maroon); transform: translate(-2px, -2px); }
.pcard-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--beige); }
.pcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-ph { display: grid; place-items: center; height: 100%; background: var(--beige); color: var(--maroon);
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; }
.pcard-ph b { color: var(--coral); }
.pcard-body { display: block; padding: 20px 22px 24px; }
.pcard-time { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.pcard-time.is-new { color: var(--maroon); font-weight: 600; }
.pcard-time.is-new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.pcard-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--maroon); overflow-wrap: anywhere; }

/* Halaman /postingan/ */
.pp { background: var(--cream); }
.pp-hero { position: relative; overflow: hidden; background: var(--beige); border-bottom: 1px solid var(--line); padding: 56px 0; }
.pp-hero::after { content: ""; position: absolute; right: -90px; top: -100px; width: 320px; height: 320px; border-radius: 50%;
  background: var(--coral); opacity: .25; pointer-events: none; }
.pp-hero .wrap { position: relative; z-index: 1; }
.pp-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.pp-hero p { margin: 10px 0 0; color: var(--ink-soft); }
.pp-body { padding: 48px 0 96px; }

.pp-pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.pp-pager a, .pp-pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 16px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; color: var(--maroon); font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s; }
.pp-pager a:hover { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }
.pp-pager .is-current { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }

.pp-empty { text-align: center; padding: 72px 24px; color: var(--ink-soft); }
.pp-empty h1, .pp-empty h2 { color: var(--maroon); margin-bottom: 10px; }
.pp-empty p { margin: 0 auto 24px; }

/* Satu postingan */
.pp-single { padding: 40px 0 72px; }
.pp-back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
.pp-back:hover { text-decoration: underline; }
.pp-more { background: var(--beige); border-top: 1px solid var(--line); padding: 64px 0 88px; }
.pp-more h2 { margin-bottom: 32px; }

@media (prefers-reduced-motion: no-preference) {
  .pcard { animation: pc-in .5s ease both; }
  .news-grid .pcard:nth-child(2), .pp-grid .pcard:nth-child(3n + 2) { animation-delay: .08s; }
  .news-grid .pcard:nth-child(3), .pp-grid .pcard:nth-child(3n) { animation-delay: .16s; }
  @keyframes pc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard-img img { transition: none; }
}

@media (max-width: 960px) {
  .news-grid, .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .news-grid, .pp-grid { grid-template-columns: 1fr; }
  .news-head { align-items: flex-start; }
}
/* ================== PANEL POSTINGAN DI HERO ================== */
.hero-news { background: var(--beige); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: 14px 14px 0 var(--maroon); }
.hero-news-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-news-head h2 { font-size: 1.4rem; }
.hero-news-list { display: grid; gap: 12px; }
.hero-news-more { display: block; margin-top: 18px; text-align: center; }

/* Kartu memanjang */
.hcard { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none;
  transition: box-shadow .2s, transform .2s; }
.hcard:hover { box-shadow: 5px 5px 0 var(--maroon); transform: translate(-2px, -2px); }
.hcard::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-top: 2.5px solid var(--coral); border-right: 2.5px solid var(--coral);
  transform: rotate(45deg); transition: transform .2s; }
.hcard:hover::after { transform: translateX(3px) rotate(45deg); }

.hcard-img { display: block; width: 96px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--beige); }
.hcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hcard-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--beige); color: var(--maroon);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }

.hcard-body { display: block; min-width: 0; }
.hcard-time { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.hcard-time.is-new { color: var(--maroon); font-weight: 600; }
.hcard-time.is-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.hcard-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--maroon); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  .hcard { animation: pc-in .5s ease both; }
  .hero-news-list .hcard:nth-child(2) { animation-delay: .1s; }
  .hero-news-list .hcard:nth-child(3) { animation-delay: .2s; }
}
@media (prefers-reduced-motion: reduce) {
  .hcard, .hcard::after { transition: none; }
}

@media (max-width: 900px) {
  .hero-news { box-shadow: 8px 8px 0 var(--maroon); }
}
@media (max-width: 480px) {
  .hero-news { padding: 18px; }
  .hcard { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; }
  .hcard-img { width: 76px; height: 62px; }
}