/* ... (Previous Styles) ... */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem 5%;
    text-align: center;
    margin-bottom: 3rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb span { color: var(--primary-color); }

/* Course Page Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}

/* Sidebar Filters */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    height: fit-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    border-color: #cbd5e1;
}

.count-badge {
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Updated Course Card for Grid */
.course-card-list {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition);
}

.course-card-list:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.course-thumb {
    position: relative;
    height: 180px;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.course-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.instructor-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.instructor-row img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.course-cat-badge {
    font-size: 0.75rem;
    background: #e0e7ff;
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    margin-left: auto;
    font-weight: 500;
}

.course-title-lg {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Top Filter Bar */
.top-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc; /* neutral-50/100 */
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .layout-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .filter-sidebar { 
        border: 1px solid var(--glass-border); /* Keep border */
        background: white; /* Keep white */
        margin-bottom: 2rem;
    }

    .top-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .top-filter-bar > div {
        width: 100%;
        justify-content: space-between;
    }

    .view-options { display: none; }
}

@media (max-width: 600px) {
    .course-grid {
        grid-template-columns: 1fr !important;
    }
    .page-header h1 { font-size: 1.8rem; }
}
