/*
Theme Name: Kejari Wonosobo
Theme URI: https://example.org/
Author: Alif Luthfi
Description: Tema WordPress responsif bergaya hijau tua dan emas untuk website institusi Kejaksaan Negeri Wonosobo.
Version: 1.3.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kejari-wonosobo
*/


/* Paksa logo dan teks sejajar horizontal */
.site-header .header-inner .brand {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
}

.site-header .header-inner .brand .brand-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    width: auto;
    text-decoration: none;
}

/* Elemen pembungkus logo WordPress */
.site-header .brand .brand-link .custom-logo-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ukuran logo */
.site-header .brand .brand-link img.custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain;
}

/* Teks di sebelah logo */
.site-header .brand .brand-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    /* color: #fff !important; */
    line-height: 1.35 !important;
    white-space: nowrap;
}

.site-header .brand .brand-text strong,
.site-header .brand .brand-text b {
    display: block !important;
    margin: 0 !important;
    /* color: #fff !important; */
    font-size: 14px !important;
    font-weight: 700 !important;
}


/* Jarak logo dan nama instansi dikelola oleh gap pada .brand-link. */
.site-header .header-inner .brand .brand-link .custom-logo-link {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.site-header .header-inner .brand .brand-link img.custom-logo {
    margin: 0 !important;
}

.site-header .header-inner .brand .brand-text {
    margin: 0 !important;
    padding-left: 0 !important;
}


/* Dropdown menu utama */
.site-header .menu-item-has-children {
  position: relative;
}

.site-header .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.site-header .menu-item-has-children:hover > .sub-menu,
.site-header .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.site-header .sub-menu li {
  display: block;
  width: 100%;
}

.site-header .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: #173f2b;
  white-space: nowrap;
}

.site-header .sub-menu a:hover {
  background: #f2f5f0;
}


/* Ikon Down Chevron pada menu Profil yang memiliki submenu */
.site-header .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  margin-bottom: 3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  vertical-align: middle;
}

/* Chevron berputar ketika dropdown dibuka */
.site-header .menu-item-has-children:hover > a::after,
.site-header .menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg);
  margin-bottom: -1px;
}

