/* HEADER SEARCH  */

.header-right_container .header-icon {
    cursor: pointer;
}

.header-right_container .header-search .search-input {
    visibility: hidden;

    opacity: 0;

    width: 420px;

    top: calc(100% + 25px);

    right: -30px;

    z-index: 990;

    border-radius: 3px;

    color: #000000;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);

    transform: scale(0.9);

    transition: all 0.5s ease;

    will-change: transform;
}

@media only screen and (max-width: 767px) {
    .header-right_container .header-search .search-input {
        width: 320px;
    }
}

@media only screen and (max-width: 480px) {
    .header-right_container .header-search .search-input {
        top: calc(100% + 15px);

        width: 230px;

        /* padding: 10px; */
    }
}

.header-right_container .header-search .search-input .search-smart {
    width: 100%;
}

.header-right_container .header-search .search-input .header-search-form {
    position: relative;

    border-radius: 5px;

    overflow: hidden;
}

.header-right_container .header-search .search-input .header-search-form input {
    width: 100%;

    padding: 5px 45px 5px 5px;

    border-radius: 5px;
}

.header-right_container
    .header-search
    .search-input
    .header-search-form
    input:focus-visible {
    outline: none;
}

.header-right_container
    .header-search
    .search-input
    .header-search-form
    input:focus-visible {
    outline: none;
}

.header-right_container
    .header-search
    .search-input
    .header-search-form
    .enter-search {
    right: -5px;

    top: -2px;

    background: #181363;
}

.header-right_container .header-search.show .search-input {
    visibility: visible;

    opacity: 1;
}

.icon-search:before {
    content: none !important;
}

/* HEARDER  */

.header-top {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.header-top .header-logo_img {
    /* width: 30%; */

    display: flex;

    flex-wrap: nowrap;

    gap: 20px;
}

.header-right_container {
    display: flex;

    justify-content: end;

    align-items: center;

    width: 70%;

    gap: 10px;

    margin-bottom: -2%;
}

.c-menu-mobile .header-right_container {
    margin-bottom: 0;
}

.header-right_container .line {
    width: 3px;

    height: 20px;

    background: #e6e6e6;
}

.header-right_container .social-header {
    display: flex;

    gap: 15px;
}

.header-right_container .c-head-login .popup_form_user_btn {
    color: #000000;

    font-size: 14px;

    font-style: normal;

    font-weight: 400;

    line-height: normal;

    cursor: pointer;
}

.header-right_container .c-head-login a.popup_form_user_btn:hover {
    text-decoration: none;
}

.header-right_container .c-head-login .popup_form_user_btn svg {
    margin-right: 3px;
}

.header-right_container .c-head-login {
    position: relative;
}

.header-right_container .c-head-login .header-user-info-top {
    cursor: pointer;
}

.c-menu-mobile .header-right_container .header-user-info {
    position: absolute;

    top: 130%;

    left: auto;

    right: 0;

    z-index: 999;

    background: #fff;

    text-align: center;

    border: 1px solid #f7f7f7;

    display: flex;

    flex-direction: column;

    border-radius: 5px;

    width: fit-content;
}

.header-right_container .header-user-info {
    position: absolute;

    top: 130%;

    left: 0;

    z-index: 999;

    background: #fff;

    text-align: center;

    border: 1px solid #f7f7f7;

    display: flex;

    flex-direction: column;

    border-radius: 5px;
}

.header-right_container .header-user-info li {
    padding: 10px 15px;

    margin: 0;
}

.header-right_container .header-user-info li a {
    white-space: nowrap;
}

.header-right_container .header-user-info li:hover {
    background: #f2f2f2;
}

.header-right_container .header-user-info li a:hover {
    color: #000000;

    text-decoration: none;
}

.header-right_container .header-user-info li:not(:last-child) {
    border-bottom: 1px solid #f7f7f7;
}

.header-right_top {
    display: flex;

    justify-content: space-between;
}

.header-right_top_social {
    display: flex;

    justify-content: end;

    align-items: center;

    gap: 20px;
}

.header-right_top .c-menu {
    border: none;
}

.header-right_top .btn-login {
    padding: 0 10px;

    border-radius: 5px;
}

.header-right_top .onecms__menu {
    gap: 30px;
}

.header-right_bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 10px;

    border-top: 1px solid #f7f7f7;
}

