/* Videos Page Styles */

.videos-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.videos-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.videos-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.videos-section {
    padding: 60px 0;
    background: #f8fafc;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.play-button {
    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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-button {
    opacity: 1;
}

.play-button i {
    color: #2563eb;
    font-size: 1.5rem;
    margin-left: 4px;
}

.video-content {
    padding: 2rem;
}

.video-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.video-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-content h3 a:hover {
    color: #2563eb;
}

.video-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.video-category {
    background: #e5e7eb;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.watch-video {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.watch-video:hover {
    color: #1d4ed8;
}

.watch-video i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.watch-video:hover i {
    transform: translateX(3px);
}

/* Video Player Page Styles */
.video-player-section {
    padding: 40px 0;
    background: #1a1a1a;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

.video-info {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.video-info-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.video-info-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.video-info-meta i {
    color: #2563eb;
}

.video-description {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.video-resources {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.video-resources h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.resource-links {
    display: flex;
    gap: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.related-videos {
    margin-top: 4rem;
    padding-bottom: 6rem;
}

.related-videos h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .videos-header h1 {
        font-size: 2.5rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        padding: 1.5rem;
    }
    
    .video-info h1 {
        font-size: 1.5rem;
    }
    
    .video-info-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .resource-links {
        flex-direction: column;
    }
    
    .resource-link {
        width: 100%;
        justify-content: center;
    }
}

/* Featured Video Section for Index Page */
.featured-videos {
    padding: 60px 0;
    background: #f8fafc;
}

.featured-video-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-video-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.featured-video-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.featured-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Category Section Styles */
.category-section {
    margin-bottom: 4rem;
}

.category-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.category-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .category-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-section {
        margin-bottom: 3rem;
    }
}
