/* ========================================
   Testimonial Swiper Section
   ======================================== */

.testimonial-swiper-section {
    background-color: #2B363A;
    padding: 80px 20px;
    color: #ffffff;
    overflow: hidden;
}

.testimonial-swiper-section .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Header
   ======================================== */

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: nowrap;
    width: 100%;
}

.testimonial-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    flex-shrink: 0;
}

.testimonial-btn {
    background-color: #B7CE3F;
    color: #ffffff !important;
    padding: 14px 60px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.testimonial-btn:hover {
    background-color: #c5d95a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 206, 63, 0.3);
}

/* Swiper
   ======================================== */

.testimonial-swiper {
    padding-bottom: 60px;
    overflow: visible;
    margin: 0 -20px;
}

.testimonial-swiper .swiper-wrapper {
    align-items: stretch;
    padding: 0 20px;
}

.testimonial-swiper .swiper-slide {
    height: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.testimonial-swiper .swiper-slide-active {
    opacity: 1;
}

.testimonial-swiper .swiper-slide-next,
.testimonial-swiper .swiper-slide-prev {
    opacity: 0.6;
}

/* Testimonial Cards
   ======================================== */

.testimonial-card {
    background-color: #ffffff;
    color: #2B363A;
    border-radius: 20px;
    padding: 30px 40px;
    height: 100%;
    min-height: 240px;
    max-height: 270px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.testimonial-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #2B363A;
    line-height: 1.3;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 16px;
    line-height: 1.55;
    color: #4a5568;
    font-size: 14px;
}

.testimonial-content p {
    margin: 0 0 8px 0;
}

.testimonial-content p:last-child {
    margin-bottom: 0;
}

/* Footer Row: Name + Stars */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.testimonial-author {
    font-weight: 600;
    margin: 0;
    color: #2B363A;
    font-size: 13px;
}

.testimonial-rating {
    margin: 0;
    display: flex;
    align-items: center;
}

.rating-stars {
    height: 18px;
    width: auto;
    display: block;
}

/* Swiper Pagination
   ======================================== */

.testimonial-swiper .swiper-pagination {
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    margin-top: 20px;
}

.testimonial-swiper .swiper-pagination-bullet {
    background-color: #ffffff;
    opacity: 0.4;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #B7CE3F;
    transform: scale(1.2);
}

/* Responsive
   ======================================== */

@media (max-width: 1024px) {
    .testimonial-swiper-section {
        padding: 60px 20px;
    }

    .testimonial-title {
        font-size: 32px;
    }

    .testimonial-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .testimonial-swiper-section {
        padding: 50px 15px;
    }

    .testimonial-header {
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
    
    .testimonial-title {
        font-size: 28px;
        width: 100%;
        margin-bottom: 16px;
    }

    .testimonial-btn {
        margin-left: 0;
    }
    
    .testimonial-card {
        padding: 25px 30px;
        min-height: 220px;
        max-height: 260px;
    }

    .testimonial-card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .testimonial-content {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .testimonial-swiper {
        margin: 0 -10px;
    }

    .testimonial-swiper .swiper-wrapper {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .testimonial-title {
        font-size: 24px;
    }

    .testimonial-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-card-title {
        font-size: 18px;
    }

    .testimonial-content {
        font-size: 15px;
    }
}
