/* Navbar — perbaikan ringan, tidak override background parent */
body.ppid-modern .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--ppid-border);
}

body.ppid-modern .site-header.is-scrolled {
  box-shadow: var(--ppid-shadow-sm);
}

body.ppid-modern .main-navigation .menu > li > a {
  font-size: 15px;
  font-weight: 600;
}

body.ppid-modern .main-navigation .sub-menu a {
  font-size: 15px !important;
  color: var(--ppid-text) !important;
  padding: 10px 18px !important;
}

body.ppid-modern .main-navigation .sub-menu a:hover {
  background: var(--ppid-surface);
  color: var(--ppid-primary-dark) !important;
}

/* Homepage — sembunyikan header blog card jika masih ter-render */
body.ppid-modern.home .ppid-front-page .entry-header,
body.ppid-modern.home .post-5055 > .entry-header.nolist {
  display: none;
}

/* Hero / Smart Slider — jangan paksa max-height, hanya rapikan margin */
body.ppid-modern .n2-ss-align {
  margin-bottom: 0;
}

body.ppid-modern .sidebar-home .widget,
body.ppid-modern .home .widget {
  margin-bottom: 24px;
}

body.ppid-modern .ppid-front-page .panel-grid-cell,
body.ppid-modern .ppid-front-page .sow-image-container,
body.ppid-modern .ppid-front-page .sow-image-container a {
  min-width: 0;
  max-width: 100%;
}

body.ppid-modern .ppid-front-page .sow-image-container img {
  width: auto;
  height: auto !important;
  max-width: 100% !important;
}

/* Footer */
body.ppid-modern .site-footer.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding-top: 48px;
}

body.ppid-modern .site-footer .footer-inner {
  max-width: var(--ppid-container);
}

body.ppid-modern .site-footer .widget-title,
body.ppid-modern .site-footer h4,
body.ppid-modern .site-footer h5 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}

body.ppid-modern .site-footer,
body.ppid-modern .site-footer p,
body.ppid-modern .site-footer li,
body.ppid-modern .site-footer .textwidget {
  font-size: 15px;
  line-height: 1.7;
}

body.ppid-modern .site-footer a {
  color: #bae6fd;
}

body.ppid-modern .site-footer a:hover {
  color: var(--ppid-accent);
  text-decoration: underline;
}

body.ppid-modern .site-footer .social-icons a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 8px;
  text-decoration: none;
}

body.ppid-modern .site-footer .social-icons a:hover {
  background: var(--ppid-primary);
  color: #fff;
}

body.ppid-modern .site-footer .site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 14px;
}

body.ppid-modern .site-footer .footer-credits {
  display: none;
}

body.ppid-modern .ppid-footer-note {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
}

/* Breadcrumb */
.ppid-breadcrumb {
  margin: 0 0 20px;
  color: var(--ppid-muted);
  font-size: 13px;
  font-weight: 600;
}

.ppid-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.ppid-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.ppid-breadcrumb li + li::before {
  width: 7px;
  height: 7px;
  margin: 0 11px;
  border-top: 1.5px solid #94a3b8;
  border-right: 1.5px solid #94a3b8;
  content: "";
  transform: rotate(45deg);
}

.ppid-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  text-decoration: none;
}

.ppid-breadcrumb a:hover {
  color: var(--ppid-primary-dark);
}

.ppid-breadcrumb [aria-current="page"] {
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ppid-breadcrumb__home .ppid-icon {
  width: 15px;
  height: 15px;
  color: #0284c7;
}

/* Article header */
.ppid-article-header {
  margin-bottom: 28px;
}

.ppid-article-header .entry-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 12px 0 16px;
}

.ppid-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ppid-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ppid-surface);
  border: 1px solid var(--ppid-border);
  color: var(--ppid-muted);
  font-size: 13px;
  font-weight: 500;
}

.ppid-meta-badge i {
  color: var(--ppid-primary);
}

/* Hoaks */
.ppid-hoaks-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ppid-danger);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ppid-hoaks-summary {
  background: #fef2f2;
  border-left: 4px solid var(--ppid-danger);
  border-radius: var(--ppid-radius-sm);
  padding: 16px 18px;
  margin: 0 0 24px;
  color: #7f1d1d;
}

