/* Video Testimonials Section */
.video-testimonials-section {
    padding: var(--spacing-xl) 0;
    background: #050505;
    /* Slightly lighter than pure black for contrast */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-grid {
    display: flex;
    /* Flexbox for slider on mobile */
    overflow-x: auto;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-bottom: 20px;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for cleaner look if desired, but keep functionality */
.video-grid::-webkit-scrollbar {
    height: 6px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.video-card {
    min-width: 280px;
    /* Ensure width for slider */
    width: 80%;
    /* Show part of next card on mobile */
    flex-shrink: 0;
    scroll-snap-align: center;
    background: #101010;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Desktop Grid Override */
@media (min-width: 768px) {
    .video-grid {
        display: grid;
        overflow-x: visible;
        /* reset */
        padding-bottom: 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .video-card {
        width: auto;
        /* Reset width */
        min-width: 0;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on large screens */
    }
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Facade / Thumbnail Styles */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-card:hover .video-placeholder {
    transform: scale(1.05);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
    /* visually align arrow */
}

.video-card:hover .play-button {
    background: #ec4899;
    /* Pink accent on hover */
    border-color: #ec4899;
    transform: scale(1.1);
}

.video-label {
    padding: var(--spacing-md) var(--spacing-md);
    /* Increased Padding */
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    text-align: center;
    background: #171717;
    position: relative;
    /* Ensure it stays above placeholder scale */
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
    /* More breathing room */
}

.client-role-xs {
    font-size: 0.8rem;
    /* Slightly larger for readability */
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 6px;
    /* More separation */
    display: block;
    line-height: 1.4;
}