.content-flex-section {
    /* --content-color: #333333; */
    padding: 50px 0;
}

.content-flex-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Flex Direction */
.content-flex-container.flex-row {
    flex-direction: row;
}

.content-flex-container.flex-row-reverse {
    flex-direction: row-reverse;
}

/* ========== COLUMN WIDTH VARIATIONS ========== */
/* 70% Content - 30% Media */
.content-flex-container.col-70-30 .content-flex-text {
    width: 65%;
}

.content-flex-container.col-70-30 .content-flex-media {
    width: 30%;
}

/* 50% Content - 50% Media (Default) */
.content-flex-container.col-50-50 .content-flex-text {
    width: 46%;
}

.content-flex-container.col-50-50 .content-flex-media {
    width: 50%;
}

/* 30% Content - 70% Media */
.content-flex-container.col-30-70 .content-flex-text {
    width: 30%;
}

.content-flex-container.col-30-70 .content-flex-media {
    width: 65%;
}

/* ========== CONTENT EDITOR STYLES ========== */
.content-flex-editor {
    color: #d4d4d4;
}

.content-flex-editor h1,
.content-flex-editor h2,
.content-flex-editor h3,
.content-flex-editor h4,
.content-flex-editor h5,
.content-flex-editor h6 {
    color: rgba(225, 225, 225, 0.9);
    line-height: 1.5;
    font-size: clamp(28px , 2vw, 40px);
    font-weight: 600;
    margin: 0;
    margin-bottom: 0px;
    margin-bottom: 20px;
    position: relative;
    text-transform: capitalize;
}
.content-flex-editor *{
    color: #d4d4d4;
}
.content-flex-editor p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 16px 0;
    color: #d4d4d4;
    font-weight: 400;
}

.content-flex-editor ul,
.content-flex-editor ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-flex-editor li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-flex-editor a {
    color: var(--off-color);
    text-decoration: none;
}

.content-flex-editor a:hover {
    text-decoration: underline;
}

.content-flex-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========== MEDIA STYLES ========== */
/* Image Styles */
.content-flex-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.content-flex-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Desktop Image (visible by default) */
.desktop-image {
    display: block;
}

/* Mobile Image (hidden by default, shown on mobile) */
.mobile-image-wrapper {
    display: none;
}

.mobile-image {
    display: none;
}

/* Video Styles */
.content-flex-video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.content-flex-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Video Cover Overlay */
.video-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.video-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide cover when video is playing */
.video-cover-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Play Button with Animation */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-play-button:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    animation: none;
}

.play-icon {
    display: flex;
    transition: color 0.3s ease;
}

.video-play-button:hover .play-icon {
    color: #000;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* AOS Specific Styles - Prevent layout shift before animation */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Ensure visible content even if AOS fails */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
    .content-flex-container {
        gap: 20px;
    }

    /* Both boxes 100% width on mobile */
    .content-flex-container.col-70-30 .content-flex-text,
    .content-flex-container.col-70-30 .content-flex-media,
    .content-flex-container.col-50-50 .content-flex-text,
    .content-flex-container.col-50-50 .content-flex-media,
    .content-flex-container.col-30-70 .content-flex-text,
    .content-flex-container.col-30-70 .content-flex-media {
        width: 100%;
    }
    
    /* Show mobile image, hide desktop image */
    .desktop-image {
        display: none;
    }
    
    .mobile-image-wrapper {
        display: block;
    }
    
    .mobile-image {
        display: block;
    }
    
    /* Order: content first, then media on mobile */
    .content-flex-container.flex-row,
    .content-flex-container.flex-row-reverse {
        flex-direction: column;
    }
    
    .content-flex-text {
        order: 1;
    }
    
    .content-flex-media {
        order: 2;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .content-flex-editor h1,
    .content-flex-editor h2,
    .content-flex-editor h3,
    .content-flex-editor h4,
    .content-flex-editor h5,
    .content-flex-editor h6 {
        margin-bottom: 15px;
        font-weight: 700;
        font-size: 25px;
        line-height: 1.1em;
    }
}