/*
|--------------------------------------------------------------------------
| Full-bleed: remove Elementor's default gap around the widget
|--------------------------------------------------------------------------
*/

.elementor-widget-trn_hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.elementor-widget-trn_hero > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

/*
|--------------------------------------------------------------------------
| TRN Hero
|--------------------------------------------------------------------------
*/

.cew-trn-hero {
    position: relative;
    height: 614px;
    min-height: 480px;
    overflow: hidden;

    display: flex;
    align-items: center;
}

/*
|--------------------------------------------------------------------------
| Background
|--------------------------------------------------------------------------
*/

.cew-trn-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #f9f9f8;
}

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

/* light left-anchored scrim keeps the dark copy legible over the photo */
.cew-trn-hero-overlay {
    --cew-scrim-from: #f9f9f8;
    --cew-scrim-mid: rgba(249, 249, 248, 0.60);
    --cew-scrim-to: rgba(249, 249, 248, 0);

    position: absolute;
    inset: 0;

    background-image: linear-gradient(
        90deg,
        var(--cew-scrim-from) 0%,
        var(--cew-scrim-mid) 50%,
        var(--cew-scrim-to) 100%
    );
}

/*
|--------------------------------------------------------------------------
| Container
|--------------------------------------------------------------------------
*/

.cew-trn-hero-container {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: 1200px;
    margin: auto;

    padding-left: 48px;
    padding-right: 48px;
}

.cew-trn-hero-content {
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/*
|--------------------------------------------------------------------------
| Badge
|--------------------------------------------------------------------------
*/

.cew-trn-hero-badge {
    display: inline-block;
    align-self: flex-start;

    padding: 4px 16px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    background-color: #b1f0ce;
    color: #0e5138;
}

/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/

.cew-trn-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    letter-spacing: -0.02em;

    color: #0f5238;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Description
|--------------------------------------------------------------------------
*/

.cew-trn-hero-description {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;

    color: #404943;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Button
|--------------------------------------------------------------------------
*/

.cew-trn-hero-actions {
    margin-top: 16px;
}

.cew-trn-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 32px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;

    text-decoration: none;
    background-color: #2D6A4F;
    color: #ffffff;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.20);
    transition: transform 0.3s ease;
}

.cew-trn-hero-btn:hover {
    transform: translateY(-4px);
}

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

@media (max-width: 1024px) {

    .cew-trn-hero-title {
        font-size: 40px;
        line-height: 48px;
    }

    .cew-trn-hero-description {
        font-size: 20px;
        line-height: 28px;
    }

}

@media (max-width: 768px) {

    .cew-trn-hero {
        min-height: 440px;
    }

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

    /* widen the light cover once the panel narrows so text stays readable */
    .cew-trn-hero-overlay {
        --cew-scrim-mid: rgba(249, 249, 248, 0.80);
        --cew-scrim-to: rgba(249, 249, 248, 0.40);
    }

    .cew-trn-hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .cew-trn-hero-description {
        font-size: 18px;
        line-height: 28px;
    }

    .cew-trn-hero-btn {
        width: 100%;
    }

}
