/* ===== SERVICE SINGLE PAGE PADDING CLEANUP ===== */
/* Removes unnecessary padding and spacing from service-single-3 page */
/* Targets page ID 2666 specifically to avoid affecting other pages */

/* ===== 0. TERMS AND CONDITIONS PAGE - PROPER SPACING ===== */
/* Page ID 2879 - Add proper spacing between navbar and content */

body.page-id-2879 .project-single-wrap .section-header,
body.postid-2879 .project-single-wrap .section-header {
    padding: 40px 72px !important;
    margin-top: 0 !important;
}

/* Ensure proper spacing for main content area */
body.page-id-2879 .aixor-main,
body.postid-2879 .aixor-main {
    padding-top: 100px !important; /* Space between navbar and content */
}

/* Responsive adjustments for Terms and Conditions */
@media (max-width: 768px) {
    body.page-id-2879 .project-single-wrap .section-header,
    body.postid-2879 .project-single-wrap .section-header {
        padding: 30px 50px !important;
    }

    body.page-id-2879 .aixor-main,
    body.postid-2879 .aixor-main {
        padding-top: 80px !important;
    }
}

@media (max-width: 480px) {
    body.page-id-2879 .project-single-wrap .section-header,
    body.postid-2879 .project-single-wrap .section-header {
        padding: 20px 30px !important;
    }

    body.page-id-2879 .aixor-main,
    body.postid-2879 .aixor-main {
        padding-top: 60px !important;
    }
}

/* ===== 1. MAIN CONTENT CONTAINERS - REMOVE EXCESSIVE PADDING ===== */

/* Remove padding from main content wrapper */
body.page-id-2666 .aixor-main,
body.postid-2666 .aixor-main,
body.service-single-page .aixor-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove padding from service single wrapper */
body.page-id-2666 .service-single-wrap,
body.postid-2666 .service-single-wrap,
body.service-single-page .service-single-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove padding from entry content */
body.page-id-2666 .entry-content,
body.postid-2666 .entry-content,
body.service-single-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== 2. SECTION HEADERS - OPTIMIZE PADDING ===== */

/* Keep section header padding at 40px 72px as requested */
body.page-id-2666 .project-single-wrap .section-header,
body.postid-2666 .project-single-wrap .section-header,
body.service-single-page .project-single-wrap .section-header {
    padding: 40px 72px !important; /* Restored to original 40px 72px */
}

/* Remove padding from section content areas */
body.page-id-2666 .project-single-content-wrap,
body.postid-2666 .project-single-content-wrap,
body.service-single-page .project-single-content-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== 3. FEATURE PROJECT CONTAINERS - MINIMIZE PADDING ===== */

/* Reduce feature project padding */
body.page-id-2666 .feature-project,
body.postid-2666 .feature-project,
body.service-single-page .feature-project {
    padding: 10px !important; /* Reduced from default theme padding */
    margin-bottom: 0 !important;
}

/* Reduce feature project info padding - currently 40px 60px */
body.page-id-2666 .service-single-wrap .feature-project .feature-project-infos,
body.postid-2666 .service-single-wrap .feature-project .feature-project-infos,
body.service-single-page .service-single-wrap .feature-project .feature-project-infos {
    padding: 20px 30px !important; /* Reduced from 40px 60px to 20px 30px */
}

/* ===== 4. ELEMENTOR CONTAINERS - REMOVE PROBLEMATIC PADDING ===== */

/* Remove Elementor widget container padding - currently 41px all around */
.elementor-2666 .elementor-element.elementor-element-1dfcbd3 > .elementor-widget-container {
    padding: 10px !important; /* Reduced from 41px to 10px */
    margin: 0 !important; /* Remove the problematic -135px -46px 275px -40px margin */
}

/* Remove padding from all Elementor containers on this page */
body.page-id-2666 .elementor-widget-container,
body.postid-2666 .elementor-widget-container,
body.service-single-page .elementor-widget-container {
    padding: 5px !important;
    margin-bottom: 0 !important;
}

/* Remove padding from Elementor sections */
body.page-id-2666 .elementor-section,
body.postid-2666 .elementor-section,
body.service-single-page .elementor-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove padding from Elementor columns */
body.page-id-2666 .elementor-column,
body.postid-2666 .elementor-column,
body.service-single-page .elementor-column {
    padding: 0 !important;
}

/* Remove padding from Elementor column wraps */
body.page-id-2666 .elementor-column > .elementor-widget-wrap,
body.postid-2666 .elementor-column > .elementor-widget-wrap,
body.service-single-page .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
}

/* ===== 5. CONTAINERS AND WRAPPERS - MINIMIZE PADDING ===== */