.c-menu > ul .menu-home_duotone {
    gap: 10px;

    align-items: center;
}

.dropdown-toggle::after {
    content: none;
}

@media (max-width: 1119.99px) {
    .header-right_top .onecms__menu {
        gap: 15px;
    }
}

@media (max-width: 991.99px) {
    .header-top .header-logo_img {
        width: 60%;
    }

    .header-right_top .onecms__menu {
        display: none;
    }

    .header-right_container {
        width: 40%;
    }

    .header-right_top .c-search {
        display: none;
    }

    .header-right_bottom {
        display: none;
    }
}

@media (max-width: 767.99px) {
    .header-right_container .line {
        width: 1px;
    }

    .c-menu-mobile {
        padding: 7px 0;
    }
}

@media (max-width: 575.99px) {
    .header-top .header-logo_img {
        width: 75%;
    }

    .header-right_container {
        width: 30%;
    }

    .c-head-social ul li a {
        line-height: 25px;

        font-size: 13px;
    }

    #box-login {
        margin: 0px;
    }
}

/* TOP EVENTS  */

.ig {
    margin-bottom: 27px;
}

.ig .ig-container {
    position: relative;
}

.ig .ig-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 56px;
}

.ig .ig-heading .heading {
    margin-left: 0;
}

.ig .ig-tag {
    font-family: var(--font-manrope-semibold);

    font-size: 24px;
}

.ig .ig-item {
    transition: all 0.65s ease-in-out;

    overflow: hidden;

    height: 450px;
}

@media only screen and (min-width: 992px) {
    .ig .ig-item {
        width: 20%;
    }

    .ig .ig-item.swiper-slide-active {
        width: 40% !important;
    }
}

.posts-first-mobile img,
.ig .ig-item img,
.ig .ig-item.swiper-slide-active img {
    width: 100%;

    height: 100%;
}

@media only screen and (max-width: 991.98px) {
    .ig .ig-item,
    .posts-first-mobile {
        height: 350px;

        margin-bottom: 5px;
    }
}

