/**
 * Video Testimonials Section Styles
 * 
 * Styles for displaying student video testimonials on batch pages
 */

/* Video Testimonials Section */
.edmark-video-testimonials {
    position: relative;
}

.edmark-video-testimonials .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.edmark-video-testimonials .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.edmark-video-testimonials .section-header p {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* Video Testimonials Grid */
.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Video Testimonial Card */
.video-testimonial-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Video Wrapper */
.video-testimonial-card .video-wrapper {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-testimonial-card .video-wrapper iframe,
.video-testimonial-card .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.video-testimonial-card .video-wrapper video {
    object-fit: cover;
}

/* Video Testimonial Info */
.video-testimonial-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-testimonial-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.4;
}

.video-testimonial-info .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .edmark-video-testimonials .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .video-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .edmark-video-testimonials {
        padding: 40px 20px !important;
    }
    
    .edmark-video-testimonials .section-header {
        margin-bottom: 30px;
    }
    
    .edmark-video-testimonials .section-header h2 {
        font-size: 24px;
    }
    
    .edmark-video-testimonials .section-header p {
        font-size: 16px;
    }
    
    .video-testimonial-info {
        padding: 16px;
    }
    
    .video-testimonial-info h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .video-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .video-testimonial-card .video-wrapper {
        aspect-ratio: 16/9;
    }
}

/* Loading State */
.video-wrapper.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.video-wrapper.loading::after {
    content: "Loading video...";
    color: #6b7280;
    font-size: 16px;
}

/* No Video State */
.video-wrapper .no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
}

/* Video Play Button Overlay (for thumbnails) */
.video-wrapper .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-wrapper .play-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-wrapper .play-overlay::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #000;
    margin-left: 4px;
}

/* Accessibility */
.video-testimonial-card:focus-within {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .video-testimonial-card .video-wrapper {
        display: none;
    }
    
    .video-testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
