/* Content Media Component */

.content-media {
    background: #fff;
    position: relative;
    overflow: visible;
}

@media (min-width: 1024px) {
    .content-media {
        overflow: hidden;
    }
}

.content-media__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .content-media__grid {
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .content-media__grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* Layout Variations */
@media (min-width: 1024px) {
    .content-media--image-right .content-media__images {
        order: 2;
    }
    
    .content-media--image-right .content-media__content {
        order: 1;
    }
}

/* Images Container */
.content-media__images {
    position: relative;
    height: 500px;
    min-height: 300px;
    width: 100%;
    overflow: hidden;
}

.content-media__image {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(64, 50, 38, 0.15);
}

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

.content-media__image--main {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.content-media__image--secondary {
    width: 55%;
    height: 50%;
    bottom: 0;
    right: 0;
    border: 6px solid #fff;
    z-index: 2;
}

/* Stat Badge */
.content-media__stat {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color-100);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 15px 40px rgba(187, 154, 101, 0.3);
}

.content-media__stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'AlbertSansBold', sans-serif;
    line-height: 1;
}

.content-media__stat-text {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

/* Content */
.content-media__content h2 {
    color: var(--primary-color-100);
    margin-bottom: 1.5rem;
}

.content-media__text {
    margin-bottom: 2rem;
}

.content-media__text p {
    color: var(--ternary-color-100);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-media__text p:last-child {
    margin-bottom: 0;
}

/* Features */
.content-media__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-media__feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-media__feature svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color-100);
    flex-shrink: 0;
}

.content-media__feature span {
    color: var(--primary-color-200);
    font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .content-media__images {
        height: 400px;
        min-height: 350px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .content-media__images {
        height: 350px;
        min-height: 300px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 2rem;
        overflow: hidden;
    }
    
    .content-media__image {
        position: absolute;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .content-media__image--main {
        width: 75%;
        height: 75%;
        top: 0;
        left: 0;
        z-index: 1;
    }
    
    .content-media__image--secondary {
        width: 60%;
        height: 45%;
        bottom: 0;
        right: 0;
        border-width: 4px;
        z-index: 2;
    }
    
    .content-media__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        visibility: visible;
    }
    
    .content-media__stat {
        padding: 1rem 1.5rem;
        position: absolute;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }
    
    .content-media__stat-number {
        font-size: 2rem;
    }
    
    .content-media__features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Dark Background Variant */
.content-media--dark {
    background: var(--primary-color-100);
}

.content-media--dark .content-media__content h2 {
    color: #fff;
}

.content-media--dark .content-media__text p {
    color: rgba(255, 255, 255, 0.8);
}

.content-media--dark .content-media__feature span {
    color: #fff;
}

.content-media--dark .content-media__image--secondary {
    border-color: var(--primary-color-100);
}

