.schools-filter-form {
    background: #fff;
    /* padding: 20px; */
    border-radius: 10px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

#schools-filter {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.filter-field {
    flex: 1;
    min-width: 150px;
}

.filter-field.search-field {
    flex: 2;
    min-width: 200px;
}

.filter-input,
.filter-select {
    /* width: 100%;
    padding: 12px 15px; */
    border: 1px solid #e0e0e0!important;
    border-radius: 5px!important;
    /* font-size: 14px;
    background: #f8f8f8;
    transition: all 0.3s ease; */
    background-color: #f2f2f2!important;
    font-size: 0.85rem!important;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #da1a5d;
    background: #fff;
}

.filter-select {
    cursor: pointer;
    appearance: none;
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); */
    /* background-repeat: no-repeat; */
    /* background-position: right 15px center; */
    padding-right: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

/* .btn-search,
.btn-reset {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
} */

.btn-search {
    background: #da1a5d;
    color: #fff;
    margin-right: 0;
}

.btn-search:hover {
    background: #b01548;
}

.btn-reset {
    background: #6c757d;
    color: #fff;
    margin-right: 0;

}

.btn-reset:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    #schools-filter {
        flex-direction: column;
    }
    
    .filter-field,
    .filter-field.search-field {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-search,
    .btn-reset {
        width: 100%;
    }
}


/* AJAX Loading Overlay */
#ajax-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

#ajax-loading-overlay .loading-spinner {
    text-align: center;
    padding: 40px;
    background: #fff;
    max-width: fit-content;
    margin: 5% auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#ajax-loading-overlay .loading-spinner i {
    color: #da1a5d;
    margin-bottom: 15px;
    display: block;
    font-size: 3rem;
}

#ajax-loading-overlay .loading-spinner p {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Spin animation for spinner icon */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#ajax-loading-overlay .loading-spinner i {
    animation: spin 1s linear infinite;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    #ajax-loading-overlay .loading-spinner {
        min-width: 150px;
        padding: 30px;
    }
    
    #ajax-loading-overlay .loading-spinner i {
        font-size: 2rem;
    }
    
    #ajax-loading-overlay .loading-spinner p {
        font-size: 14px;
    }
}

/* School Type Badges - Separated */
.school-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.type-badge {
    display: inline-block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

span.school-type:before {
    content: '\f192';
    font-family: 'Font Awesome 5 Free';
    color: #fff;
    position: absolute;
    transform: translate(-16px, 0.2px);
}

/* Individual colors for each school type */
.badge-high-school {
    background: #0097cd;
}

.badge-university {
    background: #da1a5d;
}

.badge-college {
    background: #00945e;
}

.badge-language-school {
    background: #f47e36;
}

/* Hover effects */
/* .type-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

/* Alternative: Solid colors instead of gradients */
/*
.badge-high-school {
    background-color: #667eea;
}

.badge-university {
    background-color: #f5576c;
}

.badge-college {
    background-color: #4facfe;
}

.badge-language-school {
    background-color: #43e97b;
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {
    .school-type-badges {
        gap: 6px;
    }
    
    .type-badge {
        padding: 3px 10px;
        font-size: 11px;
    }
}