/* Slider */
.slider-items__background {
    display: block;
    width: 100%;
    height: 536px;
    background: -webkit-gradient(linear, left top, right top, color-stop(0, var(--devitech-light-color)), to(var(--devitech-color)));
    background: linear-gradient(90deg, var(--devitech-light-color) 0, var(--devitech-color) 100%);
    border-radius: 1rem;
    background-size: 200% auto;
    -webkit-animation: animationSlider 5s ease infinite;
    animation: animationSlider 5s ease infinite;
}

@keyframes animationSlider {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.slider-items__text {
    font-weight: 600;
    font-size: 10.3125rem;
    color: #fff;
    position: absolute;
    font-weight: 600;
    width: 100%;
    left: 0;
    top: .9375rem;
    text-align: center;
    animation: slideUp 1s ease-out forwards;
}


/* Layer */
.section.container-center-layout.slider-items .section-content {
    padding-bottom: 6.25rem;
    position: relative;
}

.slider-items__layer {
    position: absolute !important;
}

/* Layer 1 */
.slider-items__layer--1 {
    width: 16% !important;
    left: 18%;
    bottom: 0;
    z-index: 3;
    animation: slideInFromLeft 1s ease-out forwards;
}

/* Layer 2 */
.slider-items__layer--2 {
    width: 48% !important;
    left: 50%;
    bottom: 2%;
    margin-left: -24%;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Layer 3 */
.slider-items__layer--3 {
    width: 34% !important;
    left: 60%;
    bottom: 0;
    z-index: 3;
    animation: slideInFromRight 1s ease-out forwards;
}

/* ABOUT US */
.about-us {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 3.438rem .625rem 0 !important;
}

.about-us__title {
    font-weight: 700;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, .5);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out forwards;

}

.about-us__title>p {
    margin-bottom: 1.5rem !important;
}

.about-us__name {
    font-weight: 400;
    font-size: 2.25rem;
    color: #000;
    text-align: center;
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease-out forwards;

}

.about-us__name>p {
    margin-bottom: 2.5rem;
}

.about-us__desc {
    font-weight: 400;
    font-size: .875rem;
    color: #000;
    text-align: center;
    margin-bottom: 2.75rem;
    animation: slideUp 1s ease-out forwards;

}

.about-us-node {
    position: absolute !important;
    left: calc((100% - 835px) / 4);
    top: 25%;
}

.about-us-node2 {
    position: absolute !important;
    right: calc((100% - 835px) / 4);
    bottom: 0;
    z-index: 999;
}

.about-us__button {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUp 1.5s ease-out forwards;

}

.about-us__button .btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(270deg, var(--devitech-light-color) 0, var(--devitech-color) 100%);
    transition: all .5s;
}

/* WEBSITE Section */
.website__title {
    font-weight: 700;
    font-size: 1.5rem;
    opacity: .5;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: .5rem;
    animation: slideUp 2s ease-out forwards;

}

.website__name {
    font-size: 2.25rem;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 3.4375rem;
    animation: slideUp 2s ease-out forwards;

}

.website__desc {
    font-size: 1rem;
    color: #fff;
    text-align: justify;
    margin-bottom: 1.5625rem;
    animation: slideUp 2s ease-out forwards;

}

/* CHỖ NÀY ĐANG BỊ LỖI ANIMATION */
.website__btn {
    animation: slideUp 2s ease-out forwards;
}

/* Website Left */
.website__left {
    width: 65%;
    position: relative;
    transform: translateX(-25%);
    padding: 15% 0;
    z-index: 2;
}

@keyframes slideInFromLeftForRotate {
    from {
        transform: rotate(8deg) translateX(-100%);
        opacity: 0;
    }

    to {
        transform: rotate(8deg) translateX(0);
        opacity: 1;
    }
}

.element-website__left::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, var(--devitech-light-color) 0, var(--devitech-color) 100%);
    border-radius: 140px;
    transform: rotate(8deg) translateX(-80px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    z-index: -1;
}

.element-website__left.animate-in::before {
    transform: rotate(8deg) translateX(0);
    opacity: 1;
}


.element-website__background::before {
    display: none;
}

.website__left__content {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    padding-left: 30%;
    padding-right: 25%;
}

.website__left__content .btn--white:hover {
    box-shadow: 0 4px 24px 0 rgb(255 255 255 / 80%);
    transition: all .3s;

}

