/* ========== Global Reset Fixes ========== */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}

/* ========== Mobile Devices (up to 600px) ========== */
@media (max-width: 600px) {
  .pkp_structure_page {
    width: 100% !important;
    margin: 0 5px !important;
    padding: 10px !important;
    border: none !important;
  }
  .pkp_navigation_user_wrapper {
    padding-right: 10px;
  }
  .pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    padding: 0 5px !important;
    line-height: 2rem !important;
    font-size: 0.875rem;
  }
  .pkp_footer_content {
    padding: 1rem;
    text-align: center;
  }
  .pkp_brand_footer {
    width: 100%;
    float: none;
    padding-top: 30px;
  }
}

/* ========== Tablet Devices (601px–991px) ========== */
@media (min-width: 601px) and (max-width: 991px) {
  .pkp_structure_page {
    width: 95% !important;
    margin: 0 auto;
    padding: 15px !important;
    border: none;
  }
  .pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    padding: 0 8px !important;
    line-height: 2.2rem !important;
    font-size: 0.9375rem;
  }
  .pkp_footer_content {
    padding: 1.5rem;
  }
}

/* ========== Laptop/Desktop (992px and up) ========== */
@media (min-width: 992px) {
  .has_site_logo .pkp_head_wrapper {
    padding-top: 0px;
  }
  html, body {
    background: transparent;
  }
  .pkp_structure_page {
    width: 100%;
    max-width: 1162px;
    margin: auto;
    padding-bottom: 0 !important;
    border-left: 1px solid gray;
    border-right: 1px solid gray;
    background: #fff;
  }
}

/* General Styling */
.pkp_site_name,
.pkp_site_name > a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.pkp_site_name .is_img img {
  max-height: 100%;
  max-width: 100%;
  display: block;
  height: auto;
  width: auto;
}
.pkp_site_name_wrapper {
  background: transparent !important;
  padding: 0 !important;
}
.pkp_navigation_user_wrapper {
  top: 0;
  right: 0;
  padding-right: 30px;
}
.pkp_structure_page {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  background: transparent !important;
}
.pkp_navigation_primary_row {
  background: #4c4c4c !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li {
  padding: 0 !important;
  margin: 0 !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
  margin: 0 !important;
  padding: 0 10px !important;
  line-height: 2.5rem !important;
  font-family: 'Sunflower', helvetica, calibri;
  color: #FFFFFF !important;
  font-weight: normal !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover {
  background: rgba(0,0,0,.3) !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul {
  background: #2b3a3f !important;
  border-radius: 0 !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li {
  border-bottom: 1px solid rgba(255,255,255,.35) !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li:last-child {
  border-bottom: none !important;
}
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper .pkp_search .search_controls a.headerSearchPrompt.search_prompt,
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper .pkp_search.is_open input[type=text] {
  font-family: 'Sunflower', helvetica, calibri;
  color: #FFFFFF !important;
}
.pkp_structure_content {
  padding-top: 0;
}
.pkp_structure_sidebar .pkp_block .title,
h1,h2,h3,h4,h5,h6 {
  font-family: 'Sunflower', helvetica, calibri;
}
.hover {
  width: 100%;
  border-collapse: collapse;
}
.hover th {
  height: 2rem;
  background: #4c4c4c;
  color: #ffffff;
}
.hover td {
  height: 2rem;
  padding-top: 0.25rem;
  vertical-align: middle;
  border-bottom: 1px solid #ffffff;
  text-align: center;
}
.hover td a {
  width: 100%;
  display: block;
}
.hover tr {
  background: #6dd5ed;
  color: #ffffff;
}
.hover tr:hover {
  background-color: #4c4c4c;
}
.hover tr a {
  color: #ffffff;
}
.pkp_footer_content {
  padding: 2rem;
  text-align: left;
  width: 100%;
}
.pkp_brand_footer {
  float: right;
  width: 30%;
  padding-bottom: 10px;
  padding-top: 100px;
  display: none !important;
}
.pkp_structure_footer_wrapper {
  border-bottom: none;
  background: transparent;
  border-top: 0 solid #ddd;
}
.pkp_structure_footer {
  background: #f2f2f2;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 2rem solid #4c4c4c;
}

/* ===== SidebarMenu: gaya baris seperti contoh ===== */
#customblock-SidebarMenu {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* reset margin bawaan */
#customblock-SidebarMenu .content { margin: 0 0 8px 0; }
#customblock-SidebarMenu .content p { margin: 0; }

/* 1 baris per menu */
#customblock-SidebarMenu .content > p > a {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 12px 14px;
  background: #fafafa;                 /* latar tipis */
  border: 1px solid #eeeeee;           /* garis kotak */
  border-radius: 6px;
  color: #1e88e5;                      /* teks biru seperti contoh */
  text-decoration: none;               /* tanpa underline */
  box-shadow: inset 0 0 0 0 rgba(0,0,0,0); /* tanpa efek */
}

/* ikon kiri */
#customblock-SidebarMenu .content > p > a em {
  color: #1e88e5;
  font-size: normal;
  line-height: 1;
  width: 22px;                         /* lebar tetap agar rata */
  min-width: 22px;
  text-align: center;
}

/* garis vertikal pemisah antara ikon dan teks */
#customblock-SidebarMenu .content > p > a::before {
  content: "";
  position: absolute;
  left: 44px;                          /* 22px ikon + 10px gap + ruang */
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #e6e6e6;
}

/* teks (setelah ikon) */
#customblock-SidebarMenu .content > p > a span,
#customblock-SidebarMenu .content > p > a {
  font-weight: 600;
  letter-spacing: .2px;
}

