/**
 * Reel Testimonial Styles
 */

/* Main slider container */
.reel-testimonial-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    --card-gap: 10px; /* Default gap between cards */
}

/* Gap size variations */
.reel-testimonial-slider[data-gap="small"] {
    --card-gap: 5px;
}

.reel-testimonial-slider[data-gap="medium"] {
    --card-gap: 10px;
}

.reel-testimonial-slider[data-gap="large"] {
    --card-gap: 20px;
}

.reel-testimonial-slider[data-gap="extra-large"] {
    --card-gap: 30px;
}

/* Slider track */
.reel-testimonial-slider .slick-track {
    display: flex;
    align-items: stretch;
}

/* Individual slide */
.reel-testimonial-slide {
    padding: 0 var(--card-gap);
    box-sizing: border-box;
    height: auto;
}

/* Video card container */
.reel-testimonial-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.reel-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Video container */
.reel-testimonial-video {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
}

/* Aspect ratio video container */
.reel-testimonial-video[style*="padding-bottom"] {
    height: 0 !important;
}

/* Video iframe positioning for aspect ratio */
.reel-testimonial-video[style*="padding-bottom"] iframe,
.reel-testimonial-video[style*="padding-bottom"] video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-testimonial-video iframe,
.reel-testimonial-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

/* Self-hosted video controls - completely hidden */
.reel-testimonial-video .reel-video-player {
    transition: all 0.3s ease;
}

.reel-testimonial-video .reel-video-player::-webkit-media-controls-panel {
    display: none !important;
}

/* Firefox video controls */
.reel-testimonial-video .reel-video-player::-moz-media-controls {
    display: none !important;
}

/* Hide all video controls */
.reel-testimonial-video .reel-video-player::-webkit-media-controls {
    display: none !important;
}

.reel-testimonial-video .reel-video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Prevent body scroll when popup is open */
body.reel-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Video Popup Overlay Styles */
.reel-video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0 80px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reel-video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reel-video-popup-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: 85vh;
    background: #000;
    border-radius: 12px;
    overflow: visible;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    aspect-ratio: 9/16;
    max-width: calc(85vh * 9/16);
}

/* Close button styles */
.reel-video-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.reel-video-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile fullscreen popup */
@media (max-width: 768px) and (min-width: 481px) {
    .reel-video-popup-overlay {
        padding: 0;
        background: #000;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .reel-video-popup-modal {
        width: 100vw;
        min-height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        aspect-ratio: unset;
        overflow: visible;
        position: relative;
    }
}