/* Website Service Right */
@keyframes slideInFromRightForWebsite {
    from {
        -webkit-transform: translateX(100%) translateY(-50%);
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }

    to {
        -webkit-transform: translateX(0) translateY(-50%);
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

.website__right {
    width: 63%;
    position: absolute;
    right: 0;
    top: 55%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 3;
    animation: slideInFromRightForWebsite 1s ease-out forwards;

}

.website__swiper {
    padding-bottom: 2rem !important;
    padding-right: 15% !important;
}

/* .swiper-wrapper {
    transform: translate3d(0px, 0, 0) !important;
} */

.swiper-pointer-events {
    touch-action: pan-y;
}

.website__swiper .swiper-slide {
    width: calc(50%);
}

.website__swiper .swiper-slide .service-items:first-child {
    margin-bottom: 1rem;
}

/* Service items */
.service-items {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.service-items img {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Box info */
.service-items__info {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 1rem 2rem;
    opacity: 0;
    -webkit-transition: all .5s;
    transition: all .5s;
}

.service-items__name {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.service-items__desc {
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 1rem 0;
}

.service-items:hover .service-items__info {
    opacity: 1;
}

/* Pagination */
#home-website__swiper {
    position: relative !important;
}

#home-website__swiper .swiper-pagination {
    text-align: right;
    z-index: 20;
}

#home-website__swiper .swiper-pagination-progressbar {
    background: #c3c4c7;
    height: 3px;
    top: auto;
    left: auto;
    bottom: 0;
    right: 3rem;
    width: 20%;
}

#home-website__swiper .swiper-pagination-progressbar-fill {
    background: #666;
}

/* SECTION FEEDBACK */
/* .section.section-feedback {
    padding: 6.5rem 0 6.5rem 1.75rem !important;
}

.section.section-feedback .section-content {
    padding-bottom: 4rem;
}

.feedback__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    font-weight: 500;
}

#feedbackContentSwiper::before {
    position: absolute;
    left: 0;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgb(239, 233, 227);
    border-radius: 1rem 1rem 0 1rem;

    inset: 0;
    z-index: -1;
} */

/* Feedback Comment/Content Swiper */
/* #feedbackContentSwiper .feedback-item {
    padding: 3rem 8rem 0 3rem;
    min-height: 475px;
}

img.feedback-comment__icon {
    margin-bottom: 1rem;
}

.feedback-item__comment {
    font-size: 1rem;
    font-weight: 500;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
} */

/* Author */
/* .feedback-item__author {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

img.feedback-item__avatar {
    border-radius: 999px;
    border: 8px solid #fff;
    width: 40%;
    box-shadow: 0 4px 24px 0 rgb(0 0 0 / 80%);
} */

/* Image Thumbnail */
/* .feedback__left .col-inner,
#feedbackThumbnailSwiper {
    height: 100%;
}

.feedback-thumbnail-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.feedback-thumbnail__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
} */

/* feedback main */
/* #feedbackMainSwiper {
    position: absolute;
    width: 65%;
    top: 15%;
    left: 17.5%;
    border-radius: .5rem .5rem 0 0;
}

.feedback-main-wrapper {
    position: absolute !important;
    z-index: 10;
}

.feedback-main__background {
    position: absolute;
    width: 65%;
    top: 10%;
    left: 27.5%;
    z-index: 20;
} */

/* Custom feedback slide */
/* .external-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    width: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    padding-right: 1rem;
}

.external-controls>button {
    padding: 0;
    margin: 0;
    width: 10%;
}

.feedback-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

#feedback-fraction {
    font-size: 1rem;
    font-weight: bold;
    color: #8b8b8b;
    width: 3rem;
    text-align: center;
}

.feedback-progress {
    position: relative;
    width: 100%;
    height: 2px;
    background: #8b8b8b;
    margin-left: 1rem;
    border-radius: 2px;
    overflow: hidden;
}

.feedback-progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000000;
    transition: width .3s ease;
} */

/* Section News */
.section-news .news-title,
.section-news .news-content {
    font-weight: 700;
    line-height: 1.5;
}

.section-news .news-title {
    color: #7f7f7f;
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.section-news .news-content {
    color: #000000;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-news .news-sub-content {
    color: #000000;
    font-size: .875rem;
    margin-bottom: 2.25rem;
}

#homeNewsBlogs {
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

#homeNewsBlogs .post-card {
    padding: 1rem;
    border-radius: 1rem;
    background-color: #efe9e3;
}

#homeNewsBlogs .post-card__thumb img {
    border-radius: .375rem;
    aspect-ratio: 370/222;
}

#homeNewsBlogs .post-card__body {
    padding: 0 .875rem 1rem;
}

#homeNewsBlogs .post-card__date {
    padding: 1rem 0;
    color: #000000;
    opacity: .5;
    font-size: .75rem;
    font-weight: 700;

}

#homeNewsBlogs .post-card__title {
    color: #000000;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    min-height: 3.5rem;
    overflow: hidden;
}

