.home-slide .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 1;
}

.home-slide .swiper-pagination-bullet-active {
    background-color: var(--color-1);
    border-radius: 13px;
    width: 60px;
}

/* section 2 */
.home-about {
    padding: 60px 0;
}

.home-about .btn-style {
    margin-top: 40px;
}

.home-about .box-text .title.main-title {
    margin-bottom: 20px;
}

.home-about .box-text .desc {
    max-width: 522px;
}

div.line {
    height: 16px;
    width: 1px;
    background: rgba(38, 38, 38, 0.40);
}

.award-item {
    background-color: #F5FCFC;
    padding: 24px;
    border-radius: 28px;
}

.award-item-1,
.award-item-2 {
    position: absolute;
}

.award-item-1 {
    max-width: 293px;
    top: -27px;
    right: 0;
}

.award-item-2 {
    max-width: 297px;
    bottom: 25px;
    right: 95px;
}

.award-item h3 {
    font-size: 48px;
    color: var(--color-1);
    font-weight: 700;
}

.award-item h3 span {
    font-size: 16px;
    color: var(--text-color-2);
    font-weight: 500;
}

.award-item .desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-2);
}

/* Section 3 */
.home-spnb {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 60px 0;
}

.home-spnb::after {
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(180deg, rgba(68, 160, 65, 0.20) 0%, rgba(6, 42, 5, 0.60) 100%);
    z-index: 1;
}

.box-btn {
    margin-top: 40px;
}

.featured-product-tabs-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

.fp-tabs-content {
    margin-top: 50px;
}

.fp-tabs {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end
}

.fp-tab-button {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
    border-radius: 58px;
    border: 1px solid rgba(0, 89, 169, 0.08);
    background: #FFF;
}

.fp-tab-button.active,
.fp-tab-button:hover {
    background: linear-gradient(180deg, #FFA151 0%, #F6821F 100%);
    color: white;
}

.fp-tab-pane {
    display: none;
}

.fp-tab-pane.active {
    display: block;
}

.fp-product-slider {
    position: relative;
}

.product-item {
    padding: 15px;
    border-radius: 28px;
    background: #FFF;
    box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.12);
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.product-item .product-title {
    margin: 10px 0 8px;
}

.product-item .product-title,
.product-item .product-excerpt {
    font-size: 18px;
}

.price {
    color: #e91e63;
    font-weight: bold;
}

.product-item .product-excerpt ul {
    padding-left: 0;
    /* margin-left: 0; */
}

.fp-product-slider .swiper-button-next,
.fp-product-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: #fff;
    font-weight: 700;
    background-size: 20px;
    border: solid 1px var(--color-1);
}

.fp-product-slider .swiper-button-next {
    background-image: url(./images/arrow-right.svg);
}

.fp-product-slider .swiper-button-prev {
    background-image: url(./images/arrow-left.svg);
}

@media screen and (min-width:1200px) {
    .fp-product-slider .swiper-button-next {
        right: -50px;
    }

    .fp-product-slider .swiper-button-prev {
        left: -50px;
    }

}

.fp-product-slider .swiper-button-next::after,
.fp-product-slider .swiper-button-prev::after {
    font-size: 18px;
    color: var(--color-1);
}

/* section 4 */
.home-solution {
    padding: 60px 0;
}

/* === HERO SLIDER === */
.hero {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    min-height: 600px;
    overflow: hidden;
}

.hero__fullsize {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* .hero__swiper {
    width: 100%;
    height: 100%;
} */

/* Slide */
.content--slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 5% 8%;
    padding: 5% 8% 0 8%;
    text-align: left;
    border-radius: 40px;
    overflow: hidden;
}

@media screen and (max-width:768px) {
    .content--slide {
        border-radius: 12px;
    }

}

.content__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.content__text {
    position: relative;
    z-index: 2;
    max-width: 454px;
    border-radius: 40px 40px 0 0;
    background: linear-gradient(180deg, #FFF 0%, rgba(220, 220, 220, 0.90) 100%);
    padding: 35px;
}

@media screen and (max-width:768px) {
    .content__text {
        border-radius: 12px;
    }
}

.content__title {
    /* font-size: clamp(2.5rem, 8vw, 5rem); */
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-color-2);
}

.content_sub__title {
    padding: 10px;
    border-radius: 8px;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
    background-color: var(--color-1);
    width: fit-content;
    text-transform: uppercase;
}

