/**
 * Image Text Columns Module Styles
 * 
 * @package Gustoso Child Theme
 * @since 1.0
 */

/* Main Container */
.gustoso-image-text-columns {
    width: 100%;
    margin: 5rem 0;
    position: relative;
}

/* Inner Container */
.gustoso-image-text-columns__container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Column Layout */
.gustoso-image-text-columns__image-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.gustoso-image-text-columns__text-column {
    flex: 0 0 40%; /* Make text column narrower - 40% width */
    min-width: 0; /* Prevents flex items from overflowing */
    border-left: 1px solid #FF8D3D;
    padding-left: 30px;
}

/* Image Styling */
.gustoso-image-text-columns__image {
    width: 100%;
    height: auto;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
}

.gustoso-image-text-columns__image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Text Content */
.gustoso-image-text-columns__title {
    font-size: 3.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #26303F;
    line-height: 1.2;
    margin-top: 0;
}

.gustoso-image-text-columns__content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #171718;
}

.gustoso-image-text-columns__content p {
    margin-bottom: 1.25rem;
}

.gustoso-image-text-columns__content p:last-child {
    margin-bottom: 0;
}

/* CTA Styles */
.gustoso-image-text-columns__cta {
    margin-top: 2rem;
    text-align: left;
}

.gustoso-image-text-columns__cta-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color, #2d3748);
    transition: all 0.3s ease;
}

.gustoso-image-text-columns__cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #324158;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #324158 !important;
}

.gustoso-image-text-columns__cta-button::before {
    content: "→";
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    display: block;
}

.gustoso-image-text-columns__cta-icon {
    display: none;
}

.gustoso-image-text-columns__cta-link:hover .gustoso-image-text-columns__cta-button {
    background: transparent !important;
    color: #324158 !important;
}

.gustoso-image-text-columns__cta-link:hover .gustoso-image-text-columns__cta-button::before {
    color: #324158 !important;
}

.gustoso-image-text-columns__cta-text {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.5;
    color: var(--text-color, #2d3748);
    padding-left: 0;
}

/* Remove any pseudo-elements from CTA text */
.gustoso-image-text-columns__cta-text::before,
.gustoso-image-text-columns__cta-text::after {
    display: none !important;
    content: none !important;
}

/* Layout Variations */
/* Default: Image Left, Text Right (layout="left") */
.gustoso-layout-left .gustoso-image-text-columns__container {
    flex-direction: row;
}

/* Image Right, Text Left (layout="right") */
.gustoso-layout-right .gustoso-image-text-columns__container {
    flex-direction: row-reverse;
}

.gustoso-layout-right .gustoso-image-text-columns__text-column {
    margin-right: 8rem;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .gustoso-image-text-columns__container {
        gap: 2rem;
    }
    
    .gustoso-image-text-columns__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .gustoso-layout-right .gustoso-image-text-columns__text-column {
        margin-right: 0;
    }
    
    .gustoso-image-text-columns__container {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }
    
    /* Reset layout direction on mobile - always stack vertically */
    .gustoso-layout-left .gustoso-image-text-columns__container,
    .gustoso-layout-right .gustoso-image-text-columns__container {
        flex-direction: column;
    }
    
    /* Image on top on mobile */
    .gustoso-image-text-columns__image-column {
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    /* Image centered with max-width 85% */
    .gustoso-image-text-columns__image {
        margin: 0 auto;
        max-width: 85%;
    }
    
    /* Text column below image with orange border-top */
    .gustoso-image-text-columns__text-column {
        order: 2;
        border-left: none;
        border-top: 1px solid #FF8D3D;
        padding-left: 0;
        padding-top: 1.5rem;
    }
    
    .gustoso-image-text-columns__title {
        font-size: 36px;
        margin-bottom: 1rem;
    }
    
    .gustoso-image-text-columns__content {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gustoso-image-text-columns {
        margin: 1.5rem 0;
    }
    
    .gustoso-image-text-columns__container {
        gap: 1.5rem;
        text-align: left;
    }
    
    /* Ensure image on top and text with orange border-top on small mobile */
    .gustoso-image-text-columns__image-column {
        order: 1;
        display: flex;
        justify-content: center;
    }
    
    /* Image centered with max-width 85% */
    .gustoso-image-text-columns__image {
        margin: 25px auto;
        max-width: 85%;
    }
    
    .gustoso-image-text-columns__text-column {
        order: 2;
        border-left: none;
        border-top: 1px solid #FF8D3D;
        padding-left: 0;
        padding-top: 1.5rem;
        margin-bottom: 20px;
    }
    
    .gustoso-image-text-columns__title {
        font-size: 36px;
    }
    
    .gustoso-image-text-columns__content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .gustoso-image-text-columns__cta-button {
        width: 40px;
        height: 40px;
    }
    
    .gustoso-image-text-columns__cta-button::before {
        font-size: 16px;
    }
    
    .gustoso-image-text-columns__cta-text {
        font-size: 15px;
    }
}

/* Animation Effects */
.gustoso-image-text-columns {
    opacity: 0;
    transform: translateY(30px);
    animation: gustosoFadeInUp 0.8s ease forwards;
}

@keyframes gustosoFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Background Variations */
.gustoso-image-text-columns--light-bg {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-radius: 15px;
}

.gustoso-image-text-columns--dark-bg {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 3rem 0;
    border-radius: 15px;
}

.gustoso-image-text-columns--dark-bg .gustoso-image-text-columns__title {
    color: #ffffff;
}

.gustoso-image-text-columns--dark-bg .gustoso-image-text-columns__content {
    color: #ecf0f1;
}

/* Rounded Image Variant */
.gustoso-image-text-columns--rounded .gustoso-image-text-columns__image {
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* Shadow Variations */
.gustoso-image-text-columns--no-shadow .gustoso-image-text-columns__image {
    box-shadow: none;
}

.gustoso-image-text-columns--strong-shadow .gustoso-image-text-columns__image {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
