.section.text-img {
    overflow: hidden;
    position: relative;
}

.section-text-img-content-img img {
    display: block;
}


.section-text-img-content-text {
    padding: 32px;
    background: var(--accent-color);
    color: var(--white);
    position: relative;
}

.graduate .section-text-img-content-text {
    background: linear-gradient(90deg, var(--first-graduate-color-primary) 0%, var(--second-graduate-color-primary) 100%);
}

.section-text-img-content-text h2 {
    color: var(--white);
}

.section-text-img-content-text h2:before {
    display: none;
}

.section-text-img-content-text .section-btn {
    background-color: var(--white);
    color: var(--accent-color);
    margin: 24px auto 0;
}


@media (min-width: 1024px) {
    .section-text-img-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .section-text-img-content.right {
        flex-direction: row-reverse;
    }

    .section-text-img-content-text {
        background: none !important;
    }

    .section-text-img-content-text {
        width: 59%;
    }

    .section-text-img-content-img {
        width: 41%;
    }

    .section.text-img:before {
        display: block;
        content: '';
        position: absolute;
        top: -64px;
        width: 71vw;
        height: calc(100% + 128px);
        background: var(--accent-color);
        z-index: -1;
    }

    .section.text-img:has(.right):before {
        right: 33vw;
    }

    .section.text-img:has(.left):before {   
        left: 33vw;
    }
    
    .graduate .section.text-img:before  {
        background: linear-gradient(90deg, var(--first-graduate-color-primary) 0%, var(--second-graduate-color-primary) 100%);
    }

    .section-text-img-content-text .section-btn {
        margin: 24px 0 0;
    }
}