/* Share buttons */
.ppid-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.ppid-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--ppid-radius-sm);
  border: 1px solid var(--ppid-border);
  background: #fff;
  color: var(--ppid-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.ppid-share__btn:hover {
  border-color: var(--ppid-primary);
  color: var(--ppid-primary-dark);
}

.ppid-share__btn--wa { background: #ecfdf5; }
.ppid-share__btn--fb { background: #eff6ff; }
.ppid-share__btn--x { background: #f8fafc; }

/* Download card */
.ppid-download-card {
  background: linear-gradient(135deg, var(--ppid-surface) 0%, var(--ppid-surface-alt) 100%);
  border: 1px solid var(--ppid-border);
  border-radius: var(--ppid-radius);
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--ppid-shadow-sm);
}

.ppid-download-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.ppid-download-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ppid-download-card__list li + li {
  margin-top: 10px;
}

.ppid-download-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ppid-primary);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: var(--ppid-radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.ppid-download-card__btn:hover {
  background: var(--ppid-primary-dark);
  color: #fff !important;
}

/* Content readability */
body.ppid-modern .entry-content,
body.ppid-modern .shapely-content {
  font-size: 17px;
  line-height: 1.75;
  max-width: 75ch;
}

body.ppid-modern .entry-content p,
body.ppid-modern .shapely-content p {
  margin-bottom: 1.1em;
}

body.ppid-modern.single-post .header-callout {
  display: none;
}

body.ppid-modern.ppid-content-page .header-callout,
body.ppid-modern.ppid-profile-page .header-callout {
  display: none;
}

body.ppid-modern .entry-content table,
body.ppid-modern .shapely-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* Profile sidebar */
.ppid-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.ppid-profile-sidebar {
  position: sticky;
  top: calc(var(--ppid-nav-height) + 20px);
  background: #fff;
  border: 1px solid var(--ppid-border);
  border-radius: var(--ppid-radius);
  padding: 20px;
  box-shadow: var(--ppid-shadow-sm);
}

.ppid-profile-sidebar h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.ppid-profile-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ppid-profile-sidebar li + li {
  margin-top: 6px;
}

.ppid-profile-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--ppid-radius-sm);
  color: var(--ppid-text);
  text-decoration: none;
  font-weight: 500;
}

.ppid-profile-sidebar a:hover,
.ppid-profile-sidebar .current-menu-item a {
  background: var(--ppid-surface);
  color: var(--ppid-primary-dark);
}

.ppid-page-excerpt {
  background: var(--ppid-surface);
  border-radius: var(--ppid-radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
  color: var(--ppid-muted);
}

/* FAQ accordion */
body.ppid-modern .ufaq-faq-div,
body.ppid-modern .su-spoiler,
body.ppid-modern .ppid-faq-item {
  border: 1px solid var(--ppid-border);
  border-radius: var(--ppid-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

body.ppid-modern .ufaq-faq-title,
body.ppid-modern .su-spoiler-title,
body.ppid-modern .ppid-faq-item__question {
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

body.ppid-modern .ufaq-faq-title:hover,
body.ppid-modern .su-spoiler-title:hover {
  background: var(--ppid-surface);
}

body.ppid-modern .ufaq-faq-body,
body.ppid-modern .su-spoiler-content,
body.ppid-modern .ppid-faq-item__answer {
  padding: 0 18px 16px;
  color: var(--ppid-muted);
}

/* Content Views / list cards */
body.ppid-modern .pt-cv-wrapper .pt-cv-content-item,
body.ppid-modern .cv-posts-wrap .cv-post,
body.ppid-modern .ppid-info-card {
  background: #fff;
  border: 1px solid var(--ppid-border);
  border-radius: var(--ppid-radius);
  padding: 18px;
  box-shadow: var(--ppid-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.ppid-modern .pt-cv-wrapper .pt-cv-content-item:hover,
body.ppid-modern .cv-posts-wrap .cv-post:hover {
  transform: translateY(-2px);
  box-shadow: var(--ppid-shadow);
}

/* Related posts */
.ppid-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--ppid-border);
}

.ppid-related h3 {
  margin-bottom: 16px;
}

.ppid-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ppid-related__card {
  border: 1px solid var(--ppid-border);
  border-radius: var(--ppid-radius-sm);
  padding: 14px;
  background: #fff;
}

.ppid-related__card a {
  font-weight: 600;
  text-decoration: none;
}

/* Popup Modal — jaga pengumuman tetap terbaca tanpa mengunci layar kecil. */
body.ppid-modern #popupModal .modal-dialog {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px)) !important;
  max-width: calc(100% - 32px) !important;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 16px auto !important;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ppid-modern #popupModal .modal-body {
  box-sizing: border-box;
  padding: 12px;
}

body.ppid-modern #popupModal .modal-copy,
body.ppid-modern #popupModal .modal-copy p {
  margin: 0;
}

body.ppid-modern #popupModal .modal-body img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  margin: 0 auto;
  object-fit: contain;
}

body.ppid-modern #popupModal .modal-close {
  top: 8px !important;
  right: 8px !important;
  z-index: 2;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

body.ppid-modern #popupModal .modal-close:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  body.ppid-modern #popupModal .modal-dialog {
    right: auto !important;
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    transform: translate(-50%, -50%) !important;
  }

  body.ppid-modern #popupModal .modal-content,
  body.ppid-modern #popupModal .modal-body {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 991px) {
  .ppid-profile-layout {
    grid-template-columns: 1fr;
  }

  .ppid-profile-sidebar {
    position: static;
  }

  body.ppid-modern .main-navigation .menu > li > a {
    font-size: 16px;
    padding: 14px 12px;
  }
}
