/* TMA Graduates — mobile grid unchanged; desktop coverflow ≥992px */

.v16-gr-hero .v16-inner-hero__title {
    max-width: 18ch;
}

.v16-gr-hero--single .v16-inner-hero__title {
    max-width: 28ch;
    text-transform: none;
}

.v16-gr-section {
    padding: 2.5rem 0 4.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(102, 214, 231, 0.12), transparent 55%),
        linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%);
}

.v16-gr-section--single {
    padding-top: 1.5rem;
}

.v16-gr-empty {
    margin: 0;
    padding: 3rem 1rem;
    text-align: center;
    color: #4a6478;
    font-family: "Noto Sans Georgian", "Instrument Sans", system-ui, sans-serif;
}

/* ---- Mobile / tablet (<992): existing grid behavior ---- */
.v16-gr-carousel {
    position: relative;
}

.v16-gr-nav,
.v16-gr-dots {
    display: none;
}

.v16-gr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1080px;
    margin-inline: auto;
}

.v16-gr-card {
    min-width: 0;
}

.v16-gr-poster {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 34, 48, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v16-gr-poster:hover,
.v16-gr-poster:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(15, 34, 48, 0.2);
    outline: none;
}

.v16-gr-poster__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #152433;
    overflow: hidden;
}

.v16-gr-poster__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v16-gr-poster__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1d3a4f 0%, #0f2230 55%, #25485f 100%);
}

.v16-gr-read {
    display: none;
}

.v16-gr-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    width: min(72%, 24rem);
    min-height: 9.5rem;
    height: auto;
    padding: 1.05rem 1.2rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.45rem;
    background: rgba(214, 223, 233, 0.94);
    color: #0a2a45;
    border-top-right-radius: 1.75rem;
    border-bottom-right-radius: 0;
    text-align: left;
    font-family: "Noto Sans Georgian", "Montserrat", "Instrument Sans", system-ui, sans-serif;
    line-height: 1.3;
    backdrop-filter: blur(2px);
    overflow: visible;
}

.v16-gr-overlay__name,
.v16-gr-overlay__position,
.v16-gr-overlay__year {
    display: block;
    text-transform: uppercase;
    margin: 0;
    overflow: visible;
    white-space: normal;
}

.v16-gr-overlay__name {
    flex: 0 0 auto;
    font-family: var(--font-nav, "ExoCular", "FunicularMt", "Noto Sans Georgian", system-ui, sans-serif);
    font-weight: 800;
    font-size: clamp(0.95rem, 1.7vw, 1.3rem);
    letter-spacing: 0.02em;
    color: #0b3a58;
}

.v16-gr-overlay__position {
    flex: 0 0 auto;
    font-weight: 500;
    font-size: clamp(0.64rem, 1.05vw, 0.8rem);
    letter-spacing: 0.015em;
    color: #00668e;
}

.v16-gr-overlay__year {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    font-weight: 500;
    font-size: clamp(0.64rem, 1.05vw, 0.8rem);
    letter-spacing: 0.015em;
    color: #00668e;
}

.v16-gr-single__year {
    margin: 0.65rem 0 0;
    font-family: "Noto Sans Georgian", "Instrument Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b6c8f;
}

.v16-gr-single {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.v16-gr-single__poster .v16-gr-poster__media {
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 34, 48, 0.16);
    max-width: 560px;
    margin: 0 auto;
}

.v16-gr-single__content {
    color: #243847;
    font-family: "Noto Sans Georgian", "Manrope", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
}

.v16-gr-single__content p {
    margin: 0 0 1.1rem;
}

.v16-gr-single__content p:last-child {
    margin-bottom: 0;
}

.v16-gr-single__back {
    margin: 2rem 0 0;
}

.v16-gr-single__back a {
    color: #0b6c8f;
    font-family: "Noto Sans Georgian", "Instrument Sans", system-ui, sans-serif;
    font-weight: 600;
    text-decoration: none;
}

.v16-gr-single__back a:hover {
    text-decoration: underline;
}

@media (min-width: 700px) and (max-width: 991.98px) {
    .v16-gr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .v16-gr-overlay {
        width: min(68%, 26rem);
        min-height: 10.25rem;
        padding: 1.15rem 1.35rem 1.2rem 1.4rem;
        border-top-right-radius: 2rem;
    }

    .v16-gr-overlay__name {
        font-size: clamp(1.05rem, 1.55vw, 1.45rem);
    }

    .v16-gr-overlay__position,
    .v16-gr-overlay__year {
        font-size: clamp(0.68rem, 0.95vw, 0.84rem);
    }
}

@media (max-width: 699px) {
    .v16-gr-section {
        padding: 1.5rem 0 3rem;
    }

    .v16-gr-poster {
        border-radius: 16px;
    }

    .v16-gr-overlay {
        width: 78%;
        min-height: 9rem;
    }
}

