* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --primary-color: #f59e0b;
    --primary-hover: #e67e22;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --border-color: #2a2a2a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* اسکرول بار */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* نویگیشن */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: #000;
}

.btn-register {
    background: var(--primary-color);
    color: #000;
}

.btn-register:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.theme-toggle {
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
}

/* دکمه‌ها */
.btn-primary, .btn-outline {
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ef4444);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

/* اسلایدر */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slide-content p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.slider-prev {
    right: 20px;
}

.slider-next {
    left: 20px;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* آمار */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}

.stat-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* بخش‌ها */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.featured-courses, .testimonials, .features, .intro-video, .newsletter {
    padding: 4rem 0;
}

/* گرید دوره‌ها */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.course-info {
    padding: 1.5rem;
}

.course-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.course-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.rating {
    color: var(--primary-color);
    margin: 10px 0;
}

/* ویدیو */
.video-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-placeholder {
    height: 500px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.video-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.video-placeholder:hover i {
    transform: scale(1.1);
}

/* نظرات */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.testimonial-info h4 {
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1rem 0;
}

.testimonial-rating {
    color: var(--primary-color);
}

/* مزایا */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* خبرنامه */
.newsletter {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
}

/* فوتر */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .stats-grid, .courses-grid, .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ========== منوی همبرگری موبایل ========== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

/* منوی موبایل */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    padding: 80px 2rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-links-mobile {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-menu .nav-links-mobile li {
    margin-bottom: 1.5rem;
}

.mobile-menu .nav-links-mobile a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu .nav-links-mobile a:hover,
.mobile-menu .nav-links-mobile a.active {
    color: var(--primary-color);
    padding-right: 10px;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-buttons .btn-login,
.mobile-buttons .btn-register {
    text-align: center;
    padding: 12px;
}

/* پوشش تاریک پشت منو */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* نمایش همبرگر در موبایل */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-buttons {
        display: none;
    }
}

/* صفحه دوره‌ها */
.page-header-section {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    text-align: center;
}

.page-header-section h1 {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary-color), #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.filters-section {
    padding: 2rem 0;
    background: var(--bg-secondary);
    position: sticky;
    top: 70px;
    z-index: 99;
}

.filters-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 0 1rem;
    border: 1px solid var(--border-color);
}

.search-box i {
    color: var(--primary-color);
}

.search-box input {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--primary-color);
    color: #000;
}

.results-count {
    padding: 1rem 0;
    color: var(--text-secondary);
}

.courses-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.courses-list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-list-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.course-list-item:hover {
    transform: translateX(-5px);
    border: 1px solid var(--primary-color);
}

.list-image {
    font-size: 60px;
    min-width: 80px;
    text-align: center;
}

.list-info {
    flex: 1;
}

.list-price {
    text-align: center;
    min-width: 150px;
}

.list-price div {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.badge-new, .badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

.badge-new {
    background: var(--success-color);
    color: white;
}

.badge-featured {
    background: var(--primary-color);
    color: #000;
    top: 45px;
}

.course-image {
    position: relative;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-buttons button {
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.3s;
}

.pagination-buttons button:hover,
.pagination-buttons button.active {
    background: var(--primary-color);
    color: #000;
}

/* صفحه جزئیات دوره */
.course-detail-page {
    margin-top: 70px;
}

.course-hero {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}

.breadcrumb {
    color: var(--primary-color);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.course-hero h1 {
    font-size: 42px;
    margin: 1rem 0;
}

.course-meta-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.course-meta-hero i {
    margin-left: 5px;
    color: var(--primary-color);
}

.rating-hero {
    margin: 1rem 0;
}

.description-hero {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.price-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.price-big {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.price-save {
    background: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
    margin: 0.5rem 0;
    font-size: 14px;
}

.btn-full {
    width: 100%;
    margin: 1rem 0;
}

.price-features {
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-features div {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.price-features i {
    margin-left: 8px;
    color: var(--primary-color);
}

/* تب‌ها */
.course-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.overview-main h3 {
    margin: 1.5rem 0 1rem 0;
    color: var(--primary-color);
}

.overview-main ul {
    list-style: none;
}

.overview-main ul li {
    margin: 0.8rem 0;
}

.overview-main ul li i {
    color: var(--primary-color);
    margin-left: 10px;
}

.instructor-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.instructor-avatar {
    font-size: 80px;
    margin-bottom: 1rem;
}

/* سرفصل‌ها */
.syllabus-week {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.week-header {
    padding: 1rem;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: 0.3s;
}

.week-header:hover {
    background: var(--bg-card-hover);
}

.week-header i {
    transition: 0.3s;
    margin-left: 10px;
}

.week-content {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.week-content ul {
    list-style: none;
}

.week-content li {
    padding: 0.5rem 0;
}

.week-content i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* نظرات */
.reviews-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.reviews-summary {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
}

.big-rating {
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-color);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
}

.review-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    font-size: 50px;
}

.helpful-btn {
    background: var(--bg-secondary);
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.add-review {
    grid-column: span 2;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.stars-input i {
    font-size: 24px;
    cursor: pointer;
    margin-left: 5px;
    color: #666;
}

#reviewText {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    margin: 1rem 0;
}

.related-courses {
    background: var(--bg-secondary);
    margin-top: 3rem;
    padding: 3rem 0;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .price-card {
        position: static;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .add-review {
        grid-column: span 1;
    }
    
    .course-hero h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}