/* Container for the sidebar and grid */
.resources-container {
    display: flex;
    gap: 20px;
}

/* Sidebar for the filter */
.resource-filter-sidebar {
    width: 20%;
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
}

/* Grid layout for resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 80%;
}

/* Resource item styling */
.resource-item {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
    /* text-align: center; */
}

/* Thumbnail styling */
.resource-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

/* Title and excerpt styling */
.resource-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.resource-excerpt {
    font-size: 14px;
    margin-bottom: 15px;
}

/* Read more link styling */
.resource-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.resource-link:hover {
    background-color: #005177;
}

/* Category checkbox styling */
.category-checkbox-list {
    list-style: none;
    padding: 0;
}

.category-checkbox-list ul {
    list-style: none;
    padding-left: 20px;
}

.category-checkbox-list li {
    margin-bottom: 10px;
}

.container-filter {
    margin-top: 120px;
}

/* Style the default checkbox */
input[type="checkbox"] {
    /* Remove default appearance */
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #ffff;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    top: 4px;
}

/* Style for checked state - change background color to green */
input[type="checkbox"]:checked {
    background-color: #4CAF50; /* Green when checked */
    border-color: #4CAF50; /* Green border when checked */
    position: relative;
    top: 2px !important;
}

/* Optional: Add checkmark */
input[type="checkbox"]:checked::before {
    content: '✔';
    color: white;
    font-size: 14px;
    display: block;
    text-align: center;
    line-height: 20px;
}

select#sort-order {
  border: 0;
}

span.category-label::after {
    content: "^";
    position: relative;
    float: right;
    right: 94px;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}
