
/* =====================================================
   TESTIMONIAL SECTION
===================================================== */

.testimonial-section {
    position: relative;
    padding: 60px 0 60px;
    overflow: hidden;
}


/* =====================================================
   DARK BACKGROUND BAND
===================================================== */

.testimonial-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 260px;
    background: linear-gradient(100deg, var(--maroon) 0%, var(--rust) 55%, #c9651f 100%);
    border-top-left-radius: 50% 40px;
    border-top-right-radius: 50% 40px;
    z-index: 0;
}

.testimonial-section .container {
    position: relative;
    z-index: 1;
}


/* =====================================================
   HEADING
===================================================== */

.testimonial-section .testimonial-heading {
    text-align: center;
    margin-bottom: 20px;
}

.testimonial-section .testimonial-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 8px;
}

.testimonial-section .testimonial-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--maroon);
}


/* =====================================================
   SLIDER
===================================================== */

.testimonial-section .testimonial-slider {
    width: 100%;
}

.testimonial-section .testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-section .testimonial-swiper {
    width: 100%;
    padding: 20px 8px 30px;
}


/* =====================================================
   CARD
===================================================== */

.testimonial-section .testimonial-card {
    min-height: 250px;
    height: auto;

    background: #FFFFFF;
    border: 1px solid #eee1d5;
    border-radius: 20px;
    padding: 28px 26px 24px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    box-shadow:
        0 8px 20px rgba(122, 42, 16, 0.08),
        0 2px 5px rgba(122, 42, 16, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Remove any dull/transparent slide effect */

.testimonial-section .testimonial-slider .swiper-slide {
    opacity: 1;
}


/* Active card */

.testimonial-section .testimonial-slider .swiper-slide-active .testimonial-card {
    border-color: var(--rust);

    box-shadow:
        0 16px 35px rgba(122, 42, 16, 0.15),
        0 5px 12px rgba(185, 83, 31, 0.10);

    transform: translateY(-5px);
}


/* Hover */

.testimonial-section .testimonial-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 38px rgba(122, 42, 16, 0.15),
        0 5px 14px rgba(185, 83, 31, 0.10);

    border-color: var(--rust);
}


/* =====================================================
   QUOTE
===================================================== */

.testimonial-section .testimonial-quote {
    font-size: 36px;
    line-height: 1;
    color: var(--rust);
}

.testimonial-section .testimonial-slider .swiper-slide-active .testimonial-quote {
    color: var(--maroon);
}


/* =====================================================
   REVIEW
===================================================== */

.testimonial-section .testimonial-review {
    flex: 1;
}

.testimonial-section .testimonial-review p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =====================================================
   AUTHOR
===================================================== */

.testimonial-section .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-section .testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tint);

    box-shadow: 0 4px 10px rgba(122, 42, 16, 0.12);
}

.testimonial-section .testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-section .testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--maroon);
}


/* =====================================================
   ARROWS
===================================================== */

.testimonial-section .testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #eee1d5;
    border-radius: 50%;

    background: #FFFFFF;

    box-shadow:
        0 6px 16px rgba(122, 42, 16, 0.15);

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.testimonial-section .testimonial-arrow:hover {
    background: var(--rust);
    border-color: var(--rust);

    transform: translateY(-50%) scale(1.08);

    box-shadow:
        0 8px 20px rgba(185, 83, 31, 0.25);
}

.testimonial-section .testimonial-arrow:hover i {
    color: #FFFFFF;
}

.testimonial-section .testimonial-arrow i {
    font-size: 18px;
    color: var(--maroon);
    transition: color 0.25s ease;
}

.testimonial-section .testimonial-prev {
    left: 0;
}

.testimonial-section .testimonial-next {
    right: 0;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575px) {

    .testimonial-section {
        padding: 40px 0 40px;
    }

    .testimonial-section .testimonial-title {
        font-size: 28px;
    }

    .testimonial-section .testimonial-slider-wrapper {
        padding: 0 38px;
    }

    .testimonial-section .testimonial-swiper {
        padding: 15px 5px 25px;
    }

    .testimonial-section .testimonial-arrow {
        width: 36px;
        height: 36px;
    }

    .testimonial-section .testimonial-card {
        /* height: 380px; */
        padding: 22px 20px 20px;
        border-radius: 18px;
    }

    .testimonial-section .testimonial-review p {
        font-size: 14px;
    }
}
