
/* FSPMI MODERN CORPORATE HEADER */

#header-grid,
#header-grid .header--row,
#header-grid .header--row-inner,
#header-grid .header-main,
#header-grid .header-bottom,
#header-grid .header-top,
header.site-header,
header.header {
    background: #ffffff !important;
}

#header-grid,
header.site-header {
    border-bottom: 1px solid #e8ebef;
    box-shadow: 0 3px 14px rgba(23,34,53,.045);
}

/* Brand / logo */
#header-grid .site-title a,
#header-grid .site-title,
#header-grid .builder-item--logo a,
#header-grid .site-logo a {
    color: #172235 !important;
    font-weight: 850;
}

/* Menu utama */
#header-grid .nav-ul li a,
#header-grid .primary-menu-ul li a,
#header-grid .nv-navbar .menu-item > a,
#header-grid .menu-item > a {
    color: #172235 !important;
    font-weight: 700;
    transition: color .2s ease;
    position: relative;
}

/* Hover */
#header-grid .nav-ul li a:hover,
#header-grid .primary-menu-ul li a:hover,
#header-grid .nv-navbar .menu-item > a:hover,
#header-grid .menu-item > a:hover {
    color: #c51f32 !important;
}

/* Garis merah pada menu aktif */
#header-grid .current-menu-item > a::after,
#header-grid .current_page_item > a::after,
#header-grid .current-menu-ancestor > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    background: #c51f32;
}

/* Tombol hamburger dan ikon */
#header-grid .menu-mobile-toggle,
#header-grid .navbar-toggle,
#header-grid .nv-nav-toggle,
#header-grid .hamburger {
    color: #172235 !important;
}

/* Dropdown */
#header-grid .sub-menu,
#header-grid .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e8ebef;
    box-shadow: 0 12px 28px rgba(23,34,53,.12);
}

#header-grid .sub-menu a,
#header-grid .dropdown-menu a {
    color: #172235 !important;
}

#header-grid .sub-menu a:hover,
#header-grid .dropdown-menu a:hover {
    color: #c51f32 !important;
    background: #f7f8fa !important;
}

/* Header mobile */
@media (max-width: 960px) {
    #header-grid,
    #header-grid .header--row,
    #header-grid .header--row-inner {
        background: #ffffff !important;
    }

    #header-grid .nav-ul li a,
    #header-grid .menu-item > a {
        color: #172235 !important;
    }
}


/* ===== FSPMI HEADER FINAL POLISH ===== */

/* KPOnline: navy premium */
#header-grid .nav-ul > li:last-child > a,
#header-grid .primary-menu-ul > li:last-child > a,
#header-grid .nv-navbar .menu-item:last-child > a {
    background: #172235 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 12px 18px !important;
    transition: background .2s ease, color .2s ease;
}

/* KPOnline hover */
#header-grid .nav-ul > li:last-child > a:hover,
#header-grid .primary-menu-ul > li:last-child > a:hover,
#header-grid .nv-navbar .menu-item:last-child > a:hover {
    background: #c51f32 !important;
    color: #ffffff !important;
}

/* Menu aktif: garis merah */
#header-grid .nav-ul > li.current-menu-item > a,
#header-grid .nav-ul > li.current_page_item > a,
#header-grid .primary-menu-ul > li.current-menu-item > a,
#header-grid .primary-menu-ul > li.current_page_item > a,
#header-grid .nv-navbar .current-menu-item > a,
#header-grid .nv-navbar .current_page_item > a {
    box-shadow: inset 0 -3px 0 #c51f32;
    color: #c51f32 !important;
}

/* Jangan beri garis merah pada tombol KPOnline */
#header-grid .nav-ul > li:last-child.current-menu-item > a,
#header-grid .primary-menu-ul > li:last-child.current-menu-item > a,
#header-grid .nv-navbar .menu-item:last-child.current-menu-item > a {
    box-shadow: none;
}

/* Jarak menu lebih rapi */
#header-grid .nav-ul > li > a,
#header-grid .primary-menu-ul > li > a {
    letter-spacing: .15px;
}


/* KPONLINE BUTTON - NEVE HEADER */
#header-grid .builder-item--button_base .button.button-primary {
    background: #172235 !important;
    background-color: #172235 !important;
    color: #ffffff !important;
    border: 1px solid #172235 !important;
    border-radius: 4px !important;
    padding: 12px 20px !important;
    box-shadow: none !important;
    transition: all .25s ease !important;
}

#header-grid .builder-item--button_base .button.button-primary:hover {
    background: #c51f32 !important;
    background-color: #c51f32 !important;
    border-color: #c51f32 !important;
    color: #ffffff !important;
}

/* Menu berita aktif pada halaman News */
body.blog #header-grid .current_page_parent > a,
body.blog #header-grid .current-menu-item > a {
    color: #c51f32 !important;
    box-shadow: inset 0 -3px 0 #c51f32;
}

