/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 40px;
    font-weight: 600;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 12px 20px;
    border-radius: 25.5px;
    /*border: 1px solid #e0e0e0;*/
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-family: 'Poppins';
    font-weight: 600;
}

.filter-btn.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.filter-btn:hover:not(.active) {
    background-color: #e0e0e0;
}

/* Content layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar */
.sidebar {
    /*background-color: #E8F1FF;*/
    padding: 16px;
    border-radius: 8px;
}

/* Dropdown */
.dropdown {
    position: relative;
    margin-bottom: 16px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Checkbox filters */
.checkbox-filters {
    margin-bottom: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Filter actions */
.filter-actions {
    display: flex;
    gap: 8px;
}

.show-results-btn {
    padding: 10px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.reset-btn {
    padding: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Course grid */
.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Course card */
.course-card {
    border-radius: 8px;
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    position: relative;
}

.course-image {
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-content {
    margin-top:-150px;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    min-height: 100px;
}

.course-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.course-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.course-price {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Responsive styles */
@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row;
    }
    
    /*.sidebar {*/
    /*    width: 250px;*/
    /*    flex-shrink: 0;*/
    /*}*/
    
    .course-grid {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}