.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0px 1px 4px 0px var(--boxshadow-color);
}

.header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 10px;
}

.header .header-container .left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header .logo {
    display: block;
}

.header .logo img {
    width: 178px;
    height: 44px;
    object-fit: contain;
}

.header .menu-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.header .menu-item {
    position: relative;
}

.header .menu-item.active .menu-link:hover {
    background-color: var(--white-color);
    color: var(--desc-color);
}

.header .menu-item.active::after {
    display: block;
    content: "";
    width: 100%;
    height: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
}

.header .menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--desc-color);
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s linear;
}

.header .menu-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.header .icon-dropdown img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.header .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 2;
    padding: 6px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #E1E4ED;
    box-shadow: 0px 4px 5px 0px #19213D0D;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s linear;
}
.header .menu-item-has-children > a::after {
    display: inline-block;
    vertical-align: 1px;
    content: "";
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
}
.header .menu-item:hover .sub-menu {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: visible;
}

.header .sub-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 14px;
    line-height: 20px;
    color: var(--desc-color);
    border-radius: 6px;
}

.header .sub-menu .submenu-icon {
    width: 20px;
    height: 20px;
}

.header .sub-menu .submenu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header .sub-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.header .sub-menu a:hover .submenu-icon img {
    filter: invert(32%) sepia(65%) saturate(1366%) hue-rotate(217deg) brightness(110%)
}

.header .right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header .btn-menu-mb {
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
    cursor: pointer;
}

.header .search {
    position: relative;
}

.header .search .search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.header .search input {
    height: 44px;
    width: 286px;
    background-color: transparent;
    border: 0px;
    outline: none;
    padding-block: 0;
    padding-inline: 38px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0px 1px 4px 0px var(--boxshadow-color);
    background: #F3F3F4;
    color: var(--desc-color);
}

.header .search-history {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 9;
    padding: 6px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0px 4px 5px 0px var(--boxshadow-color);
    width: 436px;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.1s linear;
}

.header .search-history.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: visible;
}

.header .search .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin-bottom: 6px; */
    padding: 6px 8px;
}

.header .search .top .text {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--title-color);
}

.header .search .top button {
    border: 0;
    background-color: transparent;
    outline: none;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    color: var(--primary-color);
}

.header .search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s linear;
}

.header .search-item:hover {
    background-color: var(--secondary-color);
}

.header .search-item .thumbnail {
    width: 60px;
    height: 40px;
    overflow: hidden;
    border-radius: 6px;
}

.header .search-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header .search-item .content {
    flex: 1 0 0;
    margin-bottom: 2px;
}

.header .search-item .title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--title-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: all 0.3s linear;
}

.header .search-item:hover .title {
    color: var(--primary-color);
}

.header .search-item .desc {
    font-size: 13px;
    line-height: 16px;
    font-weight: 400;
    color: var(--desc-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.header .menu-mb {
    position: fixed;
    top: 64px;
    right: -100%;
    bottom: 0;
    z-index: 9;
    background-color: #ffffff;
    width: 30vw;
    border: 1px solid var(--border-color);
    box-shadow: 0px 1px 4px 0px var(--boxshadow-color);
    display: none;
    transition: all 0.3s linear
}

.header .menu-mb.active {
    right: 0%;
}

.header .menu-mb .menu-list {
    display: flex;
    flex-direction: column;
    align-items: self-start;
}

.header .menu-mb .menu-item {
    width: 100%;
    padding: 6px;
}

.header .menu-mb .menu-link {
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
    padding: 10px;
}

.header .menu-mb .search {
    display: none;
}

@media screen and (max-width: 1200px) {
    .header .btn-menu-mb,
    .header .menu-mb {
        display: block;
    }
    
    .header .left .menu {
        display: none;
    }

    .header .sub-menu {
        width: 100%;
    }

    .header .menu-mb .menu-link {
        font-weight: 400;
    }

    .header .menu-mb .menu-item {
        border-bottom: 1px solid var(--border-color);
    }

}

@media screen and (max-width: 768px) {

    .header .menu-mb .search {
        display: block;
    }

    .header .logo img {
        width: 120px;
    }

    .header .menu-mb {
        width: 95vw;
    }

    .header .right .search {
        display: none;
    }

    .header .search {
        padding: 6px;
    }

    .header .search input {
        width: 100%;
    }

    .header .search-history {
        width: 100%;
        top: 100%;
    }
}