/* ════════════════════════════════════════════
   PPI Modern — Navbar, Slider, Footer
   Primary: #00a1e9 (PPI Blue)
   Accent:  #383634 (PPI Dark)
════════════════════════════════════════════ */

:root {
  --ppi-primary:      #00a1e9;
  --ppi-primary-dark: #0088c6;
  --ppi-accent:       #383634;
}

/* ── RIBBON (Top Bar) ── */
#ppi-ribbon {
  background: var(--ppi-accent);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
#ppi-ribbon a { color: #ccc; text-decoration: none; }
#ppi-ribbon a:hover { color: #fff; }
#ppi-ribbon .ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#ppi-ribbon .ribbon-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
#ppi-ribbon .ribbon-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
#ppi-ribbon .soc-icon-sm {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  transition: opacity .2s;
}
#ppi-ribbon .soc-icon-sm:hover { opacity: .75; }
#ppi-ribbon .ribbon-divider {
  width: 1px; height: 16px;
  background: rgba(255,255,255,.2);
  margin: 0 4px;
}
#ppi-ribbon .ribbon-btn {
  padding: 3px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  background: var(--ppi-primary);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
#ppi-ribbon .ribbon-btn:hover { background: var(--ppi-primary-dark); color: #fff; }

@media (max-width: 640px) {
  #ppi-ribbon .ribbon-left span:not(:first-child) { display: none; }
}

/* ── NAVBAR ── */
#ppi-navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}
#ppi-navbar .navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
#ppi-navbar .navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
#ppi-navbar .navbar-logo img { height: 42px; width: auto; }
#ppi-navbar .navbar-logo .logo-text {
  border-left: 2px solid var(--ppi-primary);
  padding-left: 10px;
  line-height: 1.2;
}
#ppi-navbar .navbar-logo .logo-text span {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ppi-primary);
  font-size: 11px;
}

/* Nav links container */
#ppi-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}

/* Nav link item */
.ppi-nav-link {
  position: relative;
  color: var(--ppi-accent);
  font-weight: 700;
  font-size: 16px;
  padding: 8px 14px;
  transition: color .2s;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ppi-nav-link:hover,
.ppi-nav-link:focus { color: var(--ppi-primary); text-decoration: none; }
.ppi-nav-link .chevron { font-size: 10px; opacity: .6; }

/* Dropdown */
.ppi-dropdown { position: relative; }
.ppi-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  z-index: 1000;
  padding: 8px 0;
  overflow: visible;
}
.ppi-dropdown-menu.open { display: block; }
.ppi-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ppi-accent);
  transition: background .15s, color .15s;
  text-decoration: none;
  border-radius: 0;
}
.ppi-dropdown-menu a:hover {
  background: #e8f7fd;
  color: var(--ppi-primary);
}

/* CTA Button */
#ppi-navbar .nav-cta {
  padding: 7px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  background: var(--ppi-primary);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
#ppi-navbar .nav-cta:hover { background: var(--ppi-primary-dark); color: #fff; }

/* Hamburger */
#ppi-mobile-btn {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

/* Mobile menu */
#ppi-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 998;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  max-height: 80vh;
  overflow-y: auto;
  padding: 8px 16px 16px;
}
#ppi-mobile-menu.open { display: block; }
#ppi-mobile-menu a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ppi-accent);
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}
#ppi-mobile-menu a:hover { color: var(--ppi-primary); }
#ppi-mobile-menu a.mobile-parent {
  font-weight: 600;
}
#ppi-mobile-menu a.mobile-child {
  padding-left: 16px;
  color: #666;
  font-size: 13px;
}

@media (max-width: 991px) {
  #ppi-navbar .nav-links,
  #ppi-navbar .nav-cta { display: none !important; }
  #ppi-mobile-btn { display: block; }
}

