
/* search va tab*/

.search-page .inner-wp {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: #FFF;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    margin-top: 26px;
}

.title-search {
    color: #041F4A;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding-bottom: 16px;
}
.search-header{
    width: 100%;
}
.search-header .input-search {
    display: flex;
    padding: 6px 12px;
    align-items: center;
    gap: 10px;
    flex: 1;
    border-radius: 6px;
    border: 1px solid #CCC;
    background: #FFF;
}
.search-header .input-search .search-icon {
    width: 24px;
    height: 24px;
}
.search-header .input-search .close-search-icon {
    display: flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.search-header .input-search .form-control {
    border: none;
    padding: 0;
    height: auto;
    color: #041F4A;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
}
.search-header .input-search .form-control:focus {
    border: none;
    box-shadow: none;
}
.search-form-result , .search-history-bar{
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper .icon-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    opacity: 0.6;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 43px; /* chừa chỗ cho icon */
    outline: none;
    color: #041F4A;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    border-radius: 6px;
    border: 1px solid #CCC;
    background: #FFF;
}

.search-input-wrapper input::placeholder {
    color: #8C8C8C;
    font-weight: 400;
    opacity: 1;
}

.search-history {
    width: 100%;
    margin-top: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px 12px;
    margin-bottom: 0px;
    flex: 1;
    box-sizing: border-box;
}



.btn-search {
    text-transform: uppercase;
    display: flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    background: #237BD3;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.search-tabs-wrap {
    position: relative;
}

.search-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    padding-top: 16px;
}
.search-tabs .tab {
    display: flex;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 96, 166, 0.80);
    background: #F9FCFF;
    color: rgba(0, 96, 166, 0.80);
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}
.search-tabs .tab:focus,.search-tabs .tab:active {
    outline: none;
    box-shadow: none;
}
.search-tabs .tab.active {
    background: #0060A6;
    color: #FFF;
}
.search-summary {
    color: #333;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding-bottom:24px;
}
.search-summary .value-search-summary {
    font-weight: 700;
}

/* noi dung tab*/
.search-tab-content {
    display: none;
    width: 100%;
}

.search-tab-content.active {
    display: block;
}

.search-tab-content .package-item {
    display: none;
}
.search-tab-content .package-item.show {
    display: flex;
    flex-direction: column;
}


.list-charge .register_btn_detail:focus,.list-charge .register_btn_detail:active,.list-charge .register_btn_detail:focus-visible {
    border: 1px solid #237BD3 ;
    outline: none ;
    box-shadow: none ;
}

