body,
button,
input,
select,
textarea {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
}

body .grid-container {
    max-width: 1300px
}

.school-page h1 {
    font-size: 30px;
    font-weight: 700;
    color: rgb(17, 24, 39);
    margin-bottom: 20px;
}

.search-school {
    position: relative;
    margin-bottom: 30px;
}

.search-school input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 12px;
    font-size: 18px;
    color: rgb(17, 24, 20);
}

.school-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.school-filter {
    background: #fff;
    border: 1px solid rgb(243, 244, 246);
    padding: 24px;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    position: sticky;
    max-height: 1000px
}

.filter-top {
    display: flex;
    justify-content: space-between
}

.school-filter h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0
}

.school-filter i {
    color: rgb(19, 236, 109);
    font-size: 18px;
    font-weight: 700;
    margin-right: 6px;
}

.close-filter {
    min-width: 20px;
    cursor: pointer;
}

.filter-content {
    margin-top: 20px;
}

.school-list h2 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(17, 24, 20);
}

.school-list_home .school-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.school-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

.school-thumb img {
    width: 100%;
    height: 200px !important;
    object-fit: cover;
}

.school-body {
    padding: 20px;
}

.school-header {
    display: flex;
    gap: 16px;
    min-height: 76px;
}

.school-header-logo {
    margin-top: -60px;
}

.school-header-logo img {
    padding: 8px;
    border-radius: 8px;
    background-color: rgb(249, 250, 251);
    width: 46px;
    height: 46px;
    min-width: 46px;
}

.school-header-text .school-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: rgb(17, 24, 20);
    display: -webkit-box;
    /* Required for line-clamp to work */
    -webkit-line-clamp: 2;
    /* Number of lines to show before truncating */
    -webkit-box-orient: vertical;
    /* Required: sets the direction of the box */
    overflow: hidden;
}

.school-header-text .school-title a {
    color: rgb(17, 24, 20);
}

.school-header-text p {
    margin-bottom: 0;
    color: rgb(107, 114, 128);
    font-style: italic;
}

.school-tax {
    display: flex;
    gap: 16px;
    margin-bottom: 6px;
}

.school-tax-item {
    color: #4b5563;
}

.school-tax-item i {
    font-size: 18px;
    color: #13ec6d;
}

.school-tax-two h3 {
    color: rgb(156, 163, 175);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.school-tax-two-item {
    display: flex;
    gap: 8px;
}

.school-tax-two-item span {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgb(19, 236, 109);
    background-color: rgba(19, 236, 109, 0.1);
    border: 1px solid rgba(19, 236, 109, 0.2);
    border-radius: 8px;
}



.school-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-apply {
    flex: 1;
    background: #13ec6d;
    color: rgb(17, 24, 20);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-detail {
    padding: 10px 20px;
    border-radius: 8px;
    color: rgb(17, 24, 20);
    background-color: rgb(229, 231, 235);
    font-weight: 700;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    margin: 0 4px;
    background: fff;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    color: rgb(17, 24, 20);
    font-weight: 700;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers.current {
    background: rgb(19, 236, 109);
    border: 1px solid rgb(19, 236, 109);
}

.pagination .page-numbers:hover {
    background: rgb(19, 236, 109);
    border: 1px solid rgb(19, 236, 109);
}

/* fillter */

.school-filter-select {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
}

.school-filter-select select {
    padding: 8px 16px 9px;
    background: #fff;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    color: rgb(17, 24, 20);
}

.btn-reset {
    background: none;
    border: none;
    color: rgb(19, 236, 109);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    margin-top: 0;
    padding: 0
}

.btn-reset:hover {
    background: none;
    color: rgb(19, 236, 109);
    text-decoration: underline;
}

.btn-reset:active,
.btn-reset:focus {
    background: none !important;
}

.btn-reset i {
    font-size: 18px;
    margin-right: 4px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: rgb(107, 114, 128);
    font-weight: 700;
    margin-bottom: 10px;
}

.filter-item {
    display: flex;
    margin-bottom: 10px;
    color: rgb(17, 24, 20);
    font-weight: 500;
    position: relative;
}

.filter-item i {
    transition: 0.3s;
    font-size: 18px;
    position: absolute;
    right: 0;
}

.filter-item.open i {
    transform: rotate(180deg);
}

.filter-item input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.filter-item.child {
    margin-left: 20px;
}



.school-hero {
    position: relative;
}

.school-hero-bg {
    width: 100%;
    height: 400px;
    border-radius: 16px;
}

.school-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.school-hero-wapper {
    padding: 0 48px;
    position: relative;
    z-index: 10;
}

.school-hero-card {
    background: #fff;
    margin-top: -120px;
    padding: 30px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 128px 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

.school-logo img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgb(243, 244, 246);
}

.school-info .school-title {
    font-size: 30px;
    font-weight: 700;
    color: rgb(17, 24, 20);
    margin-bottom: 10px;
}

.school-info .school-sub {
    font-size: 16px;
    color: rgb(107, 114, 128);
    margin-bottom: 16px;
    margin-bottom: 10px;
}

.school-meta .tag {
    color: rgb(17, 24, 20);
}

.school-meta i {
    font-size: 18px;
    color: #13ec6d;
}

.school-meta .tag-green {
    background: rgba(19, 236, 109, 0.1);
    color: rgb(19, 236, 109);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 14px;
    margin-left: 10px;
}

.school-meta-item {
    margin-top: 8px;
}

.btn-apply-now {
    background: rgb(255, 152, 0);
    color: #fff;
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
}

.school-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eee;
}

.school-tabs li {
    cursor: pointer;
    padding-bottom: 10px;
}

.school-tabs li.active {
    border-bottom: 2px solid #22c55e;
    color: #22c55e;
}

.school-body-single {
    margin-top: 40px;
}

.school-sidebar {
    border-radius: 12px;
}

@media (max-width: 968px) {
	
	.school-layout {
		grid-template-columns: 240px 1fr;
	}
	
    .school-list_home .school-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.school-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	
	.school-page {
        padding: 0 15px;
    }
}

@media (max-width: 767px) {
    .school-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .school-list_home .school-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .school-page {
        padding: 0 15px;
    }

    .school-filter-select {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
    }

    .school-filter-select-item {
        display: grid;
        gap: 10px;
    }

    .school-layout {
        grid-template-columns: 1fr;
    }

    .school-hero-wapper {
        padding: 0 24px;
    }

    .school-hero-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .school-logo {
        text-align: center;
    }

    .school-logo img {
        width: 70px;
        height: 70px;
    }

    .school-info .school-title {
        font-size: 24px;
    }

    .school-meta {
        display: grid;
        gap: 10px;
        margin-bottom: 10px;
    }

    .filter-content {
        display: none
    }

    .filter-content.active {
        display: block
    }
}

.price-range {
    position: relative;
    width: 100%;
    height: 40px;
}

/* Track chung */
.price-range::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ddd;
    transform: translateY(-50%);
    border-radius: 2px;
}

/* Range chung */
.price-range input[type="range"] {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    /* quan trọng */
    -webkit-appearance: none;
}

/* Thumb */
.price-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Firefox */
.price-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

/* Label */
.price-label {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}