.image-text {
    position: relative;
    padding: calc(var(--space) * 60) 0;
    background-color: var(--cl-white);
    overflow: hidden;
}

.image-text-container {
    max-width: var(--size, 82.5rem);
    margin: 0 auto;
    padding: 0 calc(var(--space) * 10);
}

.image-text-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-text.layout-image-right .image-text-grid {
    flex-direction: row-reverse;
}

.image-text-image-col {
    flex: 0 0 56.666666667%;
    max-width: 56.666666667%;
}

.image-text-image-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.image-text-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-text-content-col {
    flex: 0 0 37.121212121%;
    max-width: 37.121212121%;
}

.image-text-content-wrap {
    display: flex;
    flex-direction: column;
}

.image-text-subtitle {
    display: block;
    font-size: var(--fs-15, 0.9375rem);
    font-weight: 500;
    text-transform: uppercase;
    color: #131313;
    margin-bottom: calc(var(--space) * 8);
}

.single-content h2.image-text-title,
.editor-styles-wrapper .block-editor-block-list__layout h2.image-text-title,
.image-text-title {
    font-size: var(--fs-48);
    font-weight: 500;
    line-height: 1.2;
    color: var(--cl-black-darked);
    margin: 0 0 calc(var(--space) * 16) 0;
    letter-spacing: -0.96px;
}

.image-text-desc {
    font-size: var(--fs-16);
    line-height: 1.6;
    color: #131313;
    font-weight: 400;
}

.image-text-desc p {
    margin: 0 0 calc(var(--space) * 16) 0;
    color: #131313;
}

.image-text-desc p:last-child {
    margin-bottom: 0;
}

.image-text-btn-wrap {
    margin-top: calc(var(--space) * 14);
}

.image-text-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space) * 4);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-14, 0.875rem);
    color: var(--cl-black-darked, #000);
    border: 1px solid var(--cl-black-darked, #000);
    -webkit-border-radius: calc(var(--space) * 30);
    border-radius: calc(var(--space) * 30);
    padding: calc(var(--space) * 6) calc(var(--space) * 10);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.image-text-btn-arrow {
    display: inline-flex;
    align-items: center;
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.image-text-btn-arrow svg {
    display: block;
    width: 16px;
    height: 16px;
}

.image-text-btn-arrow svg path {
    stroke: currentColor !important;
    transition: stroke 0.3s ease;
}

.image-text-btn:hover {
    background-color: var(--cl-black-darked, #000);
    color: var(--cl-white, #ffffff);
}

.image-text-btn:hover .image-text-btn-arrow {
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
}

/* Green background styling */
.image-text.bg-green {
    background-color: var(--cl-green, #2D8C38);
    color: #ffffff;
}

.image-text.bg-green .image-text-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.single-content .image-text.bg-green h2.image-text-title,
.editor-styles-wrapper .block-editor-block-list__layout .image-text.bg-green h2.image-text-title,

.image-text.bg-green .image-text-title {
    color: #ffffff;
}

.image-text.bg-green .image-text-desc,
.image-text.bg-green .image-text-desc p {
    color: rgba(255, 255, 255, 0.9);
}

.image-text.bg-green .image-text-btn {
    color: #ffffff;
    border-color: #ffffff;
}

.image-text.bg-green .image-text-btn:hover {
    background-color: #ffffff;
    color: var(--cl-green, #2D8C38);
    border-color: #ffffff;
}

@media (max-width: 991px) {

    .image-text {
        padding: calc(var(--space) * 30) 0;
    }

    .image-text-container {
        padding: 0 calc(var(--space) * 8);
    }

    .image-text-grid {
        flex-direction: column !important;
        gap: calc(var(--space) * 16);
    }

    .image-text-image-col,
    .image-text-content-col {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .image-text-image-col {
        order: 2;
    }

    .image-text-content-col {
        order: 1;
    }

    .image-text-subtitle {
        font-size: var(--fs-12);
        margin-bottom: calc(var(--space) * 8);
    }

    .single-content h2.image-text-title,
    .editor-styles-wrapper .block-editor-block-list__layout h2.image-text-title,
    .image-text-title {
        font-size: var(--fs-32);
        margin-bottom: calc(var(--space) * 12);
    }

    .image-text-desc {
        font-size: var(--fs-16);
    }

    .image-text-btn-wrap {
        margin-top: calc(var(--space) * 16);
    }

}