.content-tab-news ,.content-tab-enterprise , .content-tab-subscriber {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.content-tab-news .news-item, .content-tab-enterprise .enterprise-item , .content-tab-subscriber .subscriber-item {
    display: flex;
    align-items: center;
    gap: 24px;
    border-radius: 8px;
    border: 1px solid #CCC;
    background: #FFF;
    width: 100%;
}
.content-tab-news .news-item .img-items-tab {
    width: 218px;
    height: 140px;
    border-radius: 8px 0 0 8px;
    object-fit: cover;
}
.content-tab-enterprise .enterprise-item .img-items-tab-enterprise , .content-tab-subscriber .subscriber-item .img-items-tab-subscriber  {
    width: 170px;
    height: 100px;
    border-radius: 8px 0 0 8px;
    object-fit: cover;
}


.content-tab-news .news-item .info ,.content-tab-enterprise .enterprise-item .info , .content-tab-subscriber .subscriber-item .info  {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    min-width: 0;
    padding-right: 12px;
}
.content-tab-news .news-item .info .info-news , .content-tab-enterprise .enterprise-item .info .info-news , .content-tab-subscriber .subscriber-item .info .info-news  {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}
.title-items {
    color: #0A4874;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}
.type-items {
    color: #237BD3;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.desc-items {
    display: block;
    max-width: 100%;
    color: #333;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.time-items {
    color: #0A4874;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}
/*css noi dung tab services*/


.service-grid   {
    width: 90%;
    margin: 0 auto;
}
.service-grid  .lSAction>a {
    top: 42%;
}


.lightSlider_hot_services .service-item {
    display: flex;
    width: 100%;
    padding: 12px;
    flex-direction: column;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid  #D6D6D6;
    background: #FFF;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
}

.lightSlider_hot_services .service-item img {
    height: 169px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.lightSlider_hot_services .service-item .title-service {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0A4874;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.lightSlider_hot_services .service-item .desc-service {
    color: #333;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0;
    height: 40px;
}

.lightSlider_hot_services.single-item {
    display: flex;
    justify-content: flex-start;
}
.lightSlider_hot_services.single-item .service-item {
    width: 232px;
}



/*css tab tuyển dụng*/

.recruitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 16px;
}

.recruitment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    /*flex: 1 0 0;*/
    border-radius: 8px;
    border: 1px solid #CCC;
    background: #FFF;
    min-width: 0;
}

.recruitment-logo {
    width: 104px;
    height: 100px;
    object-fit: cover;
}


.recruitment-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding-right: 12px;
    min-width: 0;
}

.recruitment-info .job-title {
    color: #0A4874;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.recruitment-info .job-type {
    color: #237BD3;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.recruitment-info .link-detail {
    display: flex;
    justify-content: flex-end;
}

.recruitment-info .btn-detail {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #F0F5FF;
    color: #0060A6;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}


.tab-indicator {
    display: none;
}

.see-more-wrap {
    display: flex;
    padding: 8px 0;
    justify-content: center;
    align-items: center;
    gap: 4px;
    align-self: stretch;
}

.see-more-wrap .btn-see-more {
    color: #237BD3;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.14px;
    cursor: pointer;
    gap: 2px;
    display: flex;
    align-items: center;
}
.see-more-wrap .btn-see-more {
    color: #237BD3;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.14px;
    cursor: pointer;
    gap: 2px;
    display: flex;
    align-items: center;
}

.search-page .no-result-data {
     padding-top: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: auto;
    gap:16px;
}

.search-page .no-result-data img {
    width: 160px;
    height: 160px;
}
.search-page .text-no-result-data {
    color: #333;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.news-item, .service-item ,.enterprise-item,.subscriber-item {
    cursor: pointer;
}

.history-item {
    max-width: 100%;
    min-width: 0; /* ⭐ BẮT BUỘC */
    background: white;
}
.history-item .text {
    display: block;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.search-tabs.tabs-center {
    justify-content: center;
}

.service-grid:has(.lightSlider_hot_services.single-item) {
    width: 100% !important;
}
#tab-service .lSSlideOuter {
    display: block;
}


/* ================= RESPONSIVE ================= */


@media (max-width: 991px) {
    .recruitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .recruitment-grid {
        grid-template-columns: 1fr;
    }
    .search-page .inner-wp {
        margin-top: 0;
        padding: 1px;
        border: none;
        box-shadow: none;
    }
    .search-form-result , .search-history-bar{
        gap: 12px;
    }
    .search-header .input-search {
        padding: 8px 12px;
    }
    .btn-search {
        padding: 8px 12px;
        color: #FFF;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: 24px;
    }
    .search-header .input-search .close-search-icon {
        display: none;
    }
    .search-header .input-search .form-control {
        line-height: 24px;
    }

    .search-tabs {
        justify-content: flex-start; /* 🔥 QUAN TRỌNG */
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap:12px;
    }

    .search-tabs::-webkit-scrollbar {
        display: none;
    }

    .search-tabs .tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* ================= INDICATOR ================= */
    .tab-indicator {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 12px;
    }

    .tab-indicator .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #D6DCE5;
        transition: all .25s ease;
    }

    .tab-indicator .dot.active {
        background: #0B57D0;
        width: 12px;
        border-radius: 8px;
    }

    .content-tab-news .news-item .img-items-tab {
        width: 137px;
        height: 104px;
    }
    .content-tab-news .news-item, .content-tab-enterprise .enterprise-item, .content-tab-subscriber .subscriber-item {
        gap:12px;
    }
    .title-items {
        font-size: 14px;
    }
    .content-tab-news .news-item .info .info-news, .content-tab-enterprise .enterprise-item .info .info-news, .content-tab-subscriber .subscriber-item .info .info-news {
        gap:4px;
    }
    .type-items {
        font-size: 10px;
    }
    .content-tab-news .news-item .info, .content-tab-enterprise .enterprise-item .info, .content-tab-subscriber .subscriber-item .info {
        gap: 8px;
    }
    .desc-items {
        font-size: 12px;
        line-height: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
        white-space: wrap;
    }
    .time-items {
        font-size: 10px;
        font-style: italic;
        font-weight: 400;
    }

    .lightSlider_hot_services .service-item {
        padding: 8px;
        gap: 8px;
    }
    .lightSlider_hot_services .service-item img {
        width: 100%;
        height: 86px;
    }
    .lightSlider_hot_services .service-item .title-service {
        font-size: 14px;
    }
    .service-grid {
        width: 70%;
    }
    .desc-service {
        font-size: 12px;
    }
    .content-tab-enterprise .enterprise-item .img-items-tab-enterprise, .content-tab-subscriber .subscriber-item .img-items-tab-subscriber {
        width: 143px;
        height: 84px;
        aspect-ratio: 61/28;
    }
    .recruitment-item {
        display: flex;
        align-items: center;
        gap: 16px;
        border-radius: 8px;
        border: 1px solid #CCC;
        background: #FFF;
    }
    .recruitment-logo {
        border-bottom-left-radius: 8px;
        border-top-left-radius: 8px;
    }

    .search-page .no-result-data img {
        width: 120px;
        height: 120px;
    }
    .text-no-result-data {
        max-width: 240px;
        white-space: normal;
        word-break: break-word;
    }
    .lightSlider_hot_services .service-item .desc-service {
        height: 38px;
    }
    .lightSlider_hot_services.single-item .service-item {
        width: 122px;
    }






}



