/* Base styles for all layouts */
.elementor-widget-container {
    margin: 0;
    padding: 0;
}

/* Centered Title */
.elementor-centered-title {
    text-align: center;
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.4;
}

/* Two Column Text Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.column-title {
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.4;
}

.column-content > *:last-child {
    margin-bottom: 0;
}

/* Image + Text Layouts */
.elementor-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.elementor-layout-image img {
    width: 100%;
    height: auto;
    display: block;
}

.elementor-layout-title {
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.4;
}

.elementor-layout-description > *:last-child {
    margin-bottom: 0;
}

/* Right Image Variation */
.elementor-layout-wrapper.image-right .elementor-layout-image {
    order: 2;
}

.elementor-layout-wrapper.image-right .elementor-layout-content {
    order: 1;
}

/* Three Column Icons */
.three-column-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.icon-column {
    text-align: center;
}

.icon-wrapper {
    margin-bottom: 15px;
    font-size: 40px;
    line-height: 1;
}

.icon-title {
    margin: 0 0 15px;
    padding: 0;
    line-height: 1.4;
}

.icon-description {
    margin: 0;
    line-height: 1.6;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-item {
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .two-column-layout,
    .elementor-layout-wrapper,
    .three-column-layout,
    .image-grid {
        grid-template-columns: 1fr;
    }

    .elementor-layout-wrapper.image-right .elementor-layout-image,
    .elementor-layout-wrapper.image-right .elementor-layout-content {
        order: 0;
    }

    .grid-item img {
        height: 200px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .three-column-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-column:last-child {
        grid-column: span 2;
    }
}