:root {
    --primary-blue: #074da3;
    --accent-blue: #1A4DA3;
    --black-text: #0c2339;
    --body-text: #4e5c79;
    --blue-text: #053864;
    --dark-green: #2E9868;
    --light-green-background: #E6F4F0;
    --grey-blue: #9DB0C3;
}

body {
    background: #ECF3FA;
}

.content {
    padding-top: 80px;
    width: 90%;
    margin: 0 auto;
}


.container {
    border-radius: 8px;
    margin: 20px auto;
    padding: 10px 20px;
    background: #fafafa;
    display: flex;
}

.listing-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 80px;
}



@media (max-width: 768px) {
    .listing-header {
        display: flex;
        flex-direction: column;
        justify-content: start;
        height: unset;
    }
}


.pagination {
    display: flex;
    flex: 4;
    flex-direction: column;
    /* border-right: 1px solid lightgrey; */
}


.sorting {
    flex: 2;
    display: flex;
    gap: 8px;
    justify-content: right;
    align-items: center;
    text-align: right;
}


@media (max-width: 768px) {
    .sorting {
        justify-content: left;
    }

}

.page-numbers {
    padding: 20px 0px;
}


.page {
    padding: 4px 10px;
    margin-right: 6px;
    background: var(--primary-blue);
    color: #fff;
    display: inline;
    border-radius: 6px;
}

.page i {
    color: #fff;
}

.page-current {
    background: #fafafa;
    border-radius: 0px;
    color: var(--black-text);
    border: 1px solid var(--grey-blue);
    display: inline;
    padding: 4px 10px;
    margin-right: 6px;
}



label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #4f46e5;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 200px;
}

.dropdown-btn {
    background-color: #fafafa;
    color: var(--black-text);
    border: 1px solid#ccc;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    border-radius: 5px;
}

.dropdown-btn::after {
    content: '\25BC';
    float: right;
    margin-left: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f8f9fa;
    border: 1px solid var(--accent-blue);
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    z-index: 1;
    text-align: left;
}

.dropdown-content a {
    color: black;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--accent-blue);
    color: white;
}

.dropdown.open .dropdown-content {
    display: block;
}

.listing-body {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding:20px 0px;
}



@media (max-width: 768px) {
    .listing-body {
        display: flex;
        flex-direction: column;
    }
}


.filter-sidebar {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px 16px;
    margin-bottom: 20px;
    max-width:400px;
}


.filter-search {
    display: flex;
    justify-items: center;
    align-items: center;
    background: #EFF4FC;
    padding: 4px 8px;
    border-radius: 8px;
}

.filter-search input {
    border: none;
    background: none;
    outline: none;
    color: var(--body-text);
}


.filter-field {
    margin: 10px 0px;
    border-bottom: 1px solid whitesmoke;
    
}

.last-filter {
    border-bottom: none;
}

.filter-header{
    display:flex;
    flex-direction: column;
    width:100%;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    width:100%;
}

.selected-filters {
    display:flex;
    gap: 10px;
    flex-wrap:wrap;
    color: var(--grey-blue);
    text-transform: none;
    margin:10px 0px;
    width:100%;    
}

.selected-filters span{
    padding:4px 8px;
    background: whitesmoke;
    color: #72809D;
    border-radius:30px;
    font-weight:400;
    display:inline;
}

/* Styling for the collapsible header */
.expandable {
    background: #fff;
    color: var(--black-text);
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
    padding: 10px 0px;
    max-width: 100%;
    width:100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: display 0.5s;
    text-align: left;
}

/* Icon position */
.expandable i {
    margin-left: auto;
    transition: transform 0.3s;
    padding: 6px;
    border-radius: 50%;
    background: #F5F7FB;
    font-size: 12px;
}

/* Rotate the icon when active */
.expandable.active i {
    /* transform: rotate(180deg); */
}


/* Style for the active (expanded) section */
.active {}

/* Container for the collapsible content */
.expanded-content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background: #fff;
    border: none;
    text-align: left;
}

.expanded-content label:not(:last-child) {
    border-bottom: 1px dashed rgba(20, 12, 64, .12);
    /* You can change the border style and color */
    display: block;
    /* Ensure labels are block elements so the border stretches across */
    padding-bottom: 5px;
    /* Optional: Add padding for spacing */
    margin-bottom: 5px;
    /* Optional: Add margin for extra space */
}


/* Checkbox list styling */
.expanded-content label {
    display: flex;
    padding: 8px 0;

    color: var(--black-text);
    font-weight: 600;
}

.expanded-content input {
    margin-right: 10px;
    width: unset;
}

.filter-button {
    padding: 16px;
    background: var(--primary-blue);
    color: #fafafa;
    font-size: 16px;
    text-align: center;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
}

.filter-button:hover {
    background: #3596F3;
}

.sidebar-ads {
    margin: 20px 0px;
}

.sidebar-ads p {
    font-size: 12px;
    color: var(--grey-blue);
    margin: 4px;
}

.sidebar-ads img {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}



.listing-content {
    flex: 3;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.school {
    display: flex;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}


@media (max-width: 768px) {
    .school {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

.school-photo {
    width: 400px;
    height: 220px;
    border-radius: 8px;
    background: white;
    position: relative;
}

@media (max-width: 768px) {
    .school-photo {
        height: 240px;
        max-width:100%;
    }
}

.school img {
    width: 100%;
    max-width: 400px;
    height: 220px;
    border-radius: 8px;
    object-fit: scale-down;
}

@media (max-width: 768px) {
    .school img {
        height: 240px;
        width: 100%;
        max-width:100%;
        display: block;
        object-fit: scale-down;
    }

}

.curriculum-wrapper {
    position: absolute;
    top: 8px;
    left: 12px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .curriculum-wrapper {
        left: 4px;
    }
}

.curriculum {
    background: #2E9868;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    color: #fff;
    display: flex;
    gap: 6px;
}

@media (max-width: 768px) {
    .curriculum {
        font-size: 9px;
        padding: 2px 4px;
    }
}

.curriculum img {
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.school .school-info {
    display: inline-block;
    padding: 0px 20px;
    width: 100%;
}

.school-info .level-label {
    display: inline-block;
    padding: 4px 8px;
    background: var(--light-green-background);
    color: var(--dark-green);
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
}


.school .school-info .school-region {
    display: inline-flex;
    background: #F0F0FE;
    color: #6363F5;
    padding: 4px 8px;
    margin: 10px 0px;
    border-radius: 4px;
}

.school .school-info .school-name {
    font-weight: 600;
    color: var(--black-text);
}

.school .school-info .school-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6rem;
    padding: 4px 0px;
    color: var(--body-text);
}

.school-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 10px 0px 0px;
}


.school-rating {
    justify-content: start;
    justify-items: center;
    align-content: center;
}

.star-rating {
    display: inline-flex;
    align-items: center;
}

.star-rating i {
    font-size: 0.8rem;
    color: #F79802;
    /* Gold color for filled stars */
    margin-right: 5px;
}

.star-rating .empty-star {
    color: #ccc;
    /* Grey color for empty stars */
}

.school-actions .view-all {
    padding: 16px;
    background: var(--primary-blue);
    color: #fafafa;
    font-size: 14px;
    text-align: center;
    border: none;
    outline: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline;
}

.school-actions .view-all:hover {
    background: #3596F3;
}