/* =========================================================
   OHM Academy — Opleidingen v2.4
   Nieuwe pagina-CSS. Originele teksten en foto's blijven 1-op-1.
   ========================================================= */

.ohm-opleidingen-native {
    --oa-green: #55963b;
    --oa-green-dark: #346b2a;
    --oa-green-soft: #eef6ea;
    --oa-blue: #62b9dc;
    --oa-ink: #35413b;
    --oa-text: #5e6964;
    --oa-line: #e1e8e3;
    --oa-soft: #f4f8f3;
    --oa-radius: 20px;
    --oa-shadow: 0 18px 46px rgba(36, 67, 45, .09);
    background: #f8faf8;
}

.ohm-opleidingen-page,
.ohm-opleidingen-page *,
.ohm-opleidingen-page *::before,
.ohm-opleidingen-page *::after {
    box-sizing: border-box;
}

.ohm-opleidingen-page {
    padding: 44px 18px 78px;
    color: var(--oa-text);
}

.ohm-opleidingen-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ohm-opleidingen-jumps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 28px;
    padding: 12px;
    border: 1px solid var(--oa-line);
    border-radius: var(--oa-radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 67, 45, .055);
}

.ohm-opleiding-jump {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 11px;
    background: var(--oa-green-soft);
    color: var(--oa-green-dark) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ohm-opleiding-jump:hover,
.ohm-opleiding-jump:focus-visible {
    background: var(--oa-green);
    color: #fff !important;
    transform: translateY(-1px);
}

.ohm-opleidingen-list {
    display: grid;
    gap: 26px;
}

.ohm-opleiding-card {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--oa-line);
    border-radius: var(--oa-radius);
    background: #fff;
    box-shadow: var(--oa-shadow);
}

.ohm-opleiding-card--reverse {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
}

.ohm-opleiding-card--reverse .ohm-opleiding-media {
    order: 2;
}

.ohm-opleiding-card--reverse .ohm-opleiding-copy {
    order: 1;
}

.ohm-opleiding-media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #eaf0eb;
}

.ohm-opleiding-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ohm-opleiding-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(34px, 5vw, 58px);
}

.ohm-opleiding-copy h2 {
    margin: 0 0 20px;
    color: var(--oa-ink);
    font-size: clamp(30px, 3.5vw, 45px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.ohm-opleiding-copy p {
    margin: 0 0 15px;
    color: var(--oa-text);
    font-size: 16px;
    line-height: 1.72;
}

.ohm-opleiding-copy p:last-of-type {
    margin-bottom: 0;
}

.ohm-opleiding-button {
    align-self: flex-start;
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--oa-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(57, 139, 171, .18);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.ohm-opleiding-button:hover,
.ohm-opleiding-button:focus-visible {
    filter: brightness(.93);
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(57, 139, 171, .24);
}

/* De volledige originele Elementor-bron blijft aanwezig, inclusief alle
   destijds verborgen opleidingen/blokken, maar neemt geen ruimte in. */
.ohm-opleidingen-legacy-source {
    display: none !important;
}

@media (max-width: 920px) {
    .ohm-opleidingen-jumps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ohm-opleiding-card,
    .ohm-opleiding-card--reverse {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ohm-opleiding-card--reverse .ohm-opleiding-media,
    .ohm-opleiding-card--reverse .ohm-opleiding-copy {
        order: initial;
    }

    .ohm-opleiding-media img {
        height: min(58vw, 430px);
        min-height: 330px;
    }
}

@media (max-width: 620px) {
    .ohm-opleidingen-page {
        padding: 24px 10px 48px;
    }

    .ohm-opleidingen-jumps {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
        padding: 9px;
        border-radius: 15px;
    }

    .ohm-opleiding-jump {
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 13px;
        text-align: left;
    }

    .ohm-opleidingen-list {
        gap: 16px;
    }

    .ohm-opleiding-card {
        border-radius: 16px;
    }

    .ohm-opleiding-media img {
        height: 64vw;
        min-height: 230px;
        max-height: 330px;
    }

    .ohm-opleiding-copy {
        padding: 27px 22px 30px;
    }

    .ohm-opleiding-copy h2 {
        margin-bottom: 16px;
        font-size: clamp(29px, 9vw, 38px);
    }

    .ohm-opleiding-copy p {
        font-size: 15px;
        line-height: 1.68;
    }

    .ohm-opleiding-button {
        width: 100%;
        margin-top: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ohm-opleiding-jump,
    .ohm-opleiding-button {
        transition: none !important;
    }
}
