/* Achievements page: a celebratory, structured gallery layout. */
.achievements-page {
    padding: 88px 0 110px;
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 211, 53, .18), transparent 24%),
        #f4f8fc;
}

.achievements-page .gallery-page-intro {
    margin-bottom: 42px;
}

.achievements-page .gallery-page-intro h1 {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

.achievement-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0 auto 55px;
}

.achievement-values article {
    position: relative;
    min-height: 190px;
    padding: 26px 25px 23px;
    overflow: hidden;
    border: 1px solid #dce8f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 47, 75, .06);
    transition: .25s ease;
}

.achievement-values article::after {
    position: absolute;
    right: -35px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    border: 18px solid rgba(0, 91, 163, .06);
    border-radius: 50%;
    content: "";
}

.achievement-values article:nth-child(2)::after {
    border-color: rgba(32, 173, 150, .08);
}

.achievement-values article:nth-child(3)::after {
    border-color: rgba(255, 143, 60, .1);
}

.achievement-values article:hover {
    border-color: rgba(0, 91, 163, .25);
    box-shadow: 0 18px 34px rgba(16, 47, 75, .11);
    transform: translateY(-5px);
}

.achievement-values article i {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 13px;
    background: #e8f4ff;
    color: #005ba3;
    font-size: 21px;
}

.achievement-values article:nth-child(2) i {
    background: #eaf8f3;
    color: #16876f;
}

.achievement-values article:nth-child(3) i {
    background: #fff5d0;
    color: #b37d00;
}

.achievement-values h3 {
    margin-bottom: 8px;
    color: #102f4b;
    font-size: 19px;
    font-weight: 800;
}

.achievement-values p {
    max-width: 300px;
    margin-bottom: 0;
    color: #617384;
    font-size: 14px;
    line-height: 1.6;
}

.achievements-page .gallery-event-section {
    margin-bottom: 30px;
    padding: 34px;
    border: 1px solid #dce8f1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 47, 75, .07);
}

.achievements-page .gallery-event-section:last-of-type {
    margin-bottom: 0;
}

.achievements-page .gallery-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4edf4;
}

.achievements-page .gallery-section-heading h2 {
    margin-bottom: 9px;
    color: #102f4b;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.achievements-page .gallery-section-heading p {
    max-width: 700px;
    margin-bottom: 0;
    color: #617384;
    font-size: 15px;
}

.achievements-page .school-gallery-card {
    position: relative;
    height: 275px;
    overflow: hidden;
    border-radius: 15px;
    background: #e8f4ff;
    box-shadow: 0 10px 22px rgba(16, 47, 75, .1);
}

.achievements-page .school-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.achievements-page .school-gallery-card:hover img {
    transform: scale(1.06);
}

.achievements-page .school-gallery-card .overlink {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, transparent 35%, rgba(7, 52, 90, .72));
    opacity: 0;
    transition: opacity .25s ease;
}

.achievements-page .school-gallery-card:hover .overlink,
.achievements-page .school-gallery-card:focus-within .overlink {
    opacity: 1;
}

.achievements-page .gallery-open-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #005ba3;
    font-size: 17px;
}

.gallery-page-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 45px;
}

.achievements-page .gallery-page-actions .rts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 10px;
    font-weight: 800;
}

.achievements-page .gallery-page-actions .btn-primary {
    background: #005ba3;
    box-shadow: 0 12px 22px rgba(0, 91, 163, .17);
}

.achievements-page .gallery-page-actions .btn-primary:hover {
    background: #07345a;
}

.achievements-page .gallery-page-actions .btn-border {
    border: 1px solid #005ba3;
    color: #005ba3;
}

.achievements-page .gallery-page-actions .btn-border:hover {
    background: #005ba3;
    color: #fff;
}

@media (max-width: 991px) {
    .achievements-page {
        padding: 72px 0 85px;
    }

    .achievement-values {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .achievement-values article {
        min-height: auto;
    }

    .achievements-page .school-gallery-card {
        height: 250px;
    }
}

@media (max-width: 575px) {
    .achievements-page {
        padding: 60px 0 70px;
    }

    .achievements-page .gallery-page-intro {
        margin-bottom: 32px;
    }

    .achievements-page .gallery-event-section {
        margin-bottom: 20px;
        padding: 22px 17px;
        border-radius: 16px;
    }

    .achievements-page .gallery-section-heading {
        align-items: start;
        margin-bottom: 19px;
        padding-bottom: 16px;
    }

    .achievements-page .gallery-section-heading h2 {
        font-size: 25px;
    }

    .achievements-page .school-gallery-card {
        height: 235px;
    }

    .gallery-page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .achievements-page .gallery-page-actions .rts-btn {
        width: 100%;
    }
}
