/* Video Gallery Page Styles */

/* Reset and Base Styles */
.video-gallery-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

.page-main {
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Header Section */
.video-hero-header {
    margin-top: 100px; /* Increased to ensure full clearance of sticky header */
    padding: 100px 0 80px; /* Increased padding for better visibility */
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.video-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.video-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.video-hero-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.video-hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 32px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.video-hero-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
}

.video-hero-description p {
    margin: 0 0 20px 0;
}

.video-hero-description p:last-child {
    margin-bottom: 0;
}

.video-hero-subheading {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.video-hero-tagline {
    font-style: italic;
    color: #6b7280;
    margin-top: 24px !important;
}

/* Featured Video Section */
.featured-video-section {
    padding: 80px 0 40px;
    background: #ffffff;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    position: relative;
}

.featured-video-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.featured-video-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    overflow: hidden;
}

.featured-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Tutorials Grid Section */
.tutorials-grid-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

/* Video Card */
.video-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

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

.video-title {
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .video-hero-header {
        margin-top: 90px;
        padding: 60px 0 50px;
    }
    
    .video-hero-container {
        padding: 0 20px;
    }
    
    .video-hero-title {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .video-hero-description {
        font-size: 1rem;
    }
    
    .video-hero-subheading {
        font-size: 1.25rem;
        margin: 24px 0 12px 0;
    }
    
    .featured-video-section {
        padding: 60px 0 30px;
    }
    
    .tutorials-grid-section {
        padding: 40px 0 60px;
    }
    
    .featured-video-wrapper {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .video-hero-header {
        margin-top: 80px;
        padding: 40px 0 40px;
    }
    
    .video-hero-container {
        padding: 0 16px;
    }
    
    .video-hero-title {
        font-size: 1.75rem;
    }
    
    .video-hero-description {
        font-size: 0.9375rem;
    }
    
    .video-hero-subheading {
        font-size: 1.125rem;
    }
    
    .featured-video-wrapper {
        height: 250px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .video-title {
        font-size: 0.9rem;
        padding: 16px;
        min-height: 50px;
    }
}

