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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ACE Color Variables */
:root {
    --ace-footer-bg: #262626;
    --ace-icon-box-bg: #b80404;
    --ace-icon-box-text: #ffffff;
    --ace-border-color: #e9e9e9;
    --ace-primary: #b80404;
    --ace-primary-dark: #9a0303;
    --ace-text-dark: #262626;
}

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

/* Navigation */
.navbar {
    background: var(--ace-text-dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-logo i {
    color: var(--ace-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--ace-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(184, 4, 4, 0.1) 0%, rgba(38, 38, 38, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ace-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    display: block;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--ace-primary);
    color: white;
    border-color: var(--ace-primary);
}

.btn-primary:hover {
    background: var(--ace-primary-dark);
    border-color: var(--ace-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--ace-text-dark);
}

.btn-outline {
    background: transparent;
    color: var(--ace-text-dark);
    border-color: var(--ace-text-dark);
}

.btn-outline:hover {
    background: var(--ace-text-dark);
    color: white;
}

.btn.disabled {
    background: #e9ecef;
    color: #6c757d;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.disabled:hover {
    background: #e9ecef;
    color: #6c757d;
    border-color: #e9ecef;
    transform: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: white;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--ace-text-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 4, 4, 0.05) 0%, rgba(38, 38, 38, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.course-card .course-content {
    position: relative;
    z-index: 2;
}

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

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

.course-content {
    padding: 1.5rem;
}

.course-category {
    color: var(--ace-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.course-content h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.difficulty {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty.beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty.intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty.advanced {
    background: #f8d7da;
    color: #721c24;
}

.duration {
    color: #666;
    font-size: 0.9rem;
}

.free-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-footer {
    margin-top: 1rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 3rem;
    color: var(--ace-primary);
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
}

/* Course Detail */
.course-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.course-breadcrumb {
    margin-bottom: 1rem;
    color: #666;
}

.course-breadcrumb a {
    color: var(--ace-primary);
    text-decoration: none;
}

.course-header h1 {
    color: var(--ace-text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-meta-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.course-image-large {
    margin-bottom: 2rem;
}

.course-image-large img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.course-description h2 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.course-instructor {
    margin: 2rem 0;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.instructor-avatar i {
    font-size: 3rem;
    color: var(--ace-primary);
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
}

.enrollment-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.stat i {
    color: var(--ace-primary);
}

.course-features ul {
    list-style: none;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.course-features i {
    color: var(--ace-primary);
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-actions {
    margin-top: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--ace-primary);
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--ace-text-dark);
    margin-bottom: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    background: var(--ace-primary);
    height: 100%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: var(--ace-primary);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

/* Messages */
.messages {
    margin: 1rem 0;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
footer {
    background: var(--ace-footer-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.footer-section h3,
.footer-section h4 {
    color: var(--ace-primary);
    margin-bottom: 1rem;
}

.footer-logo h3 {
    margin: 0;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--ace-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--ace-primary);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #12202F;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-image {
        background-attachment: scroll;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .course-detail {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        position: static;
    }
    
    .courses-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        order: 2;
    }
}

/* Additional Styles for Forms and Filters */
.courses-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 600;
    color: var(--ace-text-dark);
}

.sort-options select {
    padding: 0.5rem;
    border: 1px solid var(--ace-border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.course-rating-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-rating-small .stars i {
    font-size: 0.8rem;
}

.course-rating-small .rating-text {
    font-size: 0.8rem;
    color: #666;
}

.filters-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #12202F;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Contact Form */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-methods {
    display: grid;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--ace-icon-box-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: var(--ace-icon-box-text);
}

.contact-method i {
    font-size: 2rem;
    color: var(--ace-icon-box-text);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ace-text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--ace-border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Authentication Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    color: #12202F;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-card p {
    color: #666;
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ace-text-dark);
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--ace-border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--ace-primary);
    box-shadow: 0 0 0 2px rgba(184, 4, 4, 0.2);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
}

.auth-links p {
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: var(--ace-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Lesson Detail Styles */
.lesson-breadcrumb {
    margin-bottom: 1rem;
    color: #666;
}

.lesson-breadcrumb a {
    color: var(--ace-primary);
    text-decoration: none;
}

.lesson-breadcrumb a:hover {
    text-decoration: underline;
}

.lesson-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.lesson-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lesson-header h1 {
    color: var(--ace-text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lesson-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.lesson-number {
    font-weight: 600;
    color: var(--ace-primary);
}

.lesson-video {
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lesson-content h2 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-text {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.lesson-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.lesson-navigation {
    display: flex;
    gap: 1rem;
}

.lesson-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.course-progress {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.course-progress h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.lessons-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.lessons-list h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.lessons-menu {
    list-style: none;
}

.lesson-item {
    border-bottom: 1px solid #eee;
}

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

.lesson-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.lesson-item a:hover {
    color: var(--ace-primary);
}

.lesson-item.active a {
    color: var(--ace-primary);
    font-weight: 600;
}

.lesson-item .lesson-number {
    background: #f8f9fa;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.lesson-item.active .lesson-number {
    background: var(--ace-primary);
    color: white;
}

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

.lesson-item .lesson-duration {
    font-size: 0.8rem;
    color: #999;
}

.course-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.course-info h3 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
}

.info-item {
    margin-bottom: 0.5rem;
    color: #666;
}

.info-item strong {
    color: var(--ace-text-dark);
}

/* Responsive adjustments for lesson layout */
@media (max-width: 768px) {
    .lesson-layout {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
    }
    
    .lesson-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lesson-navigation {
        justify-content: center;
    }
}

/* Form Styles */
.form-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.form-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

.form-card h1 {
    color: #12202F;
    margin-bottom: 2rem;
    text-align: center;
}

.course-form, .lesson-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ace-text-dark);
}

.form-control {
    padding: 0.75rem;
    border: 1px solid var(--ace-border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--ace-primary);
    box-shadow: 0 0 0 2px rgba(184, 4, 4, 0.2);
}

.form-control[type="number"] {
    -moz-appearance: textfield;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Course Rating Styles */
.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
}

/* Review Styles */
.course-reviews {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar i {
    font-size: 2.5rem;
    color: var(--ace-primary);
}

.reviewer-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--ace-text-dark);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-content {
    margin-top: 1rem;
}

.review-content p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Enrollment Actions */
.enrolled-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.enrolled-actions .btn {
    width: 100%;
    text-align: center;
}

/* Error Pages */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.error-content {
    text-align: center;
    background: white;
    padding: 4rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-width: 500px;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--ace-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-content h2 {
    color: var(--ace-text-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

