@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
    --accent-color: #ff4328; /* Vibrant Orange-Red */
    --accent-gradient: linear-gradient(135deg, #ff4328 0%, #FFA500 100%);
    --dark-bg: #0a0a0a;
    --mid-bg: #1a1a1a;
    --card-bg: rgba(30, 30, 30, 0.8);
    --light-text: #ffffff;
    --text-muted: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Smooth Scrolling & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 165, 0, 0.05) 0%, transparent 20%);
}

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

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* --- Animated Background Elements --- */
.bg-particle {
    position: absolute;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.bg-particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 5%;
    animation-delay: -5s;
}

.bg-particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* --- Typography & Headings --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}
h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: lineWidth 3s ease-in-out infinite;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: lineWidth 3s ease-in-out infinite;
}

@keyframes lineWidth {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

/* --- Modern Navigation --- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}



.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/*.logo {*/
/*    position: relative;*/
/*    display: inline-block;*/
/*    overflow: hidden;*/
/*}*/

/*.logo img {*/
/*    height: 60px;*/
/*    transition: var(--transition-smooth);*/
/*    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));*/
/*    animation: logoPulse 3s ease-in-out infinite;*/
/*    position: relative;*/
/*    z-index: 2;*/
/*}*/

/*.logo:hover img {*/
/*    animation: logoHover 0.6s ease forwards;*/
/*    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.9));*/
/*}*/

/* Shine Effect */
/*.logo::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: -100%;*/
/*    width: 50%;*/
/*    height: 100%;*/
/*    background: linear-gradient(*/
/*        90deg,*/
/*        transparent,*/
/*        rgba(255, 255, 255, 0.3),*/
/*        transparent*/
/*    );*/
/*    transform: skewX(-25deg);*/
/*    z-index: 3;*/
/*    opacity: 0.7;*/
/*    animation: logoShine 5s ease-in-out infinite;*/
/*    pointer-events: none;*/
/*}*/

/*.logo:hover::before {*/
/*    animation: logoShineHover 1.5s ease-in-out forwards;*/
/*    opacity: 0.9;*/
/*}*/

/*@keyframes logoPulse {*/
/*    0%, 100% {*/
/*        transform: scale(1);*/
/*        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));*/
/*    }*/
/*    50% {*/
/*        transform: scale(1.03);*/
/*        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.7));*/
/*    }*/
/*}*/

/*@keyframes logoHover {*/
/*    0% {*/
/*        transform: scale(1);*/
/*        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));*/
/*    }*/
/*    50% {*/
/*        transform: scale(1.1) rotate(5deg);*/
/*        filter: drop-shadow(0 0 25px rgba(255, 107, 53, 1));*/
/*    }*/
/*    100% {*/
/*        transform: scale(1.05);*/
/*        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.9));*/
/*    }*/
/*}*/

/*@keyframes logoShine {*/
/*    0% {*/
/*        left: -100%;*/
/*        opacity: 0.5;*/
/*    }*/
/*    20% {*/
/*        opacity: 0.7;*/
/*    }*/
/*    100% {*/
/*        left: 150%;*/
/*        opacity: 0.5;*/
/*    }*/
/*}*/

/*@keyframes logoShineHover {*/
/*    0% {*/
/*        left: -100%;*/
/*        opacity: 0.7;*/
/*    }*/
/*    30% {*/
/*        opacity: 0.9;*/
/*        background: linear-gradient(*/
/*            90deg,*/
/*            transparent,*/
/*            rgba(255, 255, 255, 0.4),*/
/*            rgba(255, 255, 255, 0.6),*/
/*            rgba(255, 255, 255, 0.4),*/
/*            transparent*/
/*        );*/
/*    }*/
/*    70% {*/
/*        opacity: 0.9;*/
/*    }*/
/*    100% {*/
/*        left: 150%;*/
/*        opacity: 0.7;*/
/*    }*/
/*}*/
.nav-links {
    display: flex;
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--light-text);
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-color);
    transition: var(--transition-smooth);
}
 .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    text-align: center;
    width: 20%;
    background-color: var(--dark-bg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 20px;
        border-bottom: 1px solid var(--mid-grey);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }


