/* ==========================================================
   The Open Page - Schools
========================================================== */

.top-schools-page,
.top-single-school {
    background: #ffffff;
    color: #252525;
}

.top-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================================
   Directory Hero
========================================================== */

.top-schools-hero {
    background: #f5f3ed;
    padding: 90px 0 80px;
}

.top-section-label,
.top-school-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.top-schools-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin: 0 0 20px;
}

.top-schools-hero p {
    max-width: 650px;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}


/* ==========================================================
   School Directory
========================================================== */

.top-school-directory {
    padding: 80px 0;
}

.top-school-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.top-school-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.top-school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.top-school-card-image {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #eeeeee;
}

.top-school-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.top-school-card:hover
.top-school-card-image img {
    transform: scale(1.04);
}

.top-school-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.top-school-card-content {
    padding: 28px;
}

.top-school-card-logo {
    width: 70px;
    height: 70px;
    margin-top: -62px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 8px;
    position: relative;
    z-index: 2;
}

.top-school-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-school-card h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.top-school-card h2 a {
    color: inherit;
    text-decoration: none;
}

.top-school-location {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: .75;
}

.top-school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.top-school-tags span {
    background: #f5f3ed;
    border-radius: 50px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
}

.top-school-card p {
    line-height: 1.7;
}

.top-school-view {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 700;
}

.top-school-pagination {
    margin-top: 50px;
}


/* ==========================================================
   Single School Cover
========================================================== */

.top-school-cover {
    min-height: 510px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.top-school-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-school-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.76),
            rgba(0,0,0,.18)
        );
}

.top-school-cover-fallback {
    position: absolute;
    inset: 0;
    background: #12483c;
}

.top-school-cover-content {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.top-school-profile-heading {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #ffffff;
}

.top-school-profile-logo {
    width: 135px;
    height: 135px;
    flex: 0 0 135px;
    background: #ffffff;
    padding: 15px;
}

.top-school-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-school-profile-heading h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    margin: 0 0 10px;
}

.top-school-heading-location {
    font-size: 18px;
    margin: 0 0 22px;
}

.top-primary-button {
    display: inline-block;
    background: #ffffff;
    color: #12483c;
    padding: 13px 22px;
    text-decoration: none;
    font-weight: 700;
}


/* ==========================================================
   Single School Main
========================================================== */

.top-school-main {
    padding: 85px 0;
}

.top-school-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 70px;
}

.top-school-section {
    margin-bottom: 70px;
}

.top-school-section h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 25px;
}

.top-school-description {
    font-size: 17px;
    line-height: 1.85;
}

.top-school-description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Sidebar
========================================================== */

.top-school-info-card {
    border: 1px solid #e4e4e4;
    padding: 30px;
    position: sticky;
    top: 110px;
}

.top-school-info-card h3 {
    margin-top: 0;
    font-size: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeee;
}

.top-school-info-row {
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
}

.top-school-info-row span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .65;
    margin-bottom: 6px;
}

.top-school-info-row strong {
    font-size: 15px;
    line-height: 1.55;
}

.top-school-info-row a {
    color: inherit;
    text-decoration: none;
}

.top-school-website-button {
    display: block;
    margin-top: 25px;
    padding: 14px 18px;
    text-align: center;
    text-decoration: none;
    border: 1px solid currentColor;
    font-weight: 700;
}


/* ==========================================================
   Gallery
========================================================== */

.top-school-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.top-school-gallery-item {
    overflow: hidden;
    height: 300px;
}

.top-school-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================
   Back
========================================================== */

.top-school-back {
    padding: 0 0 80px;
}

.top-school-back a {
    font-weight: 700;
    text-decoration: none;
}
/* ==========================================================
   School Related Stories
========================================================== */

.top-school-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.top-school-news-card {
    border: 1px solid #e7e7e7;
    background: #ffffff;
    overflow: hidden;
}

.top-school-news-image {
    display: block;
    height: 170px;
    overflow: hidden;
}

.top-school-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.top-school-news-card:hover
.top-school-news-image img {
    transform: scale(1.04);
}

.top-school-news-content {
    padding: 20px;
}

.top-school-news-category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.top-school-news-card h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.top-school-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.top-school-news-date {
    font-size: 13px;
    opacity: .65;
    margin-bottom: 15px;
}

.top-school-news-read {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 1024px) {

    .top-school-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-school-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .top-school-info-card {
        position: static;
    }
	.top-school-news-grid {
    grid-template-columns: repeat(2, 1fr);
}
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {

    .top-container {
        width: min(100% - 30px, 1180px);
    }

    .top-schools-hero {
        padding: 60px 0;
    }

    .top-school-directory {
        padding: 50px 0;
    }

    .top-school-grid {
        grid-template-columns: 1fr;
    }

    .top-school-cover {
        min-height: 500px;
    }

    .top-school-profile-heading {
        display: block;
    }

    .top-school-profile-logo {
        width: 95px;
        height: 95px;
        margin-bottom: 20px;
    }

    .top-school-cover-content {
        padding-bottom: 40px;
    }

    .top-school-main {
        padding: 55px 0;
    }

    .top-school-gallery {
        grid-template-columns: 1fr;
    }

    .top-school-gallery-item {
        height: 250px;
    }
	.top-school-news-grid {
    grid-template-columns: 1fr;
}
}