.schoolphoto {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background: #f3f1ef;
}

.schoolphoto .section-title {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: 1rem 4rem;
    margin: 0 auto 3rem;
    text-align: left;
}

.schoolphoto .section-title h2 {
    position: relative;
    margin: 0;
    padding-bottom: 1.2rem;
    color: #25282c;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.schoolphoto .section-title h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 0.25rem;
    border-radius: 1rem;
    background: #bf001e;
    content: "";
}

.schoolphoto .section-title p {
    max-width: 680px;
    margin: 0;
    color: #555b62;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
}

.schoolphoto-grid > [class*="col-"] {
    display: flex;
}

.schoolphoto-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgba(37, 40, 44, 0.09);
}

.schoolphoto-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #25282c;
}

.schoolphoto-card-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 15, 19, 0.02) 28%, rgba(12, 15, 19, 0.82) 100%);
    content: "";
}

.schoolphoto-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schoolphoto-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.5rem 1.5rem;
}

.schoolphoto-card-title {
    position: absolute;
    z-index: 1;
    right: 1.5rem;
    bottom: 1.25rem;
    left: 1.5rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.schoolphoto-card-text {
    margin-bottom: 1rem;
    color: #5c626a;
    line-height: 1.75;
}

.schoolphoto-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    background: #f9e9ec;
    color: #a6001b;
    font-weight: 700;
    text-decoration: none;
}

.schoolphoto-card-link:hover {
    background: #bf001e;
    color: #fff;
    text-decoration: none;
}

.schoolphoto-card-link:focus-visible {
    outline: 3px solid rgba(191, 0, 30, 0.35);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .why-us {
        background: #f5f2ef;
    }

    #hero {
        min-height: 24rem;
        height: auto;
        margin-bottom: 0;
        padding: 5rem 0 3rem;
    }

    .why-us {
        padding: 0.5rem 0 1.5rem;
    }

    .why-us .content {
        padding: 1.5rem 1rem 1.25rem;
        border-left: 3px solid #bf001e;
        border-radius: 0;
        background: transparent;
        color: #25282c;
    }

    .why-us .content h3 {
        margin-bottom: 0.75rem;
        color: #25282c;
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .why-us .content p {
        margin-bottom: 0;
        color: #555b62;
        line-height: 1.7;
    }

    .schoolphoto .section-title {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .schoolphoto {
        background: #eee9e4;
    }

    .schoolphoto .section-title h2 {
        font-size: clamp(2.4rem, 10vw, 3.25rem);
    }

}
