* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --primary-color: #008d76;
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}
.bg-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
}


/* Hero Section */
.hero {
    background: var(--primary-color);
    /* padding: 2rem 0; */
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.hero h1 {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}

.hero h3 {
    font-size: 1.1rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filters {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.filter-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    height: fit-content;
}

.sidebar h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.sidebar-link:hover {
    color: var(--primary-color);
}

/* Course Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 1.1rem;
    color: #333;
}

.results-count .highlight {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.view-options {
    display: flex;
    gap: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.view-btn {
    padding: 6px 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.view-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.course-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.course-level {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

.course-duration {
    color: #666;
}

.course-price {
    color: #28a745;
    font-weight: 600;
}

.enroll-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 1rem;
    width: 100%;
    transition: background 0.2s;
}

.enroll-btn:hover {
    background: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 4px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f8f9fa;
}

.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
