/**
 * Testimonials High Contrast "Split" Design
 * Color matched to Donate Button: #173750
 */

.testimonials-section {
    padding: 0;
    margin: 40px 0;
    position: relative;
}

/* =========================================
   Testimonials Slider (Split Layout) - Figma: node 444:457
   ========================================= */

.testimonials-block {
    background-color: var(--nl-header-accent); /* match Donate button color */
    border-radius: 15px;
    padding: 0;
    color: #ffffff; /* Light text for contrast on dark background */
    margin-bottom: 24px; /* bottom gap matches left padding (24px) */
    overflow: hidden;
    height: auto;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 46, 93, 0.15);
    border: none;
}

.testimonials-section .section-title--contrast {
    color: #ffffff;
    text-align: center;
    padding-top: 24px; /* match left padding */
    margin-bottom: 24px; /* match left padding */
    font-weight: 700;
}

/* Slider Track Override for Flex */
.testimonials-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.testimonials-slider .slick-slide {
    height: auto;
    display: flex !important;
    /* Force flex on slide */
    flex-direction: row;
}

/* Individual Slide Structure */
.nh-testimonial-slide--split {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}

/* Image Side (Left) */
.nh-testimonial-slide__image-side {
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* однакові відступи 24px з усіх боків */
    width: 42%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 24px; /* однакові відступи з усіх боків */
    box-sizing: border-box;
    background-color: transparent; /* прибираємо синій фон довкола фото */
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.nh-testimonial-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* center crop */
    display: block;
    transition: transform 0.4s ease;
    border-radius: 12px; /* rounded on all corners */
    overflow: hidden;
    background-color: #ffffff; /* safe fallback if image has transparency */
}

.nh-testimonial-slide__image-side:hover .nh-testimonial-slide__image{
    transform: scale(1.03);
}

/* Content Side (Right) */
.nh-testimonial-slide__content-side {
    width: 60%;
    padding: 24px 60px; /* reduced top/bottom to 24px to match left padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Left align everything */
    text-align: left;
}

/* Typography elements */
.nh-testimonial-slide__quote-icon {
    font-family: Georgia, serif;
    font-size: 32px; /* Reduced to match Figma */
    line-height: 1;
    color: rgba(23, 55, 80, 0.55);
    margin-bottom: 12px;
    opacity: 0.95;
}

.nh-testimonial-slide__text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    color: #e6f0f8; /* light text for readability on dark background */
    display: -webkit-box;
    -webkit-line-clamp: 8;
    /* Allow more lines in this layout */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nh-testimonial-slide__author {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
}

.nh-testimonial-slide__details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nh-testimonial-slide__details-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

/* Slick Dots Customization */
.testimonials-slider .slick-dots {
    bottom: 18px;
    right: 24px;
    /* Align to the right side content */
    width: auto;
    text-align: right;
    left: auto;
}

.testimonials-slider .slick-dots li button:before {
    font-size: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    backdrop-filter: blur(6px);
    opacity: 1;
}

.testimonials-slider .slick-dots li.slick-active button:before {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Remove Arrows for this clean layout or position custom if needed */
/* Custom arrows for desktop */
.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #173750;
    z-index: 5;
    padding: 0;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    transform-origin: center;
    transform: translateY(-50%);
    font-size: 0;
    line-height: 0;
}

.testimonials-slider .slick-prev:before,
.testimonials-slider .slick-next:before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-top: none;
    border-right: none;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.testimonials-slider .slick-prev:before {
    left: 90%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.testimonials-slider .slick-next:before {
    left: 10%;
    transform: translate(-50%, -50%) rotate(-135deg);
}


@media (max-width: 767px) {
    .testimonials-slider .slick-prev,
    .testimonials-slider .slick-next {
        display: none !important; /* hide on mobile */
    }
}

.testimonials-slider .slick-prev:hover,
.testimonials-slider .slick-next:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.55);
    color: #173750;
    transform: translateY(-50%) scale(1.12);
}

.testimonials-slider .slick-prev:active,
.testimonials-slider .slick-next:active {
    transform: translateY(-50%) scale(0.98);
}



/* Responsive (Mobile/Tablet) */
@media (max-width: 991px) {

    .testimonials-slider .slick-track,
    .testimonials-slider .slick-slide,
    .nh-testimonial-slide--split {
        display: block !important;
        /* Reset flex for block stacking */
    }

    .nh-testimonial-slide__image-side {
        width: 100%;
        height: 220px;
        /* Fixed height for image on mobile (smaller for visual balance) */
        border-radius: 12px 12px 0 0;
    }
    .nh-testimonial-slide__image {
        border-radius: 12px; /* keep image rounded on mobile stacking */
    }

    .nh-testimonial-slide__content-side {
        width: 100%;
        padding: 24px 24px; /* ensure consistent horizontal and vertical spacing */
        text-align: left;
    }

    .testimonials-slider .slick-dots {
        bottom: 14px;
        right: 0;
        width: 100%;
        text-align: center;
        /* Center dots on mobile */
    }
}