/* ── BREADCRUMB ── */
.ppi-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.ppi-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
}
.ppi-breadcrumb nav {
  font-size: 15px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ppi-breadcrumb nav a {
  color: #6b7280;
  text-decoration: none;
  transition: color .2s;
}
.ppi-breadcrumb nav a:hover { color: var(--ppi-primary); }
.ppi-breadcrumb nav i {
  font-size: 9px;
  color: #d1d5db;
}
.ppi-breadcrumb nav span {
  color: var(--ppi-accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .ppi-breadcrumb-hide-mobile { display: none; }
}

/* ── SAMBUTAN KETUA UMUM ── */
.ppi-sambutan {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 40px;
  margin-top: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #f0f0f0;
}
.ppi-sambutan-photo {
  flex-shrink: 0;
  text-align: center;
}
.ppi-sambutan-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8f4fd;
  box-shadow: 0 4px 16px rgba(0,161,233,.15);
  margin-bottom: 12px;
}
.ppi-sambutan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ppi-accent);
}
.ppi-sambutan-title {
  font-size: 13px;
  color: var(--ppi-primary);
  font-weight: 600;
}
.ppi-sambutan-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ppi-accent);
  margin: 0 0 12px 0;
  position: relative;
  padding-bottom: 12px;
}
.ppi-sambutan-text h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--ppi-primary);
  border-radius: 2px;
}
.ppi-sambutan-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 20px 0;
}
.ppi-sambutan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ppi-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.ppi-sambutan-btn:hover {
  background: var(--ppi-primary-dark);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 768px) {
  .ppi-sambutan {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }
  .ppi-sambutan-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .ppi-sambutan-text p {
    font-size: 15px;
  }
}

.beranda-spacer { height: 0; }

/* ── BERANDA MOBILE FIXES ── */
@media (max-width: 640px) {
  /* Button pendaftaran margin bottom */
  #submit-form { margin-bottom: 3em !important; }

  /* Spacer setelah Selengkapnya */
  .beranda-spacer { height: 0; }

  /* Kurangi gap antara slider dan pencarian */
  .who-section { padding-top: 0.5em !important; }
  .who-section .section-padding { padding-top: 0.5em !important; }
  .upcoming-section.pad-t-0 { padding-top: 0 !important; padding-bottom: 1em !important; }

  /* Kurangi padding top who-content */
  .who-content { margin-top: 24px !important; padding-top: 0 !important; }

  /* Kurangi margin section menu */
  .upcoming-section .col-md-12[style*="margin-top"] {
    margin-top: 0 !important;
  }
  .hvrbox-mobile-grid .col-md-3 {
    margin-bottom: 0 !important;
  }
  .row.hvrbox-mobile-grid > .col-xs-6 {
    padding: 4px !important;
  }

  /* Teks sambutan di mobile */
  .who-section .who-content p[style*="font-size"] {
    font-size: 16px !important;
    line-height: 1.6;
  }

  /* Menu mobile: square items, rapat */
  .row.hvrbox-mobile-grid {
    margin: 0 -4px !important;
  }
  .row.hvrbox-mobile-grid > .col-xs-6 {
    padding: 4px !important;
    margin-bottom: 0 !important;
  }
  .row.hvrbox-mobile-grid .hvrbox {
    position: relative;
    width: 100%;
    padding-bottom: 100% !important;
    height: 0 !important;
  }
  .row.hvrbox-mobile-grid .hvrbox img {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .row.hvrbox-mobile-grid .hvrbox .parallelogram {
    position: absolute;
    z-index: 2;
  }
  .row.hvrbox-mobile-grid .hvrbox .hvrbox-layer_top {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
  }
  .hvrbox-mobile-grid .col-md-3 {
    margin-bottom: 0 !important;
  }
}

/* ── BERANDA MENU CARDS ── */
.hvrbox-mobile-grid .col-md-3 {
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .hvrbox-mobile-grid .col-md-3,
  .hvrbox-mobile-grid .col-md-3.col-xs-6 {
    margin-bottom: 0 !important;
  }
  .hvrbox-mobile-grid .hvrbox {
    margin-bottom: 0 !important;
  }
}
.hvrbox-mobile-grid .hvrbox {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid #eee;
  transition: transform .2s, box-shadow .2s;
}
.hvrbox-mobile-grid .hvrbox:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* ── HERO SLIDER ── */
#ppi-slider-wrapper {
  position: relative;
  overflow: hidden;
  height: 336px;
}
@media (min-width: 640px) { #ppi-slider-wrapper { height: 600px; } }

.ppi-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .6s ease;
}
@media (min-width: 640px) {
  .ppi-slide { align-items: center; }
}
.ppi-slide.active { opacity: 1; z-index: 1; }

