/* ==========================================================================
   RESTORED STYLE - NAVY & WHITE (COMPACT VERSION)
   ========================================================================== */

/* 1. BODY & BACKGROUND */
body {
  background-color: #F9F9F9;
  background-image: linear-gradient(to bottom, #0d47a1 0%, #ffffff 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. HEADER & BANNER FIX (JARAK RAPAT)
   ========================================================================== */

/* Background Header Gradient Navy */
.pkp_head_wrapper {
  background: linear-gradient(90deg, #0d47a1 0%, #002171 100%) !important;
  border-bottom: none !important;
  min-height: auto !important; /* HAPUS tinggi minimal agar rapat */
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* FIX: GAMBAR BANNER BESAR & RAPAT */
.pkp_site_name_wrapper {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pkp_site_name .is_img img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  display: block;
  margin: 0 auto;
  padding: 0 !important;
}

.pkp_site_name {
  padding: 0 !important; /* HAPUS padding atas bawah banner */
  margin: 0 !important;
}

/* ==========================================================================
   3. MENU USER (LOGIN/REGISTER)
   ========================================================================== */
.pkp_navigation_user_wrapper {
  background: transparent !important;
  color: #fff !important;
  margin-bottom: 5px; /* Sedikit jarak dari banner jika diperlukan, atau 0 */
}

.pkp_navigation_user li a {
  color: #fff !important;
  font-weight: bold;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 5px 10px;
  margin-left: 5px;
}

.pkp_navigation_user li a:hover {
  background: #fff !important;
  color: #0d47a1 !important;
}

/* ==========================================================================
   4. MENU UTAMA SEAMLESS (FLAT)
   ========================================================================== */

/* Container Menu Utama - Ditempelkan ke atas */
.pkp_navigation_primary_wrapper {
  background: linear-gradient(90deg, #0d47a1 0%, #002171 100%) !important;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: -5px !important; /* Tarik sedikit ke atas untuk memastikan menempel */
}

.pkp_navigation_primary_row {
  background: transparent !important;
  border: none !important;
}

/* Reset Item Menu (Desktop) */
@media (min-width: 992px) {
  .pkp_navigation_primary > li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* Link Menu Flat */
  .pkp_navigation_primary > li > a {
    display: block !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }

  /* Hover State */
  .pkp_navigation_primary > li > a:hover,
  .pkp_navigation_primary > li:hover > a {
    background: rgba(255,255,255,0.1) !important;
    color: #bbdefb !important;
  }

  /* Active State */
  .pkp_navigation_primary > li.current > a {
    border-bottom: 3px solid #fff !important;
    background: transparent !important;
  }

  /* Dropdown Sub-menu */
  .pkp_navigation_primary > li > ul {
    background: #0d47a1 !important;
    border: none !important;
    border-radius: 0 0 4px 4px !important;
    margin-top: 0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
  }
  
  .pkp_navigation_primary > li > ul a {
    color: #fff !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }
  
  .pkp_navigation_primary > li > ul a:hover {
    background: #1565c0 !important;
  }
}

/* Search Box */
.pkp_navigation_search_wrapper a {
  color: #fff !important;
  font-weight: bold;
}

/* ==========================================================================
   5. ICONS
   ========================================================================== */
.pkp_navigation_primary > li > a::before {
  font-family: "FontAwesome";
  display: inline-block;
  margin-right: 8px;
  color: #fff !important;
}
.pkp_navigation_primary > li:nth-child(1) > a::before { content: "\f015"; }
.pkp_navigation_primary > li:nth-child(2) > a::before { content: "\f0c1"; }
.pkp_navigation_primary > li:nth-child(3) > a::before { content: "\f15c"; }
.pkp_navigation_primary > li:nth-child(4) > a::before { content: "\f0ea"; }
.pkp_navigation_primary > li:nth-child(5) > a::before { content: "\f129"; }

/* Sidebar Icons */
#customblock-main-menu td a::before {
  font-family: "FontAwesome";
  margin-right: 10px;
  color: #333;
  width: 20px;
  text-align: center;
  display: inline-block;
}
#customblock-main-menu tbody tr:nth-child(1) td a::before { content: "\f02d"; }
#customblock-main-menu tbody tr:nth-child(2) td a::before { content: "\f0c0"; }
#customblock-main-menu tbody tr:nth-child(3) td a::before { content: "\f0f3"; }
#customblock-main-menu tbody tr:nth-child(4) td a::before { content: "\f02d"; }
#customblock-main-menu tbody tr:nth-child(5) td a::before { content: "\f0e0"; }
#customblock-main-menu tbody tr:nth-child(6) td a::before { content: "\f1f9"; }
#customblock-main-menu tbody tr:nth-child(7) td a::before { content: "\f09e"; }
#customblock-main-menu tbody tr:nth-child(8) td a::before { content: "\f12e"; }
#customblock-main-menu tbody tr:nth-child(9) td a::before { content: "\f09d"; }
#customblock-main-menu tbody tr:nth-child(10) td a::before { content: "\f02d"; }
#customblock-main-menu tbody tr:nth-child(11) td a::before { content: "\f023"; }
#customblock-main-menu tbody tr:nth-child(12) td a::before { content: "\f133"; }

/* ==========================================================================
   6. CONTENT & SIDEBAR
   ========================================================================== */
.pkp_structure_content {
  background: whitesmoke !important;
  padding: 30px 0;
}

/* Sidebar Styling */
#customblock-main-menu td a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}
#customblock-main-menu td a:hover {
  background: #e3f2fd;
  color: #0d47a1;
  padding-left: 15px;
}

/* Custom Blocks Dropdown */
.dropdown-customblock {
  background: linear-gradient(135deg, #0d47a1, #1565c0) !important;
  color: #fff !important;
  padding: 10px !important;
}
.dropdown-customblock-item {
  background: #fff;
  padding: 10px !important;
}
.dropdown-customblock-item a { color: #0d47a1; }

/* Images in Sidebar */
#customblock-tools img, #customblock-journal-template img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ==========================================================================
   7. PAGE TITLES & STYLING
   ========================================================================== */
.pkp_structure_content.has_sidebar .pkp_structure_main .page h2,
.page h1 {
  background: linear-gradient(135deg, #0d47a1, #42a5f5) !important;
  color: #fff !important;
  padding: 20px 30px !important;
  border-radius: 8px;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left !important;
  font-weight: bold !important;
}

.page.page_login p, .page.page_register p, .page.page_lost_password p {
  background: #42a5f5 !important;
  color: #fff !important;
  padding: 15px 30px !important;
  margin-top: -20px !important;
  border-radius: 0 0 8px 8px;
  margin-bottom: 30px !important;
}

/* Labels */
.item.published .label, .item.keywords .label {
  color: #0d47a1 !important;
  font-weight: bold !important;
  text-transform: uppercase;
}

/* Abstract */
.item.abstract {
  background: #fff;
  padding: 20px;
  border-left: 5px solid #0d47a1;
  border-radius: 5px;
  text-align: justify;
}

/* ==========================================================================
   8. FORMS
   ========================================================================== */
.cmp_form {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
  border-top: 5px solid #0d47a1;
}

/* Form Icons */
.page_login .cmp_form::before { content: "\f007"; font-family: "FontAwesome"; font-size: 80px; color: #0d47a1; display: block; text-align: center; margin-bottom: 30px; }
.page_register .cmp_form::before { content: "\f234"; font-family: "FontAwesome"; font-size: 80px; color: #0d47a1; display: block; text-align: center; margin-bottom: 30px; }

/* Inputs */
input[type="text"], input[type="password"], input[type="email"], textarea {
  width: 100% !important;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 15px;
}
input:focus { border-color: #0d47a1 !important; outline: none; }

/* Buttons */
button.submit {
  background: #0d47a1 !important;
  color: #fff !important;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
}
button.submit:hover { background: #002171 !important; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.pkp_structure_footer_wrapper { background: transparent !important; border: none; padding: 0; }
.pkp_footer_content {
  background: linear-gradient(90deg, #0d47a1 0%, #002171 100%) !important;
  color: #fff !important;
  padding: 80px 20px !important;
  margin-top: 50px;
}
.pkp_footer_content a { color: #90caf9 !important; text-decoration: none; }
.pkp_brand_footer { display: none !important; }

/* ==========================================================================
   10. MOBILE FIX
   ========================================================================== */
@media (max-width: 991px) {
  .pkp_navigation_primary > li {
    float: none !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }
  .pkp_site_name .is_img img {
    width: 100% !important;
    height: auto !important;
  }
}