/* ==========================================================================
   Jurnal Kesehatan Patria Husada Surakarta
   Custom Style Sheet - Versi 3.0 (Navy, Gold, & White Edition)
   Optimized Mobile Responsive
   ========================================================================== */

/* 1. SETUP & ANIMASI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

body {
  background: #f8fafc !important; /* Putih keabu-abuan lembut agar konten putih kontras */
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  margin: 0;
  padding: 0;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2. HEADER: Biru Tua & Emas */
.pkp_head_wrapper,
.pkp_site_name_wrapper {
  background: #1a365d !important; /* Biru Tua (Navy) */
  color: #ffffff;
  padding: 20px 0 !important;
  border-bottom: 4px solid #d4af37 !important; /* Garis Emas */
  text-align: center;
  border-radius: 0;
}

.pkp_site_name a {
  font-family: 'Playfair Display', serif !important;
  color: #d4af37 !important; /* Emas */
  font-size: 24px !important;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pkp_site_name a:hover {
  color: #63b3ed !important; /* Biru Muda saat hover */
  text-shadow: 0 0 10px rgba(99, 179, 237, 0.4);
}

/* 3. NAVIGATION & DROPDOWN */
.pkp_navigation_primary_wrapper {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pkp_navigation_primary li a {
  color: #1a365d !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.2s ease;
}

.pkp_navigation_primary li a:hover {
  color: #63b3ed !important; /* Biru Muda */
  background: #f1f5f9 !important;
}

/* Dropdown Menu */
.pkp_navigation_primary .dropdown-menu {
  background-color: #1a365d !important; /* Biru Tua */
  border: 1px solid #d4af37 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
}

.pkp_navigation_primary .dropdown-menu a {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pkp_navigation_primary .dropdown-menu a:hover {
  background-color: #63b3ed !important; /* Biru Muda */
  color: #1a365d !important;
}

/* 4. SIDEBARS: Berjarak Antar Container */
.menu-title, .pkp_block .title {
  color: #1a365d !important;
  border-left: 5px solid #d4af37 !important;
  padding-left: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 16px !important;
  letter-spacing: 0.5px;
}

.menu-btn {
  background: #1a365d !important;
  color: #ffffff !important;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-btn:hover {
  background: #63b3ed !important;
  color: #1a365d !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 15px rgba(99, 179, 237, 0.4);
}

/* 6. JICD FOOTER (3-COLUMN SYSTEM) */
.jicd-footer {
  background-color: #1a365d !important;
  color: #ffffff !important;
  padding: 50px 20px 30px 20px !important;
  margin: 0 auto 20px auto !important; 
  border-top: 5px solid #d4af37 !important;
  max-width: 1200px !important;
  border-radius: 0 0 12px 12px; 
  box-sizing: border-box;
}

.footer-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 30px;
}

.footer-box {
  flex: 1 1 300px !important;
  min-width: 250px;
}

.footer-box h4 {
  color: #d4af37 !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-box p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.footer-box strong {
  color: #ffffff;
}

/* 7. BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #d4af37 !important;
  color: #1a365d !important;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.back-to-top:hover {
  background: #63b3ed !important;
  transform: translateY(-5px);
}

/* 8. HIDE DEFAULT OJS ELEMENTS */
.pkp_brand_footer, .pkp_brand_text { display: none !important; }

/* 9. RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .footer-container {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  /* Menyembunyikan sidebar default OJS agar fokus ke konten utama */
  .pkp_sidebar_left, .pkp_sidebar_right {
    display: none !important;
  }
  
  /* Membuat container utama memenuhi layar handphone */
  .pkp_structure_main {
    width: 95% !important;
    margin: 10px auto !important;
    padding: 0 10px !important;
  }

  /* Optimasi Ukuran Judul Jurnal di Mobile */
  .pkp_site_name a {
    font-size: 18px !important; /* Mengecil agar tidak merusak layout */
    line-height: 1.4 !important;
  }

  .pkp_head_wrapper,
  .pkp_site_name_wrapper {
    padding: 15px 10px !important;
  }

  /* Menyesuaikan tombol menu agar pas di jari pengguna */
  .menu-btn {
    padding: 12px 15px !important;
    font-size: 14px !important;
  }

  /* Footer penyesuaian untuk tampilan vertikal penuh */
  .jicd-footer {
    padding: 30px 15px 20px 15px !important;
    margin: 0 10px 10px 10px !important;
    border-radius: 12px; /* Melengkung penuh jika terpisah di mobile */
  }

  .footer-box {
    text-align: center !important;
  }

  .footer-box h4 {
    margin-bottom: 12px;
  }

  /* Menyembunyikan tombol back to top jika dirasa terlalu mengganggu layar kecil */
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
  }
}

/* Tambahan resolusi layar ekstra kecil (Smarphone mini) */
@media (max-width: 480px) {
  .pkp_site_name a {
    font-size: 16px !important;
  }
  body {
    font-size: 14px !important;
  }
}

/* RIPPLE EFFECT ADJUSTMENT */
.ripple-wave {
  background: rgba(99, 179, 237, 0.4) !important;
}