.menu-toggle:hover {
    transform: rotate(90deg);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(10, 10, 10, 0.95) 0%,
        rgba(26, 26, 26, 0.9) 100%),
        url('<?php echo BASE_URL; ?>assets/images/pattern.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-section h1 {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.animated-counter {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- Modern Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.btn::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.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* --- Video Section --- */

/* ===== Video Player Styles ===== */

/* ===== Simplified Video Player Styles ===== */

/* Video Container & Player */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease;
    position: relative;
    background: var(--dark-bg);
}

.video-container:hover {
    transform: perspective(1000px) rotateX(0deg);
}

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

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    z-index: 3;
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.play-btn-large i {
    margin-left: 5px; /* Offset for play icon */
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 4;
}

.video-wrapper:hover .custom-video-controls,
.custom-video-controls.visible {
    opacity: 1;
    transform: translateY(0);
}

.custom-video-controls .control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.custom-video-controls .control-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* Simplified Progress Bar */
.progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar-container:hover {
    height: 8px;
}

.progress-bar-container:hover .progress-bar {
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Timed Markers Container */
.timed-markers-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    z-index: 3;
}

.timed-marker {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.timed-marker:hover {
    height: 8px;
    background: var(--accent-color);
    transform: translateX(-50%) scaleY(1.5);
}

.timed-marker.active {
    height: 6px;
    background: var(--accent-color);
}

.timed-marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.timed-marker:hover .timed-marker-tooltip {
    opacity: 1;
}

.timed-marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.volume-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.volume-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 5;
    display: none;
}

.video-loading.active {
    display: block;
}

.video-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ff6b35;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    display: none;
    max-width: 80%;
}

.video-error.active {
    display: block;
}

.video-error i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Video Statistics */
.video-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-stats i {
    color: var(--accent-color);
}

/* Video Fullscreen Styles */
.video-wrapper:fullscreen {
    width: 100%;
    height: 100%;
    padding-bottom: 0;
    background: #000;
}

.video-wrapper:fullscreen video {
    object-fit: contain;
}

.video-wrapper:fullscreen .custom-video-controls {
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}

