/* --- Review Slider General Styling --- */
.testimonial-section .swiper-container {
    padding-bottom: 15px; /* Space for pagination */
}

/* --- Review Card Styling --- */
.review-card {
    background-color: #fff;
    border-radius: 0px;
    padding: 25px 30px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

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

.review-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

/* Styles for the fallback initial avatar */
.review-author-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #007bff; /* A default background color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.review-author-info {
    flex-grow: 1;
}

.review-author-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.review-rating {
    color: #ffc107; /* Gold color for stars */
    font-size: 14px;
}

.review-rating .text-light-gray {
    color: #e0e0e0; /* Lighter color for empty stars */
}

.review-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    /* For truncating long reviews */
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Show up to 5 lines */
    line-clamp: 5; /* Standard property */
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto; /* Pushes footer to the bottom */
}

.review-source {
    font-weight: 500;
}

/* --- Swiper Navigation & Pagination --- */
.testimonial-section .swiper-button-next,
.testimonial-section .swiper-button-prev {
    color: #0c3246; /* Match your site's primary blue */
    background-color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    display: none;
}

.testimonial-section .swiper-button-next:hover,
.testimonial-section .swiper-button-prev:hover {
    background-color: #f8f9fa;
}

.testimonial-section .swiper-button-next:after,
.testimonial-section .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.testimonial-section .swiper-pagination {
    position: relative;
    padding-top: 30px;
    display: none;
}

.testimonial-section .swiper-pagination-bullet {
    background: #0c3246;
    opacity: 0.3;
}

.testimonial-section .swiper-pagination-bullet-active {
    opacity: 1;
}