#content-filter {
    position: relative;
    font-family: Montserrat, sans-serif;
}

/* Search input */
#content-filter #content-search {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border-radius: 4px;
    background: #F7F7F7;
    border: none;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.14px;
    color: #000;
    outline: none;
}

#content-filter #content-search::placeholder {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.14px;
}

/* Search icon */
#content-filter::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 12px;
    width: 13px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Cpath d='M5.41277 10.8322C6.73534 10.8322 7.94737 10.355 8.88993 9.56458L12.2987 12.9733L12.9711 12.3009L9.56235 8.89216C10.3528 7.9518 10.83 6.73756 10.83 5.415C10.83 2.42994 8.40006 0 5.415 0C2.42994 0 0 2.42994 0 5.415C0 8.40006 2.42994 10.83 5.415 10.83L5.41277 10.8322ZM5.41277 0.952233C7.87533 0.952233 9.87777 2.95467 9.87777 5.41723C9.87777 7.87979 7.87533 9.88223 5.41277 9.88223C2.95021 9.88223 0.947767 7.87979 0.947767 5.41723C0.947767 2.95467 2.95021 0.952233 5.41277 0.952233Z' fill='black'/%3E%3C/svg%3E");
}

/* Title */
#content-filter .filter-title {
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 4px solid #ED2024;
    color: #234A70;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#content-filter .filter-title:hover {
	    border-bottom: 4px solid #ED2024 !important;
}
.collapsed .filter-title {
	   border-bottom: 4px solid #234A70 !important;
}

/* Toggle */
#content-filter .filter-title .toggle {
    font-size: 22px;
    font-weight: 700;
    color: #234A70;
    line-height: 1;
    cursor: pointer;
	transition: color 0.2s ease;
}
#content-filter:not(.collapsed) .filter-title .toggle {
    color: #ED2024;
}

/* Categories wrapper */
#content-filter .filter-categories {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.35s ease;
}

#content-filter.collapsed .filter-categories {
    max-height: 0;
}

/* Labels */
#content-filter .filter-categories label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #000;
    cursor: pointer;
}

#content-filter .filter-categories .all-cats {
    font-weight: 500;
}

/* Custom checkbox */
#content-filter .filter-categories input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    appearance: none;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

#content-filter .filter-categories input[type="checkbox"]:checked {
    background-color: #ED2024;
    border-color: #ED2024;
}

#content-filter .filter-categories input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Pagination */
#content-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
    font-family: Montserrat, sans-serif;
	flex-wrap: wrap;
    padding: 0 10px;
}

#content-pagination button {
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #131C2D;
    background: #fff;
    color: #131C2D;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    #content-pagination {
        gap: 6px;
        margin-top: 30px;
    }
    
    #content-pagination button {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    #content-pagination .pagi-arrow {
        min-width: 32px;
    }
}

#content-pagination button.active {
    background: #131C2D;
    color: #fff;
}

#content-pagination button:hover {
    background: #f2f2f2;
}

#content-pagination .pagi-arrow svg {
    display: block;
}


.cfe-results-wrapper {
    position: relative;
}

.cfe-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cfe-loader.active {
    opacity: 1;
    pointer-events: all;
}

.cfe-loader span {
    width: 40px;
    height: 40px;
    border: 3px solid #ED2024;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cfe-spin 0.8s linear infinite;
}

@keyframes cfe-spin {
    to { transform: rotate(360deg); }
}


#content-pagination .pagi-ellipsis {
    display: flex;
    align-items: center;
    color: #131C2D;
    font-size: 18px;
    padding: 0 5px;
}

@media (max-width: 767px) {
    #content-pagination .pagi-ellipsis {
        font-size: 14px;
        padding: 0 2px;
    }
}