/* Import Yekan Bakh Font */
@import url('../yekan-bakh/yekan-bahk-config-fa.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-purple: #6A4FE2;
    --light-purple: #8E76FB;
    --dark-purple: #6A4FE2;
    --white: #FFFFFF;
    --black: #0A0A11;
    --gray-1: #0F0F17;
    --gray-2: #191B26;
    --gray-3: #1E202D;
    --gray-4: #333648;
    --gray-5: #546079;
    --gray-6: #717D96;
    --gray-7: #DDE4F1;
    --gray-8: #E7E9F6;
    --gray-9: #F2F4F7;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8E76FB 0%, #6A4FE2 100%);
    --gradient-bg: linear-gradient(135deg, #FFFFFF 0%, #CDDFF2 100%);
    
    /* Typography */
    --font-family: 'YekanBakh', 'Yekan Bakh', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-padding: 24px;
    --section-padding: 80px 0;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    
    /* Shadows */
    --shadow-sm: 0px 4px 8px rgba(10, 10, 17, 0.08);
    --shadow-md: 0px 8px 16px rgba(10, 10, 17, 0.12);
    --shadow-lg: 0px 16px 32px rgba(10, 10, 17, 0.16);
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-9);
    color: var(--black);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: 40px;
    line-height: 1.6;
}

h2 {
    font-size: 24px;
    line-height: 1.67;
}

h3 {
    font-size: 20px;
    line-height: 1.8;
}

p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #DDE4F1;
    color: var(--black);
    border: none;
    width: 96px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.btn-secondary:hover {
    background: #C5D0E8;
}

/* Header */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 16px 24px;
}

.header.scrolled {
    background: var(--white);
    border-bottom: 1px solid var(--gray-8);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 160px;
    height: 56px;
    width: 684px;
    max-width: 684px;
    margin: 0 auto;
    padding: 0 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header.scrolled .nav {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    height: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 16px 0;
    box-shadow: none;
    border: none;
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--dark-purple);
    border-radius: 6.4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 32px;
    height: 19.2px;
}

.x-logo {
    position: absolute;
    top: 6.4px;
    left: 6.4px;
    width: 19.2px;
    height: 19.2px;
    /* background: var(--white); */
    border-radius: 0.4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-logo img {
    width: 17.26px;
    height: 15.6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--gray-5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--black);
    background: var(--gray-8);
}

.header:not(.scrolled) .nav-link {
    color: var(--gray-5);
}

.header:not(.scrolled) .nav-link:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 120px;
    background: var(--gray-9);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 684px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--black);
    margin-bottom: 32px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-element {
    position: absolute;
    width: 716px;
    height: 612px;
    background: url('assets/vector-5.svg') no-repeat center;
    background-size: contain;
}

.bg-element-1 {
    top: 52px;
    left: 0;
}

.bg-element-2 {
    top: 52px;
    right: 0;
    transform: scaleX(-1);
}

.bg-blur {
    position: absolute;
    top: 731px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: var(--gradient-bg);
    border-radius: 50%;
    filter: blur(400px);
    opacity: 0.8;
}

/* Hero Image Section */
.hero-image {
    padding: 60px 0;
    background: var(--gray-9);
    position: relative;
}

.hero-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 928px;
    margin: 0 auto;
}

.hero-image-main {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--gray-2);
    position: relative;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    color: var(--light-purple);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.courses-title {
    color: var(--black);
    font-size: 24px;
    font-weight: 700;
}