.video-wrapper:fullscreen .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.video-wrapper:fullscreen .play-btn-large {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

.video-wrapper:fullscreen .progress-bar-container {
    height: 8px;
}

.video-wrapper:fullscreen .timed-markers-container {
    height: 6px;
}

.video-wrapper:fullscreen .timed-marker {
    height: 6px;
}

.video-wrapper:fullscreen .timed-marker:hover {
    height: 12px;
}

/* Responsive Video Controls */
@media (max-width: 768px) {
    .custom-video-controls {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .custom-video-controls .control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .volume-control {
        min-width: 80px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .play-btn-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .custom-video-controls {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 15px;
    }
    
    .progress-bar-container {
        order: 1;
        width: 100%;
        margin: 10px 0;
    }
    
    .volume-control {
        order: 2;
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .control-btn:first-child {
        order: 3;
    }
    
    .control-btn:last-child {
        order: 4;
    }
}
/* --- Community Section --- */
.community-section {
    text-align: center;
    background: var(--dark-bg);
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.community-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.community-card:hover::before {
    transform: scaleX(1);
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.community-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.community-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Events Section --- */
.events-section {
    background: var(--mid-bg);
}

.events-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-date {
    min-width: 120px;
    padding-right: 30px;
    text-align: right;
    position: relative;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    text-align: start;
    flex: 1;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border-left: 3px solid var(--accent-color);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--card-bg);
}

.event-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.event-status.upcoming {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.event-status.ended {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}


/* --- Contact Section --- */
.contact-section {
    background: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    min-width: 40px;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* --- Alert Messages --- */
.alert {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.alert-danger {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

/* --- Footer --- */
footer {
    background: var(--mid-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-5px);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-carousel {
        padding-bottom: 30px;
    }
    
    .review-card {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        text-align: left;
        padding: 0 0 10px 20px;
    }
    
    .timeline-date::after {
        left: 0;
        right: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 30px;
    }
    
    .community-cards {
        grid-template-columns: 1fr;
    }
}

/* Infinity Swipe Video Stories */
/* Alternative: Perfect CSS-only loop */
/* Infinity Swipe Video Stories - Fixed Perfect Loop */
.video-stories-wrapper {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    padding: 40px 0;
    width: 100%;
}

.video-stories-container {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Remove mask for better visibility */
.video-stories-wrapper::before,
.video-stories-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.video-stories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg) 20%, transparent 100%);
}

.video-stories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg) 20%, transparent 100%);
}

.video-stories-container.paused {
    animation-play-state: paused;
}

.video-stories-container:hover {
    animation-play-state: paused;
}

@keyframes scrollStories {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

.intro-text{
    margin-top: 20px;
}
/* Duplicate items for seamless loop */
.video-stories-container .story-item:nth-child(n + 9) {
    display: none;
}

.video-stories-container.duplicated .story-item:nth-child(n + 7) {
    display: block;
}

/* Story Item */
.story-item {
    position: relative;
    width: 230px;
    height: 400px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.story-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
    z-index: 10;
}




.story-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.story-item:hover .story-thumbnail {
    transform: scale(1.15);
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-item:hover .story-overlay {
    opacity: 1;
}

.story-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.story-title {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.story-item:hover .story-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Infinity scroll indicators */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator.left {
    left: 10px;
}

.scroll-indicator.right {
    right: 10px;
}

.video-stories-wrapper:hover .scroll-indicator {
    opacity: 1;
}

.scroll-indicator:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* Scroll gradient edges */
.video-stories-wrapper::before,
.video-stories-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.video-stories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg) 0%, transparent 100%);
}

.video-stories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg) 0%, transparent 100%);
}

/* Remove previous story indicators */
.story-indicators {
    display: none;
}

/* Enhanced Lightbox Modal */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-lightbox.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: auto;
    background: var(--dark-bg);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.video-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-video {
    width: 100%;
    height: 600px;
    background: #000;
    position: relative;
}

.lightbox-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-info {
    padding: 30px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-info h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.lightbox-description {
    color: var(--text-muted);
    margin: 15px 0;
    line-height: 1.6;
}

.reviewer-info-lightbox {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.reviewer-avatar-lightbox {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.reviewer-info-lightbox h4 {
    color: var(--light-text);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.reviewer-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-content:hover .lightbox-controls {
    opacity: 1;
}

.control-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.control-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Progress bar for autoplay */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 11;
}

/* Video stats */
.video-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-stats i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .video-stories-wrapper::before,
    .video-stories-wrapper::after {
        width: 50px;
    }
    
    .story-item {
        width: 180px;
        height: 320px;
    }
    
    .lightbox-video {
        height: 400px;
    }
    
    .scroll-indicator {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    @keyframes scrollStories {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-33.33%);
        }
    }
}

@media (max-width: 480px) {
    .story-item {
        width: 150px;
        height: 280px;
    }
    
    .lightbox-video {
        height: 300px;
    }
    
    .lightbox-info {
        padding: 20px;
    }
}

/* ===== Infinity Scrolling Gallery ===== */
.gallery-section {
    background: var(--dark-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.gallery-section h2 {
    margin-bottom: 20px;
}

.gallery-section p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--text-muted);
}

/* Gallery Container */
.gallery-container {
       position: relative;
    overflow: hidden;
    margin: 40px 0;
    padding: 40px 0;
    width: 100%;
}


/* Individual Gallery Row */
.gallery-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: max-content;
    position: relative;
}

/* Top Row (right to left) */
.gallery-row.top {
    animation: scrollLeft 40s linear infinite;
    animation-play-state: running;
}

/* Bottom Row (left to right) */
.gallery-row.bottom {
    animation: scrollRight 40s linear infinite;
    animation-play-state: running;
}

/* Pause animation on hover */
.gallery-row:hover {
    animation-play-state: paused;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    width: 500px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gradient overlays for fade effect */
.gallery-container::before,
.gallery-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 5;
    pointer-events: none;
}

.gallery-container::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg) 0%, transparent 100%);
}

.gallery-container::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg) 0%, transparent 100%);
}

