/* Courses Page Specific Styles */

/* Page Header */
.page-header {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f3f4ff 0%, #ffffff 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Filters Section */
.filters-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    gap: 15px;
}

.search-box i {
    color: var(--text-light);
    font-size: 18px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-family: inherit;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.7);
}

/* Main Courses Layout */
.courses-main {
    padding: 40px 0 80px;
    background: var(--bg-light);
}

.courses-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filters */
.sidebar-filters {
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-filters h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-label span i {
    color: #fbbf24;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
    justify-content: center;
}

/* Results Header */
.results-header {
    margin-bottom: 25px;
}

.results-header p {
    color: var(--text-light);
    font-size: 16px;
}

.results-header strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Courses Grid Container */
.courses-grid-container {
    flex: 1;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Enhanced Course Card for Courses Page */
.courses-main .course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.courses-main .course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.courses-main .course-footer {
    margin-top: auto;
    padding-top: 15px;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
}

.add-to-cart i {
    margin-right: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 0 10px;
    color: var(--text-light);
}

/* Active Navigation Link */
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .courses-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        display: none;
    }
}

@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .page-header h1 {
        font-size: 32px;
    }

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

/* Loading State */
.course-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Filter Tags */
.active-filters {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--primary-light);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag i {
    cursor: pointer;
    font-size: 12px;
}

.filter-tag i:hover {
    color: var(--text-dark);
}