@media (max-width: 1290px){
    .main-header.header-style-one .main-header_button{
        display: unset;
    }
    .main-header .main-menu {
        display: unset;
    }
    .main-header .mobile-nav-toggler{
        display: none;
    }
}
@media only screen and (max-width: 1140px) {
    .main-header .main-menu .navigation > li > a {
        font-size: 16px;
    }
}
@media(max-width: 1018px){
    .main-header .outer-box {
        gap: 6px;
    }
    .btn-style-three {
        padding: 8px 8px 8px 8px;
    }
}
@media(max-width: 1100px){
    .main-header .outer-box{
        gap: unset;
    }
    .main-header.header-style-one .main-header_button{
        display: contents;
    }
    .main-header_button a{
        text-align: right;
        left: 2px;
    }
    .btn-style-three{
        width: 186px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: unset;
        margin-right: 10px;
    }
    .main-header_button {
        height: unset;
    }
    .btn-style-three .btn-wrap .text-two{
        left: 12px;
    }
    .main-header .main-menu .navigation > li > a{
        padding: 22px 0px;
        font-size: 13px;
    }
}
@media(max-width: 990px){
    .btn-style-three i {
        margin-left: 2px;
    }
    .btn-style-three i {
        width: 40px;
        height: 40px;
        line-height: 41px;
    }
    .ms-4{
        display: unset;
    }
}
@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 auto;
        width: 42.66666667%;
    }
    .col-lg-7 {
        flex: 0 0 auto;
        width: 57.33333333%;
    }
}
@media(max-width:986px){
    .btn-style-three .btn-wrap .text-two{
        left: 25px;
    }
}
@media(max-width:985px){
    .btn-style-three {
        width: 160px;
        margin-right: 10px;
    }
}
@media(max-width: 979px){
    .main-header .main-menu .navigation > li > a {
        font-size: 13px;
    }
    .main-header.header-style-one .header-lower .inner-container {
        padding: 0px 5px;
    }
    .btn-style-three .btn-wrap .text-two{
        text-align: right;
    }
}
@media(max-width: 975px){
    .btn-lang{
        margin-right: 20px;
    }
}
@media(max-width: 950px){
    .main-header .main-menu .navigation > li > a {
        font-size: 12px;
    }
}
@media(max-width: 911px){
    .btn-style-three .btn-wrap .text-two {
        left: 8px;
    }
}

@media(max-width: 902px){
    .main-header .main-menu .navigation > li > a{
        font-size: 11px;
    }
}
@media (max-width: 900px) {
    #cookieConsent {
        flex-direction: column; /* Xếp dọc trên màn hình nhỏ */
        text-align: center;
        padding: 20px;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center; /* Căn giữa nút bấm */
        margin-top: 10px;
    }
    .btn-cookies {
        width: 100%; /* Nút bấm full chiều rộng trên mobile cho dễ bấm */
        max-width: 150px;
    }
    .counter-one {
        padding: unset;
    }
    .counter-block_one-count {
        font-size: 30px;
    }
    .main-header .mobile-nav-toggler {
        display: block;
        margin-left: 10px;
        margin-right: 13px;
    }
    .main-header .main-menu {
        display: none;
    }
    .main-header_button a{
        /*margin-right: 20px;*/
        left: unset;
    }
    #lang_top{
        margin-right: 10px;
    }
}
@media only screen and (max-width: 820px) {
    .project-block_one-overlay_inner,
    .project-block_one-overlay_inners {
        border-radius:unset;
    }
    .project-block_one-overlay_inner,
    .project-block_one-overlay_inners {
        max-width: 100%;
        min-height: auto;
        padding: 30px 25px 30px;
        background-color: var(--white-color) !important;
    }
    .project-block_one-heading a {
        color: var(--black-color);
    }
    .project-block_one-text{
        color: var(--black-color);
    }
    .project-block_one-title{
        color: var(--main-color);
    }
}
@media only screen and (max-width: 1030px) {
    .link-pc-only {
        pointer-events: none;  /* Quan trọng nhất: Chặn mọi thao tác click/touch */
        cursor: default;       /* Đổi con trỏ chuột về mặc định (không còn hình bàn tay) */
    }
}
@media only screen and (max-width: 599px) {
    .counter-block_one-text {
        font-size: 17px;
        line-height: 28px;
    }
}
@media (max-width: 480px) {
    .counter-block_one {
        margin-bottom: 14px !important; /* Giảm khoảng cách dưới cho gọn */
    }
    .counter-one .counter-block_one:nth-child(2n) {
        transform: translateY(0px) !important; /* Bỏ hiệu ứng so le nếu nó làm lệch hàng */
    }
    .slider-one .slider-one_button .slider-one_video:before {
        background-color: unset;
    }
    /*.main-header.header-style-one .main-header_button{
        display: none;
    }*/
    #lang_top{
        margin-right: 10px;
    }
    .main-header .mobile-nav-toggler{
        display: block;
    }
    .main-header .main-menu {
        display: none;
    }
    /* 1. Xử lý khung bao ngoài (để nó chiếm hết khoảng trống bên phải logo) */
    .nav-outer {
        flex-grow: 1; /* Tự động giãn ra hết mức có thể */
        padding-left: 5px; /* Cách logo ra một chút */
    }
    .nav-outer .outer-box {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end; /* Mặc định dồn phải */
    }
    /* 2. Cấu hình SỐ ĐIỆN THOẠI */
    .main-header_button {
        position: static !important; /* QUAN TRỌNG: Bỏ chế độ bay lơ lửng */
        transform: none !important;
        order: 1; /* Xếp đầu tiên trong nhóm bên phải */
        /* Đây là dòng thần thánh giúp nó nằm giữa khoảng trống: */
        margin-left: auto; 
        margin-right: auto; 
    }
    /* Style lại nút cho gọn */
    .main-header_button .theme-btn {
        width: auto !important;
        padding: 0 10px !important;
        height: 30px !important;      /* Cho nhỏ lại xíu nữa cho đỡ chật */
        line-height: 30px !important;
        border-radius: 15px !important;
        font-size: 12px !important;   /* Chữ nhỏ lại xíu để vừa khung */
        white-space: nowrap !important;
        display: flex;
        align-items: center;
        justify-content: center;
        /*margin-right: 30px;*/
    }
    .main-header_button .theme-btn i {
        margin: 0 !important;         /* Bỏ lề vì không còn chữ */
        width: auto !important;
        height: auto !important;
        line-height: 1 !important;
        font-size: 16px !important;   /* Chỉnh size icon vừa mắt */
        background: none !important;  /* Bỏ nền xám của icon nếu muốn sạch sẽ */
    }
    /* Ẩn icon, hiện chữ (theo yêu cầu của ní) */
    .main-header_button .theme-btn .btn-wrap { display: block !important; }
    /* 3. Cấu hình LÁ CỜ và MENU */
    #lang_top {
        order: 1;
        margin-right: 5px !important; /* Sát lại gần menu */
        margin-left: 5px;
    }
    .mobile-nav-toggler {
        order: 2; /* Menu nằm cuối cùng */
        margin-left: 0;
        margin-right: 0;
    }
    .btn-style-three .btn-wrap .text-two {
        left: unset;
    }
}
@media(max-width: 360px){
    .main-header_button .theme-btn {
        /*margin-right: 7px;*/
    }
    .btn-style-three .btn-wrap .text-two {
        left: unset;
    }
}