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

/* ===== Two Column Content Double ===== */
.two-col-content-double {
    padding: 78px 0;
    margin-bottom: 78px;
}

.two-col-content-double__grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 44px;
    align-items: center;
}

/* Inverted layout: images on left, text on right */
.two-col-content-double--inverted .two-col-content-double__grid {
    grid-template-columns: 60% 40%;
}

@media (max-width: 680px) {

    .two-col-content-double--inverted .two-col-content-double__grid {
        grid-template-columns: 100%;
    }
	
	.two-col-content-double__title{
		font-size:2rem;
	}
	
	.two-col-content-double__bubble{
		display:none;
	}
}

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

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

.two-col-content-double__text,
.two-col-content-double__media {
    min-width: 0;
}

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

.two-col-content-double__text p {
	margin-bottom: 1rem;
    color: var(--color-gray-600);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.two-col-content-double .btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.two-col-content-double .btn {
    border-radius: 50px;
    padding: 15px 30px;
    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));
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.two-col-content-double .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.two-col-content-double .btn--primary {
    background-color: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}

.two-col-content-double .btn--primary:hover {
    background-color: var(--color-white);
    color: var(--color-blue);
}

.two-col-content-double__media {
    position: relative;
    overflow: visible;
}

.media-collage {
    position: relative;
}

.media-collage__a {
    position: relative;
    top: -80px;
    width: min(350px, 45vw);
    height: min(350px, 45vw);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 26px;
    box-shadow: var(--shadow-md);
}

.media-collage__b {
    position: absolute;
    right: clamp(0px, 6vw, 85px);
    bottom: clamp(-155px, -35vw, -140px);
    width: min(350px, 45vw);
    height: min(350px, 45vw);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 26px;
    box-shadow: var(--shadow-md);
}

.two-col-content-double__bubble {
    position: absolute;
    left: clamp(0px, 6vw, 0px);
    bottom: clamp(-195px, -32vw, -120px);
    width: clamp(126px, 17vw, 234px);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease;
    will-change: transform;
    z-index: 2;
}

.two-col-content-double .btn--ghost {
    background-color: var(--color-magenta);
    color: var(--color-white);
    margin-left: 10px;
    border-color: var(--color-magenta);
}

.two-col-content-double .btn--ghost:hover {
    background-color: var(--color-white);
    color: var(--color-magenta);
}

/* Reset margins for elements inside .reset div */
.two-col-content-double .reset p,
.two-col-content-double .reset ul,
.two-col-content-double .reset li {
    margin: 0;
}

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

    .two-col-content-double__bubble {
        left: clamp(0px, 8vw, 64px);
        bottom: clamp(-180px, -30vw, -120px);
        width: clamp(112px, 20vw, 210px);
    }
}

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

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

    .two-col-content-double .btn--ghost {
        margin-left: 0;
    }

    .two-col-content-double__media,
    .two-col-content-double--inverted .two-col-content-double__media {
        order: 2;
        margin-top: 90px;
    }

    .media-collage__a {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .media-collage__b {
        position: static;
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-top: 14px;
    }

    .two-col-content-double__bubble {
        left: clamp(0px, 10vw, 72px);
        bottom: clamp(-140px, -24vw, -100px);
        width: clamp(100px, 30vw, 190px);
    }
}

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

    .two-col-content-double__bubble {
        left: clamp(0px, 12vw, 60px);
        bottom: clamp(-110px, -20vw, -80px);
        width: 140px;
    }

    .two-col-content-double {
        margin-bottom: 50px;
    }
}