/* Vertical age carousel */
.agev-section {
    padding: 80px 0;
    position: relative;
    margin-bottom: -1px;
    background: linear-gradient(180deg, #f1f3f6 0%, #f7f8fa 68%, var(--warm-white) 100%);
}

.agev-layout {
    display: grid;
    grid-template-columns: minmax(340px, 45%) 90px minmax(360px, 55%);
    min-height: 680px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(14, 20, 34, 0.14);
}

.agev-copy {
    background: #e8ebf0;
    padding: 52px 44px 36px;
}

.agev-copy h2 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4d5568;
}

.agev-copy h2::after {
    content: "";
    display: block;
    margin-top: 14px;
    width: 220px;
    height: 3px;
    background: #b9af99;
}

.agev-copy p {
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: #1b1f29;
    line-height: 1.56;
}

.agev-procedures {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid rgba(200, 168, 106, 0.25);
    border-radius: 12px;
    background: #19253D;
    transform: translateX(-18px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.agev-layout:hover .agev-procedures,
.agev-layout.engaged .agev-procedures {
    transform: translateX(0);
    opacity: 1;
}

.agev-procedures h3 {
    margin: 0 0 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(200, 168, 106, 0.85);
}

#agevProceduresList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

#agevProceduresList li {
    color: rgba(255, 255, 255, 0.9);
}

#agevProceduresList a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

#agevProceduresList a:hover {
    color: #C8A86A;
    text-decoration: underline;
}

.agev-rail {
    position: relative;
    background: #d9dde6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.agev-rail::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(25, 37, 61, 0.35);
    transform: translateX(-50%);
}

.agev-node {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #b5becf;
    background: #f5f6f8;
    color: #2a3347;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1;
    transition: all 0.25s ease;
}

.agev-node:hover,
.agev-node:focus-visible,
.agev-node.active {
    background: #19253D;
    color: #f7f8fb;
    border-color: #19253D;
    transform: scale(1.08);
    outline: none;
}

.agev-image-pane {
    position: relative;
    overflow: hidden;
    background: #dce0e8;
}

.agev-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleY(1.02);
    transition: transform 0.45s ease;
}

.agev-layout:hover .agev-image,
.agev-layout.engaged .agev-image {
    transform: scaleY(1.1) scaleX(1.02);
}

@media (max-width: 980px) {
    .agev-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .agev-copy {
        order: 1;
        padding: 34px 20px;
    }

    .agev-rail {
        order: 2;
        flex-direction: row;
        gap: 10px;
        padding: 14px 8px;
    }

    .agev-rail::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
    }

    .agev-image-pane {
        order: 3;
        height: 360px;
    }

    #agevProceduresList {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 1fr;
        gap: 0;
        font-size: 0.8rem;
        width: 100%;
    }

    #agevProceduresList li {
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 6px 4px 6px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    #agevProceduresList li:nth-last-child(-n+2) {
        border-bottom: none;
    }

    #agevProceduresList a {
        text-align: left;
        line-height: 1.35;
    }

    #agevProceduresList li:nth-child(odd) {
        padding-right: 10px;
        border-right: 1px solid rgba(255,255,255,0.12);
    }

    #agevProceduresList li:nth-child(even) {
        padding-left: 10px;
    }

    .agev-procedures {
        transform: none;
        opacity: 1;
    }
}