/* Item Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Control Buttons */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-pause,
.control-play {
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.control-pause:hover,
.control-play:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Gallery Stats */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-stats i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item {
        width: 250px;
        height: 180px;
    }
    
    .gallery-container::before,
    .gallery-container::after {
        width: 80px;
    }
    
    @keyframes scrollLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-33.33%);
        }
    }
    
    @keyframes scrollRight {
        0% {
            transform: translateX(-33.33%);
        }
        100% {
            transform: translateX(0);
        }
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 200px;
        height: 150px;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: center;
    }
}


.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: var(--light-text);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}


/* Courses Page */
.courses-page-section {
    padding: 120px 0 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.courses-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--light-text);
    font-size: 1rem;
    padding-right: 50px;
}

.search-box button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
}

[dir="rtl"] .search-box button {
    right: auto;
    left: 15px;
}

.difficulty-filter select {
    padding: 12px 25px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--light-text);
    font-size: 1rem;
    cursor: pointer;
    min-width: 180px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

[dir="rtl"] .course-badge {
    right: auto;
    left: 15px;
}

.course-badge.featured {
    background: var(--accent-gradient);
    color: white;
}

.course-badge.free {
    background: #28a745;
    color: white;
}

.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.course-meta i {
    color: var(--accent-color);
}

.course-meta .difficulty.beginner i {
    color: #28a745;
}

.course-meta .difficulty.intermediate i {
    color: #ffc107;
}

.course-meta .difficulty.advanced i {
    color: #dc3545;
}

.course-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-title a {
    color: var(--light-text);
    transition: color 0.3s;
}

.course-title a:hover {
    color: var(--accent-color);
}