.testimonials-title {
    color: var(--black);
    font-size: 24px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

.feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.feature-icon {
    width: 56px;
    height: 56px;
}

.icon-bg {
    width: 100%;
    height: 100%;
    background: var(--gray-3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-bg img {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
}

.feature-content {
    text-align: center;
}

.feature-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-description {
    color: var(--gray-7);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.71;
}

/* Courses Section */
.courses {
    padding: var(--section-padding);
    background: var(--gray-9);
}

.courses-header {
    text-align: center;
    margin-bottom: 48px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    height: 272px;
    width: 684px;
    max-width: 100%;
    margin: 0 auto 48px auto;
    direction: rtl;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.course-thumbnail {
    position: relative;
    width: 322px;
    height: 208px;
    overflow: hidden;
    margin: 8px;
    flex-shrink: 0;
    order: 2;
    border-radius: 8px;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.play-button img {
    width: 24px;
    height: 24px;
}

.course-content {
    padding: 24px 8px 0 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    order: 1;
    width: 100%;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: flex-start;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--white);
}

.instructor-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
}

.course-info {
    margin-bottom: 16px;
    flex: 1;
}

.course-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    text-align: right;
}

.course-description {
    font-size: 14px;
    color: var(--gray-5);
    line-height: 1.71;
    height: 48px;
    overflow: hidden;
    text-align: right;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(106, 79, 226, 0.04);
    border-radius: 8px;
    gap: 95px;
    width: 668px;
    height: auto;
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
}

.course-action {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--dark-purple);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.course-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.coming-soon {
    position: relative;
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 12px;
    padding: 0;
    text-align: center;
    overflow: hidden;
    height: 116px;
    width: 684px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.coming-soon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
}

.element-1 {
    top: -92px;
    left: 192px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(142, 118, 251, 0.3) 0%, rgba(106, 79, 226, 0.3) 100%);
    filter: blur(120px);
    opacity: 0.5;
}

.element-2 {
    top: 20px;
    left: 60px;
    width: 12px;
    height: 12px;
    background: #059EF4;
}

.element-3 {
    top: 20px;
    right: 60px;
    width: 12px;
    height: 12px;
    background: #00B171;
}

.element-4 {
    top: 40px;
    left: 80px;
    width: 8px;
    height: 8px;
    background: rgba(5, 158, 244, 0.3);
}

.element-5 {
    top: 40px;
    right: 80px;
    width: 8px;
    height: 8px;
    background: rgba(0, 177, 113, 0.3);
}

.coming-soon-title {
    position: relative;
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    width: 438px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: var(--gray-9);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-swiper .swiper-slide {
    height: auto;
}


.testimonial-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-card.featured {
    background: var(--gray-7);
    border: none;
}

.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.testimonial-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.testimonial-text {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 16px;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.testimonial-author-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.testimonial-author {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    position: relative;
}

.author-avatar::before {
    content: '"';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--dark-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: serif;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.testimonial-bg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.testimonial-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 40px 0 24px;
    border-radius: 16px;
    margin: 80px 24px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Top Section */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 32px;
}

/* Navigation Links (Right Side) */
.footer-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.footer-nav-link {
    color: var(--gray-5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.05);
}

/* Logo (Center) */
.footer-logo {
    flex-shrink: 0;
    margin: 0 32px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-logo .logo-icon img {
    width: 40px;
    height: 24px;
}

.footer-logo .x-logo {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo .x-logo img {
    width: 21.5px;
    height: 19.5px;
}

/* Social Media Links (Left Side) */
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-start;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.05);
}

.footer-social-link img {
    width: 16px;
    height: 16px;
}

/* Separators */
.footer-separator {
    color: var(--gray-6);
    font-size: 12px;
    margin: 0 4px;
}

/* Dotted Separator Line */
.footer-separator-line {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        var(--gray-6) 0px,
        var(--gray-6) 3px,
        transparent 3px,
        transparent 8px
    );
    margin-bottom: 24px;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--gray-5);
    text-align: center;
    margin: 0;
}

/* Course Page Styles */
.course-page {
    padding: 24px 0;
    background-color: var(--gray-9);
    margin-top: 80px;
}

.course-progress-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.course-progress-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--black);
    text-align: right;
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(106, 79, 226, 0.08);
    border: 1px solid rgba(106, 79, 226, 0.04);
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-8);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-purple);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-purple);
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.course-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Course Sidebar */
.course-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 300px;
}

.chapters-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chapter-item {
    border: 1px solid var(--gray-8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(142, 118, 251, 0.1);
}

.chapter-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background: var(--white);
}

.chapter-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.chapter-item.expanded .chapter-toggle {
    transform: rotate(180deg);
}

.chapter-info {
    flex: 1;
}

.chapter-number {
    font-size: 12px;
    color: var(--gray-4);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.chapter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.chapter-status {
    margin-right: 12px;
}

.status-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--gray-7);
    color: var(--gray-5);
    transition: all 0.3s ease;
}

.status-icon.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.status-icon.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
}

.chapter-lessons {
    border-top: 1px solid var(--gray-8);
    background: var(--gray-9);
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.chapter-item.expanded .chapter-lessons {
    display: block;
    max-height: 1000px;
    opacity: 1;
}

.chapter-toggle svg {
    transition: transform 0.3s ease;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lesson-item.active {
    background: var(--light-purple);
    border: 1px solid var(--primary-purple);
}

.lesson-item.completed {
    background: var(--success-light);
    border: 1px solid var(--success);
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 4px;
    display: block;
}

.lesson-duration {
    font-size: 12px;
    color: var(--gray-4);
}

.lesson-status {
    margin-right: 12px;
}


/* Course Main Content */
.course-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 2;
    min-width: 500px;
}

.video-section {
    padding: 24px;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.video-player {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--black);
    border-radius: 12px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

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

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.video-progress .progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

.video-progress .progress-fill {
    background: var(--primary-purple);
}

.lesson-info {
    margin-bottom: 24px;
}

.lesson-header {
    margin-bottom: 20px;
}

.current-lesson-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-4);
}

