/* Equal height columns fix for Elementor col-20 elements */

/* Solution 1: Using flexbox for the container */
.elementor-section-boxed .elementor-container {
    display: flex;
    align-items: stretch;
}

/* Specific targeting for 5-column layout */
.elementor-inner-section .elementor-container .elementor-col-20 {
    display: flex;
    flex-direction: column;
}

.elementor-inner-section .elementor-container .elementor-col-20 .elementor-widget-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure feature boxes take full height */
.elementor-col-20 .elementor-widget-ceafeaturebox {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.elementor-col-20 .elementor-widget-ceafeaturebox .elementor-widget-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.elementor-col-20 .feature-box-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.elementor-col-20 .feature-box-wrapper a,
.elementor-col-20 .feature-box-wrapper > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.elementor-col-20 .feature-box-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 100%;
}

/* Alternative solution using grid (uncomment to use) */
/*
.elementor-inner-section .elementor-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

.elementor-inner-section .elementor-container .elementor-col-20 {
    display: flex;
    flex-direction: column;
}
*/

/* Ensure uniform spacing and alignment */
.elementor-col-20 .feature-box-title {
    margin-top: auto;
    padding-top: 15px;
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {
    .elementor-inner-section .elementor-container {
        flex-direction: column;
    }

    .elementor-inner-section .elementor-container .elementor-col-20 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Fix for tablet view */
@media (min-width: 769px) and (max-width: 1024px) {
    .elementor-inner-section .elementor-container {
        flex-wrap: wrap;
    }

    .elementor-inner-section .elementor-container .elementor-col-20 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Additional fix for very specific targeting if needed */
.elementor-element-70f7dc9a .elementor-container {
    align-items: stretch !important;
}

.elementor-element-70f7dc9a .elementor-col-20 {
    display: flex;
    flex-direction: column;
}

.elementor-element-70f7dc9a .elementor-col-20 .elementor-widget-wrap {
    height: 100%;
}