/*
|--------------------------------------------------------------------------
| TRN Workshops (Visual Feature)
|--------------------------------------------------------------------------
*/

.cew-trn-ws {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #e8e8e7;
    overflow: hidden;
}

.cew-trn-ws-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.cew-trn-ws-grid {
    display: flex;
    gap: 24px;
    align-items: center;
}

.cew-trn-ws-grid--media-right {
    flex-direction: row-reverse;
}

.cew-trn-ws-media,
.cew-trn-ws-text {
    width: 50%;
}

/*
|--------------------------------------------------------------------------
| Media
|--------------------------------------------------------------------------
*/

.cew-trn-ws-media {
    position: relative;
}

.cew-trn-ws-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;

    border-radius: 16px;
    background-color: #e2e2e2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cew-trn-ws-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cew-trn-ws-caption {
    position: absolute;
    right: -24px;
    bottom: -24px;

    max-width: 20rem;
    padding: 24px;

    background-color: #F4A261;
    color: #ffffff;

    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.20);
}

.cew-trn-ws-caption p {
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    line-height: 20px;
    color: inherit;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Text
|--------------------------------------------------------------------------
*/

.cew-trn-ws-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cew-trn-ws-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #0f5238;
    margin: 0;
}

.cew-trn-ws-description {
    font-size: 18px;
    line-height: 30px;
    color: #404943;
    margin: 0;
}

.cew-trn-ws-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cew-trn-ws-item {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 16px;
    line-height: 26px;
    color: #1a1c1c;
}

.cew-trn-ws-item .material-symbols-outlined {
    flex-shrink: 0;
    color: #2D6A4F;
    font-size: 24px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .cew-trn-ws-grid,
    .cew-trn-ws-grid--media-right {
        flex-direction: column;
    }

    .cew-trn-ws-media,
    .cew-trn-ws-text {
        width: 100%;
    }

    /* the corner caption overlaps awkwardly once stacked — bring it inline */
    .cew-trn-ws-caption {
        position: static;
        max-width: none;
        margin-top: 16px;
    }

}

@media (max-width: 768px) {

    .cew-trn-ws {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-trn-ws-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cew-trn-ws-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .cew-trn-ws-description {
        font-size: 16px;
        line-height: 26px;
    }

}
