
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(76, 94, 247, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-size: cover, 40px 40px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4c5ef7 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hero-highlight {
    background: linear-gradient(135deg,#4c5ef7,#a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(76, 94, 247, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #22d3ee;
    border: 2px solid #22d3ee;
}

.cta-secondary:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

/* Featured Courses Section */
.featured-section {
    padding: 4rem 2rem;
    background: var(--color-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.course-card:hover {
    border-color: #4c5ef7;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(76, 94, 247, 0.2);
}

.course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(76, 94, 247, 0.3), rgba(34, 211, 238, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.course-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(76, 94, 247, 0.2);
    color: #5d6eff;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: fit-content;
}

/* Homepage light-mode (page-specific) */
body.home-page {
    background-color: #ffffff;
    color: #0b1220;
}

body.home-page header {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.home-page .hero-visual {
    background: linear-gradient(135deg, rgba(12, 26, 52, 0.02) 0%, rgba(40, 116, 166, 0.03) 100%);
}

/* Make hero subtitle darker on the light homepage */
body.home-page .hero-subtitle {
    color: #475569; /* slate-600 */
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    line-height: 1.4;
}

.course-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f97316;
}

/* Categories Carousel */
.categories-section {
    padding: 4rem 2rem;
    background: var(--color-bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #22d3ee;
    transform: scale(1.05);
    background: rgba(34, 211, 238, 0.05);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.category-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.category-count {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: var(--color-bg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4c5ef7 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .stats-section {
        grid-template-columns: 1fr;
    }
}