.separator {
    color: var(--gray-5);
}

/* Content Tabs */
.content-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-8);
    margin-bottom: 24px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

.tab-button:hover {
    color: var(--primary-purple);
}

.tab-content {
    margin-top: 16px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.lesson-description {
    margin-bottom: 24px;
}

.lesson-description p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-3);
    margin-bottom: 16px;
}

/* Files Section */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gray-9);
    border-radius: 8px;
    border: 1px solid var(--gray-8);
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(142, 118, 251, 0.1);
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

.file-size {
    font-size: 12px;
    color: var(--gray-4);
}

.download-btn {
    background: var(--primary-purple);
    border: none;
    border-radius: 8px;
    padding: 8px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-1px);
}

/* Chat Section */
.chat-section {
    background: var(--white);
    border-radius: 12px;
    padding: 4px 4px 0 4px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-8);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-count {
    background: var(--primary-purple);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.chat-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.chat-icon {
    color: var(--gray-4);
}

.sort-button {
    background: none;
    border: 1px solid var(--gray-7);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.sort-button.active {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* Chat Messages */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.message-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.message-content {
    flex: 1;
    background: var(--gray-9);
    padding: 16px;
    border-radius: 12px;
    border-top-left-radius: 4px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.message-date {
    font-size: 12px;
    color: var(--gray-4);
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-3);
    margin-bottom: 12px;
}

.message-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-4);
    transition: all 0.3s ease;
}

.action-btn:hover {
    color: var(--primary-purple);
}

.action-btn.liked {
    color: var(--primary-purple);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-divider {
    height: 1px;
    background: var(--gray-8);
    margin: 16px 0;
}

/* Write Message */
.write-message-section {
    border-top: 1px solid var(--gray-8);
    padding-top: 16px;
}

.write-message-btn {
    width: 100%;
    background: var(--primary-purple);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.write-message-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-1px);
}

.write-message-form {
    display: none;
}

.write-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--gray-7);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

.write-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(142, 118, 251, 0.1);
}

.write-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.write-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-4);
    transition: color 0.3s ease;
}

.write-close-btn:hover {
    color: var(--gray-2);
}

.write-submit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chat Empty State */
.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 300px;
}

.empty-state-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-2);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.empty-state-description {
    font-size: 14px;
    color: var(--gray-4);
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.empty-state-action {
    font-size: 14px;
    color: var(--gray-4);
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .course-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .course-sidebar,
    .chat-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-page {
        padding-top: 60px;
    }
    
    .course-content {
        padding: 16px;
    }
    
    .video-player {
        height: 250px;
    }
    
    .current-lesson-title {
        font-size: 20px;
    }
    
    .chat-messages {
        max-height: 300px;
    }
}



.show-replies svg {
    color: var(--dark-purple);
}

.reply-message {
    margin-right: 40px;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-right: 1px solid var(--gray-8);
    padding-right: 20px;
    position: relative;
}

.reply-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.reply-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-divider {
    width: calc(100% - 32px);
    height: 1px;
    background-color: var(--gray-8);
    margin: 0 16px;
}

/* Write Message Section */
.write-message-section {
    padding: 16px;
    margin-top: 16px;
}

.write-message-gradient {
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

.write-message-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-7);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    margin: 0 auto;
}

.write-message-btn:hover {
    background: var(--gray-9);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.write-message-btn svg {
    width: 24px;
    height: 24px;
}

.write-message-btn:hover svg {
    color: var(--primary-purple);
}

/* Reply Form */
.reply-form {
    background: var(--gray-2);
    border: 1px solid var(--gray-4);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reply-to {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-6);
}

.close-reply {
    background: none;
    border: none;
    color: var(--gray-6);
    cursor: pointer;
    padding: 4px;
}

.reply-content {
    margin-bottom: 16px;
}

.reply-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--white);
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 16px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .course-card {
        width: 100%;
        max-width: 684px;
        flex-direction: column;
        height: auto;
    }
    
    .course-thumbnail {
        width: 100%;
        height: 200px;
        order: 1;
    }
    
    .course-content {
        order: 2;
        padding: 16px;
    }
    
    .coming-soon {
        width: 100%;
        max-width: 684px;
    }
}

