/* =============================
Testimonial Section Base
============================= */
#testimony-section {
    background: linear-gradient(#ffffff, #ffe797 50%);
    position: relative;
    padding: 4rem 2rem 0 2rem;
    overflow: hidden;
}
.section_testimonial {
    padding: 0rem 0rem 4rem;
}
.section_testimonial h2 {
    text-align: center;
    font-size: 2rem;
}

.section_testimonial h2 span {
    color: var(--e-global-color-primary);
}

/* Swiper wrapper */
.swiper.testimonials {
    overflow: visible;
    padding: 4rem 0;
}
.swiper-wrapper {
    display: flex;
    will-change: transform;
    transform: translateZ(0);
}
.swiper-slide {
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), 
                box-shadow 0.4s ease;
    height: auto;
    display: flex;
    /*
    flex: 1 0 auto;
    justify-content: center;
    align-items: stretch;
    */
}

/* =============================
Testimonial Card Base
============================= */
.swiper-slide .testimony_card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, #ffffff, #fff9e5);
    border-radius: 24px;
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
    color: #5b607c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    height: 100%;
}

.testimony_card-content .testimony-ic {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    height: 32px;
}

.testimony-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.testimony-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f8;
}

.testimony-user {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111228;
}

.rating-image-wrapper {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.rating-image-wrapper img {
    height: 21px !important;
}

.testimony-content {
    max-width: 90%;
    font-size: 1rem;
    line-height: 1.4;
    margin-block-start: 1rem;
    color: #3b3f56;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimony-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =================================
NAVIGATION
================================= */
/*
.swiper-button-next-dev,
.swiper-button-prev-dev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

.swiper-button-next-dev {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.swiper-button-prev-dev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next-dev .ic,
.swiper-button-prev-dev .ic {
    font-size: 30px;
    color: white;
    height: 50px;
    width: 50px;
    background: var(--e-global-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-pagination-dev {
    text-align: center;
    margin-top: 1rem;
}
*/

/* =============================
Hover Effect
============================= */
.testimony_card-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.18);
}

/* =============================
Swiper Pagination
============================= */
.swiper-pagination-bullets {
    bottom: 10px;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 0.7;
    transition: all 0.3s;
}
.swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
    transform: scale(1.3);
    opacity: 1;
}

/* =============================
Modern Enhancements
============================= */

/* Active Slide Highlight */
.swiper-slide-active .testimony_card-content {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
                box-shadow 0.6s cubic-bezier(0.65, 0, 0.35, 1),
                border 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Side Slides Tilt & Fade */
.swiper-slide-prev .testimony_card-content,
.swiper-slide-next .testimony_card-content {
    transform: scale(0.95) rotateY(5deg);
    opacity: 0.85;
    filter: brightness(0.95);
    z-index: 5;
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

/* Modern Card Styling */
.testimony_card-content {
    background: linear-gradient(135deg, #ffffff, #fffef5);
    border-radius: 28px;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Pagination - Pill Style */
.swiper-pagination-bullet {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    opacity: 0.7;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
    transform: scale(1.5);
    opacity: 1;
}

/* =============================
Responsive
============================= */
@media (max-width: 992px) {
    .swiper-slide-active .testimony_card-content {
        transform: scale(1.03);
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 80%;
    }
    .section_testimonial {
        padding: 0 1rem;
    }
    .testimony_card-content {
        padding: 1.5rem;
    }

    /* Remove tilt on mobile for readability */
    .swiper-slide-prev .testimony_card-content,
    .swiper-slide-next .testimony_card-content {
        transform: scale(0.98) rotateY(0deg);
        opacity: 0.95;
    }
}