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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #1c1d1f;
    background-color: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    color: #5624d0;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    color: #1c1d1f;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #5624d0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f7f9fa;
    border: 1px solid #d1d7dc;
    border-radius: 50px;
    padding: 8px 20px;
    width: 400px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #1c1d1f;
}

.btn-cart {
    padding: 8px;
    cursor: pointer;
}

.btn-primary {
    background-color: #5624d0;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3b1c8c;
}

.btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.95;
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1c1d1f;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: #fff;
}

.slider-btn.prev {
    right: 15px;
}

.slider-btn.next {
    left: 15px;
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: #fff;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: #f7f9fa;
}

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

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: #1c1d1f;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5624d0;
    font-weight: 700;
    font-size: 16px;
    transition: gap 0.3s;
}

.view-all-btn:hover {
    gap: 12px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-nav-btn {
    background-color: #fff;
    border: 1px solid #d1d7dc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    color: #1c1d1f;
}

.slider-nav-btn:hover {
    background-color: #5624d0;
    color: #fff;
    border-color: #5624d0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 20px 10px;
    color: #1c1d1f;
}

.category-card p {
    font-size: 14px;
    color: #6a6f73;
    padding: 0 20px 20px;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
}

.courses-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}

.courses-slider::-webkit-scrollbar {
    display: none;
}

.course-card {
    background: #fff;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    min-width: 300px;
    flex-shrink: 0;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ec5252;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1c1d1f;
    line-height: 1.4;
}

.instructor {
    font-size: 14px;
    color: #6a6f73;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: #f4c150;
    font-size: 16px;
}

.rating-number {
    font-weight: 700;
    font-size: 14px;
    color: #b4690e;
}

.students {
    font-size: 13px;
    color: #6a6f73;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    font-size: 20px;
    font-weight: 900;
    color: #1c1d1f;
}

.old-price {
    font-size: 16px;
    color: #6a6f73;
    text-decoration: line-through;
}

.bestseller {
    background-color: #eceb98;
    color: #3d3c0a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.new-badge {
    background-color: #5624d0;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background-color: #f7f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card h3 {
    font-size: 48px;
    font-weight: 900;
    color: #5624d0;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 20px;
    color: #1c1d1f;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-cta {
    background-color: #fff;
    color: #5624d0;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background-color: #1c1d1f;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col p {
    color: #d1d7dc;
    line-height: 1.8;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #d1d7dc;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #3e4143;
    padding-top: 20px;
    text-align: center;
    color: #d1d7dc;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .search-box {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
    }

    .search-box {
        width: 100%;
        order: 3;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .categories-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
}