/* ---- Desktop / large tablet: coverflow carousel ---- */
@media (min-width: 992px) {
    .v16-gr-section__inner.container {
        max-width: none;
        width: min(1500px, 96vw);
        padding-inline: 0;
    }

    .v16-gr-carousel {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .v16-gr-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.85rem;
        height: 2.85rem;
        border: 1px solid rgba(13, 61, 87, 0.14);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        color: #0d3d57;
        font-size: 1.55rem;
        line-height: 1;
        cursor: pointer;
        z-index: 8;
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 22px rgba(15, 34, 48, 0.1);
        transition: background 0.25s ease, transform 0.25s ease;
    }

    .v16-gr-nav:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1.05);
    }

    .v16-gr-viewport {
        position: relative;
        width: 100%;
        height: clamp(400px, 44vw, 540px);
        overflow: hidden;
        touch-action: pan-y;
    }

    .v16-gr-grid {
        position: absolute;
        inset: 0;
        display: block;
        max-width: none;
        margin: 0;
        gap: 0;
    }

    .v16-gr-card {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(360px, 26vw);
        margin: 0;
        transform: translate3d(-50%, -50%, 0) scale(0.7);
        transform-origin: center center;
        transition:
            transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 480ms ease,
            filter 480ms ease;
        will-change: transform;
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }

    .v16-gr-card.is-visible {
        pointer-events: auto;
        opacity: 1;
    }

    .v16-gr-card.is-center {
        z-index: 5;
        filter: none;
    }

    .v16-gr-card.is-near,
    .v16-gr-card.is-far {
        cursor: pointer;
    }

    .v16-gr-card.is-near {
        z-index: 4;
        filter: brightness(0.97);
    }

    .v16-gr-card.is-far {
        z-index: 3;
        filter: brightness(0.93);
    }

    .v16-gr-card.is-center .v16-gr-poster,
    .v16-gr-card.is-near .v16-gr-poster,
    .v16-gr-card.is-far .v16-gr-poster {
        transition: box-shadow 0.35s ease, filter 0.35s ease;
    }

    .v16-gr-card.is-center .v16-gr-poster {
        box-shadow:
            0 22px 48px rgba(15, 34, 48, 0.22),
            0 0 0 1px rgba(0, 102, 142, 0.12);
    }

    .v16-gr-poster:hover,
    .v16-gr-poster:focus-visible {
        transform: none;
        box-shadow: 0 14px 34px rgba(15, 34, 48, 0.14);
    }

    .v16-gr-card.is-near .v16-gr-poster:hover,
    .v16-gr-card.is-near .v16-gr-poster:focus-visible,
    .v16-gr-card.is-far .v16-gr-poster:hover,
    .v16-gr-card.is-far .v16-gr-poster:focus-visible {
        box-shadow:
            0 0 0 2px rgba(0, 102, 142, 0.35),
            0 0 24px 6px rgba(0, 102, 142, 0.32),
            0 0 48px 10px rgba(102, 214, 231, 0.2),
            0 20px 40px rgba(15, 34, 48, 0.22);
        filter: brightness(1.03);
    }

    .v16-gr-card.is-center .v16-gr-poster:hover,
    .v16-gr-card.is-center .v16-gr-poster:focus-visible {
        box-shadow:
            0 0 0 2px rgba(0, 102, 142, 0.45),
            0 0 32px 8px rgba(0, 102, 142, 0.4),
            0 0 64px 14px rgba(102, 214, 231, 0.28),
            0 28px 56px rgba(15, 34, 48, 0.28);
        filter: brightness(1.04);
    }

    .v16-gr-read {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        z-index: 3;
        margin: 0;
        padding: 1rem;
        border: 0;
        border-radius: 0;
        background: rgba(11, 58, 88, 0.42);
        color: #fff;
        font-family: var(--font-nav, "ExoCular", "FunicularMt", "Noto Sans Georgian", system-ui, sans-serif);
        font-size: clamp(1.65rem, 2.8vw, 2.35rem);
        font-weight: 800;
        letter-spacing: 0.06em;
        line-height: 1.1;
        text-transform: uppercase;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.92);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .v16-gr-card.is-center .v16-gr-poster:hover .v16-gr-read,
    .v16-gr-card.is-center .v16-gr-poster:focus-visible .v16-gr-read {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .v16-gr-dots {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-top: 1.35rem;
    }

    .v16-gr-dot {
        width: 0.55rem;
        height: 0.55rem;
        border: 0;
        padding: 0;
        border-radius: 999px;
        background: rgba(13, 61, 87, 0.22);
        cursor: pointer;
        transition: width 0.25s ease, background 0.25s ease;
    }

    .v16-gr-dot.is-active {
        width: 1.45rem;
        background: #0b6c8f;
    }

    .v16-gr-overlay {
        width: min(70%, 18rem);
        min-height: 8.5rem;
        padding: 0.95rem 1.1rem 1rem 1.15rem;
    }

    .v16-gr-overlay__name {
        font-size: clamp(0.95rem, 1.2vw, 1.25rem);
    }

    .v16-gr-overlay__position,
    .v16-gr-overlay__year {
        font-size: clamp(0.6rem, 0.8vw, 0.74rem);
    }

    .v16-gr-single {
        grid-template-columns: minmax(320px, 480px) 1fr;
        gap: 2.5rem;
        max-width: 1120px;
        margin-inline: auto;
        padding-inline: 1rem;
    }

    .v16-gr-single__poster .v16-gr-poster__media {
        margin: 0;
        max-width: none;
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .v16-gr-card {
        transition: none;
    }

    .v16-gr-nav {
        transition: none;
    }
}
