/* =========================
   MAIN NAVBAR
========================= */

.main-navbar{
    background:#ffffff;
    padding:15px 10%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 2px 5px rgba(0,0,0,.05);
    position:relative;
    z-index:999;
}

/* =========================
   LOGO
========================= */

.logo-area{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:inherit;
    cursor:pointer;
    transition:.3s;
}

.logo-area:hover{
    opacity:.9;
    text-decoration:none;
}

.logo-area img{
    height:50px;
    width:auto;
    display:block;
}

.logo-text h1{
    margin:0;
    font-size:17px;
    color:#0c1e36;
    font-weight:700;
    line-height:1.2;
}

.logo-text h1 span{
    color:#000;
}

.logo-text p{
    margin:0;
    font-size:11px;
    color:#777;
    font-style:italic;
}

/* =========================
   SEARCH BOX
========================= */

.search-container{
    display:flex;
    align-items:center;
    background:#f1f3f4;
    border-radius:20px;
    padding:2px 2px 2px 15px;
    width:240px;
}

.search-container i{
    color:#777;
    margin-right:8px;
}

.search-container input{
    border:none;
    background:none;
    outline:none;
    width:100%;
    font-size:13px;
}

.search-btn{
    background:#b0b0b0;
    color:#fff;
    border:none;
    padding:6px 18px;
    border-radius:20px;
    cursor:pointer;
    font-size:13px;
    font-weight:bold;
    transition:.3s;
}

.search-btn:hover{
    background:#888;
}

/* =========================
   MENU
========================= */

.nav-menu{
    display:flex;
    align-items:center;
    list-style:none;
    gap:18px;
    font-size:14px;
    font-weight:600;
}

.nav-menu li{
    position:relative;
    padding:10px 0;
}

.nav-menu li a{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    color:#333;
    padding:5px 0;
    transition:.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active{
    color:#d4af37;
}

.nav-menu li a i{
    font-size:10px;
    margin-left:4px;
}

/* =========================
   DROPDOWN
========================= */

.dropdown{
    position:absolute;
    top:100%;
    left:0;
    background:#fff;
    min-width:220px;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.12);
    list-style:none;
    padding:8px 0;
    display:none;
    opacity:0;
    transform:translateY(10px);
    transition:.3s;
}

.nav-menu li:hover .dropdown{
    display:block;
    opacity:1;
    transform:translateY(0);
}

.dropdown li{
    padding:0;
}

.dropdown li a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 20px;
    color:#333;
    font-size:14px;
    font-weight:500;
}

.dropdown li a:hover{
    background:#f5f7fa;
    color:#d4af37 !important;
}

.dropdown li a i{
    width:20px;
    font-size:16px;
    color:#d4af37;
    text-align:center;
}

/* =========================
   LOGIN BUTTON
========================= */

.login-btn{
    background:linear-gradient(to right,#ffaa00,#ff8800);
    color:#fff !important;
    padding:8px 22px;
    border-radius:20px;
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:bold;
}

/* --- RESPONSIF NAVBAR DI HP --- */
@media screen and (max-width: 768px) {
    .main-navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }

    .logo-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-container input {
        width: 100%;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
    }
}
/* ==========================================================
   SEARCH TRAINING DROPDOWN
========================================================== */

/* ==========================================================
   ITEM HASIL
========================================================== */

.search-result-item {

    display: block;

    padding: 12px 15px;

    border-bottom:
        1px solid #eeeeee;

    text-decoration: none;

    color: #333333;

    cursor: pointer;

    transition: 0.2s;

}


.search-result-item:last-child {

    border-bottom: none;

}


.search-result-item:hover {

    background: #f7f7f7;

}


/* ==========================================================
   JUDUL TRAINING
========================================================== */

.search-result-title {

    font-size: 14px;

    font-weight: 700;

    color: #0c1e36;

    line-height: 1.4;

    margin-bottom: 6px;

}


/* ==========================================================
   INFORMASI TRAINING
========================================================== */

.search-result-info {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    font-size: 11px;

    color: #777777;

}


.search-result-info span {

    display: inline-flex;

    align-items: center;

    gap: 4px;

}


.search-result-info i {

    color: #d4af37;

}


/* ==========================================================
   TIDAK ADA HASIL
========================================================== */

.search-no-result {

    padding: 18px 15px;

    text-align: center;

    font-size: 13px;

    color: #777777;

}


.search-no-result i {

    font-size: 20px;

    margin-bottom: 8px;

}


/* ==========================================================
   HASIL LEBIH DARI 6
========================================================== */

.search-result-more {

    padding: 10px 15px;

    text-align: center;

    font-size: 12px;

    color: #d4af37;

    font-weight: 700;

    background: #fafafa;

}


/* ==========================================================
   HIGHLIGHT TRAINING YANG DIPILIH
========================================================== */

.training-card.search-highlight {

    animation:
        searchHighlight 1.5s ease;

}


@keyframes searchHighlight {

    0% {

        transform: scale(1);

    }

    30% {

        transform: scale(1.02);

        box-shadow:
            0 0 0 4px
            rgba(212, 175, 55, 0.35);

    }

    100% {

        transform: scale(1);

    }

}
/* ==========================================================
   SEARCH RESULT NAVBAR
========================================================== */

/* ==========================================================
   PENCARIAN TRAINING - FINAL
========================================================== */

#navbarSearchBox {
    position: relative;
    z-index: 99999;
}


/* HASIL PENCARIAN */

#searchResults {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
    overflow: hidden;
    display: none;
    z-index: 99999;
}


/* ITEM */

#searchResults .search-result-item {
    display: block;
    padding: 13px 15px;
    border-bottom: 1px solid #eeeeee;
    cursor: pointer;
    background: #ffffff;
}


#searchResults .search-result-item:last-child {
    border-bottom: none;
}


#searchResults .search-result-item:hover {
    background: #f5f7fa;
}


/* JUDUL */

#searchResults .search-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #0c1e36;
    line-height: 1.4;
    margin-bottom: 6px;
}


/* INFORMASI */

#searchResults .search-result-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #777777;
}


#searchResults .search-result-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


#searchResults .search-result-info i {
    color: #d4af37;
}


/* TIDAK DITEMUKAN */

#searchResults .search-no-result {
    padding: 18px 15px;
    text-align: center;
    font-size: 13px;
    color: #777777;
}


/* HIGHLIGHT TRAINING */

.training-card.search-highlight {
    animation: trainingSearchHighlight 2s ease;
}


@keyframes trainingSearchHighlight {

    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.03);
        box-shadow: 0 0 0 5px rgba(212,175,55,.45);
    }

    100% {
        transform: scale(1);
    }

}