/* opsional: sedikit perubahan saat hover (tanpa animasi) */
#customblock-SidebarMenu .content > p > a:hover {
  background: #f7f7f7;
  border-color: #e8e8e8;
  color: #1e88e5;                      /* tetap biru */
}

/* rapikan jarak bawah item terakhir */
#customblock-SidebarMenu .content:last-child { margin-bottom: 0; }

/* responsif kecil: rapatkan padding */
@media (max-width: 480px) {
  #customblock-SidebarMenu .content > p > a { padding: 10px 12px; }
  #customblock-SidebarMenu .content > p > a::before { left: 40px; }
}

/* ======== UNIVERSAL BOX STYLE FOR ALL CUSTOM SIDEBAR BLOCKS ======== */
.pkp_block.block_custom,.pkp_block.block_Keywordcloud,
.pkp_block.block_developed_by {
  background: #ffffff;                     /* warna dasar kotak */
  border: 1px solid #ffffff;                  /* garis tepi lembut */
  border-radius: 10px;                     /* sudut membulat */
  padding: 15px 18px;                      /* jarak isi */
  margin-bottom: 20px;                     /* jarak antar kotak */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);   /* bayangan lembut */
  transition: all 0.25s ease-in-out;       /* efek animasi */
}

/* Efek hover pada block agar interaktif */
.pkp_block.block_custom,.pkp_block.block_Keywordcloud,
.pkp_block.block_developed_by :hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Judul dalam setiap blok (jika ada title/h2/h3) */
.pkp_block.block_custom .title,
.pkp_block.block_custom h2 {
  text-align: center;
  font-size: normal;
  font-weight: normal;
  color: #333;
  border-bottom: 2px solid #4c4c4c;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* Isi teks/link di dalam blok */
.pkp_block.block_custom a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: normal;
  font-weight: normal;
  padding: 5px 0;
  transition: all 0.2s ease-in-out;
}

/* Efek hover pada link */
.pkp_block.block_custom {
  color: #007acc;
  text-decoration: none;
  transform: translateX(4px);
}

/* Ikon di depan link */
.pkp_block.block_custom em {
  color: #007acc;
  margin-right: 8px;
}

