/* ===============================
   AHAD MODERN SAFE OVERRIDE
   =============================== */

:root {
  --ahad-primary: #0f4c81;
  --ahad-primary-light: #1f6fb2;
  --ahad-text: #1f2933;
  --ahad-muted: #6b7280;
  --ahad-border: #e5e7eb;
  --ahad-radius: 10px;
  --ahad-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Body Safe */
body {
  font-family: "Inter","Segoe UI",sans-serif;
  background:#f8fafc;
  color:var(--ahad-text);
}

/* Headings scoped to content only */
.pkp_structure_content h1,
.pkp_structure_content h2,
.pkp_structure_content h3 {
  color: var(--ahad-primary);
}

/* Card only for article summary */
.obj_article_summary {
  background:#fff;
  border:1px solid var(--ahad-border);
  border-radius:var(--ahad-radius);
  padding:1.5rem;
  box-shadow:var(--ahad-shadow);
  transition:0.3s ease;
}

.obj_article_summary:hover {
  transform:translateY(-3px);
}

/* Buttons only target PKP button */
.pkp_button_primary {
  background:var(--ahad-primary);
  border-radius:8px;
  border:none;
  box-shadow:var(--ahad-shadow);
}

.pkp_button_primary:hover {
  background:var(--ahad-primary-light);
}

/* Do NOT globally override all links */
.pkp_structure_content a {
  color:var(--ahad-primary);
}

.pkp_structure_content a:hover {
  color:var(--ahad-primary-light);
}
/* ==========================
   FLOATING CHAT FINAL SAFE
   ========================== */

.chat-sidebar {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
  background:#fff;
  padding:14px;
  border-radius:14px;
  box-shadow:0 12px 28px rgba(0,0,0,0.12);
  width:110px;
  text-align:center;
}

.chat-header {
  font-size:13px;
  font-weight:600;
  margin-bottom:10px;
  color:var(--ahad-primary);
}

.chat-icons {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.chat-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  width:55px;
  height:55px;
  margin:auto;
  border-radius:50%;
  transition:0.3s;
}

.chat-btn img {
  width:28px !important;
  height:28px !important;
  max-width:28px !important;
}

.chat-btn.wa { background:#25D366; }
.chat-btn.tg { background:#229ED9; }

.chat-btn:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 18px rgba(0,0,0,0.15);
}
/* ===============================
   AHAD FOOTER SAFE VERSION
   =============================== */

.ahad-footer {
  background:#ffffff;
  border-top:1px solid var(--ahad-border);
  padding:40px 0 0 0;
}

.footer-wrapper {
  max-width:1200px;
  margin:auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

.footer-block h4 {
  font-size:15px;
  margin-bottom:14px;
  color:var(--ahad-primary);
}

.footer-block p,
.footer-block li,
.footer-block a {
  font-size:14px;
  color:var(--ahad-muted);
}

.footer-links {
  list-style:none;
  padding:0;
  margin:0;
}

.footer-links li {
  margin-bottom:8px;
}

.footer-links a:hover {
  color:var(--ahad-primary);
}

.footer-social {
  display:flex;
  gap:12px;
  margin-top:10px;
}

.footer-social img {
  width:26px !important;
  height:26px !important;
}

.footer-bottom {
  text-align:center;
  padding:18px;
  margin-top:30px;
  font-size:13px;
  color:#9ca3af;
  border-top:1px solid var(--ahad-border);
}

@media (max-width:768px) {
  .footer-wrapper {
    grid-template-columns:1fr;
    text-align:center;
  }
  .footer-social {
    justify-content:center;
  }
}
/* ==========================
   FIX NAVBAR OJS HILANG
   ========================== */

/* Pastikan nav tampil */
.pkp_navigation_primary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Pastikan row nav tidak tertutup */
.pkp_navigation_primary_row {
    position: relative;
    z-index: 10;
}

/* Jika header custom pakai z-index tinggi */
.pkp_structure_head {
    position: relative;
    z-index: 20;
}

/* Pastikan nav tidak collapse */
.pkp_navigation_primary_wrapper {
    display: block !important;
}

/* Hapus kemungkinan margin negatif */
.pkp_navigation_primary_row {
    margin-top: 0 !important;
}