<style>
.school-name, .school-phone, .school-type, .school-grades, .school-numeric-rating, .school-rating {
    flex: 1;
    text-align: center;
    padding: 5px;
}

.rating-circle-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
}
    .header-row {
    background-color: #1b489b !important;
    color: white;
    font-weight: bold;
    cursor: default;
    }
    .header-row:hover {
    background-color: #1b489b !important;
    }
    .greatschools-logo-container {
    text-align: center;
    margin: 25px 0 15px 0;
    }
    .greatschools-logo {
    max-width: 100px !important;
    height: auto;
    }
    .schools-container {
        margin: 0 auto;
        font-family: 'Roboto', sans-serif;
    }
    .schools-header {
        margin-bottom: 20px;
    }
    .schools-title {
        font-size: 48px;
        font-weight: bold;
        margin-bottom: 10px;
    }
    .schools-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .filter-dropdown {
        position: relative;
        display: inline-block;
    }
    .filter-button {
        background-color: #1b489b;
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        font-family: 'Roboto', sans-serif;
    }
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fff;
        min-width: 200px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        border-radius: 5px;
        right: 0;
    }
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        cursor: pointer;
    }
    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }
    .filter-dropdown:hover .dropdown-content {
        display: block;
    }
    .school-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        margin-bottom: 10px;
        background-color: #f5f5f5;
        border-radius: 5px;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    .school-item:hover {
        background-color: #e0e0e0;
    }
    .school-item:nth-child(odd) {
        background-color: #f0f0f0;
    }
    .school-name, .school-phone, .school-type, .school-grades, .school-rating {
        flex: 1;
        text-align: center;
        padding: 5px;
    }
    .school-rating {
        flex: 1;
        text-align: right;
        font-size: 16px;
    }
    .rating-band-img {
        vertical-align: middle;
    }
    .private-schools-toggle-container {
        display: flex;
        align-items: center;
    }
    .toggle-label {
        margin-left: 10px;
        font-size: 14px;
        font-weight: bold;
    }
    /* The switch - the box around the slider */
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }
    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
    }
    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }
    input:checked + .slider {
        background-color: #1b489b;
    }
    input:focus + .slider {
        box-shadow: 0 0 1px #1b489b;
    }
    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }
    /* Rounded sliders */
    .slider.round {
        border-radius: 34px;
    }
    .slider.round:before {
        border-radius: 50%;
    }
    .school-rating-label {
        font-size: 12px;
        color: #666;
        font-style: italic;
        text-align: right;
        margin-top: 3px;
    }
    .controls-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
/* Aggressive Lightbox Z-Index Override */
.lightbox-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 99999999 !important; /* Ensure it's on top */
}
.lightbox-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;
    max-width: 900px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    z-index: 100000000 !important; /* Ensure it's above everything */
    max-height: 90vh !important;
    overflow-y: auto !important;
}
/* Prevent body scrolling when lightbox is open */
body.lightbox-open {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    top: 0 !important;
    left: 0 !important;
}
    @keyframes lightboxFadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .lightbox-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    .lightbox-close {
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 24px;
        cursor: pointer;
        color: #666;
        background: transparent;
        border: none;
        padding: 0;
        line-height: 1;
        transition: color 0.2s ease;
    }
    .lightbox-close:hover {
        color: #1b489b;
    }
    .lightbox-school-name {
        font-size: 28px;
        font-weight: bold;
        margin: 0;
        padding-right: 40px;
    }
    .lightbox-school-address {
        font-size: 16px;
        color: #666;
        margin: 8px 0 0 0;
    }
    .lightbox-body {
        padding: 20px;
        display: grid;
        grid-gap: 20px;
    }
    .lightbox-section {
        margin-bottom: 20px;
    }
    .lightbox-section-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 12px;
        color: #333;
        border-bottom: 2px solid #eee;
        padding-bottom: 8px;
    }
    .info-item {
        display: flex;
        margin-bottom: 10px;
    }
    .info-label {
        width: 140px;
        font-weight: bold;
        color: #555;
    }
    .info-value {
        flex: 1;
    }
    .school-map {
        width: 100%;
        height: 300px;
        background-color: #f5f5f5;
        border-radius: 8px;
        overflow: hidden;
    }
    .lightbox-footer {
        padding: 15px 20px;
        border-top: 1px solid #eee;
        text-align: right;
    }
    .lightbox-footer-button {
        background-color: #1b489b;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.2s ease;
        display: none !important
    }
    .lightbox-footer-button:hover {
        background-color: #1b489b;
    }
    .school-summary {
        margin-bottom: 15px;
        line-height: 1.4;
        font-size: 14px;
        color: #333;
        padding: 12px;
        background-color: #f9f9f9;
        border-radius: 4px;
        border-left: 3px solid #c9372c;
        }
        .schools-disclaimer {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}
.schools-disclaimer a {
    color: #1b489b;
    text-decoration: underline;
}
/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Header & Controls */
    .schools-title {
        font-size: 32px;
        text-align: center;
    }
    .schools-subtitle {
        text-align: center;
    }
    .controls-container {
        flex-direction: column;
        gap: 15px;
    }
    .private-schools-toggle-container {
        width: 100%;
        justify-content: center;
    }
    .filter-dropdown {
        width: 100%;
    }
    .filter-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide table header on mobile */
    .header-row {
        display: none;
    }
    
    /* Card-style layout for schools */
    .school-item:not(.header-row) {
        flex-direction: column;
        padding: 15px;
        align-items: flex-start;
        position: relative;
        margin-bottom: 15px;
    }
    
    /* Create grid layout for school info */
    .school-item:not(.header-row) {
        display: grid;
        grid-template-areas:
            "name name"
            "type grades"
            "phone rating";
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    
    /* Position each element in the grid */
    .school-name {
        grid-area: name;
        font-weight: bold;
        margin-bottom: 5px;
        font-size: 18px;
        width: 100%;
        text-align: center;
    }
    .school-type {
        grid-area: type;
        text-align: left;
        position: relative;
    }
    .school-grades {
        grid-area: grades;
        text-align: right;
    }
    .school-phone {
        grid-area: phone;
        text-align: left;
    }
    
    /* Combine both rating elements into one area */
    .school-numeric-rating {
        grid-area: rating;
        text-align: right;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    /* Hide the rating band on mobile */
    .school-rating {
        display: none;
    }
    
    /* Add field labels on mobile */
    .school-type::before {
        content: "TYPE: ";
        font-size: 12px;
        color: #666;
        display: block;
        font-weight: normal;
    }
    .school-grades::before {
        content: "GRADES: ";
        font-size: 12px;
        color: #666;
        display: block;
        font-weight: normal;
    }
    .school-phone::before {
        content: "PHONE: ";
        font-size: 12px;
        color: #666;
        display: block;
        font-weight: normal;
    }
    
    /* Make ratings more visible */
    .rating-circle-img {
        height: 60px;
        width: auto;
    }
    
    /* Lightbox adjustments */
    .lightbox-content {
        width: 95% !important;
        max-width: none !important;
    }
    .lightbox-school-name {
        font-size: 22px;
    }
    .lightbox-body {
        display: block;
        padding: 15px;
    }
    .info-item {
        flex-direction: column;
    }
    .info-label {
        width: 100%;
        margin-bottom: 3px;
    }
    .info-value {
        width: 100%;
    }
    
    /* Fix dropdown position */
    .dropdown-content {
        left: 0;
        right: 0;
        width: 100%;
    }
}
</style>
