/* ===== Courses Page Specific Styles ===== */

.page-hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    opacity: 0.95;
    z-index: -1;
}

.page-hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.page-title .gradient-text {
    background: linear-gradient(135deg, #fff 0%, #fce7f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 20px;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: white;
    position: sticky;
    top: 73px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Courses Section */
.courses-section {
    padding: 80px 0 100px;
    background: var(--bg-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.course-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.course-item:nth-child(1) { animation-delay: 0s; }
.course-item:nth-child(2) { animation-delay: 0.1s; }
.course-item:nth-child(3) { animation-delay: 0.2s; }
.course-item:nth-child(4) { animation-delay: 0.3s; }
.course-item:nth-child(5) { animation-delay: 0.4s; }
.course-item:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card-full {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-full:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-3d);
}

.course-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.course-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.course-badge.bestseller {
    color: var(--primary);
}

.course-badge.trending {
    color: #f5576c;
}

.course-badge.new {
    color: #00f2fe;
}

.course-level {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.course-image-lg {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.course-icon-lg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    z-index: 1;
}

.course-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title-lg {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.3;
}

.course-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.course-highlights {
    margin-bottom: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.highlight-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.course-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat {
    font-size: 13px;
    color: var(--text-secondary);
}

.course-footer-full {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price-current {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 18px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.enroll-btn-lg {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.enroll-btn-lg:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Course Filtering */
.course-item.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
    
    .page-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 80px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-description {
        font-size: 16px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        position: static;
    }
    
    .course-footer-full {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .enroll-btn-lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .course-title-lg {
        font-size: 22px;
    }
    
    .course-icon-lg {
        font-size: 60px;
    }
    
    .price-current {
        font-size: 28px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .price-old {
        font-size: 16px;
        opacity: 0.8;
    }

    .discount-badge {
        margin-top: 4px;
    }
}