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

.ohm-workshops-native {
    --ws-green: #55963b;
    --ws-green-dark: #346b2a;
    --ws-blue: #62b9dc;
    --ws-ink: #35413b;
    --ws-text: #5e6964;
    --ws-line: #e1e8e3;
    --ws-radius: 18px;
    --ws-shadow: 0 14px 34px rgba(36, 67, 45, .08);
    background: #f8faf8;
}

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

.ohm-workshops-page {
    padding: 42px 18px 76px;
    color: var(--ws-text);
}

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

.ohm-workshops-heading {
    margin-bottom: 24px;
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(90deg, #65b8d9, #77c4df);
    box-shadow: 0 8px 20px rgba(73, 151, 183, .12);
}

.ohm-workshops-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.12;
    letter-spacing: -.02em;
}

.ohm-workshops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ohm-workshop-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    background: #fff;
    box-shadow: var(--ws-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.ohm-workshop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(36, 67, 45, .12);
}

.ohm-workshop-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf2ee;
}

.ohm-workshop-media > a,
.ohm-workshop-media > img {
    display: block;
    width: 100%;
    height: 100%;
}

.ohm-workshop-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
    object-position: center;
    transition: transform .32s ease;
}

.ohm-workshop-card:hover .ohm-workshop-media img {
    transform: scale(1.025);
}

.ohm-workshop-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 25px 24px 24px;
}

.ohm-workshop-text {
    flex: 0 0 auto;
}

.ohm-workshop-text h1,
.ohm-workshop-text h2,
.ohm-workshop-text h3,
.ohm-workshop-text h4 {
    margin: 0 0 11px;
    color: var(--ws-ink) !important;
    font-size: 24px !important;
    line-height: 1.16 !important;
    letter-spacing: -.018em;
}

.ohm-workshop-text p {
    margin: 0 0 13px;
    color: var(--ws-text) !important;
    font-size: 15px !important;
    line-height: 1.67 !important;
}

.ohm-workshop-text p:last-child {
    margin-bottom: 0;
}

.ohm-workshop-button {
    align-self: flex-start;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 17px;
    border-radius: 10px;
    background: var(--ws-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(60, 146, 181, .17);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.ohm-workshop-button:hover,
.ohm-workshop-button:focus-visible {
    filter: brightness(.93);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(60, 146, 181, .23);
}

/* De volledige oude Elementor-bron blijft bewaard,
   inclusief eventueel verborgen workshopblokken. */
.ohm-workshops-legacy-source {
    display: none !important;
}

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

    .ohm-workshop-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 10px);
    }
}

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

    .ohm-workshops-heading {
        margin-bottom: 14px;
        padding: 14px 17px;
        border-radius: 12px;
    }

    .ohm-workshops-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ohm-workshop-card,
    .ohm-workshop-card:last-child {
        grid-column: auto;
        max-width: none;
        border-radius: 15px;
    }

    .ohm-workshop-media {
        aspect-ratio: 16 / 9;
    }

    .ohm-workshop-body {
        padding: 22px 20px 21px;
    }

    .ohm-workshop-text h1,
    .ohm-workshop-text h2,
    .ohm-workshop-text h3,
    .ohm-workshop-text h4 {
        font-size: 23px !important;
    }

    .ohm-workshop-button {
        width: 100%;
    }
}

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