#homeNewsBlogs .post-card__excerpt p {
    color: #000000;
    font-size: .875rem;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#homeNewsBlogs .swiper-pagination-bullet-active {
    background-color: var(--fs-color-primary);
}

/* Media */
/* ───────── Nest Hub Max ───────── */
@media screen and (max-width: 1280px) {
    /*  */
}

/* iPad Pro 12.9" – 1024px + Nest Hub */
@media screen and (max-width: 1024px) {
    /* styles cho iPad Pro 12.9" portrait */
}

/* iPad Pro 11" – 834px */
@media screen and (max-width: 834px) {

    /* styles cho iPad Pro 11" portrait */
    .about-us {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

/* iPad Air 10.9" – 820px */
@media screen and (max-width: 821px) {

    /* Xin Chào! */
    .fs-8rem {
        font-size: 8rem;
    }

    /* Background Slider */
    .slider-items__background {
        height: 400px;
    }

    /* ABOUT US */
    .about-us__name {
        font-size: 1.75rem;
    }

    .about-us__name,
    .about-us__name>p,
    .about-us__desc {
        margin-bottom: 1.75rem;
    }

    /* Website - Project */
    .website__name {
        margin-bottom: 2rem;
    }

    /* Feedback */
    /* .section.section-feedback {
        padding: 5rem 0 !important;
    }

    img.feedback-item__avatar {
        width: 30%;
    }

    #feedbackContentSwiper .feedback-item {
        padding: 2rem 2rem 0;
    }

    .feedback-thumbnail__image {
        position: relative;
    }

    .section.section-feedback .section-content {
        padding-bottom: 15rem;
    }

    .feedback-main__background {
        position: absolute;
        width: 65%;
        top: auto;
        left: auto;
        bottom: 2%;
        right: 50%;
        transform: translateX(50%);
        z-index: 20;
    }

    .external-controls {
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    #feedback-fraction {
        width: 3rem;

    }

    .external-controls>button {
        width: 2rem;
    } */

}

/* Google Nest Hub Max – 800px */
@media screen and (max-width: 801px) {
    /* styles cho Nest Hub Max portrait */
}

/* iPad Mini / Air (9.7"–10.2") – 768px */
@media screen and (max-width: 769px) {

    /* styles cho iPad 9.7"/10.2" portrait */

}

/* Google Nest Hub – 600px */
@media screen and (max-width: 601px) {
    /* styles cho Nest Hub portrait */
}

/* iPhone 14 Pro Max – 430px */
@media screen and (max-width: 431px) {
    /* styles cho iPhone 14 Pro Max */

    /* Xin Chào! */
    .fs-4rem {
        font-size: 4rem;
    }

    /* Background Slider */
    .section.container-center-layout.slider-items .section-content {
        padding-bottom: 4rem;
    }

    .slider-items__background {
        height: 200px;
    }

    /* Website - Service swiper */
    /* Background + Text */
    .section-website {
        margin-top: 60px;
    }

    /* Ẩn background cũ & Hiện background mới */
    .element-website__left::before {
        display: none;
    }

    .element-website__background::before {
        display: block;
        position: absolute;
        left: 0px;
        top: 0px;
        content: "";
        width: 100%;
        height: calc(100% - 90px);
        z-index: -1;
        border-radius: 0px;
        background: linear-gradient(270deg, var(--devitech-light-color) 0, var(--devitech-color) 100%);
    }

    .website__left {
        width: 100%;
        transform: initial;
        padding: 45px 0px;
    }

    .website__name {
        margin-bottom: 1.5rem;
    }

    .website__left__content {
        padding-left: 12%;
        padding-right: 12%;
    }

    /* Swiper Slide */
    .website__right {
        width: 100%;
        position: relative;
        right: initial;
        top: initial;
        transform: none !important;
        padding: 0 1.875rem;
        max-width: 600px;
        margin: 0px auto;
    }

    .website__right,
    .website__swiper .swiper-slide {
        width: 100%;
    }

    .website__swiper {
        padding-right: 0 !important;
    }

    /* News */
    .section-news .news-content {
        font-size: 1.75rem;
    }

    /* Feedback */
    /* .section.section-feedback .section-content {
        padding-bottom: 8rem;
    } */
}

/* iPhone XR – 414px */
@media screen and (max-width: 415px) {
    /* styles cho iPhone XR */
}

/* iPhone 12/13/14 Pro – 390px */
@media screen and (max-width: 391px) {

    /* styles cho iPhone 12/13/14 Pro */
    .website__name {
        font-size: 1.875rem;
    }

    .website__desc {
        font-size: .875rem;
    }
}

/* iPhone SE (2nd gen) – 375px */
@media screen and (max-width: 376px) {
    /* styles cho iPhone SE */
}