/* Impact Testimonials Blocks - Frontend Styles */

/* Force reset any inherited positioning - but allow carousel movement */
.itb-testimonials-container {
    position: relative !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Allow JavaScript to control carousel transform */

/* Wrapper to ensure proper centering */
.wp-block-impact-testimonials-carousel {
    width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important;
    max-width: none !important;
}

/* Remove vertical spacing contributed by the block wrapper or its contents */
.wp-block-impact-testimonials-carousel,
.wp-block-impact-testimonials-carousel > *,
:where(.wp-block-columns) {
    margin-bottom: 0;
}

/* Override WordPress block alignments */
.wp-block-impact-testimonials-carousel.alignwide,
.wp-block-impact-testimonials-carousel.alignfull,
.wp-block-impact-testimonials-carousel.aligncenter,
.wp-block-impact-testimonials-carousel.alignleft,
.wp-block-impact-testimonials-carousel.alignright {
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
}

/* Container Styles */

.itb-testimonials-container {
    --itb-card-bg: #febfb1;
    --itb-card-bg-rgb: 254, 167, 152;
    --itb-text-color: #ffffff;
    --itb-quote-color-rgb: 255, 255, 255;
    --itb-nav-btn-bg: #ffffff;
    --itb-nav-btn-bg-rgb: 255, 255, 255;
    --itb-nav-btn-alt-bg: #fbb6a7;
    --itb-nav-btn-alt-bg-rgb: 251, 182, 167;
    --itb-nav-icon-color: #fbb6a7;
    --itb-nav-icon-alt-color: #ffffff;
    --itb-photo-placeholder-color: #fcb9ab;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
    transform: translateX(0);
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Additional centering support for various WordPress themes */
.wp-container .itb-testimonials-container,
.wp-block-group .itb-testimonials-container,
.entry-content .itb-testimonials-container,
.wp-block-columns .itb-testimonials-container,
div[class*="container"] .itb-testimonials-container {
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}



/* Flickity dots */
.flickity-page-dots {
    bottom: -50px;
}

.flickity-page-dots .dot {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    background: #FFFFFF;
    transition: opacity 0.3s;
}

.flickity-page-dots .dot.is-selected {
    opacity: 1;
}

/* Hide old navigation */
.itb-carousel-navigation {
    display: none;
}

/* Ensure the carousel is visible */
.itb-testimonials-carousel {
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    overflow: hidden !important;
}

.itb-carousel-wrapper {
    position: relative;
    overflow: visible;
    z-index: 1;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.itb-testimonials-carousel {
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    overflow: hidden !important;
}

.itb-testimonials-carousel .flickity-viewport {
    overflow: hidden !important;
    width: 100%;
}

.itb-testimonials-carousel .flickity-slider {
    overflow: visible;
}

.itb-testimonial-slide {
    width: 100%;
    box-sizing: border-box;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Section Heading */
.itb-section-header {
    text-align: left;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.itb-section-header.itb-rtl {
    direction: rtl;
    text-align: right;
}

.itb-section-label {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f59b91;
    margin-bottom: 16px;
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
}

.itb-section-header.itb-rtl .itb-section-label {
    letter-spacing: 0;
    text-transform: none;
    font-size: 20px;
}

.itb-section-title {
    margin: 0;
    color: #433f46;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    font-family: 'Tajawal', 'Cairo', 'Playfair Display', serif;
    letter-spacing: -0.5px;
}

/* Card Wrapper - Contains both card and photo */
.itb-testimonial-card-wrapper {
    position: relative;
    width: 100%;
    max-width: calc(100vw - 60px);
    display: grid;
    grid-template-columns: auto minmax(0, 720px);
    grid-template-areas: "photo content";
    align-items: center;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
    padding: 0;
    gap: clamp(12px, 2.2vw, 28px);
    left: 0;
    right: 0;
    transform: translateX(0);
    overflow: visible;
    min-width: 0;
}

.itb-content-column {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2vw, 30px);
    min-width: 0;
    align-items: flex-start;
    grid-area: content;
    width: 100%;
    max-width: 720px;
    justify-self: center;
    overflow: hidden;
    border-radius: 48px;
}

.itb-photo-column {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: photo;
    justify-self: center;
}

/* Card Styles - Matching the design image */
.itb-testimonial-card {
    background: var(--itb-card-bg, #febfb1);
    border-radius: 48px;
    padding: clamp(20px, 3vw, 35px) clamp(18px, 3vw, 40px);
    position: relative;
    box-shadow: 0 35px 70px rgba(var(--itb-card-bg-rgb, 254, 167, 152), 0.35);
    width: 100%;
    max-width: 720px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 1;
    overflow: hidden;
    min-width: 0;
    grid-area: content;
    box-sizing: border-box;
    gap: clamp(6px, 1.2vw, 10px);
}

.itb-testimonial-content {
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
    gap: clamp(10px, 1.5vw, 16px);
}

/* Testimonial Body */
.itb-testimonial-body {
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    width: 100%;
    text-align: right;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
    order: 0;
}

/* Client Name - AT THE TOP - RIGHT ALIGNED */
.itb-client-name {
    color: var(--itb-text-color, #fff8ec);
    font-size: clamp(20px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: clamp(6px, 0.8vw, 12px);
    font-family: 'Tajawal', 'Cairo', 'Playfair Display', serif;
    line-height: 1.15;
    text-align: right;
    letter-spacing: -0.5px;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Testimonial Text - Below the name - RIGHT ALIGNED */
.itb-testimonial-text {
    color: var(--itb-text-color, rgba(255, 255, 255, 0.96));
    font-size: clamp(12px, 1.8vw, 16px);
    line-height: clamp(1.4, 1.7, 1.9);
    margin-bottom: clamp(8px, 1.2vw, 16px);
    font-weight: 400;
    text-align: right;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    overflow: hidden;
}

/* Client Title */
.itb-client-title {
    color: var(--itb-text-color, rgba(255, 255, 255, 0.95));
    font-size: clamp(11px, 1.5vw, 14px);
    font-weight: 500;
    margin-bottom: 0;
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    text-align: right;
    width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.itb-rating {
    color: var(--itb-text-color, #ffd56a);
    font-size: clamp(12px, 2vw, 18px);
    letter-spacing: clamp(0.5px, 0.3vw, 3px);
    text-align: right;
    margin-bottom: clamp(6px, 1vw, 12px);
    width: 100%;
    overflow: hidden;
}

/* Client Photo - OUTSIDE card, on the RIGHT */
.itb-client-photo {

    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: clamp(180px, 20vw, 180px);
    height: clamp(180px, 20vw, 180px);
    aspect-ratio: 1 / 1;
}

.itb-client-photo::before,
.itb-client-photo::after {
    content: '';
    position: absolute;
    width: clamp(64px, 64px, 64px);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: -1;
}

.itb-client-photo::before {
    height: clamp(300px, 300px, 300px);
    left: -10px;
    top: -80px;
}

.itb-client-photo::after {
    height: clamp(150px, 150px, 150px);
    left: -90px;
    top: -80px;
}

.itb-testimonial-slide.itb-rtl .itb-client-photo::before {
    left: auto;
    right: -10%;
}

.itb-testimonial-slide.itb-rtl .itb-client-photo::after {
    left: auto;
    right: -95px;
}

.itb-client-photo img {
    width: 100%;
    max-width: 180px;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* border: 14px solid #FFFFFF; */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    display: block;
}

.itb-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--itb-photo-placeholder-color, #fcb9ab);
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 14px solid #fcb9ab; */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.itb-photo-initials {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
}

/* Client Info */
.itb-client-info {
    margin-top: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
    align-items: flex-end;
    width: 100%;
    overflow: hidden;
}

/* Quote Marks */
.itb-quote-mark {
    font-size: clamp(45px, 8vw, 80px);
    font-family: var(--wp--preset--font-family--tajawal), 'Playfair Display', serif;
    font-weight: 700;
    color: rgba(var(--itb-quote-color-rgb, 255, 255, 255), 0.2);
    line-height: 0.8;
    pointer-events: none;
    z-index: 1;
    position: static;
    text-align: right;
}

.itb-quote-start {
    order: -1;
    text-align: right;
    align-self: flex-end;
    margin-bottom: clamp(5px, 1vw, 10px);
}

.itb-quote-end {
    transform: rotate(180deg);
    text-align: left;
    align-self: flex-start;
    margin-top: clamp(5px, 1vw, 10px);
}

/* Navigation Buttons */
.itb-carousel-navigation {
    /* Place navigation as a centered block below the carousel content
       instead of overlaying the card. It will flow after the carousel
       wrapper in the document and be horizontally centered. */
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px; /* space between card and nav buttons */
    z-index: 10;
    padding-bottom: 10px;
}

.itb-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--itb-nav-btn-bg-rgb, 255, 255, 255), 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--itb-nav-icon-color, #fbb6a7);
}

.itb-prev-btn svg path,
.itb-next-btn svg path {
    fill: currentColor;
}

.itb-nav-btn:hover {
    /* background: #FFFFFF; */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.itb-nav-btn:active {
    transform: translateY(0);
}

.itb-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.itb-nav-arrow {
    font-size: 24px;
    font-weight: bold;
    line-height: 0;
    color: inherit;
}

.itb-prev-btn {
    background: rgba(var(--itb-nav-btn-bg-rgb, 255, 255, 255), 0.9);
}

.itb-next-btn {
    background: rgba(var(--itb-nav-btn-alt-bg-rgb, 251, 182, 167), 0.95);
    color: var(--itb-nav-icon-alt-color, #ffffff);
}

.itb-testimonial-slide:not(.itb-rtl) .itb-testimonial-content,
.itb-testimonial-slide:not(.itb-rtl) .itb-testimonial-body,
.itb-testimonial-slide:not(.itb-rtl) .itb-client-name,
.itb-testimonial-slide:not(.itb-rtl) .itb-testimonial-text,
.itb-testimonial-slide:not(.itb-rtl) .itb-client-title,
.itb-testimonial-slide:not(.itb-rtl) .itb-client-info,
.itb-testimonial-slide:not(.itb-rtl) .itb-rating {
    text-align: left;
}

.itb-testimonial-slide:not(.itb-rtl) .itb-client-info {
    align-items: flex-start;
}

.itb-testimonial-slide:not(.itb-rtl) .itb-section-header {
    direction: ltr;
    text-align: left;
}

.itb-testimonial-slide.itb-rtl .itb-testimonial-card-wrapper {
    grid-template-columns: minmax(0, 0.8fr) auto;
    grid-template-areas: "content photo";
}

.itb-testimonial-slide.itb-rtl .itb-content-column {
    align-items: flex-end;
}

/* RTL (Arabic) Support */
.itb-rtl .itb-testimonial-text {
    direction: rtl;
}

.itb-rtl .itb-client-name,
.itb-rtl .itb-client-title {
    direction: rtl;
}

.itb-rtl .itb-quote-start {
    left: 60px;
    right: auto;
}

.itb-rtl .itb-quote-end {
    right: 60px;
    left: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .itb-testimonials-container {
        padding: 0;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .itb-testimonial-card-wrapper {
        gap: clamp(20px, 4vw, 32px);
    }
     .itb-client-photo::before {
        height: clamp(300px, 300px, 300px);
        left: 5%;
        transform: translateX(-50%);
    }
    
    .itb-client-photo::after {
        height: clamp(150px, 150px, 150px);
        left: -18%;
        transform: translateX(-50%);
    }

    .itb-client-photo::before {
        top: 0px;
        height: 200px;
        width: 32px;
    }

    .itb-client-photo::after {
        top: 0px;
        height: 120px;
        width: 32px;
    }
    .itb-testimonial-slide.itb-rtl .itb-client-photo::before {
        left: auto;
        right: -15% ;
    }

    .itb-testimonial-slide.itb-rtl .itb-client-photo::after {
        left: auto;
        right: -70px;
    }
}

@media (max-width: 968px) {
    .itb-testimonials-container {
        padding: 0;
        margin: 0 auto;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .itb-section-header {
        margin-bottom: clamp(30px, 4vw, 40px);
    }

    .itb-content-column {
        gap: clamp(20px, 3vw, 28px);
    }
}

@media (max-width: 768px) {
    .itb-testimonials-container {
        padding: 0;
        margin: 0 auto;
        border-radius: 0;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible;
    }
    
    .itb-carousel-wrapper {
        height: auto;
        min-height: 600px;
        overflow: visible;
    }

    .itb-section-header {
        margin-bottom: 40px;
    }

    .itb-section-title {
        font-size: 34px;
    }

    .itb-section-label {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .itb-testimonial-slide {
        padding: 20px 10px;
        width: 100%;
        overflow: visible;
    }

    /* Stack layout on mobile */
    .itb-testimonial-card-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
        gap: 16px;
        max-width: 95%;
        overflow: visible;
        align-items: center;
    }

    .itb-content-column {
        width: 100%;
        align-items: center;
        overflow: visible;
    }

    .itb-content-column .itb-section-header {
        text-align: center;
    }

    .itb-testimonial-card {
        margin: 0 auto !important;
        padding: 30px 20px;
        border-radius: 24px;
        min-height: auto;
        text-align: center !important;
        max-width: 100%;
        overflow: visible;
        width: 100%;
    }

    .itb-testimonial-content,
    .itb-testimonial-body {
        width: 100%;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .itb-client-name,
    .itb-testimonial-text,
    .itb-client-title,
    .itb-client-info,
    .itb-rating {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .itb-client-photo {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 180px;
        height: 180px;
        margin: 0 auto;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }

    .itb-client-photo::before {
        left: 5%;
        transform: translateX(-50%);
    }
    
    .itb-client-photo::after {
        left: -35px;
        transform: translateX(-50%);
    }

    .itb-client-photo::before {
        top: -15px;
        height: 160px;
        width: 32px;
    }

    .itb-client-photo::after {
        top: -15px;
        height: 120px;
        width: 32px;
    }

    .itb-testimonial-slide.itb-rtl .itb-client-photo::before {
        left: auto;
        right: -15% ;
    }

    .itb-testimonial-slide.itb-rtl .itb-client-photo::after {
        left: auto;
        right: -70px;
    }

    .itb-client-photo img,
    .itb-photo-placeholder {
        border-width: 10px;
    }

    .itb-client-name {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .itb-rating {
        font-size: 18px;
        letter-spacing: 3px;
        margin-bottom: 16px;
    }

    .itb-testimonial-text {
        font-size: 16px;
        line-height: 1.75;
    }

    .itb-client-title {
        font-size: 15px;
    }

    .itb-quote-mark {
        font-size: 72px;
    }

    .itb-quote-start {
        top: 12px;
        left: 24px;
        right: auto;
    }

    .itb-quote-end {
        bottom: 12px;
        right: 24px;
        left: auto;
    }

    .itb-carousel-navigation {
        /* Slightly reduce top margin on small screens */
        margin-top: 16px;
    }

    .itb-nav-btn {
        width: 45px;
        height: 45px;
    }

    .itb-nav-arrow {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .itb-testimonials-container {
        padding: 0;
        margin: 0 auto;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible;
    }
    
    .itb-carousel-wrapper {
        height: auto;
        min-height: 500px;
        overflow: visible;
    }

    .itb-section-header {
        margin-bottom: 32px;
    }
    
    .itb-section-title {
        font-size: 28px;
    }

    .itb-section-label {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .itb-testimonial-slide {
        padding: 15px 8px;
        width: 100%;
        overflow: visible;
    }

    .itb-testimonial-card-wrapper {
        flex-direction: column;
        padding: 0 10px;
        gap: 14px;
        max-width: 95%;
        overflow: visible;
    }

    .itb-content-column {
        width: 100%;
        overflow: visible;
    }
    
    .itb-testimonial-card {
        padding: 25px 18px;
        min-height: auto;
        max-width: 100%;
        overflow: visible;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .itb-testimonial-content,
    .itb-testimonial-body {
        width: 100%;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .itb-client-photo {
        width: 140px;
        height: 140px;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }
    
    .itb-client-photo img,
    .itb-photo-placeholder {
        border-width: 8px;
    }
    
    .itb-client-name {
        font-size: 24px;
        margin-bottom: 12px;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .itb-testimonial-text {
        font-size: 14px;
        line-height: 1.6;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .itb-client-title {
        font-size: 13px;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .itb-rating {
        font-size: 16px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    .itb-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .itb-nav-arrow {
        font-size: 18px;
    }
}

/* Loading State */
.itb-testimonials-container.loading {
    opacity: 0.7;
}

.itb-testimonials-container.loading .itb-nav-btn {
    pointer-events: none;
}

/* Error State */
.itb-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    margin: 20px 0;
}

/* Multiple Items Layout Support */
.itb-testimonials-container[data-items-to-show="2"] .itb-testimonial-slide {
    min-width: 50%;
}

.itb-testimonials-container[data-items-to-show="3"] .itb-testimonial-slide {
    min-width: 33.333%;
}

.itb-testimonials-container[data-items-to-show="2"] .itb-testimonial-card,
.itb-testimonials-container[data-items-to-show="3"] .itb-testimonial-card {
    max-width: 100%;
    padding: 45px 35px;
    min-height: 420px;
    flex: 1 1 auto;
}

.itb-testimonials-container[data-items-to-show="2"] .itb-testimonial-card-wrapper,
.itb-testimonials-container[data-items-to-show="3"] .itb-testimonial-card-wrapper {
    padding: 0 20px;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "photo"
        "content";
    gap: 18px;
    justify-items: center;
}

.itb-testimonials-container[data-items-to-show="2"] .itb-client-photo,
.itb-testimonials-container[data-items-to-show="3"] .itb-client-photo {
    width: 180px;
    height: 180px;
    margin-top: 0;
}

.itb-testimonials-container[data-items-to-show="2"] .itb-client-name,
.itb-testimonials-container[data-items-to-show="3"] .itb-client-name {
    font-size: 36px;
}

.itb-testimonials-container[data-items-to-show="2"] .itb-testimonial-text,
.itb-testimonials-container[data-items-to-show="3"] .itb-testimonial-text {
    font-size: 16px;
}

/* Smooth transitions */
.itb-testimonials-carousel {
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Focus styles for accessibility */
.itb-nav-btn:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* Shuffle animation for testimonial cards */
@keyframes shuffleIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.itb-testimonial-slide.active .itb-testimonial-card {
    animation: shuffleIn 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Pause animation on hover */
.itb-testimonials-container:hover .itb-testimonials-carousel {
    animation-play-state: paused;
    color: var(--itb-text-color, #ffffff);
}