/* Remove padding from custom containers */
body.page-id-2666 .custom-container,
body.postid-2666 .custom-container,
body.service-single-page .custom-container {
    padding-left: 20px !important; /* Reduced padding */
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove padding from standard containers */
body.page-id-2666 .container,
body.postid-2666 .container,
body.service-single-page .container {
    padding: 10px !important;
}

/* ===== 6. SECTION SPECIFIC PADDING CLEANUP ===== */

/* Remove padding from feature sections */
body.page-id-2666 .feature-sec,
body.postid-2666 .feature-sec,
body.service-single-page .feature-sec {
    padding: 0 !important;
}

/* Remove padding from process sections */
body.page-id-2666 .process-sec,
body.postid-2666 .process-sec,
body.service-single-page .process-sec {
    padding: 0 20px 10px 20px !important; /* Minimal padding */
}

/* ===== 7. CONFIRMATION CONTENT - OPTIMIZE PADDING ===== */

/* Reduce confirmation page padding - currently 60px 20px */
body.page-id-2666 .confirmation-page,
body.postid-2666 .confirmation-page,
body.service-single-page .confirmation-page {
    padding: 20px 10px !important; /* Reduced from 60px 20px to 20px 10px */
}

/* Remove confirmation content padding */
body.page-id-2666 .confirmation-content,
body.postid-2666 .confirmation-content,
body.service-single-page .confirmation-content {
    padding: 0 !important;
    margin: 10px 0 !important; /* Minimal margin */
}

/* ===== 8. TEXT CONTENT - OPTIMIZE SPACING ===== */

/* Reduce paragraph padding and margins */
body.page-id-2666 .project-single-content-wrap .section-header p,
body.postid-2666 .project-single-content-wrap .section-header p,
body.service-single-page .project-single-content-wrap .section-header p {
    margin: 10px 10px 10px 10px !important; /* Reduced from 26px to 10px */
    padding: 2px 2px 2px 2px !important; /* Reduced from 5px to 2px */
}

/* Remove excessive padding from process points */
body.page-id-2666 .process-point,
body.postid-2666 .process-point,
body.service-single-page .process-point {
    padding: 0 !important;
    margin-bottom: 10px !important; /* Reduced spacing between points */
}

/* ===== 9. SPECIFIC ELEMENTOR ELEMENTS - TARGETED CLEANUP ===== */

/* Remove specific Elementor element paddings */
.elementor-2666 .elementor-element.elementor-element-6aa19f0,
.elementor-2666 .elementor-element.elementor-element-6916f4b,
.elementor-2666 .elementor-element.elementor-element-26f8f67 {
    --padding-top: 0px !important;
    --padding-bottom: 0px !important;
    --padding-left: 5px !important;
    --padding-right: 5px !important;
}

/* Remove padding from section titles */
.elementor-2666 .elementor-element.elementor-element-1dfcbd3 .section-header .section-title {
    padding: 0 !important; /* Remove the -7px padding */
}

/* Remove padding from section subtitles */
.elementor-2666 .elementor-element.elementor-element-1dfcbd3 .section-header .section-subtitle {
    padding: 0 !important;
}

/* ===== 10. RESPONSIVE ADJUSTMENTS ===== */

/* Mobile - proportional padding reduction */
@media (max-width: 768px) {
    body.page-id-2666 .project-single-wrap .section-header,
    body.postid-2666 .project-single-wrap .section-header,
    body.service-single-page .project-single-wrap .section-header {
        padding: 30px 50px !important; /* Proportional reduction for mobile */
    }
    
    body.page-id-2666 .custom-container,
    body.postid-2666 .custom-container,
    body.service-single-page .custom-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    body.page-id-2666 .service-single-wrap .feature-project .feature-project-infos,
    body.postid-2666 .service-single-wrap .feature-project .feature-project-infos,
    body.service-single-page .service-single-wrap .feature-project .feature-project-infos {
        padding: 15px 20px !important;
    }
}

/* Small mobile - minimal padding */
@media (max-width: 480px) {
    body.page-id-2666 .project-single-wrap .section-header,
    body.postid-2666 .project-single-wrap .section-header,
    body.service-single-page .project-single-wrap .section-header {
        padding: 20px 30px !important;
    }
    
    body.page-id-2666 .confirmation-page,
    body.postid-2666 .confirmation-page,
    body.service-single-page .confirmation-page {
        padding: 15px 5px !important;
    }
}

/* ===== 11. FINAL CLEANUP - CATCH ANY REMAINING PADDING ===== */

/* Remove any remaining excessive padding from common elements */
body.page-id-2666 *[class*="padding"],
body.postid-2666 *[class*="padding"],
body.service-single-page *[class*="padding"] {
    padding: 5px !important;
}

/* Override any theme-specific padding classes */
body.page-id-2666 .p-1,
body.page-id-2666 .p-2,
body.page-id-2666 .p-3,
body.page-id-2666 .p-4,
body.page-id-2666 .p-5,
body.postid-2666 .p-1,
body.postid-2666 .p-2,
body.postid-2666 .p-3,
body.postid-2666 .p-4,
body.postid-2666 .p-5,
body.service-single-page .p-1,
body.service-single-page .p-2,
body.service-single-page .p-3,
body.service-single-page .p-4,
body.service-single-page .p-5 {
    padding: 2px !important;
}

/* Ensure the page layout is compact and content flows naturally */
body.page-id-2666,
body.postid-2666,
body.service-single-page {
    line-height: 1.4 !important; /* Tighter line spacing */
}

/* ===== SUMMARY OF PADDING REDUCTIONS ===== */
/*
BEFORE → AFTER:
- .project-single-wrap .section-header: 40px 72px → 40px 72px (kept as requested)
- .feature-project-infos: 40px 60px → 20px 30px  
- .elementor-widget-container: 41px → 10px
- .confirmation-page: 60px 20px → 20px 10px
- .section-header p margins: 26px → 10px
- .section-header p padding: 5px → 2px
- Custom containers: default → 20px left/right, 0 top/bottom
- All Elementor sections: default → 0 padding
- Process sections: default → 0 20px 10px 20px

This should significantly reduce the overall padding and create a more compact layout.
*/