.ig .ig-prev,
.ig .ig-next {
    width: 25px;

    height: 25px;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #fff;

    overflow: hidden;

    transition: all 0.35s ease-in-out;

    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.ig .ig-prev svg,
.ig .ig-next svg {
    width: 11px;
}

.ig .ig-prev {
    left: 0px;
}

.ig .ig-next {
    right: 0px;
}

.ig .swiper-button-next:after,
.ig .swiper-rtl .swiper-button-prev:after {
    content: none;
}

.ig .swiper-button-prev:after,
.ig .swiper-rtl .swiper-button-next:after {
    content: none;
}

.posts-first-mobile,
.ig-slider .ig-item {
    position: relative;

    overflow: hidden;
}

.posts-first-mobile .ig-post_info,
.ig-slider .ig-post_info {
    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    padding: 20px;

    background: rgba(0, 0, 0, 0.5);

    color: #fff;

    transition: all 0.35s ease-in-out;

    height: 27%;
}

@media only screen and (max-width: 575.98px) {
    .ig .ig-item {
        height: 200px;
    }

    .posts-first-mobile {
        height: 280px;
    }

    .posts-first-mobile .ig-post_info {
        height: 30%;
    }

    .ig-slider .ig-post_info {
        height: 40%;
    }

    .ig-post_info .category a,
    .posts-first-mobile .ig-post_info .category a {
        font-size: 8px;
    }

    .posts-first-mobile .ig-post_info .category,
    .ig-slider .ig-post_info .category {
        line-height: 1.4px;
    }

    .posts-first-mobile .ig-post_info .name-post a,
    .ig-slider .ig-post_info .name-post a,
    .posts-first-mobile .ig-post_info .name-post a {
        font-size: 10px;
    }

    .ig-post_info .name-post {
        margin-top: 6px;
    }

    .ig .ig-prev svg,
    .ig .ig-next svg {
        width: 8px;
    }
}

.posts-first-mobile .ig-post_info .category,
.ig-slider .ig-post_info .category {
    border-radius: 3px;

    background: var(--Color-3, #cb4a4a);

    width: fit-content;

    padding: 0px 7px;
}

.posts-first-mobile .ig-post_info .name-post a,
.ig-slider .ig-post_info .name-post a {
    color: #fff;

    font-size: 12px;

    font-style: normal;

    font-weight: 400;

    line-height: 20px;

    text-transform: uppercase;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    overflow: hidden;

    -webkit-line-clamp: 2;
}

.posts-first-mobile .ig-post_info a:hover,
.ig-slider .ig-post_info a:hover {
    text-decoration: none;
}

.ig-post_info .name-post {
    margin-top: 10px;
}

.ig-post_info .category a {
    color: #fff;

    font-size: 10px;

    font-style: normal;

    font-weight: 400;

    line-height: normal;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    overflow: hidden;

    -webkit-line-clamp: 1;
}

@media only screen and (max-width: 991.98px) {
    .ig .ig-heading {
        margin-bottom: 20px;
    }

    .ig .ig-tag {
        font-size: 14px;
    }

    .posts-first-mobile .ig-post_info,
    .ig-slider .ig-post_info {
        padding: 10px;
    }

    .posts-first-mobile .ig-post_info .name-post,
    .ig-slider .ig-post_info .name-post {
        font-size: 10px;
    }
}

/* BOX NEWS  */

.c-box__content .box-news-container {
    /* display: flex; */

    column-gap: 30px;

    overflow: hidden;
}

.c-box__content .box-news-home {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    column-gap: 40px;
}

.c-box__content .box-news-home li .b-grid {
    display: flex;

    gap: 20px;
}

.c-box__content .c-box_different .box-news-home li:first-child .b-grid {
    display: block;
}

.c-box__content .box-news_banner {
    width: 100%;

    max-width: 270px;
}

.c-box__content .box-news_banner img {
    height: 100%;

    width: 100%;

    /* max-width: unset; */
}

.c-box__content .box-news-home li {
    border-bottom: 1px solid rgba(117, 117, 117, 0.5);
}

/* .c-box__content .box-news-home li:nth-child(5),

.c-box__content .box-news-home li:last-child {

    border-bottom: none;

} */

.c-box__content .c-box_different .box-news-home li:nth-child(1) {
    /* grid-column: span 3; */

    grid-row: span 3;
}

.c-box__content .c-box_different .box-news-home li:not(:nth-child(1)) .b-grid {
    display: flex;

    gap: 20px;
}

.c-box__content .box-news-home li .b-grid .b-grid__img {
    width: 28%;
    height: fit-content;
}

.c-box__content
    .c-box_different
    .box-news-home
    li:first-child
    .b-grid
    .b-grid__img {
    width: 100%;
}

.c-box__content
    .c-box_different
    .box-news-home
    li:first-child
    .b-grid
    .b-grid__content {
    width: 100%;
}

.c-box__content .box-news-home li .b-grid .b-grid__content {
    width: 72%;
    height: fit-content;
}

.c-box__content
    .c-box_different
    .box-news-home
    li:nth-child(1)
    .b-grid__title
    a {
    font-size: 24px;

    font-weight: 700;

    margin-bottom: 0;

    margin-top: 15px;

    margin-bottom: 5px;
}

@media (max-width: 1119.99px) {
    .c-template-grid .b-grid .b-grid__brief p {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 991.99px) {
    .c-box__content .box-news-home li .b-grid .b-grid__brief {
        display: none;
    }

    .c-box__content
        .c-box_different
        .box-news-home
        li:nth-child(1)
        .b-grid
        .b-grid__brief {
        display: block;
    }

    .c-box__content .c-box_different .box-news-home li:nth-child(1) {
        margin-bottom: 15px;

        padding: 15px 0;
    }

    .c-box__content
        .c-box_different
        .box-news-home
        li:nth-child(1)
        .b-grid__title
        a {
        font-size: 20px;
    }

    .c-box__content .box-news-home li:nth-child(5) {
        border-bottom: 1px solid rgba(117, 117, 117, 0.5);
    }
}

/* MAGAZINE HOME  */

.magazineSwiper {
    margin-top: 30px;
}

.magazine-box-home .magazine-out {
    width: 70%;
}

.bookshelf-box-home .magazine-out {
    width: 100%;
}

.magazine-box-home .magazine-out .b-grid__img {
    aspect-ratio: 1/1.4;

    overflow: hidden;
}

.magazine-box-home .magazine-out .b-grid__img img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.magazine-box-home .magazine-out .b-grid__title {
    margin-top: 15px;
}

/* .c-box__title {
    height: 45px;
} */

.magazine-box-home .magazine-out .b-grid__title a {
    color: #000;

    font-size: 16px;

    font-style: normal;

    font-weight: 700;

    line-height: normal;

    text-transform: uppercase;
}

.magazine-box-home .magazine-box-number {
    width: 25%;
}

.magazine-box-number .c-corner-box {
    border-radius: 3px;

    border: 1px solid #102a83;

    background: #fff;

    padding: 20px 10px 40px 10px;

    margin-top: 45px;

    border-top: 3px solid #102a83;
}

@media (max-width: 991.99px) {
    .magazine-box-home .magazine-out {
        width: 100%;
    }

    .magazine-box-home .magazine-box-number {
        width: 100%;
    }

    .magazine-box-home .magazine-out .b-grid__title a {
        font-size: 14px;
    }

    .c-template-grid .magazineSwiper .b-grid .b-grid__title a {
        font-size: 14px;
    }
}

/* FOOTER  */

#footer .footer-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 25px;

    /* border-bottom: 1px solid #f7f7f7; */
}

#footer .footer-bottom {
    justify-content: space-between;

    gap: 50px;

    margin-top: 25px;
}

#footer .footer-top .footer-logo {
    max-width: 250px;
}

