.course-filter-container {
    display: flex;
}

.course-filter-sidebar {
    width: 25%;
    background: #f4f4f4;
    padding: 20px;
}

.course-filter-content {
    width: 75%;
    padding: 20px;
}

.course-filter-sidebar ul {
    list-style: none;
    padding: 0;
    margin-left:0px;
}

.course-filter-sidebar li {
    margin-bottom: 10px;
    list-style:none;
}

.course-filter-sidebar label {
    cursor: pointer;
}

.course-filter-sidebar .child-category-list {
    margin-left: 20px;
    list-style: none;
}

.expand-toggle {
    cursor: pointer;
    margin-left: 10px;
    background: none;
    border: none;
    font-size: 14px;
    color: #0073aa;
}

/* Category pills */
.selected-categories {
    margin-bottom: 20px;
}

.category-pill {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
}

.category-pill .remove-pill {
    margin-left: 8px;
    font-weight: bold;
    cursor: pointer;
}

.category-pill:hover {
    background-color: #005a8c;
}

/* Layout for two cards per row */
.course-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.course-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
    width: calc(50% - 20px); /* Show two cards per row */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Needed for the absolute positioning of the pills */
    min-height: 400px;
}

.course-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Full-width image at the top */
.course-card-image {
    width: 100%;
    height: 200px; /* Adjust as needed */
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the entire area */
}

.course-card-image-placeholder {
    width: 100%;
    height: 200px; /* Same height as the image */
    background-color: #0073aa; /* Plain blue color */
}

/* Card content */
.course-card-content {
    padding: 15px;
}

.course-card-title {
    font-size: 18px;
    margin: 10px 0;
}

.course-card-title a {
    text-decoration: none;
    color: #333;
}

.course-card-title a:hover {
    color: #0073aa;
}

.course-card-excerpt {
   
}

/* Loader styles */
#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* White overlay with 70% transparency */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 10; /* Ensure it sits above the cards */
    display: none; /* Hidden by default */
}

.spinner {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #0073aa;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* View Course Button */
.course-card-actions {
    margin-top: 15px;
}

.view-course-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.view-course-button:hover {
    background-color: #005a8c;
}

/* Categories at the bottom */
.course-card-categories {
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: left;
}

.course-category-pill {
    display: inline-block;
    background-color: #eee;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.course-category-pill:hover {
    background-color: #ddd;
}