/* OGC Past Clients — V2 accessible, linked, continuously moving logo showcase */
.ogc-past-clients-section {
    padding: 28px 0 54px;
    background: #ffffff;
}
.ogc-past-clients-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}
.ogc-past-clients-heading {
    max-width: 760px;
    margin: 0 auto 23px;
    text-align: center;
}
.ogc-past-clients-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #159678;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
}
.ogc-past-clients-heading h2 {
    margin: 0 0 9px;
    color: #153846;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.035em;
}
.ogc-past-clients-heading p {
    margin: 0;
    color: #74838a;
    font-size: 14px;
    line-height: 1.7;
}

.ogc-past-clients-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}
.ogc-past-clients-track {
    display: flex;
    width: max-content;
    align-items: stretch;
    animation: ogcPastClientsScroll 48s linear infinite;
    will-change: transform;
}
.ogc-past-clients-marquee:hover .ogc-past-clients-track,
.ogc-past-clients-marquee:focus-within .ogc-past-clients-track {
    animation-play-state: paused;
}
.ogc-past-clients-group {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 18px;
    padding-right: 18px;
}
.ogc-past-client {
    box-sizing: border-box;
    flex: 0 0 158px;
    width: 158px;
    min-height: 142px;
    padding: 13px 11px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #edf2ef;
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ogc-past-client:hover,
.ogc-past-client:focus-visible {
    border-color: rgba(21,150,120,.38);
    box-shadow: 0 10px 25px rgba(21,56,70,.08);
    transform: translateY(-3px);
    outline: none;
}
.ogc-past-client:focus-visible {
    outline: 3px solid rgba(21,150,120,.28);
    outline-offset: 3px;
}
.ogc-past-client-logo {
    width: 100%;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}
.ogc-past-client-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}
.ogc-past-client-name {
    display: block;
    width: 100%;
    color: #52656d;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}
@keyframes ogcPastClientsScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Close up the gap between the online training section and past clients. */
body .ogc-online-training-section {
    padding-bottom: 20px;
}
body .ogc-online-training-note {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .ogc-past-clients-section { padding: 24px 0 42px; }
    .ogc-past-clients-container { width: min(100% - 32px, 520px); }
    .ogc-past-clients-heading { margin-bottom: 18px; }
    .ogc-past-clients-heading p { font-size: 13px; }
    .ogc-past-clients-group { gap: 12px; padding-right: 12px; }
    .ogc-past-client {
        flex-basis: 142px;
        width: 142px;
        min-height: 132px;
        padding: 11px 8px 10px;
    }
    .ogc-past-client-logo { height: 76px; }
    .ogc-past-client-name { font-size: 10px; }
    .ogc-past-clients-track { animation-duration: 42s; }
}
@media (prefers-reduced-motion: reduce) {
    .ogc-past-clients-track {
        animation: none;
        transform: none;
        will-change: auto;
    }
    .ogc-past-clients-marquee { overflow-x: auto; }
    .ogc-past-clients-group--duplicate { display: none; }
}
