
/* ===================================================
   PT OTW GUSAHA CENDEKIA INDONESIA
   FINAL CSS - OMP DEFAULT THEME
   ORANGE & WHITE
   =================================================== */

:root {
  --otw-orange: #fa7419;
  --otw-dark: #df5900;
  --otw-light: #fff3e8;
  --otw-soft: #fff9f4;
  --otw-text: #173047;
  --otw-border: #f1dacb;
}

/* ===================================================
   1. GLOBAL
   =================================================== */

html,
body {
  background: #f8f8f8;
  color: var(--otw-text);
  font-family: "Noto Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.pkp_structure_page {
  max-width: 1160px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,.08);
}

@media (min-width: 1200px) {
  .pkp_structure_page {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* ===================================================
   2. HEADER
   =================================================== */

.pkp_structure_head {
  background-color: #ffffff;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
  position: relative;
  padding-top: 0;
}

.pkp_site_name_wrapper {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.pkp_site_name {
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_site_name > a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_site_name img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Background gambar dari tema OMP */

.pkp_site_name_wrapper[style*="background-image"],
.pkp_head_wrapper[style*="background-image"] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ===================================================
   3. NAVIGATION
   =================================================== */

.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  background: linear-gradient(
    180deg,
    #ff852e 0%,
    #f36b0d 100%
  );
}

.pkp_navigation_primary_row {
  border-top: 1px solid #ffe0c6;
  padding-left: 20px;
  padding-right: 20px;
}

.pkp_navigation_primary > li > a {
  color: #ffffff !important;
  font-weight: 700;
  transition: .2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  background: var(--otw-dark);
  color: #ffffff !important;
}

.pkp_navigation_primary ul {
  background: #ffffff !important;
  border: 1px solid var(--otw-border);
}

.pkp_navigation_primary ul li a {
  color: var(--otw-text) !important;
}

.pkp_navigation_primary ul li a:hover {
  background: var(--otw-light) !important;
  color: var(--otw-dark) !important;
}

.pkp_navigation_search_wrapper a {
  color: #ffffff !important;
}

.pkp_site_nav_toggle {
  background: var(--otw-orange) !important;
}

/* ===================================================
   4. MAIN CONTENT
   =================================================== */

.pkp_structure_content {
  background: #ffffff;
}

.pkp_structure_main {
  background: #ffffff;
}

.pkp_structure_main h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--otw-text);
}

.pkp_structure_main h2,
.pkp_structure_main h3 {
  color: var(--otw-text);
}

.pkp_structure_main a {
  color: var(--otw-dark);
}

.pkp_structure_main a:hover {
  color: var(--otw-orange);
}

.homepage_about {
  text-align: justify;
  line-height: 1.8;
}

.homepage_image {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.homepage_image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  float: none;
}

/* ===================================================
   5. SIDEBAR UTAMA
   =================================================== */

.pkp_structure_sidebar {
  background: #ffffff;
}

.pkp_structure_sidebar .pkp_block {
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.pkp_structure_sidebar .pkp_block .content {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff;
}

/* ===================================================
   6. SIDEBAR HEADINGS
   =================================================== */

.pkp_structure_sidebar
.pkp_block .content h3,
.pkp_structure_sidebar .kepala {
  display: block;
  margin: 0 !important;
  padding: 13px 14px !important;
  background: linear-gradient(
    180deg,
    #ff852e,
    #f36b0d
  ) !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--otw-dark);
}

/* ===================================================
   7. QUICK MENU & KATEGORI BUKU
   =================================================== */

.pkp_structure_sidebar
.pkp_block .content > p {
  margin: 0 !important;
  padding: 12px 14px;
  background: var(--otw-soft);
  border-bottom: 1px solid var(--otw-border);
  font-size: 14px;
  line-height: 1.6;
}

.pkp_structure_sidebar
.pkp_block .content > p a {
  color: var(--otw-text);
  text-decoration: none;
}

.pkp_structure_sidebar
.pkp_block .content > p a:hover {
  color: var(--otw-dark);
}

/* HTML .badan dari referensi */

.pkp_structure_sidebar .badan {
  margin: 0;
}

.pkp_structure_sidebar .badan a {
  display: block;
  padding: 12px 14px;
  background: var(--otw-soft);
  color: var(--otw-text);
  text-decoration: none;
  border-bottom: 1px solid var(--otw-border);
  transition: .2s;
}

.pkp_structure_sidebar .badan a:hover {
  background: var(--otw-light);
  color: var(--otw-dark);
}

.pkp_structure_sidebar .badan .fa {
  padding-right: 10px;
  color: var(--otw-dark);
}

/* ===================================================
   8. INDEXED BY & MEMBER OF
   =================================================== */

.pkp_structure_sidebar .pkp_block img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.pkp_structure_sidebar
.pkp_block .content > p:has(img) {
  padding: 12px;
  background: var(--otw-soft);
  text-align: center;
}

/* ===================================================
   9. MAKE A SUBMISSION
   =================================================== */

.pkp_structure_sidebar
.block_make_submission {
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.pkp_structure_sidebar
.block_make_submission .content {
  padding: 0 !important;
  margin: 0 !important;
}

.pkp_structure_sidebar
.block_make_submission a {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 13px 15px !important;
  background: var(--otw-orange) !important;
  color: #ffffff !important;
  border: 1px solid var(--otw-dark) !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: .2s ease;
}

.pkp_structure_sidebar
.block_make_submission a:hover {
  background: var(--otw-dark) !important;
  color: #ffffff !important;
}

/* ===================================================
   10. BROWSE BLOCK
   =================================================== */

.pkp_structure_sidebar
.block_browse {
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.pkp_structure_sidebar
.block_browse > .title {
  display: block !important;
  margin: 0 !important;
  padding: 13px 14px !important;
  background: linear-gradient(
    180deg,
    #ff852e,
    #f36b0d
  ) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  text-transform: uppercase;
  border-bottom: 3px solid var(--otw-dark);
}

.pkp_structure_sidebar
.block_browse .content {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--otw-soft) !important;
}

/* ===================================================
   11. BROWSE - NEW RELEASES & CATEGORIES
   =================================================== */

.pkp_structure_sidebar
.block_browse .content > ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pkp_structure_sidebar
.block_browse .content ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pkp_structure_sidebar
.block_browse .content ul li a {
  display: block;
  padding: 11px 14px;
  background: var(--otw-soft);
  color: var(--otw-text) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--otw-border);
  font-size: 14px;
  transition: .2s;
}

.pkp_structure_sidebar
.block_browse .content ul li a:hover {
  background: var(--otw-light);
  color: var(--otw-dark) !important;
}

/* Judul Categories bawaan OMP */

.pkp_structure_sidebar
.block_browse .has_submenu > span,
.pkp_structure_sidebar
.block_browse .has_submenu > a {
  font-weight: 700;
}

.pkp_structure_sidebar
.block_browse .content .has_submenu > ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

/* ===================================================
   12. FEATURED BOOKS & CATALOG
   =================================================== */

.obj_monograph_summary {
  transition: .2s ease;
}

.obj_monograph_summary:hover {
  background: var(--otw-soft);
}

.obj_monograph_summary .cover img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.pkp_structure_main .page_title {
  color: var(--otw-text);
}

.pkp_structure_main .description {
  text-align: justify;
}

/* ===================================================
   13. FOOTER
   =================================================== */

.pkp_structure_footer_wrapper {
  background: #fff2e7;
  border-top: 4px solid var(--otw-orange);
  border-bottom: 5px solid var(--otw-dark);
}

.pkp_structure_footer {
  color: var(--otw-text);
}

.pkp_structure_footer a {
  color: var(--otw-dark);
}

.pkp_structure_footer a:hover {
  color: var(--otw-orange);
}

/* ===================================================
   14. TABLET
   =================================================== */

@media (max-width: 991px) {

  .pkp_structure_page {
    width: 100%;
    margin: 0 auto;
  }

  .pkp_structure_main {
    margin-top: 0 !important;
  }

  .homepage_about,
  .homepage_image {
    width: 100%;
  }

  .pkp_navigation_primary_row {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===================================================
   15. MOBILE
   =================================================== */

@media (max-width: 768px) {

  .pkp_structure_page {
    box-shadow: none;
  }

  .pkp_site_name_wrapper {
    background-size: contain;
    background-position: center;
  }

  .pkp_site_name img {
    max-width: 100%;
    height: auto;
  }

  .pkp_structure_sidebar {
    width: 100%;
  }

  .pkp_structure_sidebar .pkp_block {
    margin-bottom: 18px !important;
  }

  .pkp_structure_sidebar img {
    max-width: 90% !important;
  }

  .homepage_about {
    text-align: left;
  }
}

/* GAMBAR ALUR PENERBITAN DI BAWAH ABOUT THE PRESS */

.pkp_page_index .homepage_about::after {
    content: "";
    display: block;

    width: 100%;
    height: 400px;

    margin-top: 25px;

    background-image: url("/images-otw/banner-about.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

/* TABLET */
@media (max-width: 991px) {
    .pkp_page_index .homepage_about::after {
        height: 320px;
    }
}

/* HP */
@media (max-width: 768px) {
    .pkp_page_index .homepage_about::after {
        height: 210px;
        margin-top: 18px;
        background-size: 100% auto;
    }
}

/* ==========================================
   OTW CENDEKIA
   PERBAIKAN CATEGORIES & SERIES
   ========================================== */

/* Judul Categories dan Series */

.pkp_structure_sidebar
.block_browse li.has_submenu > span,
.pkp_structure_sidebar
.block_browse li.has_submenu > .title {
  display: block !important;
  margin: 0 !important;
  padding: 13px 14px !important;

  background: linear-gradient(
    180deg,
    #ff852e 0%,
    #f36b0d 100%
  ) !important;

  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-transform: uppercase;

  border-bottom: 3px solid #df5900;
}

/* Hilangkan padding bawaan submenu */

.pkp_structure_sidebar
.block_browse li.has_submenu {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Daftar kategori dan seri */

.pkp_structure_sidebar
.block_browse li.has_submenu > ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Tautan kategori dan seri */

.pkp_structure_sidebar
.block_browse li.has_submenu > ul > li > a {
  display: block !important;
  padding: 12px 14px !important;
  margin: 0 !important;

  background: #fff9f4 !important;
  color: #173047 !important;

  border-bottom: 1px solid #f1dacb;
  text-decoration: none !important;
  font-size: 14px !important;
}

/* Hover */

.pkp_structure_sidebar
.block_browse li.has_submenu > ul > li > a:hover {
  background: #fff0e3 !important;
  color: #df5900 !important;
}

/* Jarak antarbagian Browse */

.pkp_structure_sidebar
.block_browse li.has_submenu + li.has_submenu {
  margin-top: 15px !important;
}

/* =========================================
   OTW CENDEKIA - HEADER BANNER
   ========================================= */

/* Area header utama */
.pkp_structure_head {
  background-color: #ffffff !important;
}

/* Area banner di atas navigasi */
.pkp_head_wrapper {
  max-width: 1160px;
  margin: 0 auto;
}

/* Header background bawaan OMP */
.pkp_site_name_wrapper {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Tampilkan area banner dengan ukuran cukup */
.pkp_site_name_wrapper {
  min-height: 260px !important;
}

/* Hindari logo kecil menutupi banner */
.pkp_site_name img {
  display: none !important;
}

/* Navigasi tetap di bawah banner */
.pkp_navigation_primary_row {
  position: relative;
  z-index: 2;
}

/* Tampilan HP */
@media (max-width: 768px) {
  .pkp_site_name_wrapper {
    min-height: 130px !important;
    background-size: contain !important;
  }
}

/* ===================================================
   OTW CENDEKIA - LOGIN & REGISTER BUTTON
   =================================================== */

/* Area menu user di kanan atas */
.pkp_navigation_user {
    top: 14px !important;
    right: 14px !important;
}

/* Hilangkan jarak bawaan */
.pkp_navigation_user > li {
    margin-left: 6px !important;
}

/* ==========================================
   OTW CENDEKIA - REGISTER & LOGIN
   ========================================== */

.pkp_navigation_user {
    top: 14px !important;
    right: 14px !important;
}

.pkp_navigation_user > li {
    margin-left: 6px !important;
}

.pkp_navigation_user > li > a {
    display: inline-block !important;
    padding: 7px 14px !important;

    background: rgba(255, 255, 255, 0.95) !important;
    color: #173047 !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;

    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.10);
    transition: all 0.2s ease;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background: #fa7419 !important;
    border-color: #fa7419 !important;
    color: #ffffff !important;
}

/* LOGIN */
.pkp_navigation_user > li:last-child > a {
    background: #fa7419 !important;
    border-color: #fa7419 !important;
    color: #ffffff !important;
}

.pkp_navigation_user > li:last-child > a:hover {
    background: #df5900 !important;
    border-color: #df5900 !important;
    color: #ffffff !important;
}