/* Custom fixes for layout issues */

/* Fix for slider and cards overlap */
.et_pb_section_5.et_pb_section {
    margin-top: 0 !important;
    padding-top: 80px !important;
    position: relative;
    z-index: 10;
    background-color: #f8f9fa;
}

.et_pb_row_1.et_pb_row {
    margin-top: 50px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Slider improvements */
.et_pb_fullwidth_slider_0 {
    min-height: 620px !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}

.et_pb_slide {
    min-height: 620px !important;
}

/* Blurb columns styling */
.et_pb_blurb {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.et_pb_blurb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Make all cards same height */
.et_pb_row_1.et_pb_equal_columns {
    display: flex;
    align-items: stretch;
}

.et_pb_row_1 .et_pb_column {
    display: flex;
    flex-direction: column;
}

.et_pb_blurb_content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
}

.et_pb_blurb_container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.et_pb_module_header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.et_pb_blurb_description {
    margin-top: auto;
    padding-top: 20px;
}

/* Ensure proper spacing between sections */
.et_pb_section.et_pb_with_background {
    position: relative;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .et_pb_row_1.et_pb_row {
        margin-top: 30px !important;
    }
    
    .et_pb_section_5.et_pb_section {
        padding-top: 50px !important;
    }
    
    .et_pb_slide {
        min-height: 400px !important;
    }
    
    .et_pb_fullwidth_slider_0 {
        min-height: 400px !important;
    }
    
    .et_pb_blurb_content {
        min-height: 200px;
    }
    
    .et_pb_row_1.et_pb_equal_columns {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .et_pb_row_1.et_pb_row {
        margin-top: 20px !important;
    }
    
    .et_pb_section_5.et_pb_section {
        padding-top: 30px !important;
    }
    
    .et_pb_blurb_content {
        min-height: 220px;
    }
}