﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
}

.carousel-section {
    background: white;
    padding: 80px 0;
    text-align: left;
}

    .carousel-section h2 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 60px;
        margin-left: 145px;
    }

.carousel-container {
    max-width: 1900px;
    margin-left: 125px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding: 0 20px;
}

.rating-summary {
    flex: 0 0 220px;
    text-align: center;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 8px 0 12px -6px rgba(0, 0, 0, 0.08);
}

    .rating-summary .label {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 12px;
    }

.trustpilot-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 10px;
}

    .trustpilot-stars .star {
        width: 45px;
        height: 35px;
    }

.rating-summary .review-count {
    font-size: 14px;
    margin: 10px 0;
}

.rating-summary img {
    margin-top: -5px;
    height: 38px;
}

.swiper {
    width: calc(100% - 260px);
}

.swiper-slide {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-align: left;
    font-size: 14px;
    max-width: 270px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .swiper-slide .trustpilot-stars {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

        .swiper-slide .trustpilot-stars img {
            width: 20px;
            height: auto;
            display: block;
        }

.review-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.review-text {
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 7.5em;
    line-height: 1.5em;
}

.review-divider {
    border-top: 1px solid #ccc;
    margin: 10px 0;
}

.review-footer {
    font-size: 13px;
    font-weight: bold;
}

.review-date {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    color: #777;
}

.swiper-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    transform: translateX(-120px);
}

.swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background-color: #bbb;
    opacity: 1;
    border-radius: 50%;
    margin: 0 6px;
}

.swiper-pagination-bullet-active {
    background-color: #FF4E00;
}

.mobile-only {
    display: none;
}

.centered-no-reviews {
    text-align: center;
}

    .centered-no-reviews .carousel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .centered-no-reviews .rating-summary {
        flex: 0 0 220px;
        text-align: center;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0px 0 0px 0px rgba(0, 0, 0, 0);
    }

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        padding: 20px 0;
    }

    .carousel-section {
        background: white;
        padding: 40px 0;
        text-align: left;
    }

        .carousel-section h2 {
            font-size: 30px;
            font-weight: 700;
            text-align: center;
            padding: 0 20px;
            margin-bottom: 0px;
            margin-top: 20px;
            margin-left: 2px;
        }

    .rating-summary {
        text-align: left;
        padding: 0 20px;
        margin-bottom: 20px;
    }

        .rating-summary img {
            margin-top: -20px;
            height: 170px;
            margin-left: 80px;
        }

    .trustpilot-stars {
        display: flex;
        gap: 18px;
        align-items: left;
        margin-bottom: 8px;
        margin-left: 10px;
        margin-top: -40px;
    }

        .trustpilot-stars img {
            width: 29px;
            height: auto;
            margin-left: -12px;
            display: block;
        }

    .score-line {
        font-size: 15px;
        color: #555;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        font-weight: 500;
    }

        .score-line .pipe {
            color: #bbb;
        }

    .swiper {
        width: 100% !important;
        display: none;
    }

    .swiper-slide {
        padding: 20px 0;
        border-radius: 0px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.0);
        text-align: left;
        font-size: 14px;
        max-width: 100%;
        min-width: 280px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .review-title,
    .review-text,
    .review-footer {
        padding: 0 20px;
        margin-left: 19px;
    }

    .review-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    .review-text {
        font-size: 14px;
        margin-bottom: 10px;
        color: #222;
    }

    .review-footer {
        font-size: 0px;
        font-weight: bold;
        color: #000;
    }

    .swiper-pagination {
        margin-top: 4px;
        justify-content: center;
        display: flex;
        margin-left: 120px;
    }

    .mobile-swiper-pagination .swiper-pagination-bullet {
        background-color: #bbb;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        margin: 0 4px;
        opacity: 1;
    }

    .mobile-swiper-pagination .swiper-pagination-bullet-active {
        background-color: #FF4E00;
    }
}