.content__desc p {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.content__box_duration {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.content__box_duration .box_duration,
.content__box_duration .box_Payback {
    width: 177px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #FFF;
    padding: 13px 20px;
}


/* Button */
.content__text .btn-style {
    margin-top: 65px;
}

@media screen and (max-width:768px) {
    .content__text .btn-style {
        margin-top: 20px;
    }
}

.btn .icon svg {
    width: 18px;
    height: 18px;
}

/* Pagination */
.slide-pagination {
    position: absolute;
    bottom: 40px;
    right: 10%;
    transform: translateX(0%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
    color: #fff;
    max-width: 520px;
    width: 100%;
}

.arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.arrow svg {
    width: 24px;
    height: 24px;
}

.slide-pagination .swiper-pagination-progressbar {
    position: relative;
    /* width: 10)%; */
    /* height: 3px; */
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
}

.swiper-pagination-progressbar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--color-1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.slide-pagination .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--color-1);
    border-radius: 2px;
}

.slide-numbers {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .content--slide {
        padding: 10% 5%;
        padding-bottom: 60px;
    }

    .content__text {
        max-width: 100%;
    }

    .hero__swiper {
        opacity: 0;
    }

    .content__box_duration .box_duration,
    .content__box_duration .box_Payback {
        width: 47%;
    }

    .content__box_duration h2 {
        font-size: 20px;
    }

    .slide-pagination {
        justify-content: center;
        right: 0;
        bottom: 0;
    }

    .slide-pagination .swiper-progress,
    .slide-pagination .slide-numbers {
        display: none;
    }
}

@media (max-width: 375px) {
    .content__text {
        padding: 24px;
    }

    .content__box_duration h2 {
        font-size: 17px;
    }
}

/* === THUMBNAIL GALLERY === */
.thumb-gallery {
    position: absolute;
    width: 74%;
    aspect-ratio: 3.5 / 1;
    right: 0;
    top: 13.75rem;
    right: -9rem;
    z-index: 2;
    user-select: none;
    overflow: hidden;
}

.thumb-gallery .thumb-item {
    border-radius: 16px;
    /* width: 162px;
    height: 216px; */
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.thumb-gallery .thumb-item::after {
    content: "";
    height: 100%;
    width: 100%;
    left: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 46, 48, 0.00) 43.38%, #1E1E1E 100%);
    position: absolute;
    z-index: 1;
}

.thumb-gallery .thumb-item img {
    object-fit: cover;
    height: 100%;
}

/* Section 5 */
.home-project {
    padding: 60px 0;
}

@media screen and (max-width:990px) {
    .home-project {
        padding-bottom: 0;
    }
}

.home-project .box-head {
    padding: 60px 0 100px 0;
}

.project-tabs-content {
    margin-top: -120px;
}

@media screen and (min-width:990px) {
    .project-tabs-content {
        padding: 23px 0;
    }
}

.project-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: flex-end;
}

.project-tab-button {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #f8f9fa;
    color: #333;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-tab-button.active,
.project-tab-button:hover {
    background: linear-gradient(180deg, #FFA151 0%, #F6821F 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
}

.project-tab-pane {
    display: none;
}

.project-tab-pane.active {
    display: block;
}

.project-slider {
    position: relative;
    padding: 20px 0;
}

.project-slider .swiper-button-next,
.project-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    /* background: rgba(0, 0, 0, 0.5); */
    border-radius: 50%;
    border: solid 1px #fff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    margin-top: -20px;
    background-image: none;
}

.project-slider .swiper-button-next {
    right: 2%
}

.project-slider .swiper-button-prev::after,
.project-slider .swiper-button-next::after {

    font-size: 20px;
    color: #fff;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.project-slider .swiper-button-prev::after {
    content: '\f053';
}

.project-slider .swiper-button-next::after {
    content: '\f054';
}

.project-slider .swiper-button-prev {
    left: 2%;
}

.project-slider .swiper-button-next:after,
.project-slider .swiper-button-prev:after {
    font-size: 16px;
}

.project-slider .swiper-pagination {
    bottom: 0;
}

.project-slider .swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
}

.project-slider .swiper-pagination-bullet-active {
    background: var(--color-1, #0056b3);
}

.project-slider .swiper-slide {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    /* transform: scale(1); */
    opacity: 0;
}
.project-slider .swiper-slide.swiper-slide-prev,.project-slider .swiper-slide.swiper-slide-next {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    /* transform: scale(1); */
    opacity: 0.6;
}
.project-slider .swiper-slide.swiper-slide-active{
    opacity: 1;

}
@media screen and (min-width:1200px) {
    .project-slider .swiper-slide {
        opacity: 0;
    }
}

.project-item {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 480px;
}

.project-slider .swiper-slide-active .project-item {
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
    border-radius: 40px;
    border: 6px solid rgba(255, 255, 255, 0.80);
    position: relative;
}

.project-slider .swiper-slide-active .project-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%);
}

