/* Customer Reviews & Testimonials Section */
.reviews-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.reviews-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.reviews-header p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 25px;
}

/* Aggregate Rating Card */
.aggregate-rating {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.rating-summary {
    flex: 1;
    min-width: 200px;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: #1e3c72;
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.rating-count {
    font-size: 1rem;
    color: #666;
}

.rating-bars {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.star-label {
    width: 70px;
    font-size: 0.9rem;
    color: #666;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.bar-count {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

/* Review Cards Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid #1e3c72;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.review-header-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 5px;
}

.reviewer-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
}

.reviewer-company {
    font-size: 0.85rem;
    color: #999;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.review-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.review-category {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.verified-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-badge i {
    font-size: 0.9rem;
}

/* Location Badge */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.location-badge i {
    color: #1e3c72;
}

/* CTA Section */
.reviews-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.reviews-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.reviews-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.btn-review {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    color: white;
}

.btn-review i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding: 50px 0;
    }

    .reviews-header h2 {
        font-size: 2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .aggregate-rating {
        flex-direction: column;
        gap: 30px;
    }

    .rating-number {
        font-size: 3rem;
    }

    .reviews-cta h3 {
        font-size: 1.5rem;
    }

    .review-card {
        padding: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }
