/* Styles for the services wellbeing next section (Figma design) */
.services-wellbeing-next-section {
    padding: 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.services-wellbeing-next-section .gd-container {
    max-width: 1200px;
    margin: 0 auto;
}

.wellbeing-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.wellbeing-text {
    flex: 1 1 75%;
}

.wellbeing-title {
    color: #ed6a59;
    font-size: 32px;
    line-height: normal;
    margin: 0 0 18px 0;
    font-weight: 700;
}

.wellbeing-title em {
    font-style: italic;
    font-weight: 500;
}

.wellbeing-copy p {
    color: #403936;
    font-size: 16px;
    line-height: normal;
    margin: 24px 0 0;
}

.wellbeing-illustration {
    flex: 0 0 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wellbeing-illustration img {
    max-width: 100%;
    height: auto;
    z-index: 1;
    display: block;
}

/* Mobile-only duplicate image (shown below 1200px) */
.wellbeing-image-mobile {
    display: none;
    box-sizing: border-box;
    width: 100%;
}

.wellbeing-image-mobile img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive: below 1200px stack and center */
@media (max-width: 1200px) {
    .services-wellbeing-next-section {
        padding: 0 60px;
    }

    .wellbeing-illustration {
        width: 100%;
    }

    .wellbeing-illustration-card {
        width: 320px;
        height: 260px;
        right: auto;
        margin: 0 auto 12px auto;
    }

    .wellbeing-copy p {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .wellbeing-row {
        flex-direction: column-reverse;
        text-align: left;
    }

    /* show mobile image after title, hide desktop side illustration */
    .wellbeing-image-mobile {
        display: block;
        margin-bottom: 18px;
    }

    .wellbeing-illustration {
        display: none;
    }
}

@media (max-width: 600px) {
    .services-wellbeing-next-section {
        padding: 0 24px;
    }

    .wellbeing-text {
        flex: 1 1 100%;
        width: 100%;
    }

    .wellbeing-row {
        flex-direction: column-reverse;
        text-align: left;
    }

    /* show mobile image after title, hide desktop side illustration */
    .wellbeing-image-mobile {
        display: block;
        margin-bottom: 18px;
    }

    .wellbeing-illustration {
        display: none;
    }

    /* ensure mobile duplicate image cannot overflow */
    .wellbeing-image-mobile,
    .wellbeing-image-mobile img {
        max-width: 100%;
        box-sizing: border-box;
    }

    .wellbeing-title {
        font-size: 24px;
    }

    .wellbeing-copy p {
        font-size: 16px;
    }

    .wellbeing-illustration-card {
        width: 260px;
        height: 200px;
    }
}