.project-content {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 2;
    /* padding: 0 7%; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
        height: 100%;
}

@media screen and (max-width:1440px) {
    .project-content {
        bottom: 0;
    }
}

.project-content .wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.box-ttda {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    align-items: center
}

@media screen and (min-width:990px) {
    /* .box-ttda {
        transform: scale(calc(1 / 1.5));
    } */
}

@media screen and (max-width:990px) {
    .box-ttda {
        padding: 0 20px;
        /* flex-wrap: wrap; */
    }

    .box-ttda .icon-box {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .box-ttda .box-text span {
        font-size: 14px;
    }

    .box-ttda .box-text h2 {
        font-size: 18px;
    }
}

.box-ttda .line {
    background-color: #fff;
    height: 48px;
}

@media screen and (max-width:768px) {
    .project-slider .swiper-slide-active .project-thumb img {
        height: 400px;
        object-fit: cover;
    }

    .project-slider .swiper-button-next {
        right: 10px;
    }

    .project-slider .swiper-button-prev {
        left: 10px;
    }

    .box-ttda {
        /* display: none; */
        /* transform: scale(1); */
        /* flex-direction: column; */
    }
}

/* Section 6 */
.home-why {
    padding-bottom: 60px;
    background: linear-gradient(180deg, #FFF -13.67%, rgba(255, 255, 255, 0.40) 100%), url(./images/hom_s6_bg.png) lightgray 50% / cover no-repeat;
}

.list-why {
    margin-top: 60px !important;
}

.why-item {
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFF;
    box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.16);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-item .wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item .box-icon img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.why-item .title {
    margin-bottom: 12px;
}

/* section 7 */
.home-reviews {
    padding: 60px 0;
    background-image: url(./images/Group1360.png);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: contain;

}

.home-reviews .box-image {
    border: 0.965px solid #31D02C;
    box-shadow: 0 8px 12px -2px rgba(68, 160, 65, 0.40);
    border-radius: 36px;
    overflow: hidden;
}

.home-nx-slide {

    position: relative;
    width: 100%;
    max-width: 700px;
    right: 0;
}

@media screen and (min-width:990px) {
    .home-nx-slide {
        position: absolute;
        height: 600px;
    }
}

/* FIX SLIDER ĐÁNH GIÁ KHÁCH HÀNG DỌC */
.home-nx-slide .nx-slider {
    max-height: 100%;
    overflow: hidden;
    border-radius: 12px;

}

.home-nx-slide .nx-slider .swiper-slide {

    box-sizing: border-box;
}

.home-nx-slide .nx-slider .swiper-slide {
    min-height: 0 !important;
    /* Dòng này cũng quan trọng */
    display: flex !important;
    /* (tùy chọn) để căn chỉnh nội dung đẹp hơn */
}

/* Nút prev/next nằm ngoài đẹp hơn */
.nx-controls {
    /* transform: translateY(-50%); */
    z-index: 10;
    gap: 12px;
}

.nx-controls .swiper-button-prev,
.nx-controls .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    margin: 0 !important;
    position: relative;
}

.nx-controls .swiper-button-prev::before,
.nx-controls .swiper-button-next::before {

    color: var(--color-1);
}

@media screen and (min-width:990px) {

    .nx-controls .swiper-button-prev::before,
    .nx-controls .swiper-button-next::before {
        rotate: 90deg;
    }
}

.item-nx {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    gap: 10px;
}

.item-nx img {
    max-width: 120px;
    object-fit: cover;
    border-radius: 100%;
    aspect-ratio: 1/1;
}

@media only screen and (max-width: 767px) {
    .item-nx img {
        max-width: 70px;
    }
}

.item-nx-content {
    flex: 1;
    /* padding-left: 20px; */
}

.item-nx-content h4 {
    font-size: 20px;
    margin-bottom: 0;
}

.item-nx-content label {
    color: #727272;
    font-weight: 400;
    display: none;
}

.item-nx-content p {
    color: rgba(0, 0, 0, 0.80);
    margin-bottom: 0;
}

@media screen and (min-width:990px) {
    .item-nx-content p {

        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}


.swiper-slide-next .item-nx h4 {
    color: #B82930;
}

.swiper-slide-next .item-nx-content label {
    display: block;
}

.nx-controls {}

.nx-controls .swiper-button {
    position: unset;
    background-color: transparent;
    border: 0;
    color: #B82930;
    margin: 0;
}

.nx-controls .swiper-pagination {
    /* position: unset; */
    display: flex;
    flex-direction: row;
    margin: 10px 0;
}

@media screen and (min-width:990px) {
    .nx-controls {
        left: 100%;
        top: 50%;
        position: absolute;
        transform: translateY(-50%);
        flex-direction: column;
    }

    .nx-controls .swiper-pagination {
        position: unset;
        display: flex;
        flex-direction: column;
        margin: 10px 0;
    }
}

@media screen and (max-width:990px) {
    .nx-controls {
        justify-content: center;
    }

    .nx-controls .swiper-pagination {
        gap: 10px;
        position: relative;
    }
}

.nx-controls .swiper-button.swiper-button-prev {
    transform: rotate(90deg);
}

.nx-controls .swiper-button.swiper-button-next {
    transform: rotate(90deg);
}

.nx-controls .swiper-pagination-bullet {
    margin: 5px 0;
    background: var(--color-1);
}

.nx-controls .swiper-pagination-bullet-active {
    background: var(--color-1);
}

div.button-prev-style2::before,
div.button-next-style2::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
}

div.button-prev-style2::before {
    content: "\f053";
    left: -10px;
}

div.button-next-style2::before {
    content: "\f054";
    left: -10px;
}

@media screen and (min-width:768px) {

    .home-nx-slide .swiper-slide:not(.swiper-slide-next) {
        transform: scale(.75);
        right: -12%;
    }


    .swiper-slide-next .item-nx {
        border-radius: 32px;
        background: linear-gradient(180deg, #F6F6F6 0%, #EBFFEC 116.02%);
        box-shadow: 100px 150px 50px 0px rgba(0, 0, 0, 0.00), 64px 96px 46px 0px rgba(0, 0, 0, 0.01), 36px 54px 39px 0px rgba(0, 0, 0, 0.05), 16px 24px 29px 0px rgba(0, 0, 0, 0.09);
        margin-top: -20px;
        transition: 0.3s all;
        gap: 10px;
    }

}

@media screen and (max-width:768px) {
    .swiper-slide-active .item-nx {
        border-radius: 32px;
        background: linear-gradient(180deg, #F6F6F6 0%, #EBFFEC 116.02%);
        box-shadow: 100px 150px 50px 0px rgba(0, 0, 0, 0.00), 64px 96px 46px 0px rgba(0, 0, 0, 0.01), 36px 54px 39px 0px rgba(0, 0, 0, 0.05), 16px 24px 29px 0px rgba(0, 0, 0, 0.09);
        /* margin-top: -20px; */
        transition: 0.3s all;
        gap: 10px;
    }
}

/* Section 9 */
.home-posts {
    background-color: rgba(245, 252, 252, 1);
    padding: 60px 0;
}

.post-item-style-1 {
    border-radius: 28px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.16);
    overflow: hidden;
    position: relative;
    object-fit: cover;
    aspect-ratio: 1 / 1.4;
    object-position: center;
    transition: 0.3s all;
    background-position: center;
}

.post-item-style-1::after {
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(0, 0, 0, 0.40) 100%);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.16);
    position: absolute;
    transition: 0.8s all;
}

.post-item-style-1 a {
    position: relative;
}

.post-item-style-1 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border-radius: 28px;
}

.post-item-style-1:hover::after {
    background: linear-gradient(179deg, rgba(0, 0, 0, 0.00) 46%, #44a041 100%);
}

.post-item-style-1 .post-thumb img {
    object-fit: cover;
    aspect-ratio: 1 / 1.4;
    object-position: center;
    border-radius: 20px;
    transition: 0.3s all;
}

.post-item-style-1:hover .post-thumb img {
    transform: scale(1.12);
}

.post-item-style-1 .post-content {
    padding: 0 40px 40px 40px;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 100%;
    bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media screen and (max-width:768px) {

    /* seciton 6 */
    .why-item {
        margin-bottom: 20px;
    }

    html {
        -webkit-text-size-adjust: 100%;
    }

    .post-item-style-1 {
        box-shadow: none;
    }

    .post-item-style-1 .post-content {
        padding: 0 20px 20px 20px;
        /* position: relative; */
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width:600px) {

    .award-item-1,
    .award-item-2 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .award-item-1 {
        margin-top: 20px;
    }

    div.line {
        display: none;
    }
}