.ppi-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ppi-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.ppi-slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  width: 100%;
}
@media (min-width: 640px) {
  .ppi-slide-content { padding: 0 32px; }
}
.ppi-slide-content .slide-badge {
  display: none;
  background: var(--ppi-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (min-width: 640px) {
  .ppi-slide-content .slide-badge { display: inline-block; }
}
.ppi-slide-content h1 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  max-width: 580px;
  line-height: 1.3;
  margin: 0 0 12px 0;
  font-family: 'Open Sans', sans-serif;
}
@media (min-width: 640px) {
  .ppi-slide-content h1 { font-size: 26px; }
}
.ppi-slide-content p {
  display: block;
  color: #ddd;
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.5;
  font-size: 15px;
}
@media (min-width: 640px) {
  .ppi-slide-content p { font-size: 18px; line-height: 1.6; }
}
.ppi-slide-content .slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ppi-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.ppi-slide-content .slide-btn:hover {
  background: var(--ppi-primary-dark);
  color: #fff;
  text-decoration: none;
}

/* Slider Dots */
#ppi-slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.ppi-dot {
  height: 5px;
  width: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width .55s cubic-bezier(.34,1.56,.64,1);
  border: none;
  padding: 0;
}
.ppi-dot.active { width: 68px; }
.ppi-dot.active::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: var(--ppi-primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: ppi-dot-fill 5s linear forwards;
}
@keyframes ppi-dot-fill {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Slider Arrows */
.ppi-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  font-size: 16px;
  padding: 0;
}
.ppi-slider-arrow:hover { background: rgba(255,255,255,.4); }
#ppi-prev-btn { left: 16px; }
#ppi-next-btn { right: 16px; }
@media (max-width: 640px) {
  .ppi-slider-arrow { display: none !important; }
}

/* ── BERITA CARDS ── */
.ppi-berita-section {
  background: #f9fafb;
  padding: 24px 0 48px;
}
.ppi-berita-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.ppi-berita-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .ppi-berita-grid { grid-template-columns: 1fr 1fr; }
}

.ppi-article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
  transition: transform .2s, box-shadow .2s;
}
.ppi-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.ppi-article-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.ppi-article-card .card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #00a1e9 0%, #0077b5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ppi-article-card .card-img-placeholder i {
  font-size: 48px;
  color: #fff;
  opacity: .5;
}
.ppi-article-card .card-body {
  padding: 20px;
}
.ppi-article-card .card-body h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ppi-article-card .card-body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.ppi-article-card .card-body h2 a:hover { color: var(--ppi-primary); }
.ppi-article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}
.ppi-article-card .card-meta i { margin-right: 4px; }
.ppi-article-card .card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ppi-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s;
}
.ppi-article-card .card-readmore:hover { gap: 10px; color: var(--ppi-primary-dark); }

/* ── PAGINATION ── */
.ppi-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.ppi-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  background: #fff;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.ppi-pagination .page-btn:hover,
.ppi-pagination .page-btn.active {
  background: var(--ppi-primary);
  color: #fff;
  border-color: var(--ppi-primary);
}
.ppi-pagination .page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.ppi-pagination .page-dots {
  padding: 0 8px;
  color: #9ca3af;
}

/* ── BERITA DETAIL ── */
.ppi-detail-section {
  background: #f9fafb;
  padding: 24px 0 48px;
}
.ppi-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 992px) {
  .ppi-detail-container { flex-direction: row; }
}

