/* Qualifications and honors: real certificate images with semantic HTML copy. */
.honors-preview .section-heading {
    align-items: center
}

.honors-preview .honor-grid {
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 20px
}

.honors-preview .honor-card {
    display: block;
    overflow: hidden;
    text-align: left;
    color: inherit
}

.honors-preview .honor-card:hover {
    transform: translateY(-5px) scale(1.012) !important;
    border-color: #b8cde4 !important;
    box-shadow: 0 18px 38px rgba(14, 52, 91, .16) !important
}

.honor-image-stage {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, #fbfcfe, #f1f5f9);
    border-bottom: 1px solid var(--line);
    overflow: hidden
}

.honor-image-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease
}

.honors-preview .honor-card:hover .honor-image-stage img {
    transform: scale(1.025)
}

.honors-preview .honor-card .body {
    padding: 18px 20px 20px !important
}

.honors-preview .honor-card h3 {
    margin: 0 0 6px !important;
    font-size: 17px !important;
    color: var(--heading)
}

.honors-preview .honor-card p {
    margin: 0;
    font-size: 13px !important;
    color: var(--muted)
}

.honor-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px
}

.honor-filter button {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid #c9d8e7;
    border-radius: 999px;
    background: #fff;
    color: #315574;
    cursor: pointer;
    font-weight: 700;
    transition: .2s
}

.honor-filter button:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.honor-filter button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 7px 18px rgba(0, 66, 142, .18)
}

.honor-gallery {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 18px
}

.honor-gallery-card {
    display: block;
    overflow: hidden;
    color: inherit;
    transition: transform .25s, border-color .25s, box-shadow .25s
}

.honor-gallery-card[hidden] {
    display: none
}

.honor-gallery-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #b8cde4;
    box-shadow: 0 18px 38px rgba(14, 52, 91, .15)
}

.honor-gallery-card .honor-image-stage {
    height: 290px;
    padding: 16px
}

.honor-gallery-card .body {
    padding: 16px 18px 18px
}

.honor-gallery-card .body span {
    display: block;
    margin-bottom: 5px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em
}

.honor-gallery-card h3 {
    margin: 0;
    color: var(--heading);
    font-size: 16px;
    line-height: 1.5
}

.honor-gallery-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px
}

.honor-dialog {
    width: min(1120px, calc(100% - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 24, 54, .36)
}

.honor-dialog::backdrop {
    background: rgba(0, 24, 54, .78);
    backdrop-filter: blur(3px)
}

.honor-dialog-inner {
    position: relative;
    display: grid;
    grid-template-rows:minmax(0, 1fr) auto;
    max-height: calc(100vh - 40px)
}

.honor-dialog-figure {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 76px;
    background: #edf2f7
}

.honor-dialog-figure img {
    max-width: 100%;
    max-height: calc(100vh - 155px);
    object-fit: contain
}

.honor-dialog-caption {
    position: relative;
    padding: 18px 108px 20px 22px
}

.honor-dialog-caption strong {
    display: block;
    color: var(--heading);
    font-size: 18px
}

.honor-dialog-caption span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px
}

.honor-dialog-counter {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700
}

.honor-dialog-close {
    position: absolute;
    z-index: 2;
    right: 16px;
    top: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 42, 89, .9);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2)
}

.honor-dialog-close:hover {
    background: var(--brand)
}

.honor-dialog-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(0, 42, 89, .84);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 7px 20px rgba(0, 24, 54, .24);
    transition: background .2s, transform .2s
}

.honor-dialog-nav:hover {
    background: var(--brand);
    transform: translateY(-50%) scale(1.06)
}

.honor-dialog-nav:focus-visible {
    outline: 3px solid #9ac7ff;
    outline-offset: 3px
}

.honor-dialog-nav::before {
    content: "";
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor
}

.honor-dialog-prev {
    left: 16px
}

.honor-dialog-next {
    right: 16px
}

.honor-dialog-prev::before {
    transform: translateX(2px) rotate(-135deg)
}

.honor-dialog-next::before {
    transform: translateX(-2px) rotate(45deg)
}

body.has-honor-dialog {
    overflow: hidden
}

@media (max-width: 1100px) {
    .honors-preview .honor-grid, .honor-gallery {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}

@media (max-width: 760px) {
    .honors-preview .honor-grid, .honor-gallery {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .honor-image-stage, .honor-gallery-card .honor-image-stage {
        height: 230px;
        padding: 14px
    }

    .honor-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin
    }

    .honor-filter button {
        flex: none
    }
}

@media (max-width: 520px) {
    .honors-preview .honor-grid, .honor-gallery {
        grid-template-columns:1fr
    }

    .honor-image-stage, .honor-gallery-card .honor-image-stage {
        height: 300px
    }

    .honor-dialog-figure {
        padding: 16px 48px
    }

    .honor-dialog-nav {
        width: 38px;
        height: 38px
    }

    .honor-dialog-prev {
        left: 5px
    }

    .honor-dialog-next {
        right: 5px
    }

    .honor-dialog-caption {
        padding: 15px 72px 17px 16px
    }

    .honor-dialog-counter {
        right: 16px
    }
}

@media (prefers-reduced-motion: reduce) {
    .honors-preview .honor-card, .honor-gallery-card, .honor-image-stage img {
        transition: none !important
    }
}
