/**
 * Testimonial Block - Frontend Styles
 */

.testimonial-block {
    padding: 7.5rem 9.375rem 9.375rem;
    max-width: 1728px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease;
    position: relative;
    isolation: isolate;
    border: none;
    margin-top: -0.5rem;
    box-sizing: border-box;
}

.testimonial-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--testimonial-bg, transparent);
    box-shadow: 0 0 0 100vmax var(--testimonial-bg, transparent);
    clip-path: inset(0 -100vmax);
    z-index: -1;
}

/* Testimonial Separator - Layered SVG */
.testimonial-saparator {
    position: relative;
    display: block;
    line-height: 0;
}

.testimonial-saparator .saparator-img {
    width: 100%;
    height: auto;
    display: block;
}

.testimonial-saparator .saparator-base {
    position: relative;
    z-index: 1;
}

.testimonial-saparator .saparator-line {
    position: absolute;
    left: 0;
    top: -1.8125rem;
    z-index: 2;
    pointer-events: none;
}

/* Tablet view (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .testimonial-saparator .saparator-line {
        top: -0.8125rem;
    }
}

/* Mobile view (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .testimonial-saparator .saparator-line {
        top: -0.3125rem;
    }
}

.testimonial-separator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.0625rem;
    background-color: var(--color-testimonial-gray);
    margin: 0;
}

.testimonial-style-none {
    padding: 7.5rem 0 7.5rem 0;
}

.testimonial-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 12.5rem;
    width: 100%;
}

.testimonial-slider-nav {
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.testimonial-slider-nav.right {
    order: 3;
}

.nav-arrow {
    background: none;
    border: none;
    padding: 0;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    width: 2.25rem;
    height: 2.25rem;
    transition: background 0.15s, opacity 0.15s;
    opacity: 0.7;
}

.nav-arrow:hover:not(.disabled) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.nav-arrow.disabled {
    cursor: not-allowed;
    opacity: 0.3;
    pointer-events: none;
}

.nav-arrow.disabled:hover {
    background: none;
}

.testimonial-slider-wrapper {
    order: 2;
    width: 100%;
    max-width: none;
    flex: 1;
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.testimonial-slide {
    display: none;
    width: 100%;
    padding: 0;
    animation: fadeIn 0.5s ease-in-out;
    height: auto;
}

.testimonial-slide.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
}

.testimonial-quote-icon {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: -1.875rem;
    position:relative; 
    top:-1.875rem;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.testimonial-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    height: auto;
}

.testimonial-block blockquote {
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
    transition: color 0.3s ease;
    flex: 0 0 auto;
}

.testimonial-block blockquote p {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.875rem;
    letter-spacing: 0;
    margin: 0 0 2rem 0;
    padding: 0;
    transition: color 0.3s ease;
    text-align: left;
    overflow: hidden;
    max-height: none;
    height: 7.4375rem;
}

.testimonial-block cite {
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    transition: color 0.3s ease;
    text-align: left;
    flex-shrink: 0;
}

.testimonial-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
}

.testimonial-title {
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.9;
    font-family: 'Outfit';
    line-height: 1.625rem; 
}


.testimonial-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Block Alignment Support */
.testimonial-block.alignwide {
    max-width: 1200px;
}

.testimonial-block.alignfull {
    max-width: 100%;
}

/* Pagination dots - mobile only */
.testimonial-pagination.mobile-pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.pagination-dot {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    margin: 0;
    padding: 0;
    opacity: 0.5;
}

.pagination-dot.active {
    opacity: 1;
}

/* Responsive Design */

/* Desktop/Tablet - 768px and above */
@media (min-width: 768px) {
    .testimonial-slider {
        column-gap: 10rem;
    }
}

/* Match header-container large-screen padding logic */
@media (min-width: 1541px) {
    .testimonial-block {
        padding-left: clamp(6rem, 15.046vw, 16.25rem);
        padding-right: clamp(6rem, 15.046vw, 16.25rem);
    }
}

/* Match header-container desktop range */
@media (min-width: 1281px) and (max-width: 1540px) {
    .testimonial-block {
        padding-left: 9.375rem;
        padding-right: 9.375rem;
    }
}

/* Match header-container desktop range */
@media (min-width: 1025px) and (max-width: 1280px) {
    .testimonial-block {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (min-width: 768px) and (max-width: 1610px) {
    .testimonial-slider {
        column-gap: 7rem;
    }
}

@media (min-width: 768px) and (max-width: 999px) {
    .testimonial-slider {
        column-gap: 2rem;
    }
}

@media (min-width: 1000px) and (max-width: 1200px) {
    .testimonial-slider {
        column-gap: 5rem;
    }
}

@media (min-width: 871px) and (max-width: 1024px) {
    .testimonial-block {
        padding-left: 3.125rem;
        padding-right: 3.125rem;
    }
}

/* Match header-container 768-870 tablet rule */
@media (min-width: 768px) and (max-width: 870px) {
    .testimonial-block {
        padding-left: 3.125rem !important;
        padding-right: 3.125rem !important;
    }
}

@media (max-width: 767.98px) {
    .testimonial-block {
        padding: 2.5rem 3rem 5rem;
    }
    
    .testimonial-style-none {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }
    
    .testimonial-slider {
        flex-direction: column;
        min-height: unset;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .testimonial-slider-wrapper {
        max-width: 100%;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        /* padding: 0.625rem; */
        display: flex;
        overflow: visible;
        box-sizing: border-box;
    }
    
    .testimonial-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
        align-items: flex-start;
    }
    
    .testimonial-quote-icon {
        font-size: 3.75rem;
        margin-top: 0;
        padding-top: 0;
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: flex-start;
        order: -1;
        width: 100%;
        top: 0;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-text-wrapper {
        width: 100%;
        flex: 1;
    }
    
    .testimonial-slide {
        padding: 0;
        height: auto;
    }

    .testimonial-slide.active {
        display: flex;
        flex-direction: column;
    }
    
    .testimonial-block blockquote {
        text-align: left;
    }
    
    .testimonial-block blockquote p {
        font-family: 'Outfit', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 1.5rem;
        line-height: 1.875rem;
        letter-spacing: 0;
        text-align: left;
        letter-spacing: 0%;
        overflow: hidden;
        height: 12.4375rem;
    }
    
    .testimonial-block cite {
        text-align: left;
        align-items: flex-start;
    }
    
    .testimonial-name {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .testimonial-title {
        font-size: 1.125rem;
        line-height: 1.625rem;
    }
    
    .testimonial-pagination.mobile-pagination {
        display: flex;
        flex-shrink: 0;
        margin-top: 4.304rem;
    }
}

@media (max-width: 600px) {
        .testimonial-name {
        font-size: 1.25rem;
        line-height: 1.75rem;
        margin-bottom: 0.25rem;
    }
    .testimonial-title {
        font-size: 1.125rem;
        line-height: 1.625rem;
    }

}
@media only screen 
  and (min-device-width: 769px) 
  and (max-device-width: 1023px)
  and (-webkit-min-device-pixel-ratio: 2) {
    .testimonial-content-wrapper {
        flex-direction: row !important;
        gap: 1rem
    }
    .testimonial-text-wrapper {
        gap: 1rem;
    }
    .testimonial-slider {
        flex-direction: row;
    }
    .testimonial-block blockquote p {
        height: 11.4375rem;
    }
    .testimonial-quote-icon {
        top: -1.875rem;
        font-size: 5rem;
        width: auto;
    }
    .desktop-nav {
        display: block !important;
    }
    .testimonial-pagination.mobile-pagination {
        display: none;
    }
}