.text-image {
    width: 100%;
    padding: 48px var(--layout-gutter);
    background: #F3F3F3;
}

.text-image__inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    min-height: 720px;
    align-items: stretch;
    overflow: hidden;
}

.text-image.image_right .text-image__media {
    order: 2;
    border-radius: 20px;
}

.text-image.image_right .text-image__content {
    order: 1;
}

.text-image__media {
    position: relative;
    border-radius: 20px;
    overflow: hidden; /* ensure image respects radius */
}

.text-image__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.text-image__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.text-image__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.text-image__dots {
    position: absolute;
    bottom: 32px;
    left: var(--layout-gutter);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.text-image__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-image__dot.is-active {
    background: #ffffff;
    opacity: 1;
    transform: scale(1.15);
}

.text-image__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    color: #000000;
}

.text-image__rich-text {
    font-family: "Arimo", sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #000000;
}

.text-image a {
    display: inline-flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #006B85;
    text-decoration: none;
    margin-top: 32px;
}

.text-image a::after {
    content: '\2192';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.text-image .text-image__download-link::after {
    content: none;
    margin: 0;
    transition: none;
}

.text-image a:hover::after,
.text-image a:focus-visible::after {
    transform: translateX(4px);
}

.text-image__rich-text h1,
.text-image__rich-text h2,
.text-image__rich-text h3,
.text-image__rich-text h4,
.text-image__rich-text h5,
.text-image__rich-text h6 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    margin: 36px 0 6px 0;
}

.text-image__rich-text h1:first-child,
.text-image__rich-text h2:first-child,
.text-image__rich-text h3:first-child,
.text-image__rich-text h4:first-child,
.text-image__rich-text h5:first-child,
.text-image__rich-text h6:first-child {
    margin: 0px 0 6px 0;
}

.text-image__downloads {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-image__downloads-title,
.text-image__downloads-title h3 {
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #006B85;
}

.text-image__downloads-list a {
    margin: 0;
    border-bottom: 2px solid transparent;
    transition: .2s all;
}

.text-image__downloads-list a:hover {
    border-bottom: 2px solid #006B85;
    transition: .2s all;
}


.text-image__downloads-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.text-image__download-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-image__download-label {
    display: inline-flex;
    align-items: center;
}

.text-image__download-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .text-image__inner {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .text-image__inner {
        grid-template-columns: 1fr;
        min-height: 640px;
    }

    .text-image__media {
        min-height: 480px;
        order: 0 !important;
    }

    .text-image__content {
        padding: 16px;
        justify-content: flex-start;
        min-height: auto;
        order: 0 !important;
    }
}

@media (max-width: 640px) {
    .text-image {
        padding: 24px 16px;
    }

    .text-image__inner {
        border-radius: 20px;
    }

    .text-image__dots {
        left: 16px;
        bottom: 16px;
    }
}

@media (min-width: 1801px) {
    .text-image {
        padding: 48px 0;
    }

    .text-image__inner {
        max-width: var(--layout-max-width);
        margin: 0 auto;
    }
}
