/* Honors showcase — shared by /about and /honor (3×2 carousel + pedestal) */

.about-honors {
    --about-brand: #00856f;
    --about-text-muted: #5a756e;
    --honors-max: min(1480px, 100%);
    --honors-gutter: clamp(20px, 4vw, 80px);
}

.honors-container {
    width: 100%;
    max-width: var(--honors-max);
    margin: 0 auto;
    padding-left: var(--honors-gutter);
    padding-right: var(--honors-gutter);
    box-sizing: border-box;
}

.about-honors {
    padding-top: 64px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #f0f6f4 0%, #f8faf9 45%, #fff 100%);
}

.about-honors--page {
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(64px, 8vw, 96px);
}

.about-honors__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.about-honors__heading {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.about-honors__more {
    font-size: 14px;
    font-weight: 600;
    color: var(--about-brand);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.about-honors__more:hover {
    opacity: 0.78;
}

.about-honors__stage {
    position: relative;
}

.about-honors__controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.about-honors__arrow {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 133, 111, 0.22);
    border-radius: 50%;
    background: #fff;
    color: var(--about-brand);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(0, 40, 32, 0.06);
}

.about-honors__arrow:hover:not(:disabled) {
    background: var(--about-brand);
    border-color: var(--about-brand);
    color: #fff;
    transform: scale(1.05);
}

.about-honors__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.about-honors__viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.about-honors__track {
    position: relative;
}

.about-honors__slide {
    display: none;
}

.about-honors__slide.is-active {
    display: block;
    animation: aboutHonorsSlideIn 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes aboutHonorsSlideIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-honors__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 40px);
    margin-bottom: clamp(24px, 4vw, 48px);
}

.about-honors__row:last-child {
    margin-bottom: 0;
}

.about-honors__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-honors__display {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    perspective: 880px;
}

.about-honors__cert {
    position: relative;
    z-index: 3;
    height: 140px;
    margin-bottom: -16px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    cursor: zoom-in;
    transition: transform 0.35s ease;
}

.about-honors__cert img {
    height: 100%;
    max-height: 140px;
    max-width: 78%;
    width: auto;
    object-fit: contain;
    transform: rotateX(11deg) rotateY(calc((var(--honor-i, 1) - 1) * -1.5deg));
    transform-origin: center bottom;
    transform-style: preserve-3d;
    filter: drop-shadow(0 8px 14px rgba(0, 40, 32, 0.2));
    transition: filter 0.35s;
    animation: aboutHonorFloat 5s ease-in-out infinite;
    animation-delay: calc(var(--honor-i, 0) * 0.4s);
    pointer-events: none;
}

.about-honors__cert:hover {
    transform: scale(1.05);
}

.about-honors__cert:hover img {
    animation-play-state: paused;
    filter: drop-shadow(0 10px 18px rgba(0, 40, 32, 0.24));
}

.about-honors__pedestal {
    position: relative;
    z-index: 1;
    height: 52px;
    width: 100%;
    pointer-events: none;
}

.about-honors__pedestal img {
    position: absolute;
    left: 50%;
    top: -8%;
    transform: translateX(-50%);
    width: min(280px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 40, 32, 0.12));
}

.about-honors__name {
    margin: 10px 0 0;
    max-width: 300px;
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--about-text-muted);
}

.about-honors__tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.about-honors__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(0, 133, 111, 0.2);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--about-text-muted);
    cursor: pointer;
    transition: all 0.25s;
}

.about-honors__tab.is-active,
.about-honors__tab:hover {
    background: var(--about-brand);
    border-color: var(--about-brand);
    color: #fff;
}

.about-honors__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.about-honors__lightbox[hidden] {
    display: none;
}

.about-honors__lightbox img {
    max-width: min(92vw, 960px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.about-honors__lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.about-honors__lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@keyframes aboutHonorFloat {
    0%, 100% {
        transform: rotateX(11deg) rotateY(calc((var(--honor-i, 1) - 1) * -1.5deg)) translateY(0);
    }
    50% {
        transform: rotateX(11deg) rotateY(calc((var(--honor-i, 1) - 1) * -1.5deg)) translateY(-4px);
    }
}

@media (max-width: 991px) {
    .about-honors__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-honors__pedestal img {
        width: min(260px, 100%);
    }
}

@media (max-width: 600px) {
    .about-honors__controls {
        gap: 8px;
    }

    .about-honors__arrow {
        width: 40px;
        height: 40px;
    }

    .about-honors__row {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-honors__cert {
        height: 130px;
        margin-bottom: -14px;
    }

    .about-honors__cert img {
        max-height: 130px;
        max-width: 80%;
    }

    .about-honors__pedestal {
        height: 48px;
    }

    .about-honors__pedestal img {
        width: min(240px, 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-honors__slide.is-active {
        animation: none;
    }

    .about-honors__cert img {
        animation: none;
    }
}
