:root {
    --primary-color: #233F8F;
    --star-color: #FFB800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.testimonials-section {
    max-width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-module .rating-badge-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.rating-badge {
    background-color: #4CAF50;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 64px;
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 61px;
    justify-content: center;
}

.rating-badge i {
    font-size: 0.5rem;
}

.reviews-module .rating-total {
    color: #233F8F;
}

.reviews-module .rating-based-number {
    color: #818181;
}

.ver-mas {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

/* .testimonials-container {
    display: flex;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: space-between;
} */

/* .testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 10px;
    grid-auto-flow: dense;
    grid-gap: 1rem;
} */

.testimonials-container {
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: .75rem;
    width: 32%;
    min-width: 346px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #9FC9EC;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
    margin-bottom: 1rem;
}
/* 
.patient-info {
    margin: 0;
} */

.patient-name {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    margin: 0;
}

.country-badge {
    border-radius: 4px;
    font-size: 0.75rem;
    color: #484848;
    font-weight: 700;
}

.patient-details {
    color: #666;
    font-size: 0.625rem;
    margin: 0;
}

.star-rating {
    color: var(--star-color);
}

.star-rating .empty-star {
    color: #C1DAEF;
}

.testimonial-text {
    color: #333;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
}

.profile-images {
    display: flex;
    gap: 0.5rem;
}

.profile-image {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.more-images {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.25rem;
    font-weight: 500;
}

.ver-video-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.625rem 0.75rem;
    width: 100%;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ver-video-btn:hover {
    background-color: #1a3578;
}

.reviews-module .card {
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #9FC9EC;
    background-color: #F1F7FC;
    width: 100%;
    height: 230px;
    gap: 1rem;
}

.reviews-module .card-content {
    display: flex;
    height: 100%;
}

.reviews-module .card-title {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.reviews-module .rating-container {
    display: flex;
    flex-direction: column;
    width: 40%;
    justify-content: space-between;
}

.reviews-module .reviews-progress-container {
    width: 60%;
    padding: 0.875rem 0 0.875rem 1rem;
}

.reviews-module .rating-trend {
    font-size: 0.875rem;
    margin: 0;
    color: #818181;
}

.reviews-module .rating-trend .bi-arrow-up-right {
    color: #0B624D;
}

.reviews-module .rating-trend .bi-arrow-down-right {
    color: #EC4759;
}

.reviews-module .comment-amount {
    font-size: 0.75rem;
    color: #818181;
    margin: 0;
}

.reviews-module .reviews-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-module .rate-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 3.625rem;
    line-height: 80px;
    text-align: center;
}

.reviews-module .star-rating {
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.reviews-module .progress,
.reviews-module .progress-bar {
    height: 0.75rem;
}

.reviews-module .text-muted {
    color: #6c757d;
    margin: 0;
}

.reviews-module .text-secondary {
    color: #6c757d;
}

.reviews-module .progress {
    border-radius: 13px;
    background-color: #C1DAEF;
}

.reviews-module .bg-5 {
    background-color: #0B624E;
}

.reviews-module .bg-4 {
    background-color: #40A958;
}

.reviews-module .bg-3 {
    background-color: #EAB350;
}

.reviews-module .bg-2 {
    background-color: #F09564;
}

.reviews-module .bg-1 {
    background-color: #EC4759;
}

.reviews-module-fullwidth .card {
    width: 100%;
    height: 230px;
}

.reviews-module-fullwidth .rating-container {
    flex-direction: row;
    width: auto;
    justify-content: normal;
}

.reviews-module-fullwidth .reviews-progress-container {
    width: 77%;
}

.reviews-module-fullwidth .star-rating {
    width: 130px;
}

.reviews-module-fullwidth .reviews-progress-container {
    padding-top: 0;
}

.reviews-module-fullwidth .wrapper {
    width: 145px;
    padding-left: 1rem;
}

.reviews-module-fullwidth .rate-number {
    line-height: 50px;
}

.reviews-module-fullwidth .card-title {
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

@media screen and (width <=992px) {


    .reviews-module .card {
        width: 100%;
        height: auto;
        padding: 0.5625rem;
        gap: 0;
    }

    .testimonial-card {
        width: 100%;
        padding: 0.5625rem;
    }

    .reviews-module .rate-number {
        font-size: 2.8125rem;
        line-height: 50px;
    }

    .reviews-module .rating-container {
        width: 23%;
        display: flex;
        justify-content: space-evenly;
    }

    .reviews-module .reviews-progress-container {
        width: 77%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .reviews-module .text-muted,
    .reviews-module .text-secondary {
        font-size: 0.75rem;
    }

    .reviews-module .progress,
    .reviews-module .progress-bar {
        height: 0.5rem;
    }

    .reviews-module .rating-trend,
    .reviews-module .comment-amount,
    .reviews-module .bi.bi-star-half,
    .reviews-module .bi.bi-star-fill {
        font-size: 0.625rem;
    }

    .reviews-module-fullwidth .card {
        height: auto;
        gap: 0.625rem;
        padding: 1rem;
    }

    .reviews-module-fullwidth .card-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reviews-module-fullwidth .reviews-progress-container,
    .reviews-module-fullwidth .rating-container {
        width: 100%;
        justify-content: space-between;
        padding: 0;
        gap: 0.5rem;
    }

    .reviews-module-fullwidth .card-title {
        font-size: 1rem;
        text-align: start;
    }

    .reviews-module-fullwidth .wrapper {
        width: 100%;
        padding: 0;
    }

    .reviews-module-fullwidth .rating-container {
        gap: 0.625rem;
    }

    .reviews-module-fullwidth .bi.bi-star-half,
    .reviews-module-fullwidth .bi.bi-star-fill {
        font-size: 1.25rem;
    }

    .reviews-module-fullwidth .rating-trend,
    .reviews-module-fullwidth .comment-amount {
        font-size: 0.75rem;
    }

    .reviews-module-fullwidth .star-rating {
        width: 100%;
    }

    .reviews-module-fullwidth .rate-number {
        padding-right: 1.25rem;
    }
}