/* =========================================
   ESJ LAYOUT ALA OLER
   Fokus: halaman di tengah, sisi luar coklat
   Tanpa merusak isi
   ========================================= */

/* -----------------------------------------
   1. BACKGROUND LUAR HALAMAN
----------------------------------------- */
html,
body {
  background: #b08a72 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* -----------------------------------------
   2. WRAPPER UTAMA SITUS DI TENGAH
   Ini yang membuat tampilan seperti OLER
----------------------------------------- */
.pkp_structure_page {
  max-width: 1140px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* Kadang tema memakai wrapper ini juga */
.pkp_structure_page_wrapper {
  max-width: 1140px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* -----------------------------------------
   3. HEADER, CONTENT, SIDEBAR TETAP PUTIH
----------------------------------------- */
.pkp_structure_head,
.pkp_navigation_primary_wrapper,
.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_sidebar,
.page,
.pkp_page_content,
.pkp_block {
  background: #ffffff !important;
}

/* -----------------------------------------
   4. KONTEN WRAPPER TIDAK PERLU WARNA SENDIRI
----------------------------------------- */
.pkp_structure_content_wrapper {
  background: transparent !important;
}

/* -----------------------------------------
   5. FOOTER WRAPPER MENGIKUTI LEBAR HALAMAN
----------------------------------------- */
.pkp_structure_footer_wrapper {
  background: #b08a72 !important;
  border-top: 1px solid #cfc7bf !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 28px 0 !important;
}

/* Hilangkan elemen bawaan tema */
.pkp_structure_footer_wrapper:before,
.pkp_structure_footer_wrapper:after,
.pkp_footer_content:before,
.pkp_footer_content:after,
.page_footer:before,
.page_footer:after,
footer:before,
footer:after {
  display: none !important;
  content: none !important;
}

/* -----------------------------------------
   6. FOOTER CONTENT SAMA DENGAN BODY
----------------------------------------- */
.pkp_footer_content {
  width: 100% !important;
  max-width: 1140px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Branding default OJS */
.pkp_brand_footer {
  display: none !important;
}
/* =========================================
   DSE FOOTER 2 KOLOM
   ========================================= */

.dse-footer {
  width: 100%;
  margin: 0 auto !important;
  background: #f4f1ed !important;
  border: 1px solid #d7cec6;
  border-radius: 8px;
  padding: 28px 30px;
  box-sizing: border-box;
}

.dse-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  width: 100%;
}

.dse-footer-left {
  flex: 1;
  min-width: 300px;
  max-width: 460px;
}

.dse-footer-right {
  flex: 1;
  min-width: 320px;
  max-width: 760px;
}

.dse-footer-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: #222;
}

.dse-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
}

.dse-footer-logo {
  max-height: 78px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.dse-license {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dse-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.dse-logo-card {
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 64px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  box-sizing: border-box;
  border: 1px solid #ece6e0;
}

.dse-logo-card img {
  max-width: 130px;
  max-height: 42px;
  width: auto;
  height: auto;
  display: block;
}

.dse-subsection {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .pkp_footer_content {
    padding: 0 16px !important;
  }

  .dse-footer {
    padding: 22px 20px;
  }

  .dse-footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .dse-footer-left,
  .dse-footer-right {
    max-width: 100%;
    width: 100%;
  }
}
/* =========================================
   ESJ COLOR OVERRIDE
   Ganti coklat -> warna sesuai logo ESJ
   ========================================= */

/* Background luar halaman */
html,
body {
  background: #EAF2FB !important;
}

/* Footer wrapper luar */
.pkp_structure_footer_wrapper {
  background: #EAF2FB !important;
  border-top: 3px solid #FF7A1A !important;
}

/* Box footer utama */
.dse-footer {
  background: #F8FBFF !important;
  border: 1px solid #D6E4F5 !important;
}

/* Judul section */
.dse-footer-title {
  color: #1F57A4 !important;
}

/* Link footer */
.dse-footer a {
  color: #1F57A4 !important;
  text-decoration: none;
}

.dse-footer a:hover {
  color: #FF7A1A !important;
  text-decoration: underline;
}

/* Kartu logo */
.dse-logo-card {
  border: 1px solid #E3ECF7 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
/* =========================================
   ESJ SIDEBAR SPACING FIX
   Kurangi ruang kosong di atas custom block
   ========================================= */

/* Hapus jarak atas bawaan block custom di sidebar */
.pkp_structure_sidebar .block_custom {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Jika ada elemen block kosong di dalam custom block */
.pkp_structure_sidebar .block_custom .block {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Naikkan sedikit custom block agar tidak terlalu turun */
#customblock-menu {
  margin-top: -10px !important;
}