/* Image with Text Component - Enhanced */
.image-with-text {
    padding: var(--spacing-xl) 0;
}

.image-with-text__header {
    /* text-align: center; */
    margin-bottom: var(--spacing-xl);
}

.image-with-text__subtitle {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-with-text__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.image-with-text__description {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-base);
}

.image-with-text__wrapper {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.image-with-text--image-left .image-with-text__wrapper,
.image-with-text--image-right .image-with-text__wrapper {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .image-with-text--image-left .image-with-text__wrapper,
    .image-with-text--image-right .image-with-text__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.image-with-text--image-right .image-with-text__image {
    order: 2;
}

.image-with-text--image-top .image-with-text__wrapper {
    grid-template-columns: 1fr;
}

.image-with-text__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    /* box-shadow: var(--shadow-lg); */
}

.image-with-text__content {
    padding: var(--spacing-md);
}

.image-with-text__cta {
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .image-with-text--image-right .image-with-text__image {
        order: 0;
    }
}