/* Mobile popup for smaller screens */
@media (max-width: 480px) {
    .reel-video-popup-overlay {
        padding: 0;
        background: #000;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .reel-video-popup-modal {
        width: 90vw;
        min-height: 100vh;
        max-width: 90vw;
        border-radius: 0;
        aspect-ratio: unset;
        overflow: visible;
        position: relative;
        margin: 0 auto;
    }
    
    .reel-video-popup-overlay.active .reel-video-popup-modal {
        transform: scale(1);
    }
    
    .reel-video-popup-content {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
        position: relative;
        height: 100vh;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .reel-video-popup-content video,
    .reel-video-popup-content iframe {
        width: 100vw;
        height: 100vh;
        max-height: none;
        object-fit: cover;
        border: none;
        display: block;
    }
    
    /* Ensure video fills screen completely without black spaces */
    .reel-video-popup-content video {
        object-fit: cover;
    }
    
    .reel-video-popup-content iframe {
        object-fit: cover;
    }
    
    /* Enable vertical scrolling for popup content on mobile */
    .reel-video-popup-overlay[data-scroll-direction="vertical"] .reel-video-popup-content {
        flex-direction: column;
        overflow-y: auto;
        height: 100vh;
    }
    
    .reel-video-popup-overlay[data-scroll-direction="vertical"] .reel-video-popup-content video,
    .reel-video-popup-overlay[data-scroll-direction="vertical"] .reel-video-popup-content iframe {
        height: auto;
        min-height: 100vh;
        flex-shrink: 0;
    }
    
    /* Mobile close button - top left */
    .reel-video-popup-close {
        position: fixed;
        top: 20px;
        left: 20px;
        right: auto;
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        width: 44px;
        height: 44px;
        font-size: 22px;
        z-index: 10003;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .reel-video-popup-close:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }
    
    /* Hide navigation arrows on mobile */
    .reel-popup-nav {
        display: none;
    }
    
    /* Hide navigation arrows specifically for vertical scroll */
    .reel-video-popup-overlay.popup-scroll-vertical .reel-popup-nav {
        display: none !important;
    }
    
    /* Show navigation arrows only for horizontal scroll */
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav {
        display: flex;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        width: 50px;
        height: 50px;
        font-size: 24px;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 10002;
        transition: all 0.3s ease;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav.prev {
        left: 15px;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav.next {
        right: 15px;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-50%) scale(1.1);
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav:before {
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav.prev:before {
        border-width: 8px 12px 8px 0;
        border-color: transparent #000 transparent transparent;
        margin-left: -2px;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-popup-nav.next:before {
        border-width: 8px 0 8px 12px;
        border-color: transparent transparent transparent #000;
        margin-right: -2px;
    }
    
    /* Removed vertical slider styles - main slider should always be horizontal */
    
    /* Popup scroll direction styles */
    .reel-video-popup-overlay.popup-scroll-horizontal {
        overflow-y: hidden;
        overflow-x: auto;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-video-popup-modal {
        width: auto;
        min-width: 100vw;
        min-height: 100vh;
        display: flex;
        flex-direction: row;
    }
    
    .reel-video-popup-overlay.popup-scroll-horizontal .reel-video-popup-content {
        min-width: 100vw;
        min-height: 100vh;
        flex-shrink: 0;
        padding: 80px 20px 20px;
    }
    
    .reel-video-popup-overlay.popup-scroll-vertical {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .reel-video-popup-overlay.popup-scroll-vertical .reel-video-popup-modal {
        width: 100vw;
        min-height: 100vh;
    }
    
    .reel-video-popup-overlay.popup-scroll-vertical .reel-video-popup-content {
        min-height: 100vh;
        padding: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }
    
    /* Vertical scroll video items */
    .reel-video-popup-overlay.popup-scroll-vertical .popup-video-item {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: #000;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
        overflow: hidden;
    }
    
    .reel-video-popup-overlay.popup-scroll-vertical .popup-video-item video,
    .reel-video-popup-overlay.popup-scroll-vertical .popup-video-item iframe {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        border: none;
    }
}

@media (min-width: 1200px) {
    .reel-video-popup-modal {
        height: 90vh;
        max-width: calc(90vh * 9/16);
        width: auto;
    }
}

.reel-video-popup-overlay.active .reel-video-popup-modal {
    transform: scale(1);
}



.reel-video-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.reel-video-popup-content video,
.reel-video-popup-content iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    object-fit: cover;
}

/* Popup Navigation Arrows */
.reel-popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10002;
    opacity: 0.8;
}

.reel-popup-nav:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.reel-popup-nav.prev {
    left: -60px;
}

.reel-popup-nav.next {
    right: -60px;
}

.reel-popup-nav:before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.reel-popup-nav.prev:before {
    border-width: 8px 12px 8px 0;
    border-color: transparent #333 transparent transparent;
    margin-left: -2px;
}

.reel-popup-nav.next:before {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #333;
    margin-right: -2px;
}

/* Hide arrows when there's only one video */
.reel-video-popup-overlay[data-total="1"] .reel-popup-nav {
    display: none;
}

/* Show controls in popup */
.reel-video-popup-content video::-webkit-media-controls-panel {
    display: flex !important;
}

.reel-video-popup-content video::-webkit-media-controls {
    display: flex !important;
}

.reel-video-popup-content video::-webkit-media-controls-enclosure {
    display: flex !important;
}

.reel-video-popup-content video::-moz-media-controls {
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reel-video-popup-modal {
        max-width: 70vw; /* Wider on tablets for better viewing */
        max-height: 95vh;
    }
    

}

@media (max-width: 480px) {
    .reel-video-popup-modal {
        max-width: 100vw; /* Almost full width on mobile */
        max-height: 85vh;
    }
    
    .reel-video-popup-content {
        padding-bottom: 177.78%; /* Keep 9:16 ratio on mobile */
    }
}

/* Add cursor pointer to videos to indicate they're clickable */
.reel-testimonial-video video,
.reel-testimonial-video iframe {
    cursor: pointer;
}

.reel-testimonial-video {
    position: relative;
}

/* Video preview hint styling */
.reel-video-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    animation: hintPulse 0.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes hintPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive hint styling */
@media (max-width: 768px) {
    .reel-video-hint {
        font-size: 12px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .reel-video-hint {
        font-size: 11px;
        padding: 8px 14px;
    }
}

/* Add a subtle overlay hint that videos are clickable */
.reel-testimonial-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.reel-testimonial-video::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.reel-testimonial-video:hover::after,
.reel-testimonial-video:hover::before {
    opacity: 1;
}

/* General video controls hiding for other browsers */
.reel-testimonial-video .reel-video-player {
    position: relative;
}

.reel-testimonial-video .reel-video-player::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.reel-testimonial-video:hover .reel-video-player::before {
    background: rgba(0, 0, 0, 0.1);
}

/* Video placeholder */
.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
    border-radius: 8px;
}

/* Content area */
.reel-testimonial-card .reel-testimonial-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 15px 0 10px 0;
    line-height: 1.4;
}

.reel-testimonial-card .reel-testimonial-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

/* Author information */
.reel-testimonial-author {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.reel-testimonial-author .author-name {
    display: block;
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    margin-bottom: 2px;
}

.reel-testimonial-author .author-position {
    display: block;
    color: #999999;
    font-size: 12px;
    font-style: italic;
}

/* Slick slider customizations */
.reel-testimonial-slider .slick-dots {
    bottom: -50px;
    text-align: center;
}

.reel-testimonial-slider .slick-dots li {
    margin: 0 5px;
}

.reel-testimonial-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    font-size: 0;
    transition: background 0.3s ease;
}

.reel-testimonial-slider .slick-dots li.slick-active button {
    background: #007cba;
}

.reel-testimonial-slider .slick-dots li button:hover {
    background: #005a87;
}

/* Navigation arrows */
.reel-testimonial-slider .slick-prev,
.reel-testimonial-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 124, 186, 0.9);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.reel-testimonial-slider .slick-prev:hover,
.reel-testimonial-slider .slick-next:hover {
    background: rgba(0, 90, 135, 1);
    transform: translateY(-50%) scale(1.1);
}

.reel-testimonial-slider .slick-prev {
    left: -20px;
}

.reel-testimonial-slider .slick-next {
    right: -20px;
}

.reel-testimonial-slider .slick-prev:before,
.reel-testimonial-slider .slick-next:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
}

.reel-testimonial-slider .slick-prev:before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.reel-testimonial-slider .slick-next:before {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* Instagram embed specific styles */
.reel-testimonial-video .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}

/* Instagram Reel specific styles (9:16 aspect ratio) */
.reel-testimonial-video.instagram-reel {
    width: 600px;
    height: 1067px;
    max-width: 100%;
    aspect-ratio: 9/16;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.reel-testimonial-video.instagram-reel .instagram-reel-container {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
}

.reel-testimonial-video.instagram-reel .instagram-reel-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    overflow: hidden;
}

/* Hide Instagram UI elements */
.reel-testimonial-video.instagram-reel .instagram-media {
    width: 600px !important;
    height: 1067px !important;
    max-width: 100% !important;
    aspect-ratio: 9/16 !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 12px;
}

/* Instagram Reel card adjustments */
.reel-testimonial-card:has(.instagram-reel) {
    width: auto;
    max-width: 600px;
    height: auto;
}

.reel-testimonial-slide:has(.instagram-reel) {
    display: flex;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .reel-testimonial-slider .slick-prev {
        left: -15px;
    }
    
    .reel-testimonial-slider .slick-next {
        right: -15px;
    }
    
    /* Mobile thumbnail layout fixes */
    .reel-testimonial-slide {
        padding: 0 5px;
    }
    
    .reel-testimonial-card {
        margin: 0;
        width: 100%;
        max-width: none;
        min-height: auto;
    }
    
    .reel-testimonial-video {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        border-radius: 8px;
    }
    
    .reel-testimonial-card .reel-testimonial-title {
        font-size: 14px;
        line-height: 1.3;
        padding: 12px 15px 8px;
        margin: 0;
    }
    
    .reel-testimonial-card .reel-testimonial-description {
        font-size: 12px;
        line-height: 1.4;
        padding: 0 15px 12px;
        margin: 0;
    }
    
    .reel-testimonial-author {
        padding: 0 15px 15px;
        margin: 0;
    }
    
    /* Instagram Reel mobile adjustments */
    .reel-testimonial-video.instagram-reel {
        width: 100%;
        height: 180px;
    }
    
    .reel-testimonial-video.instagram-reel .instagram-reel-container {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
    
    .reel-testimonial-video.instagram-reel .instagram-reel-container iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
    
    .reel-testimonial-video.instagram-reel .instagram-media {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .reel-testimonial-slider .slick-prev,
    .reel-testimonial-slider .slick-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .reel-testimonial-slider .slick-prev {
        left: -10px;
    }
    
    .reel-testimonial-slider .slick-next {
        right: -10px;
    }
    
    /* Small mobile thumbnail optimizations */
    .reel-testimonial-slide {
        padding: 0 3px;
    }
    
    .reel-testimonial-video {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }
    
    .reel-testimonial-card .reel-testimonial-title {
        font-size: 13px;
        padding: 10px 12px 6px;
        line-height: 1.3;
    }
    
    .reel-testimonial-card .reel-testimonial-description {
        font-size: 11px;
        padding: 0 12px 10px;
        line-height: 1.4;
    }
    
    .reel-testimonial-author {
        padding: 0 12px 12px;
    }
    
    .reel-testimonial-author .author-name {
        font-size: 12px;
    }
    
    .reel-testimonial-author .author-position {
        font-size: 10px;
    }
    
    /* Instagram Reel small mobile adjustments */
    .reel-testimonial-video.instagram-reel {
        width: 100%;
        height: 160px;
    }
    
    .reel-testimonial-video.instagram-reel .instagram-reel-container {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
    
    .reel-testimonial-video.instagram-reel .instagram-reel-container iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
    
    .reel-testimonial-video.instagram-reel .instagram-media {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
    
    .reel-testimonial-card:has(.instagram-reel) {
        max-width: calc(50vw - 20px);
    }
}

/* Loading state */
.reel-testimonial-slider.loading {
    opacity: 0.7;
    pointer-events: none;
}

.reel-testimonial-slider.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ensure consistent card heights */
.reel-testimonial-slider .slick-track {
    display: flex;
}

.reel-testimonial-slider .slick-slide {
    height: auto;
    display: flex;
}

.reel-testimonial-slider .slick-slide > div {
    height: 100%;
    width: 100%;
}

.reel-testimonial-slide {
    display: flex !important;
    height: auto;
}

/* Focus states for accessibility */
.reel-testimonial-slider .slick-prev:focus,
.reel-testimonial-slider .slick-next:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.reel-testimonial-slider .slick-dots li button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .reel-testimonial-card {
        border: 2px solid #000;
    }
    
    .reel-testimonial-slider .slick-prev,
    .reel-testimonial-slider .slick-next {
        background: #000;
        border: 2px solid #fff;
    }
    
    .reel-testimonial-slider .slick-dots li button {
        background: #000;
        border: 1px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reel-testimonial-card {
        transition: none;
    }
    
    .reel-testimonial-slider .slick-prev,
    .reel-testimonial-slider .slick-next {
        transition: none;
    }
    
    .reel-testimonial-slider .slick-dots li button {
        transition: none;
    }
    
    .reel-testimonial-slider.loading::after {
        animation: none;
    }
}