/**
 * Testimonials Section Block Styles
 *
 * @package Realar Child
 */

/* Testimonials Section */
.testimonials-section {
    position: relative;
    width: 100%;
    min-height: 825px;
    background-color: #655442;
    overflow: visible;
}

.testimonials-section__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 100px 160px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Header */
.testimonials-section__header {
    max-width: 700px;
}

.testimonials-section__title {
    color: #FFFFFF;
    font-size: 48px;
    font-family: var(--second-family);
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.testimonials-section__description p {
    color: #FFFFFF;
    font-size: 18px;
    font-family: var(--font-family);
    line-height: 1.8;
}

.testimonials-section__description p {
    margin: 0;
}

/* Slider */
.testimonials-section__slider {
    overflow: visible;
}

.testimonials-section__slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 20px;
}

.testimonials-section__slider-track::-webkit-scrollbar {
    display: none;
}

.testimonials-section__slider-track:active {
    cursor: grabbing;
}

/* Card */
.testimonials-section__card {
    flex: 0 0 586px;
    min-height: 380px;
    background-color: #D7BCA0;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Stars */
.testimonials-section__stars {
    display: flex;
    gap: 8px;
}

.testimonials-section__star {
    width: 18px;
    height: 16px;
}

/* Review */
.testimonials-section__review {
    flex: 1;
}

.testimonials-section__review-text {
    color: #0D0D0C !important;
    font-size: 20px;
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
}

/* Divider */
.testimonials-section__divider {
    width: 100%;
    height: 1px;
    background-color: #655442;
    margin: 16px 0;
}

/* Author */
.testimonials-section__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonials-section__author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonials-section__author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonials-section__author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonials-section__author-name {
    color: #0D0D0C;
    font-size: 24px;
    font-family: var(--second-family);
    font-weight: bold;
    line-height: 1.3;
}

.testimonials-section__author-position {
    color: #6E7070;
    font-size: 16px;
    font-family: var(--font-family);
    line-height: 1.4;
}

.testimonials-section__scroll-btn {
    display: none;
}

/* Slider Wrapper */
.testimonials-section__slider-wrapper {
    width: calc(100% + 160px); /* Extend beyond container to right edge */
    margin-right: -160px;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.testimonials-section__nav {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.testimonials-section__nav-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonials-section__nav-btn:hover {
    transform: scale(1.1);
}

.testimonials-section__nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonials-section__nav-btn svg {
    width: 48px;
    height: 48px;
    display: block;
}

/* Responsive */
@media (max-width: 1600px) {
    .testimonials-section__container {
        padding: 80px 80px;
        gap: 40px;
    }

    .testimonials-section__slider-wrapper {
        width: calc(100% + 80px);
        margin-right: -80px;
    }

    .testimonials-section__header {
        max-width: 600px;
    }

    .testimonials-section__title {
        font-size: 40px;
    }

    .testimonials-section__card {
        flex: 0 0 500px;
        min-height: 340px;
        padding: 28px;
    }

    .testimonials-section__review-text {
        font-size: 18px;
    }

    .testimonials-section__nav {
        padding-right: 0;
    }
}

@media (max-width: 1200px) {
    .testimonials-section {
        min-height: auto;
    }

    .testimonials-section__container {
        padding: 60px 40px;
        gap: 40px;
    }

    .testimonials-section__slider-wrapper {
        width: calc(100% + 40px);
        margin-right: -40px;
    }

    .testimonials-section__header {
        max-width: 100%;
    }

    .testimonials-section__title {
        font-size: 36px;
    }

    .testimonials-section__card {
        flex: 0 0 450px;
        min-height: 320px;
    }

    .testimonials-section__review-text {
        font-size: 17px;
    }

    .testimonials-section__author-name {
        font-size: 22px;
    }

    .testimonials-section__nav {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .testimonials-section__container {
        padding: 50px 20px;
        gap: 30px;
    }

    .testimonials-section__slider-wrapper {
        width: calc(100% + 20px);
        margin-right: -20px;
    }

    .testimonials-section__title {
        font-size: 32px;
    }

    .testimonials-section__description {
        font-size: 16px;
    }

    .testimonials-section__card {
        flex: 0 0 350px;
        min-height: 300px;
        padding: 24px;
        border-radius: 20px;
    }

    .testimonials-section__review-text {
        font-size: 16px;
    }

    .testimonials-section__author-photo {
        width: 60px;
        height: 60px;
    }

    .testimonials-section__author-name {
        font-size: 20px;
    }

    .testimonials-section__author-position {
        font-size: 14px;
    }

    .testimonials-section__nav {
        margin-top: 25px;
    }

    .testimonials-section__nav-btn {
        width: 40px;
        height: 40px;
    }

    .testimonials-section__nav-btn svg {
        width: 40px;
        height: 40px;
    }
}

/* @media (max-width: 480px) {
    .testimonials-section__container {
        padding: 40px 15px;
    }

    .testimonials-section__slider-wrapper {
        width: calc(100% + 15px);
        margin-right: -15px;
    }

    .testimonials-section__title {
        font-size: 28px;
    }

    .testimonials-section__card {
        flex: 0 0 300px;
        min-height: 280px;
        padding: 20px;
        border-radius: 16px;
    }

    .testimonials-section__review-text {
        font-size: 15px;
    }

    .testimonials-section__author-photo {
        width: 50px;
        height: 50px;
    }

    .testimonials-section__author-name {
        font-size: 18px;
    }

    .testimonials-section__nav {
        margin-top: 20px;
        gap: 12px;
    }
} */

/* Mobile: max-width 550px */
@media (max-width: 550px) {

    .testimonials-section {
        width: 100%;
        margin: 0 auto;
        min-height: auto;
    }

    .testimonials-section__container {
        width: 100%;
        margin: 0 auto;
        padding: 60px 24px;
        gap: 9px;
    }

    .testimonials-section__header {
        max-width: 366px;
    }

    .testimonials-section__title {
        font-size: 34px;
        font-family: var(--second-family);
        font-weight: bold;
        color: rgba(255, 255, 255, 1);
        text-align: left;
        margin-bottom: 0;
    }

    .testimonials-section__description p {
        color: rgba(255, 255, 255, 1);
        font-size: 16px;
        font-family: var(--font-family);
        text-align: left;
    }

    .testimonials-section__slider-wrapper {
        width: 100%;
        margin-right: 0;
        margin-top: 56px;
        position: relative;
    }

    .testimonials-section__slider-track {
        gap: 40px;
    }

    .testimonials-section__slider {
        position: relative;
    }

    .testimonials-section__nav {
        display: none !important;
    }

    .testimonials-section__slider-track {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0 12px;
    }

    .testimonials-section__card {
        flex: 0 0 276px;
        min-width: 276px;
        min-height: 500px;
        background-color: rgba(215, 188, 160, 1);
        border-radius: 41px;
        padding: 32px;
        position: relative;
        z-index: 1;
    }

    .testimonials-section__card.is-active {
        z-index: 3;
    }

    .testimonials-section__card:not(.is-active) .testimonials-section__review-text {
        color: rgba(110, 112, 112, 1) !important;
    }

    .testimonials-section__scroll-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right:30px;
        box-shadow: 2px 2px 20px #000;
        border-radius: 25px;
        top: 50%;
        transform: translateY(-54%);
        width: 161px;
        height: 106px;
        min-width: 161px;
        min-height: 106px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .testimonials-section__scroll-btn:hover {
        opacity: 0.9;
        transform: translateY(-50%) scale(1.02);
    }

    .testimonials-section__scroll-btn svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .testimonials-section__review-text {
        color: rgba(13, 13, 12, 1) !important;
        font-size: 20px;
    }

    .testimonials-section__author-name {
        font-size: 24px;
        color: rgba(13, 13, 12, 1);
    }

    .testimonials-section__author-position {
        color: rgba(110, 112, 112, 1);
        font-size: 16px;
    }
}