/* Jika block berisi list <ul><li> */
.pkp_block.block_custom ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pkp_block.block_custom ul li {
  border-bottom: 1px solid #e0e0e0;
  padding: 6px 0;
}
.pkp_block.block_custom ul li:last-child {
  border-bottom: none;
}

/* ===== Underline-from-center for SidebarMenu links (no blue color) ===== */

/* target semua link di SidebarMenu + yang dibungkus class hvr-underline-from-center */
#customblock-SidebarMenu a,
#customblock-SidebarMenu .hvr-underline-from-center a,
#customblock-SidebarMenu a.hvr-underline-from-center {
  position: relative;
  color: #333;                 /* netral, bukan biru */
  text-decoration: none;       /* underline dikendalikan pseudo-element */
  outline: none;
  transition: color .2s ease;
}

/* garis bawah animasi dari tengah */
#customblock-SidebarMenu a::after,
#customblock-SidebarMenu .hvr-underline-from-center a::after,
#customblock-SidebarMenu a.hvr-underline-from-center::after {
  content: "";
  position: absolute;
  left: 50%;                   /* mulai dari tengah */
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;    /* pakai warna teks (#333) */
  transition: width .25s ease, left .25s ease;
}

/* tampilkan underline saat hover, focus, dan active (klik) */
#customblock-SidebarMenu a:hover::after,
#customblock-SidebarMenu a:focus::after,
#customblock-SidebarMenu a:active::after,
#customblock-SidebarMenu .hvr-underline-from-center a:hover::after,
#customblock-SidebarMenu .hvr-underline-from-center a:focus::after,
#customblock-SidebarMenu .hvr-underline-from-center a:active::after,
#customblock-SidebarMenu a.hvr-underline-from-center:hover::after,
#customblock-SidebarMenu a.hvr-underline-from-center:focus::after,
#customblock-SidebarMenu a.hvr-underline-from-center:active::after {
  left: 0;                     /* bentang penuh dari kiri */
  width: 100%;
}

/* override hover sebelumnya: jangan geser, jangan ganti warna */
#customblock-SidebarMenu a:hover,
#customblock-SidebarMenu a:focus,
#customblock-SidebarMenu a:active {
  color: #333;
  transform: none;
}

/* ==== Sidebar lebih ramping (sesuai contoh) ==== */
@media (min-width: 992px) {
  /* Perkecil kolom sidebar */
  .pkp_structure_sidebar { 
    padding-left: 15px !important;   /* jarak dari sisi kiri halaman */
    padding-right: 15px !important;  /* jarak dari sisi kanan halaman */
    margin: 0 auto !important;       /* agar rata tengah jika sidebar independen */
  }

  /* Rapatkan isi box sidebar */
  .pkp_block.block_custom,.pkp_block.block_Keywordcloud,
.pkp_block.block_developed_by {
    width: 100%;                     /* pastikan lebar penuh area sidebar */
    padding: 10px 12px !important;   /* jarak isi dalam kotak */
    box-sizing: border-box;          /* agar padding tidak menambah total lebar */
  }

  /* Perkecil tinggi baris menu + jarak ikon-teks */
  #customblock-SidebarMenu .content > p > a {
    padding: 8px 8px !important;   /* dari 12px 14px */
    gap: 8px !important;            /* dari 10px */
  }
  #customblock-SidebarMenu .content > p > a em {
    width: 18px !important;         /* dari 22px */
    min-width: 18px !important;
  }
  /* Sesuaikan garis pemisah agar tetap proporsional */
  #customblock-SidebarMenu .content > p > a::before {
    left: 28px !important;          /* disesuaikan dgn ikon yg lebih kecil */
    top: 6px !important;
    bottom: 6px !important;
  }

  /* (opsional) Sedikit pendekkan tinggi baris tabel judul kecil */
  .hover th, .hover td { height: 1.8rem !important; }
}

