﻿
.navbar-container {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

    .logo img {
        height: 30px;
        width: 30px;
    }

.nav-right-section {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

    .nav-links li {
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
        padding: 0 15px;
    }

    .nav-links a {
        text-decoration: none;
        color: #4a5568;
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s;
        display: flex;
        align-items: center;
        height: 100%;
    }

        .nav-links a:hover {
            color: #3182ce;
        }

.language-selector {
    margin-left: 10px;
}

.language-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

    .language-btn:hover {
        border-color: #cbd5e0;
        background-color: #edf2f7;
    }

    .language-btn option {
        padding: 8px;
    }

.flag {
    margin-right: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-content {
        height: auto;
        padding: 10px 0;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

        .nav-links li {
            padding: 8px 10px;
            height: auto;
        }

    .language-selector {
        margin-left: 0;
        margin-top: 5px;
    }
}

.video-playlist-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-player {
    flex: 3;
    min-width: 0; /* prevents flex item from overflowing */
}

.video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

    .video-info h3 {
        margin-top: 0;
        color: #333;
    }

.no-video-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    aspect-ratio: 16 / 9;
    color: #666;
    font-size: 1.2em;
}

.playlist {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

    .playlist h3 {
        margin-top: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
        color: #333;
    }

.playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.playlist-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .playlist-item:hover {
        background-color: #eee;
    }

    .playlist-item.active {
        background-color: #e0e0e0;
        font-weight: bold;
    }

.thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
}

.video-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0; /* prevents text overflow */
}

.video-title {
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-duration {
    font-size: 0.8em;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-playlist-container {
        flex-direction: column;
    }

    .playlist {
        max-height: none;
    }
}
.language-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.8);
}

    .language-icon svg {
        width: 1rem;
        height: 1rem;
    }




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFDE21;
    --primary-dark: #E0BC00;
    --secondary-color: #2142FF;
    --accent-color: #FFDE21;
    --text-dark: #2142FF;
    --text-light: #ffffff;
    --white: #ffffff;
    --border-color: #6F21FF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding:  20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;
    }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

    .language-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

    .language-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(5px);
    }

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    margin: 5px;
}

    .language-option:hover {
        background: var(--secondary-color);
        color: var(--primary-color);
    }

    .language-option.active {
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
        color: white;
    }

.flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Hero Section */
.hero {
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--primary-color) ;
/*        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
*/        animation: float 20s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    animation: slideInUp 1s ease-out 0.4s both;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

    .search-input:focus {
        transform: translateY(-2px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    }

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-50%) scale(1.05);
    }

/* Main Content */
main {
    background: var(--white);
    margin: -2rem 0 0 0;
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);

    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
        border-radius: 2px;
    }

/* Content Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    }

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-color);
    }

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: black;
}

.category-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-list {
    list-style: none;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .content-item:hover {
        color: var(--primary-color);
        padding-left: 10px;
    }

    .content-item:last-child {
        border-bottom: none;
    }

.content-type {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video {
    background: #fef3c7;
    color: #d97706;
}

.guide {
    background: #dbeafe;
    color: #2563eb;
}

.audio {
    background: #dcfce7;
    color: #16a34a;
}

/* Quick Start Section */
.quick-start {
    background: var(--secondary-color);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 20px;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-start-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

    .quick-start-item:hover {
        transform: translateY(-5px);
    }

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

    .close-btn:hover {
        color: var(--text-dark);
    }

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.audio-player {
    width: 100%;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .quick-start-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-player-container {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom:50px;
   
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

.video-info {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin:  15px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
]}

.video-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.no-video-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem ;
    background: #f9f9f9;
    border-radius: 12px;
    text-align: center;
}

.placeholder-icon {
    color: #ccc;
    margin-bottom: 1rem;
}

.placeholder-text {
    margin: 0;
    color: #999;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-player-container {
        border-radius: 8px;
    }

    .video-info {
        padding: 1rem;
    }

    .video-title {
        font-size: 1.1rem;
    }
}