/* School / School Report test content.
   Loaded only for school-related requests with ?mode=test. */

.school-test-archive,
.school-report-single {
    --school-test-blue: #1aa9df;
    --school-test-navy: #173b52;
    --school-test-pale: #eef9fc;
    --school-test-line: #d9e8ee;
    color: #20272b;
}

.school-test-inner,
.school-report-single__article {
    width: min(1000px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.school-test-heading {
    margin: 0 auto 52px;
    padding: 64px 20px 58px;
    text-align: center;
    background: linear-gradient(130deg, #eefafd 0%, #fff 54%, #f5fbec 100%);
}

.school-test-heading__en {
    margin: 0 0 10px;
    color: var(--school-test-blue);
    font: 700 13px/1.2 Rubik, sans-serif;
    letter-spacing: .14em;
}

.school-test-heading h1 {
    margin: 0;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.45;
}

.school-test-heading > p:last-child {
    margin: 15px 0 0;
    font-size: 15px;
    line-height: 1.8;
}

.school-test-grid,
.school-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 30px;
    padding-bottom: 90px;
}

.school-test-card,
.school-report-card {
    overflow: hidden;
    border: 1px solid var(--school-test-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 63, 81, .07);
}

.school-test-card > a,
.school-report-card > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: opacity .3s ease, transform .3s ease;
}

.school-test-card > a:hover,
.school-report-card > a:hover {
    opacity: .82;
    transform: translateY(-3px);
}

.school-test-card__image,
.school-report-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--school-test-pale);
}

.school-test-card__image img,
.school-report-card__image img,
.school-report-single__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-test-card__body,
.school-report-card__body {
    padding: 22px 24px 25px;
}

.school-test-card__labels,
.school-report-card__categories,
.school-report-single__categories,
.school-report-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.school-test-card__labels span,
.school-report-card__categories span,
.school-report-single__categories span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    background: var(--school-test-blue);
    font-size: 12px;
    font-weight: 700;
}

.school-test-card h2,
.school-report-card h2 {
    margin: 12px 0 5px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
}

.school-test-card__department,
.school-report-card__school {
    margin: 0;
    color: var(--school-test-navy);
    font-size: 14px;
    font-weight: 700;
}

.school-test-card__copy {
    display: -webkit-box;
    overflow: hidden;
    margin: 13px 0 0;
    font-size: 13px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.school-test-card__more {
    display: inline-flex;
    margin-top: 18px;
    color: var(--school-test-blue);
    font-size: 13px;
    font-weight: 700;
}

.school-report-card__tags {
    margin: 11px 0 0;
    color: #68808d;
    font-size: 12px;
    line-height: 1.6;
}

.school-report-card time {
    display: block;
    margin-top: 12px;
    color: #80919a;
    font: 500 13px/1 Rubik, sans-serif;
}

.school-test-empty,
.school-post-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 50px 20px;
    border-radius: 12px;
    text-align: center;
    background: #f5f8f9;
}

.school-test-pagination {
    margin: 0 auto 90px;
}

.school-qualification-note {
    margin: 16px 0 0;
    color: #526069;
    font-size: 13px;
    line-height: 1.8;
}

.school-report-single__article {
    padding: 70px 0 110px;
}

.school-report-single__header {
    margin-bottom: 34px;
    text-align: center;
}

.school-report-single__categories {
    justify-content: center;
    margin-bottom: 14px;
}

.school-report-single__header h1 {
    margin: 0;
    font-size: clamp(25px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.5;
}

.school-report-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 18px;
    color: #71828a;
    font-size: 14px;
}

.school-report-single__meta a {
    color: var(--school-test-navy);
    font-weight: 700;
}

.school-report-single__meta time {
    font-family: Rubik, sans-serif;
}

.school-report-single__visual {
    overflow: hidden;
    margin: 0 0 38px;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    background: var(--school-test-pale);
}

.school-report-single__summary {
    margin: 0 0 34px;
    padding: 22px 25px;
    border-left: 5px solid var(--school-test-blue);
    background: var(--school-test-pale);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
}

.school-report-single__content {
    font-size: 16px;
    line-height: 2;
}

.school-report-single__content > * + * {
    margin-top: 1.6em;
}

.school-report-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.school-report-single__tags {
    margin-top: 42px;
}

.school-report-single__tags span {
    color: #56717d;
    font-size: 13px;
}

.school-report-single__back {
    margin-top: 54px;
    text-align: center;
}

.school-report-single__back a {
    display: inline-flex;
    min-width: 240px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: #111;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .3s ease;
}

.school-report-single__back a:hover {
    opacity: .7;
}

@media (max-width: 767px) {
    .school-test-inner,
    .school-report-single__article {
        width: calc(100% - 30px);
    }

    .school-test-heading {
        margin-bottom: 34px;
        padding: 44px 15px 40px;
    }

    .school-test-heading > p:last-child {
        font-size: 13px;
    }

    .school-test-grid,
    .school-report-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-bottom: 65px;
    }

    .school-test-card__body,
    .school-report-card__body {
        padding: 18px 18px 21px;
    }

    .school-test-card h2,
    .school-report-card h2 {
        font-size: 17px;
    }

    .school-report-single__article {
        padding: 48px 0 75px;
    }

    .school-report-single__header h1 {
        font-size: 23px;
    }

    .school-report-single__visual {
        margin-bottom: 28px;
        border-radius: 10px;
    }

    .school-report-single__summary,
    .school-report-single__content {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .school-test-card > a,
    .school-report-card > a {
        transition: none;
    }
}
