/* Image with Text Section - Base Styles Only */
.ascend-image-with-text-section {
    position: relative;
    padding: 40px 0;
}

.ascend-image-with-text-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px;
}

.image-with-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: stretch;
}

/* Image Column */
.image-column {
    position: relative;
}

.image-column img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Column */
.content-column {
    position: relative;
    padding: 40px;
}

/* WYSIWYG Content Styling - Scoped to image with text sections */
.ascend-image-with-text-section .image-with-text-title p {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.ascend-image-with-text-section .image-with-text-description p {
    margin: 0 0 20px 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: 1.5 !important;
    letter-spacing: inherit !important;
}


.ascend-image-with-text-section .image-with-text-content p {
    margin: 0 0 20px 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: 1.6 !important;
}


/* Custom List Styling with Custom Icon */
.ascend-image-with-text-section .image-with-text-description ul,
.ascend-image-with-text-section .image-with-text-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 20px 0 !important;
}

.ascend-image-with-text-section .image-with-text-description li,
.ascend-image-with-text-section .image-with-text-content li {
    position: relative !important;
    padding-left: 30px !important;
    margin-bottom: 10px !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: 1.6 !important;
}

.ascend-image-with-text-section .image-with-text-description li:before,
.ascend-image-with-text-section .image-with-text-content li:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><rect x="0.5" y="0.5" width="19" height="19" stroke="%232E2E24"/><path d="M3.75 9.13043L9.64286 15L17.5 3.75" stroke="%232E2E24"/></svg>') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

/* Ordered Lists */
.ascend-image-with-text-section .image-with-text-description ol,
.ascend-image-with-text-section .image-with-text-content ol {
    padding-left: 30px !important;
    margin: 0 0 20px 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}

.ascend-image-with-text-section .image-with-text-description ol li,
.ascend-image-with-text-section .image-with-text-content ol li {
    padding-left: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}

.ascend-image-with-text-section .image-with-text-description ol li:before,
.ascend-image-with-text-section .image-with-text-content ol li:before {
    display: none !important;
}

/* Text Formatting */
.ascend-image-with-text-section .image-with-text-description strong,
.ascend-image-with-text-section .image-with-text-description b,
.ascend-image-with-text-section .image-with-text-content strong,
.ascend-image-with-text-section .image-with-text-content b {
    font-weight: 600 !important;
}

.ascend-image-with-text-section .image-with-text-description em,
.ascend-image-with-text-section .image-with-text-description i,
.ascend-image-with-text-section .image-with-text-content em,
.ascend-image-with-text-section .image-with-text-content i {
    font-style: italic !important;
}

.ascend-image-with-text-section .image-with-text-description a,
.ascend-image-with-text-section .image-with-text-content a {
    color: var(--Color-Palette-Olive) !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.ascend-image-with-text-section .image-with-text-description a:hover,
.ascend-image-with-text-section .image-with-text-content a:hover {
    color: var(--Color-Palette-Copper) !important;
}

/* Headings in WYSIWYG */
.ascend-image-with-text-section .image-with-text-description h1,
.ascend-image-with-text-section .image-with-text-description h2,
.ascend-image-with-text-section .image-with-text-description h3,
.ascend-image-with-text-section .image-with-text-description h4,
.ascend-image-with-text-section .image-with-text-description h5,
.ascend-image-with-text-section .image-with-text-description h6,
.ascend-image-with-text-section .image-with-text-content h1,
.ascend-image-with-text-section .image-with-text-content h2,
.ascend-image-with-text-section .image-with-text-content h3,
.ascend-image-with-text-section .image-with-text-content h4,
.ascend-image-with-text-section .image-with-text-content h5,
.ascend-image-with-text-section .image-with-text-content h6 {
    font-family: var(--heading-font) !important;
    font-weight: 400 !important;
    color: var(--Color-Palette-Copper) !important;
    margin: 30px 0 15px 0 !important;
    line-height: 1.2 !important;
}

.ascend-image-with-text-section .image-with-text-description h1:first-child,
.ascend-image-with-text-section .image-with-text-description h2:first-child,
.ascend-image-with-text-section .image-with-text-description h3:first-child,
.ascend-image-with-text-section .image-with-text-description h4:first-child,
.ascend-image-with-text-section .image-with-text-description h5:first-child,
.ascend-image-with-text-section .image-with-text-description h6:first-child,
.ascend-image-with-text-section .image-with-text-content h1:first-child,
.ascend-image-with-text-section .image-with-text-content h2:first-child,
.ascend-image-with-text-section .image-with-text-content h3:first-child,
.ascend-image-with-text-section .image-with-text-content h4:first-child,
.ascend-image-with-text-section .image-with-text-content h5:first-child,
.ascend-image-with-text-section .image-with-text-content h6:first-child {
    margin-top: 0 !important;
}

/* Mobile content toggle for image with text */
.mobile-content-toggle-iwt {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    border-bottom: 1px solid currentColor;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.mobile-content-toggle-iwt.expanded {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-content-toggle-iwt .toggle-chevron {
    transition: transform 0.3s ease;
}

.mobile-content-toggle-iwt.expanded .toggle-chevron {
    transform: rotate(180deg);
}

.image-with-text-collapsible {
    display: block;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.image-with-text-wrapper {
    position: relative;
}

/* Responsive Design */
@media (max-width: 920px) {
    .image-with-text-title {
        font-size: 34px !important;
    }
    .ascend-image-with-text-section {
        padding: 40px 0;
    }
    
    .image-with-text-grid {
        grid-template-columns: 1fr !important;
        gap: 0px !important;
    }
    
    /* Force image to always be first on mobile regardless of desktop order */
    .image-column {
        order: 1 !important;
    }
    
    .content-column {
        order: 2 !important;
        padding: 10px;
    }
    
    /* Adjust content background padding on mobile */
    .content-column[style*="padding: 40px"] {
        padding: 30px !important;
    }
    .image-column img {
    }
    .overlay-subtitle {
        font-size: 14px;
    }
    
    /* Show mobile toggle only on mobile */
    .mobile-content-toggle-iwt {
        display: flex;
    }
    
    /* Initially hide first paragraph on mobile */
    .image-with-text-collapsible {
        max-height: 0;
        margin-bottom: 0;
        overflow: hidden;
    }
    
    /* Show first paragraph when expanded */
    .image-with-text-wrapper.expanded .image-with-text-collapsible {
        max-height: 1000px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .ascend-image-with-text-section {
        padding: 30px 0;
    }
    
    .ascend-image-with-text-section .container {
        padding: 0 15px;
    }
    
    .image-with-text-grid {
        gap: 0px !important;
    }
    
    /* Reduce content background padding on smaller mobile */
    .content-column[style*="padding: 40px"] {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .image-with-text-grid {
        gap: 0px !important;
    }
    
    /* Further reduce content background padding on very small screens */
    .content-column[style*="padding: 40px"] {
        padding: 15px !important;
    }
} 