/* Google Reviews Section Styles */
.reviews {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.reviews .section-title {
    color: #1b3979;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 35px;
}

.reviews .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ff7700;
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* Left side - Rating summary */
.rating-summary {
    flex: 0 0 300px;
    padding: 25px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.google-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.google-icon {
    height: 40px;
    margin-bottom: 15px;
}

.rating-score {
    text-align: center;
}

.score {
    font-size: 48px;
    font-weight: bold;
    color: #1b3979;
    line-height: 1;
}

.stars {
    font-size: 24px;
    color: #FFC107;
    margin: 5px 0;
}

.rating-count {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.review-button {
    display: inline-block;
    background-color: #ff7700;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.review-button:hover {
    background-color: #e66c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 119, 0, 0.3);
    color: white;
    text-decoration: none;
}

.review-button i {
    margin-right: 5px;
}

/* Right side - Reviews carousel */
.reviews-carousel-container {
    flex: 1;
    min-width: 0;
    margin-left: 30px;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1b3979;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #777;
}

.review-rating {
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 10px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all-reviews {
    text-align: right;
    margin-top: 15px;
}

.view-all-reviews a {
    color: #1b3979;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-reviews a:hover {
    color: #ff7700;
    text-decoration: underline;
}

/* Custom Owl Carousel Navigation */
.reviews-carousel-container .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.reviews-carousel-container .owl-prev,
.reviews-carousel-container .owl-next {
    position: absolute;
    background-color: #fff !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #1b3979 !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reviews-carousel-container .owl-prev:hover,
.reviews-carousel-container .owl-next:hover {
    background-color: #1b3979 !important;
    color: #fff !important;
}

.reviews-carousel-container .owl-prev {
    left: -20px;
}

.reviews-carousel-container .owl-next {
    right: -20px;
}

.reviews-carousel-container .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.reviews-carousel-container .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #ddd !important;
    transition: all 0.3s ease;
}

.reviews-carousel-container .owl-dot.active {
    background-color: #ff7700 !important;
    transform: scale(1.2);
}

/* Responsive styles */
@media (max-width: 992px) {
    .reviews-container {
        flex-direction: column;
    }

    .rating-summary {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }

    .reviews-carousel-container {
        margin-left: 0;
        width: 100%;
    }

    .reviews-carousel-container .owl-prev {
        left: -15px;
    }

    .reviews-carousel-container .owl-next {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .review-card {
        padding: 15px;
    }

    .reviews-carousel-container .owl-prev,
    .reviews-carousel-container .owl-next {
        display: none !important;
    }
}