
.school-cards-row {
    margin-bottom: 40px;
}
.school-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px 0 rgba(34,70,210,0.07);
    transition: box-shadow .19s, transform .17s;
    overflow: hidden;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
}
.school-card .card-img-top {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: #f3f8fc;
    padding: 24px 16px 12px 16px;
}
.school-card-body {
    flex: 1 1 auto;
    padding: 1.2rem 1.2rem 0.7rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.school-card-title {
    font-size: 1.11em;
    font-weight: 700;
    color: #2246d2;
    margin-bottom: 4px;
}
.school-card-address {
    color: #444e72;
    font-size: 0.97em;
    margin-bottom: 7px;
    min-height: 36px;
}
.school-card .badge {
    background: #fed34d;
    color: #2246d2;
    margin: 0 3px 6px 0;
    font-weight: 700;
    font-size: 0.95em;
    display: inline-block;
    vertical-align: middle;
}
.school-meta {
    font-size: 0.99em;
    color: #4d5b7c;
    margin-top: 6px;
    margin-bottom: 5px;
}
.school-meta span {
    margin-right: 13px;
}
.view-all {
    display: inline-block;
    margin: 8px 0 22px 0;
    color: #2246d2;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.view-all:hover { color: #fed34d; }
@media (max-width: 991.98px) {
    .school-card .card-img-top { height: 150px; }
}
/* Add more shared styles as needed */
/* Sidebar filter as a fixed left sidebar */
.sidebar-filter {
    width: 290px;
    min-width: 220px;
    max-width: 340px;
   background-color: #fff;
    color: #fff;
    padding: 38px 24px 36px 32px;
    box-shadow: 2px 0 24px 0 rgba(34,70,210,0.11);
    min-height: 100vh;
   
    top: 0;
    left: 0;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
@media (max-width: 991.98px) {
    .sidebar-filter {
        position: static;
        width: 100vw;
        max-width: 100vw;
        min-width: unset;
        border-radius: 0;
        min-height: auto;
        box-shadow: none;
        padding: 24px 14px;
    }
}

.main-container {
    display: flex;
    flex-direction: row;
}

.results-section {
    flex: 1;
    
    margin-left: 2px; /* Must match .sidebar-filter width */
}

@media (max-width: 991.98px) {
    .main-container {
        flex-direction: column;
    }
    .results-section {
        margin-left: 0;
        padding: 24px 2vw 16px 2vw;
    }
}

/* Style for sidebar filter inner elements */
.filter-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 26px;
    letter-spacing: 0.5px;
}
.filter-group label {
    color: #000;
    font-weight: 400;
    margin-bottom: 8px;
    display: block;
    font-size: 1.08em;
}
.filter-group select,
.filter-group input[type="number"] {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    border: none;
    margin-bottom: 2px;
    font-size: 1.01em;
    background: #eaf4fe;
    color: #2246d2;
    box-shadow: none;
}
.filter-btn {
    background: #fed34d !important;
    color: #2246d2 !important;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    font-size: 1.12em;
    box-shadow: 0 2px 8px 0 #2246d225;
    transition: background 0.14s;
}
.filter-btn:hover {
    background: #ffe07a !important;
    color: #1a2b70 !important;
}