/* Learn Page Specific Styles */

.page-hero {
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.9), rgba(255, 107, 53, 0.9)), url('../assets/images/swamiji 2-Picsart-AiImageEnhancer.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Featured Video Section */
.featured-video-section {
    padding: 100px 0;
}

.featured-video {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.video-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.video-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-meta i {
    color: var(--primary-color);
    width: 16px;
}

/* YouTube Channels Section - Complete Overhaul */
.channels-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.channels-section .section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.channels-section .section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

/* Channel Navigation Tabs - Enhanced for Reliability */
.channel-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.tab-btn {
    background: var(--white);
    border: 2px solid #e1e8ed;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    min-width: 160px;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 5;
    pointer-events: auto;
    user-select: none;
}

.tab-btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.tab-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
    z-index: 10;
}

.tab-btn.active:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.tab-btn i {
    font-size: 1.1rem;
    pointer-events: none;
}

/* Channel Content Area - Enhanced */
.channel-content {
    position: relative;
    min-height: 500px;
}

.channel-panel {
    display: none !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    width: 100%;
    position: relative;
}

.channel-panel.active {
    display: block !important;
    opacity: 1;
}

/* Channel Header */
.channel-header {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.channel-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.channel-info p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff0000;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.channel-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Channel Statistics */
.channel-stats {
    display: flex;
    gap: 30px;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 5px;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    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);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-details {
    padding: 20px;
}

.video-details h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.video-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta i {
    color: var(--primary-color);
    width: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .channels-section {
        padding: 60px 0;
    }
    
    .channels-section .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .channels-section .section-description {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .channel-tabs {
        gap: 10px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .channel-header {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
        text-align: center;
    }
    
    .channel-info h3 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .channel-info p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .channel-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .channel-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
        justify-content: center;
    }
    
    .channel-header {
        padding: 20px;
    }
    
    .channel-info h3 {
        font-size: 1.6rem;
    }
    
    .channel-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .video-details {
        padding: 15px;
    }
    
    .video-details h4 {
        font-size: 1rem;
    }
    
    .video-details p {
        font-size: 0.85rem;
    }
}

.channel-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.channel-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.channel-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff0000;
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.channel-link:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.channel-stats {
    display: flex;
    gap: 30px;
}

.channel-stats .stat {
    text-align: center;
}

.channel-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.channel-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-details {
    padding: 25px;
}

.video-details h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-details p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.video-details .video-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.video-details .video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Learning Paths */
.learning-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.path-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.path-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.path-icon i {
    font-size: 2rem;
    color: var(--white);
}

.path-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.path-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.path-steps {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.path-steps li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.path-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.path-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.path-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Live Sessions */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.session-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    transition: var(--transition);
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.session-date {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    min-width: 80px;
}

.session-date .date {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.session-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.session-details h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.session-details p {
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-details i {
    color: var(--primary-color);
    width: 16px;
}

.join-button {
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.join-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.video-close:hover {
    color: var(--primary-color);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-video {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-container {
        height: 250px;
    }
    
    .channel-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .channel-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
        text-align: center;
    }
    
    .channel-stats {
        justify-content: center;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-paths {
        grid-template-columns: 1fr;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .session-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .video-modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .video-container {
        height: 200px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .channel-header {
        padding: 20px;
    }
    
    .channel-info h3 {
        font-size: 1.5rem;
    }
    
    .path-card {
        padding: 25px 20px;
    }
    
    .session-card {
        padding: 20px;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover effects for video cards */
.video-card {
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.video-card:hover::before {
    left: 100%;
}

/* Advanced animations */
.path-card:nth-child(1) { animation-delay: 0.1s; }
.path-card:nth-child(2) { animation-delay: 0.2s; }
.path-card:nth-child(3) { animation-delay: 0.3s; }

.session-card:nth-child(1) { animation-delay: 0.1s; }
.session-card:nth-child(2) { animation-delay: 0.2s; }
.session-card:nth-child(3) { animation-delay: 0.3s; }
