/* Responsive Video Styles - Smaller and Mobile-Friendly */

/* Featured Videos Section */
.promo-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="promoPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ff6b9d" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23promoPattern)"/></svg>');
}

.promo-banner .section-header {
    position: relative;
    z-index: 2;
}

.promo-banner .section-header h2 {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

/* Compact, Fully Visible Video Grid */
.promo-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Compact Video Containers - Fully Visible */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 180px;
    max-height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-900);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
}

.video-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    transition: var(--transition-normal);
}

.video-container:hover video {
    transform: scale(1.01);
}

/* Enhanced Video Info Section */
.video-info {
    background: var(--white);
    padding: 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    border-top: none;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    font-family: var(--font-accent);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    color: var(--light-text);
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design - Always Fully Visible Videos */
@media (max-width: 1200px) {
    .promo-videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
        max-width: 1000px;
    }
    
    .video-container {
        min-height: 170px;
        max-height: 190px;
    }
}

@media (max-width: 1024px) {
    .promo-banner {
        padding: 60px 0;
    }
    
    .promo-videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
        max-width: 900px;
    }
    
    .video-container {
        min-height: 160px;
        max-height: 180px;
    }
    
    .video-info {
        padding: 18px;
        min-height: 75px;
    }
    
    .video-info h3 {
        font-size: 1.05rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 50px 0;
    }
    
    .promo-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 600px;
    }
    
    .video-container {
        min-height: 150px;
        max-height: 170px;
    }
    
    .video-info {
        padding: 16px;
        min-height: 70px;
    }
    
    .video-info h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .promo-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        max-width: 500px;
    }
    
    .video-container {
        min-height: 140px;
        max-height: 160px;
    }
    
    .video-info {
        padding: 14px;
        min-height: 65px;
    }
    
    .video-info h3 {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    
    .video-info p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        padding: 40px 0;
    }
    
    .promo-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
    }
    
    .video-container {
        min-height: 200px;
        max-height: 220px;
        aspect-ratio: 16/9;
    }
    
    .video-info {
        padding: 18px;
        min-height: 80px;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }
    
    .video-info p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 360px) {
    .promo-videos-grid {
        max-width: 320px;
    }
    
    .video-container {
        min-height: 180px;
        max-height: 200px;
    }
    
    .video-info {
        padding: 16px;
        min-height: 75px;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}

/* Loading State for Videos */
.video-container .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
}

/* Video Play Button Overlay */
.video-container::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.video-container:hover::after {
    opacity: 1;
}

/* Ensure videos don't break layout */
.promo-videos-grid > * {
    min-width: 0;
    min-height: 0;
}

/* Fix for video aspect ratio */
.video-container video {
    aspect-ratio: 16/9;
    object-fit: cover;
}

@media (max-width: 480px) {
    .video-container video {
        aspect-ratio: 4/3;
    }
}/* Ove
rride any existing large video styles */
.promo-videos-grid,
#promoVideosContainer {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 40px !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.video-container,
.promo-videos-grid .video-container {
    height: 160px !important;
    max-height: 160px !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
}

/* Force smaller sizes on all screen sizes */
@media (min-width: 1201px) {
    .promo-videos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1000px !important;
    }
    
    .video-container {
        height: 160px !important;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .promo-videos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 750px !important;
    }
    
    .video-container {
        height: 150px !important;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .promo-videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 500px !important;
    }
    
    .video-container {
        height: 140px !important;
    }
}

@media (max-width: 480px) {
    .promo-videos-grid {
        grid-template-columns: 1fr !important;
        max-width: 300px !important;
    }
    
    .video-container {
        height: 180px !important;
    }
}

/* Ensure proper spacing and layout */
.modern-videos .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.modern-videos .section-header {
    margin-bottom: 40px !important;
}

.modern-videos .section-cta {
    margin-top: 40px !important;
    text-align: center !important;
}/
* Critical Override - Ensure Videos Are Always Fully Visible */
.promo-videos-grid,
#promoVideosContainer {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 40px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.video-container,
.promo-videos-grid .video-container {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    min-height: 180px !important;
    max-height: 200px !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    background: #000 !important;
    border: 2px solid var(--gray-200) !important;
}

/* Force object-fit: contain for full video visibility */
.video-container video,
.promo-videos-grid .video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* Responsive overrides for full visibility */
@media (max-width: 768px) {
    .promo-videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        max-width: 600px !important;
    }
    
    .video-container {
        min-height: 150px !important;
        max-height: 170px !important;
    }
}

@media (max-width: 480px) {
    .promo-videos-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 350px !important;
    }
    
    .video-container {
        min-height: 200px !important;
        max-height: 220px !important;
    }
}