/* Main article */
.ppi-detail-main { flex: 1; min-width: 0; }
.ppi-detail-hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.ppi-detail-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.ppi-detail-meta-bar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ppi-detail-meta-bar .meta-item {
  font-size: 13px;
  color: #6b7280;
}
.ppi-detail-meta-bar .meta-item i {
  color: var(--ppi-primary);
  margin-right: 4px;
}
.ppi-detail-meta-bar .meta-attachment a {
  color: var(--ppi-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.ppi-detail-meta-bar .meta-attachment a:hover { text-decoration: underline; }

.ppi-detail-content-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
  padding: 24px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .ppi-detail-content-box { padding: 32px; }
}
.ppi-detail-content-box h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0 0 20px 0;
}
.ppi-detail-content-box .article-body {
  color: #374151;
  line-height: 1.8;
  font-size: 15px;
  word-wrap: break-word;
  overflow: hidden;
}
.ppi-detail-content-box .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.ppi-detail-content-box .article-body p { margin: 12px 0; }
.ppi-detail-content-box .article-body h2,
.ppi-detail-content-box .article-body h3 {
  margin: 24px 0 8px;
  color: #1f2937;
}

/* Sidebar */
.ppi-detail-sidebar {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 992px) {
  .ppi-detail-sidebar { width: 320px; }
}
.ppi-sidebar-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
  padding: 20px;
  margin-bottom: 24px;
}
.ppi-sidebar-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ppi-primary);
}
.ppi-sidebar-box h3 i { color: var(--ppi-primary); margin-right: 6px; }
.ppi-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ppi-sidebar-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ppi-sidebar-list li .sidebar-num {
  font-size: 28px;
  font-weight: 900;
  color: #e5e7eb;
  line-height: 1;
  flex-shrink: 0;
  min-width: 30px;
}
.ppi-sidebar-list li a {
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  transition: color .2s;
}
.ppi-sidebar-list li a:hover { color: var(--ppi-primary); }

/* ── SHARE BUTTONS ── */
.ppi-share-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ppi-share-buttons .share-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-right: 2px;
}
.ppi-share-buttons .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.ppi-share-buttons .share-btn:hover { opacity: .8; }

/* ── BERITA PREV/NEXT NAV ── */
.ppi-article-nav-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ppi-article-nav-grid { grid-template-columns: 1fr 1fr !important; }
}
.ppi-nav-card:hover {
  border-color: #00a1e9 !important;
}

/* ── BERITA EMPTY ── */
.ppi-berita-empty {
  text-align: center;
  padding: 64px 0;
  color: #9ca3af;
  grid-column: 1 / -1;
}
.ppi-berita-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: .3;
}

/* ── GALERI ── */
.ppi-galeri-section {
  background: #f9fafb;
  padding: 24px 0 48px;
}
.ppi-galeri-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.ppi-galeri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .ppi-galeri-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 992px) {
  .ppi-galeri-grid { grid-template-columns: repeat(4, 1fr); }
}
.ppi-galeri-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.ppi-galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.ppi-galeri-item:hover img { transform: scale(1.05); }
.ppi-galeri-item .galeri-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.ppi-galeri-item:hover .galeri-overlay {
  background: rgba(0,0,0,.3);
}
.ppi-galeri-item .galeri-overlay i {
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s, transform .3s;
}
.ppi-galeri-item:hover .galeri-overlay i {
  opacity: 1;
  transform: scale(1);
}
.ppi-galeri-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: #9ca3af;
}

/* ── PENCARIAN ANGGOTA ── */
ul.vertical.ignore_list {
  padding: 1.5em;
  margin: 1em 0 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
}

/* ── FOOTER ── */
#ppi-footer {
  position: relative;
  overflow: hidden;
}
#ppi-footer .footer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
#ppi-footer .footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(56, 54, 52, 0.88);
  z-index: 1;
}
#ppi-footer .footer-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
#ppi-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) {
  #ppi-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  #ppi-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
