/*=========================================================
PKB KOTA BOGOR
HEADER CSS v1.0
=========================================================*/

/* =====================================================
HEADER
===================================================== */

#header{
    position:relative;
    width:100%;
    z-index:999;
}

/* =====================================================
TOP BAR
===================================================== */

.topbar{
    background:#0B6B35;
    color:#fff;
    font-size:14px;
}

.topbar-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:42px;
}

.topbar-left,
.topbar-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.topbar a{
    color:#fff;
    opacity:.9;
}

.topbar a:hover{
    opacity:1;
}

.topbar i{
    margin-right:6px;
}

.topbar span{
    opacity:.4;
}

/* =====================================================
NAVBAR
===================================================== */

.navbar-main{

    background:#fff;

    position:relative;

    transition:.35s;

    box-shadow:0 2px 20px rgba(0,0,0,.05);

}

#header.sticky .navbar-main{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    animation:headerDown .35s;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

@keyframes headerDown{

from{

transform:translateY(-100%);

}

to{

transform:none;

}

}

/* =====================================================
WRAPPER
===================================================== */

.navbar-wrapper{

display:flex;

align-items:center;

justify-content:space-between;

height:88px;

}

/* =====================================================
LOGO
===================================================== */

.logo{

display:flex;

align-items:center;

gap:15px;

color:#111;

}

.logo img{

height:60px;

width:auto;

display:block;

}

.logo strong{

display:block;

font-size:22px;

font-weight:800;

line-height:1.2;

}

.logo small{

display:block;

font-size:13px;

color:#64748B;

margin-top:2px;

}

/* =====================================================
MENU
===================================================== */

.navbar-menu{

display:flex;

align-items:center;

gap:35px;

margin:0;

padding:0;

list-style:none;

}

.navbar-menu>li{

position:relative;

}

.navbar-menu>li>a{

display:flex;

align-items:center;

gap:6px;

height:88px;

font-size:15px;

font-weight:600;

color:#1E293B;

transition:.3s;

}

.navbar-menu>li>a:hover{

color:#0B6B35;

}

.navbar-menu>li>a.active{

color:#0B6B35;

}

.navbar-menu>li>a.active::after{

content:"";

position:absolute;

left:0;

bottom:18px;

width:100%;

height:3px;

background:#0B6B35;

border-radius:10px;

}

/* =====================================================
RIGHT
===================================================== */

.navbar-right{

display:flex;

align-items:center;

gap:15px;

}

/* =====================================================
SEARCH
===================================================== */

.search-btn{

width:44px;

height:44px;

border:none;

background:#F3F4F6;

border-radius:12px;

display:flex;

align-items:center;

justify-content:center;

cursor:pointer;

transition:.3s;

}

.search-btn:hover{

background:#0B6B35;

color:#fff;

}

/* =====================================================
LOGIN BUTTON
===================================================== */

.navbar-right .btn{

padding:12px 26px;

border-radius:12px;

font-weight:700;

}

/* =====================================================
MOBILE BUTTON
===================================================== */

.mobile-toggle{

display:none;

width:46px;

height:46px;

border:none;

background:#F3F4F6;

border-radius:12px;

align-items:center;

justify-content:center;

font-size:20px;

cursor:pointer;

transition:.3s;

}

.mobile-toggle:hover{

background:#0B6B35;

color:#fff;

}
/*=========================================================
DROPDOWN MENU
=========================================================*/

.navbar-menu li{

    position:relative;

}

.dropdown>a i{

    font-size:12px;

    transition:.3s;

}

.dropdown:hover>a i{

    transform:rotate(180deg);

}

/* =====================================================
SUB MENU
===================================================== */

.dropdown-menu{

    position:absolute;

    top:100%;

    left:0;

    min-width:250px;

    background:#fff;

    border:none;

    border-radius:18px;

    padding:15px 0;

    margin-top:15px;

    box-shadow:0 20px 50px rgba(0,0,0,.12);

    opacity:0;

    visibility:hidden;

    transform:translateY(15px);

    transition:.35s;

    display:block;

    z-index:999;

}

.dropdown:hover>.dropdown-menu{

    opacity:1;

    visibility:visible;

    transform:none;

}

.dropdown-menu li{

    list-style:none;

}

.dropdown-menu li a{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:12px 24px;

    color:#374151;

    font-size:15px;

    font-weight:500;

    transition:.3s;

}

.dropdown-menu li a:hover{

    background:#F8FAFC;

    color:#0B6B35;

    padding-left:30px;

}

/* =====================================================
SUB DROPDOWN
===================================================== */

.dropdown-menu .dropdown{

    position:relative;

}

.dropdown-menu .dropdown-menu{

    top:0;

    left:100%;

    margin-top:0;

    margin-left:10px;

}

/* =====================================================
MEGA MENU
===================================================== */

.mega-menu{

    position:absolute;

    left:50%;

    transform:translateX(-50%) translateY(15px);

    top:100%;

    width:900px;

    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:0 30px 70px rgba(0,0,0,.15);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

}