#footer .footer-top .footer-social {
    display: flex;

    gap: 10px;
}

#footer .footer-top .footer-social img {
    width: 18px;

    height: 18px;
}

#footer p {
    color: #000;

    font-size: 15px;

    font-style: normal;

    font-weight: 400;

    line-height: 22px;

    margin-bottom: 6px;

    letter-spacing: 0.5px;
}

#footer .footer-copyright {
    padding: 35px 0;

    margin-top: 25px;

    border-top: 2px solid rgba(117, 117, 117, 0.5);

    text-align: center;
}

@media (max-width: 991.99px) {
    #footer .footer-element:not(:first-child) {
        margin-top: 20px;
    }
}

@media (max-width: 575.99px) {
    #footer .footer-top .footer-logo {
        max-width: 220px;
    }

    #footer p {
        font-size: 14px;
    }

    #footer .footer-copyright p {
        font-size: 12px;
    }
}

/* PRODUCT DETAIL  */

#detailPage .l-content {
    padding-top: 0;
}

#postDetail {
    padding-top: 25px;
}

#postDetail .post-detail .breadcrumb {
    margin-bottom: 15px;
}

#postDetail .sc-longform-header-title {
    color: #000;

    font-size: 34px;

    font-style: normal;

    font-weight: 700;

    line-height: 45px; /* 140.625% */

    margin-bottom: 10px;
}

#postDetail .sc-longform-header-author {
    color: #d13434;

    font-family: Roboto;

    font-size: 14px !important;

    font-style: normal;

    font-weight: 500;

    line-height: normal;

    text-transform: uppercase;
}

#postDetail .sc-longform-header-sapo.block-sc-sapo p,
#postDetail .sc-longform-header-sapo.block-sc-sapo {
    font-weight: 700;
}

#postDetail .box-post-detail .c-detail-head__row .breadcrumb {
    margin-bottom: 20px;
}

#postDetail .post-detail {
    /* margin-left: 50px; */
}

#postDetail .detail-info {
    justify-content: space-between;
}

#postDetail .box-news_banner {
    width: 100%;

    max-width: 300px;

    overflow: hidden;

    margin-left: 35px;
}

#postDetail .box-news_banner img {
    height: auto;

    width: 100%;
}

#postDetail .detail-info .sc-longform-header-meta {
    margin-bottom: 20px;

    display: flex;

    gap: 10px;

    align-items: center;

    flex-wrap: wrap;
}

#postDetail .detail-info figure img {
    width: 100%;
}