#ppi-footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,161,233,.4);
}
#ppi-footer .footer-about-icon {
  width: 40px; height: 40px;
  background: var(--ppi-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#ppi-footer .footer-about-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
#ppi-footer .footer-about-header .org-name {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
#ppi-footer .footer-about-header .org-full {
  font-size: 14px;
  color: #ccc;
}
#ppi-footer .footer-address {
  font-size: 15px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 16px;
}
#ppi-footer .footer-social {
  display: flex;
  gap: 8px;
}
#ppi-footer .footer-social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: opacity .2s;
  text-decoration: none;
}
#ppi-footer .footer-social a:hover { opacity: .75; }
#ppi-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#ppi-footer ul li { margin-bottom: 8px; }
#ppi-footer ul a {
  color: #ccc;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s;
}
#ppi-footer ul a:hover { color: var(--ppi-primary); }

/* Footer bottom bar */
#ppi-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
}
#ppi-footer .footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #ccc;
}
#ppi-footer .footer-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color .2s;
}
#ppi-footer .footer-bottom a:hover { color: var(--ppi-primary); }

/* ── ARTICLE NAV (prev/next) ── */
.anav-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 639px) {
  .anav-wrap { grid-template-columns: 1fr !important; }
}
.anav-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  text-decoration: none !important;
  color: #374151 !important;
  overflow: hidden;
}
.anav-card:hover { border-color: var(--ppi-primary) !important; }
.anav-card.anav-next { justify-content: flex-end; text-align: right; }
.anav-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  transition: background .2s, color .2s;
}
.anav-card:hover .anav-icon { background: var(--ppi-primary) !important; color: #fff !important; }
.anav-text { overflow: hidden; min-width: 0; }
.anav-label { font-size: 12px; color: #9ca3af; margin-bottom: 2px; }
.anav-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}
.anav-card:hover .anav-title { color: var(--ppi-primary) !important; }

/* ── LIGHTBOX ── */
.ppi-lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}
.ppi-lb-overlay.open { display: flex; }
.ppi-lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.ppi-lb-close:hover { background: rgba(255,255,255,0.3); }
.ppi-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all .25s;
}
.ppi-lb-arrow:hover {
  background: var(--ppi-primary);
  border-color: var(--ppi-primary);
  color: #fff;
}
.ppi-lb-prev { left: 2rem; }
.ppi-lb-next { right: 2rem; }
@media (max-width: 640px) {
  .ppi-lb-prev { left: 0.5rem; }
  .ppi-lb-next { right: 0.5rem; }
  .ppi-lb-arrow { width: 36px; height: 36px; font-size: 14px; }
}
.ppi-lb-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  cursor: default;
}
.ppi-lb-content {
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
  cursor: default;
}
.ppi-lb-content .ppi-lb-img {
  max-height: 75vh;
}
.ppi-lb-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 5px;
  line-height: 1.1;
}
.ppi-lb-desc {
  color: #ccc;
  font-size: 14px;
  margin: 0;
  max-width: 600px;
  display: inline-block;
  line-height: 1.4;
}

/* ── DETAIL META BAR LAYOUT ── */
.ppi-detail-meta-bar {
  justify-content: space-between;
}
.ppi-detail-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ppi-detail-hero { cursor: zoom-in; }
.ppi-slide { cursor: zoom-in; }

/* ── SOCIAL SHARE COLORS ── */
.share-btn-facebook { background: #4267b2; }
.share-btn-twitter { background: #1da1f2; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-copy { background: #6b7280; }

/* ── FOOTER LOGO ── */
.ppi-footer-logo-circle {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ppi-footer-logo-circle img { height: 32px; width: auto; }

/* ── SOCIAL ICON COLORS (footer/ribbon) ── */
.soc-facebook { background: #4267b2; }
.soc-instagram { background: #e1306c; }
.soc-youtube { background: #ff0000; }

/* ── SCROLL TO TOP ── */
#ppi-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ppi-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  box-shadow: none;
}
#ppi-scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#ppi-scroll-top:hover { background: var(--ppi-primary-dark); }
