/**
 * Two Column Content Styles
 * 
 * @package Clayutility
 * @version 1.0
 */

/* ===== Two Column Content ===== */
.two-col-content {
    padding: 70px 0 26px;
}

.two-col-content__grid {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 42px;
    align-items: center;
}

/* Inverted layout: image on left, text on right */
.two-col-content--inverted .two-col-content__grid {
    grid-template-columns: 50% 50%;
}

.two-col-content--inverted .two-col-content__text {
    order: 2;
}

.two-col-content--inverted .two-col-content__media {
    order: 1;
}

.two-col-content__text,
.two-col-content__media {
    min-width: 0;
}

.two-col-content__title {
    margin: 0 0 .5rem;
    font-size: 3rem;
    color: var(--color-black);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.two-col-content__text p {
    margin: 0 0 1.1rem;
    color: var(--color-gray-600);
    margin: 2.5rem 0px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.two-col-content a.btn {
    background: var(--color-blue);
    color: var(--color-white);
    padding: 15px 50px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.1));
    border-radius: 999px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.two-col-content a.btn:hover {
    background: var(--color-white);
    color: var(--color-blue);
    border-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.two-col-content__media {
    position: relative;
    padding-right: clamp(32px, 6vw, 72px);
    box-sizing: border-box;
}

.two-col-content__image {
    border-radius: 24px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.two-col-content__bubble {
    position: absolute;
    top: 0px;
    right: clamp(0px, 6vw, 60px);
    width: clamp(120px, 17vw, 220px);
    max-width: none;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease;
    will-change: transform;
    z-index: 2;
}



/* Responsive Two Column Content */
@media (max-width: 1366px) {
    .two-col-content__grid {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .two-col-content__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Override grid-template-columns for inverted layout on responsive */
    .two-col-content--inverted .two-col-content__grid {
        grid-template-columns: 1fr;
    }

    /* Reset order on mobile for inverted layout - always show text first, then image */
    .two-col-content__text,
    .two-col-content--inverted .two-col-content__text {
        order: 1;
    }

    .two-col-content__media,
    .two-col-content--inverted .two-col-content__media {
        order: 2;
    }

    .two-col-content__media {
        padding-right: clamp(24px, 8vw, 48px);
    }

    .two-col-content__bubble {
        top: -18px;
        right: clamp(0px, 3vw, 32px);
        width: clamp(110px, 22vw, 180px);
    }
}

@media (max-width: 680px) {
    .two-col-content__grid {
        gap: 16px;
    }

    .two-col-content {
        padding: 50px 0 20px;
    }

    .two-col-content__media {
        padding-right: clamp(20px, 6vw, 36px);
    }

    .two-col-content__bubble {
        top: -10px;
        right: clamp(0px, 2vw, 20px);
        width: 140px;
    }
	
	.two-col-content__title{
		font-size:2rem;
	}
}