﻿.home-rating {
    padding-top: 32px;
    background: url(/Design/img/AmiTaxi/b2.png) no-repeat;
    background-size: 100% 100%;
}

    .home-rating .p-title::before {
        bottom: -7px;
    }

    .home-rating .grid.wide {
        max-width: 1234px;
    }

.home-rating-container {
    margin-top: 31px;
    padding-bottom: 29px;
}

    .home-rating-container .p-title {
    }

    .home-rating-container .mySwiper {
    }

    .home-rating-container .home-new-top h3 {
        font-size: 30px;
        font-weight: 700;
        text-align: left;
        color: #ffffff;
        font-family: 'Montserrat-Bold';
        margin: 0;
    }

.home-rating-item {
    padding: 40px 32px;
    padding-top: 40px;
    border-radius: 10px;
    background: #ffffffe8;
    width: 320px;
}

.home-rating-detail {
    COLOR: #000;
    line-height: 129%;
    font-size: 15px;
    text-align: justify;
    padding-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 165px;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-family: 'Montserrat-Regular';
}

.home-rating-bottom {
    display: flex;
    align-items: center;
    /* border-top: 1px solid #d0d1d1; */
    padding-top: 5px;
    padding-bottom: 30px;
    margin-top: -49px;
    flex-direction: column;
}

.home-rating-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--default-color);
    overflow: hidden;
}

    .home-rating-img img {
        width: 100%;
        height: 100%;
        display: block;
    }

.home-rating-content {
    margin-left: 13px;
}

.home-rating-name {
    margin: 0;
    font-weight: 100;
    color: #ffffff;
    font-size: 18px;
    overflow: hidden;
    font-family: 'Montserrat-SemiBold';
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-align: center;
}

.home-rating-job {
    margin: 0;
    font-weight: 100;
    color: #ffffff;
    font-size: 16px;
    margin-top: 5px;
    text-align: center;
}

.home-rating-dot svg path {
    fill: unset
}

.home-rating-dot {
    display: flex;
    justify-content: center;
}

.swiper-slide-next .kasjd .home-rating-item {
    background: #dddddd;
}

.swiper-slide-next {
    transform: scale(1.2) !important;
    /* ví dụ tăng từ ~380px lên 420px */
    position: relative;
    z-index: 2;
}

.home-rating-wrap .swiper {
    padding: 44px 0;
}

.home-rating-wrap {
    padding: 50px 0;
    padding-bottom: 10px;
}

/* Mobile & tablet */
@media (max-width: 1023px) {
    .home-rating-wrap {
        padding: 0px 0;
    }

    .home-rating-container .home-new-top h3 {
        font-size: 18px;
        color: var(--default-color-3);
    }

    .home-rating-dot svg {
        width: 35px;
        height: auto;
    }

    .home-rating {
        background: #f2f2f2;
        position: relative;
    }

    .home-rating-container {
        margin-top: 0;
    }
}

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

/* Mobile */
@media (max-width: 739px) {
    .home-rating-bottom {
        padding-top: 20px;
        padding-bottom: 0;
    }

    .swiper-slide-active {
        /* transform: scale(1.2) !important; */
        position: relative;
        z-index: 2;
    }

    .swiper-slide-next {
        transform: unset !important;
        position: unset;
        z-index: unset;
    }

    .home-rating-name {
        font-size: 16px;
        color: #000000c9;
    }

    .home-rating-job {
        font-size: 15px;
        color: black;
    }

    .home-rating-item {
        padding: 24px 10px 22px 10px;
    }

    .swiper-slide-next .kasjd .home-rating-item {
        background: #fff
    }

    .swiper-slide-active .kasjd .home-rating-item {
        background: #ffffffa8;
    }

    .home-rating-detail {
        padding: 20px 0;
        padding-top: 2px;
        height: auto;
        margin-top: 16px;
    }
}
