.elementor-3082 .elementor-element.elementor-element-818c827{--display:flex;}.elementor-3082 .elementor-element.elementor-element-a6ffc23 > .elementor-widget-container{margin:0px 0px -20px 0px;}.elementor-3082 .elementor-element.elementor-element-a6ffc23 .etndi-card{background-color:#ffffff;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(0,0,0,0.08);}.elementor-3082 .elementor-element.elementor-element-ec2de59 .etndi-card{background-color:#ffffff;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(0,0,0,0.08);}.elementor-3082 .elementor-element.elementor-element-1a7d61e .etndi-card{background-color:#ffffff;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(0,0,0,0.08);}.elementor-3082 .elementor-element.elementor-element-9d06367 .etndi-card{background-color:#ffffff;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(0,0,0,0.08);}.elementor-3082 .elementor-element.elementor-element-6db8395 > .elementor-widget-container{margin:0px 0px 0px 0px;}.elementor-3082 .elementor-element.elementor-element-6db8395 .etndi-card{background-color:#ffffff;border-radius:8px;box-shadow:0px 2px 8px 0px rgba(0,0,0,0.08);}:root{--page-title-display:none;}/* Start custom CSS *//* ETNDI - FIX FOR HEADING OVERLAP */
/* The cards are fine, but the section headings are overlapping */

@media (max-width: 500px) {
    /* Fix the committee section spacing */
    .etndi-committee-section {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
        padding-top: 20px !important;
        padding-bottom: 0 !important;
        clear: both !important;
        overflow: visible !important;
    }
    
    /* First section doesn't need top margin */
    .etndi-committee-section:first-child {
        margin-top: 0 !important;
    }
    
    /* Fix the committee title spacing */
    .etndi-committee-title {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        padding-top: 10px !important;
        clear: both !important;
        display: block !important;
    }
    
    /* Ensure proper spacing after each grid */
    .etndi-grid {
        margin-bottom: 40px !important;
        padding-bottom: 20px !important;
    }
    
    /* The last card in each grid needs bottom spacing */
    .etndi-grid .etndi-member-card:last-child {
        margin-bottom: 30px !important;
    }
    
    /* Except the very last card in the last section */
    .etndi-committee-section:last-child .etndi-grid .etndi-member-card:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Remove the diagnostic borders once fixed */
    .etndi-grid {
        border: none !important;
        background: transparent !important;
    }
    
    .etndi-member-card {
        border: 1px solid #e2e8f0 !important; /* Normal border */
        background: #ffffff !important;
    }
    
    .etndi-committee-section {
        border: none !important;
        background: transparent !important;
    }
}

/* Specific fix for the NDI Leadership section */
@media (max-width: 500px) {
    .etndi-committee-section h2,
    .etndi-committee-section h3,
    h2.etndi-committee-title,
    h3.etndi-committee-title {
        margin-top: 40px !important;
        margin-bottom: 20px !important;
        display: block !important;
        clear: both !important;
    }
    
    /* First heading doesn't need top margin */
    .etndi-committee-section:first-child h2.etndi-committee-title,
    .etndi-committee-section:first-child h3.etndi-committee-title {
        margin-top: 0 !important;
    }
}

/* Alternative: Add spacing before each committee section that's not first */
@media (max-width: 500px) {
    .etndi-committee-section + .etndi-committee-section {
        margin-top: 50px !important;
        padding-top: 30px !important;
    }
    
    /* Or use a separator */
    .etndi-committee-section + .etndi-committee-section::before {
        content: "";
        display: block;
        height: 40px;
        clear: both;
    }
}

/* Final cleanup - ensure cards are properly spaced */
@media (max-width: 500px) {
    .etndi-member-card {
        margin: 0 0 25px 0 !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Remove transform on hover for mobile */
    .etndi-member-card:hover {
        transform: none !important;
    }
}/* End custom CSS */