﻿.home-new {
    background: #EFF;
}

    .home-new .grid.wide {
    }

.home-new-container {
    padding-bottom: 42px;
}

.home-new-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    align-items: flex-end;
    align-items: self-end;
}

    .home-new-top .top-left {
        max-width: 871px;
    }

    .home-new-top .top-left-title {
        margin: 0;
        font-family: interB;
        font-size: 36px;
        color: var(--default-color-1);
        font-weight: 100;
        line-height: 126.2%;
    }

    .home-new-top .top-left-descript {
        color: #767676;
        font-size: 17px;
        line-height: 166%;
        display: block;
        margin-top: 17px;
        font-family: interM;
    }

    .home-new-top .top-right {
    }

        .home-new-top .top-right a:hover {
            background-color: var(--default-color-2);
            color: #fff;
        }

        .home-new-top .top-right a {
            border: 2px solid var(--default-color-2);
            border-radius: 55px;
            font-family: interSB;
            font-size: 20px;
            color: var(--default-color-2);
            padding: 0 48px;
            padding-top: 15px;
            padding-bottom: 16px;
            transition: all .3s;
        }

.home-new-bottom {
    margin-top: 36px;
}

@media(max-width:1023px) {
    .home-new-top {
        flex-direction: column;
        align-items: unset;
    }

        .home-new-top .top-left {
            max-width: 100%;
        }

        .home-new-top .top-left-title {
            font-size: 24px;
        }

        .home-new-top .top-left-descript {
            margin-top: 5px;
        }

        .home-new-top .top-right a {
            font-size: 15px;
            padding: 0 30px;
            padding-top: 12px;
            padding-bottom: 12px;
            width: fit-content;
            margin-top: 12px;
        }
}

@media(min-width:740px) and (max-width:1023px) {
}

@media(max-width:739px) {
    .home-new-top .top-right a {
        padding: 0 22px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .home-new-bottom {
        margin-top: 20px;
    }

    .home-new-container {
        padding-bottom: 25px;
    }
}
/*Danh Gia Khach Hang*/
/* Phần Đánh Giá Khách Hàng - Không dùng Bootstrap */
.home-rating-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    padding: 38px 0;
}

.home-rating-container {
    text-align: center;
}

.p-title {
    font-size: 40px;
    margin-bottom: 50px;
    /* Nếu chưa có font, thêm link Google Font ở trên */
    letter-spacing: 1px;
}

.title-center {
    text-align: center;
}

.title-bold {
}

.title-primary {
    color: var(--default-color-1);
}
/* Hoặc #007bff nếu chưa có biến */
.home-rating-container .swiper.swiperhomerating .swiper-slide {
    padding: 10px 12px;
}

/* Card testimonial */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 20px 20px 35px;
    background: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
}

.swiper-slide.swiper-slide-active .testimonial-card:hover {
    /* transform: translateY(-15px) scale(1.03); */
}

/* Background mờ */
.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.testimonial-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,1));
    transition: all 0.6s ease;
    opacity: 1;
}

.swiper-slide.swiper-slide-active .testimonial-card:hover .testimonial-content {
}

.home-rating-container .swiper.swiperhomerating {
    overflow: hidden;
    position: relative;
}

    .home-rating-container .swiper.swiperhomerating .swiper-button-next {
        right: 13px;
    }

    .home-rating-container .swiper.swiperhomerating .swiper-button-prev {
        left: 12px;
    }

        .home-rating-container .swiper.swiperhomerating .swiper-button-prev:before, .home-rating-container .swiper.swiperhomerating .swiper-button-next:before {
            font-size: 22px;
        }

.home-rating-container .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -35px;
}

.home-rating-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
}
/* Hover text trắng */
.swiper-slide .testimonial-card:hover .testimonial-text, .swiper-slide .testimonial-card:hover .testimonial-name, .swiper-slide .testimonial-card:hover .testimonial-job, .swiper-slide .testimonial-card:hover .quote-icon {
    color: #000000 !important;
}

/* Quote icon */
.quote-icon {
    font-size: 60px;
    opacity: 0.15;
    color: var(--default-color-1);
    margin-bottom: 30px;
    transition: all 0.6s ease;
}

/* Avatar */
.testimonial-avatar {
    margin-bottom: 20px;
    width: 100%;
    height: 317px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stars */
.testimonial-stars {
    margin-bottom: 25px;
    display: none;
}

.star-icon {
    font-size: 16px;
    color: #ffc107; /* Vàng */
    margin: 0 1px;
}

/* Text quote */
.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    padding: 0 10px;
    padding-left: 0;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

    .testimonial-text p {
        margin: 0;
    }
/* Name & Job */
.testimonial-info {
    text-align: left;
    width: 100%;
    margin-bottom: 15px;
}

span.link-testimonial-job {
    display: block;
    font-family: interSB;
    font-size: 15px;
    border: 2px solid var(--default-color-2);
    border-radius: 55px;
    color: var(--default-color-2);
    padding: 0 29px;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all .3s;
    margin-top: 15px;
    text-align: center;
}

    span.link-testimonial-job:hover {
        background: var(--default-color-2);
        color: #fff;
    }

.testimonial-name {
    font-size: 22px;
    font-weight: normal;
    color: var(--default-color-1);
    margin: 0 0 14px;
    position: relative;
    padding-bottom: 12px;
    font-family: 'interB';
    text-transform: uppercase;
}

    .testimonial-name::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        /* transform: translateX(-50%); */
        width: 80px;
        height: 3px;
        background: var(--default-color-1);
        opacity: 0.4;
        transition: all 0.6s ease;
    }

.testimonial-card:hover .testimonial-name::before {
    background: #d5d5d5;
    opacity: 0.6;
}

.testimonial-job {
    font-size: 17px;
    text-transform: capitalize;
    color: var(--default-color-1);
    font-family: 'interSB';
    font-weight: 100;
    line-height: 150%;
}

/* Swiper arrows & pagination */
.home-rating-container .swiper.swiperhomerating .swiper-button-next, .home-rating-container .swiper.swiperhomerating .swiper-button-prev {
    background: #cb9c52;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    color: var(--default-color-1);
}

.swiper-pagination-bullet {
    background: rgba(0,123,255,0.3);
}

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

/* Responsive */
@media (max-width: 739px) {
    .home-rating-section {
        padding: 38px 0;
    }

    span.link-testimonial-job {
        padding: 0 14px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 13px;
        width: fit-content;
        margin: auto;
        margin-top: 22px;
    }

    .p-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .testimonial-card {
        padding: 15px 15px 20px;
    }

    .avatar-image {
    }

    .testimonial-avatar {
        height: 259px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-name {
        font-size: 17px;
    }

    .testimonial-job {
        font-size: 15px;
    }

    .home-rating-container .swiper.swiperhomerating .swiper-button-next, .home-rating-container .swiper.swiperhomerating .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

        .home-rating-container .swiper.swiperhomerating .swiper-button-prev:before, .home-rating-container .swiper.swiperhomerating .swiper-button-next:before {
            font-size: 17px;
        }

    .star-icon {
        font-size: 14px;
    }
}
/*End*/