#postDetail .detail-info span,
#postDetail .detail-info figure,
#postDetail .detail-info p {
    font-size: 17px;

    font-style: normal;

    line-height: 140%;

    letter-spacing: 0.4px;

    background-color: #fffef5 !important;
}

.c-share-scroll.has-fixed.has-ab {
    position: absolute;
}

.c-share-scroll.has-fixed {
    position: fixed;
}

#postDetail .key-word {
    margin-top: 20px;

    gap: 10px;

    align-items: center;
}

#postDetail .key-word .list-key {
    flex-wrap: wrap;

    gap: 15px;
}

#postDetail .key-word .list-key .item {
    padding: 5px 10px;

    border-radius: 3px;

    background: #d9d9d9;
}

#postDetail .key-word .list-key .item span {
    color: #4f4f4f;

    font-family: Roboto;

    font-size: 14px;

    font-style: normal;

    font-weight: 400;

    line-height: 140%; /* 19.6px */
}

#postDetail {
    justify-content: space-between;

    gap: 35px;
}

#postDetail .l-sidebar {
    width: 25%;

    overflow: hidden;

    margin-top: 50px;
}

#postDetail .post-detail {
    width: 73%;
}

.post-detail .share-social .clearfix {
    align-items: center;

    gap: 10px;
}

.post-detail .share-social .clearfix span {
    color: var(--Color-2, #757575);

    font-family: Roboto;

    font-size: 14px;

    font-style: normal;

    font-weight: 400;

    line-height: 140%; /* 19.6px */
}

.post-detail .share-social .clearfix svg {
    width: 27px;

    height: 27px;
}

.post-detail .give-stars .stars-item {
    border-radius: 16px;

    background: #f3f3f3;

    padding: 1px 10px;

    border-radius: 10px;
}

.post-detail .give-stars .stars-item span {
    background-color: #f3f3f3 !important;
}

.post-detail .give-stars .stars-item svg {
    margin-right: 5px;
}

.post-detail .give-stars .list-start {
    gap: 15px;

    align-items: center;
}

.post-detail .action-give-starts {
    margin-top: 15px;
}

.post-detail .action-give-starts button {
    border-radius: 4px;

    background: #0866ff;

    padding: 5px 15px;

    color: #fff;

    display: flex;

    align-items: center;

    gap: 5px;
}

.post-detail .action-give-starts button svg {
    margin-bottom: 5px;
}

.c-comments .box-comment_title .title {
    font-size: 16px;

    font-style: normal;

    font-weight: 700;

    line-height: 140%; /* 19.6px */

    margin-top: 45px;

    margin-bottom: 12px;
}

.c-comments .box-comment_title .title span {
    font-weight: 400;

    font-size: 14px;
}

.c-comments .c-comment-input .box-btn_comments {
    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);
}

@media (max-width: 991.99px) {
    #postDetail .post-detail {
        width: 100%;
    }

    #postDetail .sc-longform-header-author {
    
        font-size: 12px !important;
    
    }   


    .c-detail-head {
        display: none;
    }

    .post-detail .give-stars .list-start {
        margin-top: 10px;
    }

    .post-detail .share-social {
        margin-top: 30px;
    }

    .post-detail .banner {
        margin-top: 20px;

        padding-bottom: 20px;

        border-bottom: 1px solid rgba(117, 117, 117, 0.5);

        overflow: hidden;
    }

    #postDetail .detail-info span,
    #postDetail .detail-info figure,
    #postDetail .detail-info p {
        font-size: 15px;
        width: 100%;
        white-space: normal;
        word-break: break-word;
    }
}

.b-grid__row.b-grid__desc {
    display: -webkit-box;

    -webkit-box-orient: vertical;

    overflow: hidden;

    -webkit-line-clamp: 2;

    transition: color 0.5s ease;
}

.not-allow-copy {
    user-select: none; /* CSS để vô hiệu hóa chọn văn bản */
}

/* POST DETAIL */

@media (max-width: 991.99px) {
    .c-news-detail {
        padding: 0 3%;
    }
}

.c-news-detail p {
    text-align: justify;
}

.c-news-detail table {
    width: 100% !important;
}

.entry img {
    width: 100% !important;

    height: auto !important;

    object-fit: cover;
}
