/* ============================================
   COURSE PAGE SPECIFIC STYLES
   ============================================ */

/* Course Hero Section */
.course-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
    overflow: hidden;
    padding-top: var(--space-20);
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

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

.course-hero h1 {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out;
}

.course-hero p {
    font-size: var(--text-xl);
    color: var(--color-gray-light);
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* All Courses Section */
.all-courses {
    background: var(--color-primary-dark);
}

.course-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.filter-btn {
    padding: var(--space-2) var(--space-6);
    background: rgba(44, 62, 80, 0.5);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: var(--border-radius-full);
    color: var(--color-gray-light);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent-green);
    color: var(--color-white);
    border-color: var(--color-accent-green);
    transform: translateY(-2px);
}

/* Reuse courses-grid and course-card from style.css but ensure they work well here */

/* Prevent course cards from stretching too wide when filtering shows few courses */
.all-courses .course-card {
    max-width: 450px;
    margin: 0 auto;
}

/* Responsive Design for Course Page */
@media (max-width: 768px) {
    .course-hero h1 {
        font-size: var(--text-4xl);
    }

    .course-hero p {
        font-size: var(--text-lg);
    }
}

/* SVG Icon Styles */
.course-image svg {
    width: 100%;
    height: 100%;
    color: var(--color-primary-dark);
    stroke-width: 1.2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-base);
}

.course-card:hover .course-image svg {
    transform: scale(1.05);
    /* Subtle zoom */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Better approach: target by nth-child or add specific class */
.course-card:nth-child(3) .course-image img {
    object-position: 20% center;
    /* Shift image right to show "AI" text fully */
}