.dropdown:hover>.mega-menu{

    opacity:1;

    visibility:visible;

    transform:translateX(-50%);

}

/* =====================================================
MEGA GRID
===================================================== */

.mega-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.mega-column h5{

    font-size:16px;

    font-weight:700;

    margin-bottom:18px;

    color:#111827;

}

.mega-column ul{

    margin:0;

    padding:0;

}

.mega-column li{

    list-style:none;

}

.mega-column a{

    display:block;

    padding:8px 0;

    color:#64748B;

    font-size:15px;

    transition:.3s;

}

.mega-column a:hover{

    color:#0B6B35;

    padding-left:8px;

}

/* =====================================================
ACTIVE MENU
===================================================== */

.navbar-menu>.active>a{

    color:#0B6B35;

}

.navbar-menu>.active>a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:18px;

    width:100%;

    height:3px;

    border-radius:20px;

    background:#0B6B35;

}

/* =====================================================
HOVER EFFECT
===================================================== */

.navbar-menu>li>a{

    position:relative;

}

.navbar-menu>li>a::before{

    content:"";

    position:absolute;

    left:50%;

    bottom:18px;

    width:0;

    height:3px;

    background:#0B6B35;

    transition:.3s;

    transform:translateX(-50%);

}

.navbar-menu>li>a:hover::before{

    width:100%;

}

/* =====================================================
ANIMATION
===================================================== */

@keyframes menuFade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.dropdown:hover>.dropdown-menu,

.dropdown:hover>.mega-menu{

    animation:menuFade .3s ease;

}
/*=========================================================
MOBILE MENU
=========================================================*/

.mobile-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:998;

}

.mobile-overlay.active{

    opacity:1;

    visibility:visible;

}

.mobile-menu{

    position:fixed;

    top:0;

    right:-360px;

    width:340px;

    max-width:90%;

    height:100vh;

    background:#fff;

    overflow-y:auto;

    transition:.35s;

    box-shadow:-10px 0 40px rgba(0,0,0,.15);

    z-index:999;

}

.mobile-menu.active{

    right:0;

}

.mobile-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:20px;

    border-bottom:1px solid #eee;

}

.mobile-close{

    width:42px;

    height:42px;

    border:none;

    background:#F3F4F6;

    border-radius:12px;

    cursor:pointer;

}

.mobile-menu ul{

    list-style:none;

    padding:20px;

    margin:0;

}

.mobile-menu li{

    border-bottom:1px solid #f3f4f6;

}

.mobile-menu a{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 0;

    color:#111827;

    font-weight:600;

}

.mobile-menu a:hover{

    color:#0B6B35;

}

/*=========================================================
SEARCH MODAL
=========================================================*/

.search-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.search-modal.active{

    opacity:1;

    visibility:visible;

}

.search-box{

    width:min(700px,92%);

    background:#fff;

    border-radius:20px;

    padding:35px;

}

.search-box input{

    width:100%;

    height:60px;

    border:none;

    border-bottom:2px solid #E5E7EB;

    outline:none;

    font-size:22px;

}

.search-box input:focus{

    border-color:#0B6B35;

}

/*=========================================================
SCROLL EFFECT
=========================================================*/

#header.sticky .navbar-main{

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    background:rgba(255,255,255,.95);

}

#header.sticky .logo img{

    height:52px;

    transition:.3s;

}

#header.sticky .navbar-wrapper{

    height:74px;

}

/*=========================================================
RESPONSIVE
=========================================================*/

@media (max-width:1200px){

.navbar-menu{

    gap:22px;

}

.logo strong{

    font-size:20px;

}

}

@media (max-width:992px){

.topbar{

    display:none;

}

.navbar-menu{

    display:none;

}

.mobile-toggle{

    display:flex;

}

.search-btn{

    display:none;

}

.navbar-wrapper{

    height:80px;

}

.logo img{

    height:52px;

}

.logo strong{

    font-size:20px;

}

}

@media (max-width:768px){

.navbar-wrapper{

    height:74px;

}

.logo img{

    height:46px;

}

.logo strong{

    font-size:18px;

}

.logo small{

    font-size:12px;

}

.navbar-right .btn{

    display:none;

}

.mobile-menu{

    width:320px;

}

}

@media (max-width:576px){

.logo strong{

    font-size:16px;

}

.logo small{

    display:none;

}

.mobile-menu{

    width:100%;

    max-width:100%;

}

}

/*=========================================================
UTILITY
=========================================================*/

.nav-shadow{

    box-shadow:0 20px 45px rgba(15,23,42,.08);

}

.radius{

    border-radius:18px;

}

.hidden{

    display:none!important;

}

.fade{

    animation:fadeIn .35s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

.slideDown{

    animation:slideDown .35s ease;

}

@keyframes slideDown{

    from{

        opacity:0;

        transform:translateY(-20px);

    }

    to{

        opacity:1;

        transform:none;

    }

}