.course-brief {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Course Details Page */
.course-details-section {
    padding: 120px 0 80px;
}

.course-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    margin-bottom: 60px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.course-header-image {
    height: 100%;
    min-height: 350px;
}

.course-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-header-info {
    padding: 40px 40px 40px 0;
}

[dir="rtl"] .course-header-info {
    padding: 40px 0 40px 40px;
}

.course-header-info h1 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.course-brief {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.course-meta-large {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.course-price-large {
    margin-bottom: 30px;
}

.course-price-large .price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.course-price-large .free-badge {
    font-size: 2rem;
    font-weight: 800;
    color: #28a745;
}

.enrolled-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 50px;
    color: #28a745;
    margin-bottom: 20px;
}

.course-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.course-section {
    margin-bottom: 50px;
}

.course-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: left;
}

.course-section h2::after {
    left: 0;
    transform: none;
}

[dir="rtl"] .course-section h2::after {
    left: auto;
    right: 0;
}

.course-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.learn-items, .requirements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.learn-item, .requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.learn-item i {
    color: #28a745;
    font-size: 1.1rem;
}

.requirement-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

.episodes-count {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.episodes-list {
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.episode-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.episode-item.locked {
    opacity: 0.6;
}

.episode-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    min-width: 80px;
}

.episode-number i {
    font-size: 1.2rem;
}

.episode-info {
    flex: 1;
}

.episode-title {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.episode-title a {
    color: var(--light-text);
}

.episode-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.episode-meta .duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.preview-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.watch-btn, .locked-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.watch-btn {
    background: var(--accent-gradient);
    color: white;
}

.watch-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.locked-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: help;
}

/* Sidebar */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.includes-list {
    margin-bottom: 30px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.include-item:last-child {
    border-bottom: none;
}

.include-item i {
    color: var(--accent-color);
    width: 20px;
}

.btn-full {
    width: 100%;
    margin-bottom: 15px;
}

.money-back-guarantee {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

.money-back-guarantee i {
    color: var(--accent-color);
}

/* Watch Episode Page */
.watch-episode-section {
    min-height: 100vh;
    background: #000;
}

.watch-header {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.watch-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.back-to-course {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.back-to-course:hover {
    color: var(--accent-color);
}

.watch-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.watch-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    margin-top: 80px;
    height: calc(100vh - 80px);
}

.video-player-section {
    background: #000;
    padding: 30px;
    overflow-y: auto;
}

/* .video-player-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 32.25%;
    position: relative;
    margin-bottom: 30px;
}

.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
} */

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.video-info h3 {
    margin: 0;
    font-size: 1.5rem;
}

.video-info .episode-number {
    background: var(--accent-gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
}

.video-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.video-description h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.video-description p {
    color: var(--text-muted);
    line-height: 1.7;
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--accent-gradient);
}

.nav-btn.next {
    justify-content: flex-end;
}

[dir="rtl"] .nav-btn.prev {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-btn.next {
    flex-direction: row-reverse;
}

.nav-info {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.nav-btn:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    font-weight: 600;
}

/* Episodes Sidebar */
.episodes-sidebar {
    background: rgba(0, 0, 0, 0.95);
    border-left: 1px solid var(--glass-border);
    padding: 30px 20px;
    overflow-y: auto;
}

[dir="rtl"] .episodes-sidebar {
    border-left: none;
    border-right: 1px solid var(--glass-border);
}

.episodes-sidebar h4 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-episode-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-episode-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

.sidebar-episode-item.active {
    background: var(--accent-gradient);
}

.sidebar-episode-item .episode-number {
    min-width: 60px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.sidebar-episode-item.active .episode-number {
    color: white;
}

.sidebar-episode-item .episode-title {
    flex: 1;
    font-size: 0.9rem;
}

.sidebar-episode-item i {
    color: white;
    font-size: 0.8rem;
    opacity: 0;
}

.sidebar-episode-item.active i {
    opacity: 1;
}

/* Auth Pages Enhanced Styling */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(26,26,26,0.98)), 
                url('../images/auth-bg.jpg') center/cover fixed;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 107, 53, 0.1) inset;
    transition: var(--transition-smooth);
}

.auth-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 40px 80px rgba(255, 107, 53, 0.2);
}

.register-card {
    max-width: 650px;
    padding: 50px 60px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header i {
    font-size: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.auth-header h2::after {
    display: none;
}

/* Alert Messages */
.alert {
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.5rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
}

/* Form Styling */
.auth-form {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.half {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light-text);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 5px;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--accent-color);
}

[dir="rtl"] .password-input-wrapper input {
    padding-right: 20px;
    padding-left: 50px;
}

[dir="rtl"] .toggle-password {
    right: auto;
    left: 15px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--accent-color);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--accent-gradient);
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

[dir="rtl"] .checkbox-container {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .checkmark {
    left: auto;
    right: 0;
}

/* Forgot Password Link */
.forgot-password {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.forgot-password:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Buttons */
.btn-full {
    width: 100%;
    padding: 18px !important;
    font-size: 1.2rem !important;
    margin-bottom: 0;
}

.btn-large {
    padding: 16px 30px !important;
    font-size: 1.1rem !important;
}

.btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

[dir="rtl"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.auth-footer .btn-outline {
    width: 100%;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.auth-footer .btn-outline:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Terms Group */
.terms-group {
    margin: 30px 0;
}

.terms-group .checkbox-container {
    font-size: 0.95rem;
}

.terms-group a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.terms-group a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .register-card {
        padding: 40px 30px;
    }
    
    .auth-header h2 {
        font-size: 2rem;
    }
    
    .auth-header p {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group.half {
        margin-bottom: 25px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 25px !important;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header i {
        font-size: 3rem;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .btn-full {
        padding: 15px !important;
    }
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* No Courses */
.no-courses {
    text-align: center;
    padding: 80px 0;
}

.no-courses i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.no-courses h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-courses p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .course-header {
        grid-template-columns: 1fr;
    }
    
    .course-header-image {
        max-height: 400px;
    }
    
    .course-header-info {
        padding: 30px;
    }
    
    .course-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .watch-container {
        grid-template-columns: 1fr;
    }
    
    .episodes-sidebar {
        border-left: none;
        border-top: 1px solid var(--glass-border);
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .courses-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .learn-items, .requirements-list {
        grid-template-columns: 1fr;
    }
    
    .episode-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .episode-meta {
        justify-content: flex-start;
    }
    
    .course-meta-large {
        gap: 15px;
    }
    
    .meta-item {
        flex: 1 1 40%;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .user-menu {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .user-btn {
        width: 100%;
        justify-content: center;
    }
    
    .auth-links {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .auth-links .btn {
        flex: 1;
    }
}