/* ==========================================
   TOPBAR
========================================== */

.topbar {
    position: sticky;
    width: 100%;
    background: rgba(255, 255, 255, .95);
    padding: 0;
}
/* .topbar-title {
    display: flex;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: #006666;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    letter-spacing: .5px;
}
.topbar-title .container,
.topbar-title .container > .d-flex {
    height: 100%;
} */
 
.topbar-brand {
    height: 84px;
    line-height: 1.25;
    color: var(--green);
}
/* .topbar-brand .container,
.topbar-brand .container > .d-flex {
    height: 100%;
} */
.en-name {
    font-size: 13px;
}
.th-name {
    font-size: 22px;
}

/* Logo */
.topbar-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
}
.topbar-logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
}

/* .topbar-badge{
    display:inline-block;
    padding: 2px 7px;
    background: rgba(251, 255, 43, 0.75);
    border:1px solid rgba(0, 83, 18, 0.25);
    box-shadow: 0 1px 3px rgba(0, 77, 57, 0.25);
    border-radius:50px;
    font-size:12px;
    font-size: 12px;
    color:var(--green-dark);
    margin-top: 3px;
} */

/* Social */

.topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 24px;
    transition: all .3s ease;
}

.topbar-social a:hover {
    /* background: #d5a72c; */
    /* color: #043f30; */
    transform: translateY(-2px);
    box-shadow:0 3px 7px rgba(0, 77, 57, 0.25);
}


/* ======================================================
   NAVBAR
====================================================== */

.main-navbar{
    background: var(--green-dark);
    padding: 15px 0;
    box-shadow: 0 3px 5px rgba(0, 77, 57, 0.25);
    background-image: linear-gradient(rgba(0, 102, 102, 1), rgba(0, 32, 32, 0.9));
}

.navbar-brand{
    color: #fff !important;
}

.brand-icon {
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#dff2eb;
    color:var(--green-dark);
    font-size: 32px;
}

.brand-name {
    font-size:21px;
    font-weight:600;
}

.navbar-brand small {
    opacity:.8;
    font-size:12px;
}

.sticky-120 {
    position: sticky;
    top: 84px;
    z-index: 1020;
}

/* .nav-link{
    color:rgba(255,255,255,.9) !important;
    padding: 8px 15px !important;
    border-radius:8px;
    transition:.3s;
    background:rgba(255,255,255,.05);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 3px;
    height: 2px;
    background: #d4af37;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active{
    color:#fff !important;
    background:rgba(255,255,255,.1);
}
.nav-link:hover{
    box-shadow:0 10px 25px rgba(0,0,0,.5);
} */

.main-navbar .nav-link{
    position: relative;
    padding: 10px 18px !important;
    color: rgba(255,255,255,.9) !important;
    border-radius: 8px;
    transition: .3s;
    background: rgba(255,255,255,.05);
}

.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 3px;
    height: 2px;
    background: #d4af37;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.1);
}

.main-navbar .nav-link:hover{
    box-shadow: 0 10px 25px rgba(0,0,0,.5);
}

.menu-between {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* gap: 3rem; */
}

.menu-between .nav-item {
    flex: 0 0 auto;
}

.menu-between .nav-link {
    width: auto;
    white-space: nowrap;
    display: inline-block;
}

.menu-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: var(--green-dark);
    background: #dff2eb;
}
@media(max-width:1199px){
    
}
@media(max-width:991px){
    .main-navbar .nav-link{
        padding: 3px !important;
        background: #fff !important;
        border-radius: 50%;
    }
    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active{
        background: #fff !important;
    }
    /* .menu-icon {
        width:48px;
        height:48px;
        font-size: 24px;
    } */
}
@media(max-width:767px){
    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active{
        background:transparent;
    }
}
@media(max-width:575px){
    .topbar .container {
        padding: 0 10px;
    }
    .topbar-brand {
        height: 72px;
    }
    .th-name {
        font-weight: 300;
    }
    .topbar-social {
        display: none;
        padding-bottom: 10px;
    }
    .topbar-social a {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .topbar-logo {
        width: 54px;
        height: 54px;
        margin-right: 5px;
    }    
    .topbar-logo img {
        width: 54px;
        height: 54px;
    }
    .sticky-120 {
        position: sticky;
        top: 72px;
        z-index: 1020;
    }
    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active{
        background: transparent !important;
    }
    .menu-icon {
        width:32px !important;
        height:32px !important;    
        font-size: 18px;
    }
}



.custom-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    background: #f1f5f3;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.custom-tabs .nav-link {
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 10px 18px;
    color: var(--green-light);
    font-size: 20px !important;
    transition: all .25s ease;
}

.custom-tabs .nav-link:hover {
    color: var(--green);
    background: rgba(7, 92, 58, .08) !important;
}

.custom-tabs .nav-link.active {
    font-weight: 500;
    color: #bb9b32;
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 2px 6px rgba(7, 92, 58, .18);
}

.tab-panel {
    padding: 16px;
    background: #fff;
    border: 1px solid #f1f5f3;
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.tab-panel h5 {
    color: var(--green);
    font-weight: 600;
}

.tab-panel p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Mobile */
@media (max-width: 575px) {
    .custom-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .custom-tabs::-webkit-scrollbar {
        display: none;
    }

    .custom-tabs .nav-link {
        padding: 9px 13px;
        font-size: 18px !important;
    }

    .tab-panel {
        padding: 16px;
    }
}