/* Desktop styles - hide mobile nav */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .nav {
        width: 100%;
        max-width: none;
        height: 48px;
        padding: 0 16px;
        justify-content: space-between;
    }
    
    .nav-right {
        display: none;
    }
    
    .nav-left {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        color: var(--gray-5);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        color: var(--black);
    }
    
    .mobile-logo {
        width: 32px;
        height: 32px;
        background: var(--gray-8);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-action-btn {
        width: 32px;
        height: 32px;
        background: var(--dark-purple);
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-action-btn:hover {
        background: var(--light-purple);
    }
    
    .mobile-action-btn svg {
        width: 16px;
        height: 16px;
        color: var(--white);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .features {
        padding: 40px 16px;
        margin: 0 16px;
        border-radius: 16px;
        background: var(--gray-2);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: none;
    }
    
    .feature-card {
        background: var(--gray-1);
        border-radius: 12px;
        padding: 24px;
        text-align: center;
    }
    
    .course-card {
        width: calc(100% - 32px);
        max-width: 100%;
        height: auto;
        flex-direction: column;
        margin: 0 auto 16px auto;
        padding: 0;
    }
    
    .course-content {
        width: 100%;
        order: 1;
        padding: 16px;
    }
    
    .course-thumbnail {
        width: calc(100% - 32px);
        height: 200px;
        order: 2;
        margin: 0 16px;
    }
    
    .course-footer {
        position: relative;
        width: calc(100% - 32px);
        margin: 16px 16px 16px 16px;
        left: auto;
        right: auto;
        bottom: auto;
        order: 3;
    }
    
    .coming-soon {
        width: calc(100% - 32px);
        max-width: 100%;
        margin: 0 auto;
        height: 116px;
    }
    
    .coming-soon-title {
        width: 100%;
        height: 36px;
        font-size: 18px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 32px 16px 24px;
        margin: 40px 16px 24px;
        border-radius: 16px;
        background: var(--white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Course Page Mobile Styles */
    .course-page {
        margin-top: 60px;
    }
    
    .course-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .course-sidebar {
        order: 1;
    }
    
    .course-main {
        order: 2;
    }
    
    .chat-section {
        order: 3;
    }
    
    .video-player {
        height: 200px;
    }
    
    .chat-messages {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .message-item {
        gap: 8px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
    
    .reply-form {
        padding: 12px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-navigation {
        justify-content: center;
        order: 1;
    }
    
    .footer-logo {
        order: 2;
        margin: 0;
    }
    
    .footer-social {
        justify-content: center;
        order: 3;
    }
    
    .footer-nav-link,
    .footer-social-link {
        font-size: 14px;
        padding: 6px 10px;
        color: var(--gray-5);
    }
    
    .footer-nav-link:hover,
    .footer-social-link:hover {
        color: var(--black);
        background: rgba(0, 0, 0, 0.05);
    }
    
    .footer-separator-line {
        margin: 20px 0;
    }
    
    .footer-copyright {
        font-size: 12px;
        color: var(--gray-5);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .courses-title {
        font-size: 20px;
    }
    
    .testimonials-title {
        font-size: 20px;
    }
    
    .course-title {
        font-size: 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

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

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

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

.element-2 {
    animation-delay: 1.5s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus,
.social-link:focus {
    outline: 2px solid var(--light-purple);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero-bg {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Write Message Form */
.write-message-form {
    background: var(--gray-1);
    border: 1px solid var(--gray-3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.write-textarea {
    width: 100%;
    min-height: 96px;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.7;
    color: var(--white);
    text-align: right;
    resize: none;
    outline: none;
}

.write-textarea::placeholder {
    color: var(--white);
    opacity: 0.7;
}

.write-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.write-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--gray-6);
    transition: color 0.2s ease;
}

.write-close-btn:hover {
    color: var(--black);
}

.write-submit-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(205, 223, 242, 1) 25%, rgba(142, 118, 251, 1) 50%, rgba(106, 79, 226, 1) 100%);
    border: none;
    border-radius: 16px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.24;
}

/* Disabled state (default) */
.write-submit-btn.disabled {
    opacity: 0.24;
    cursor: not-allowed;
    pointer-events: none;
}

/* Active state (when text is entered) */
.write-submit-btn.active {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

.write-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 16px rgba(106, 79, 226, 0.12);
}
