/*
 Theme Name:   Astra Child
 Theme URI:    https://your-site.com
 Description:  Child theme for the Astra theme – CNFP Club
 Author:       CNFP
 Author URI:   https://your-site.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ==============================================
   Vos styles personnalisés vont ici
   ============================================== */

/* ====== CNFP Bourses & Single Bourse – Full Width Overrides ====== */
body.cnfp-bourses-page,
body.cnfp-single-bourse-page {
    background: #0d1b2a !important;
}

body.cnfp-bourses-page #page,
body.cnfp-single-bourse-page #page,
body.cnfp-bourses-page .site-content,
body.cnfp-single-bourse-page .site-content {
    background: #0d1b2a !important;
}

body.cnfp-bourses-page .site-content > .ast-container,
body.cnfp-single-bourse-page .site-content > .ast-container,
body.cnfp-bourses-page .ast-container,
body.cnfp-single-bourse-page .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: #0d1b2a !important;
}

body.cnfp-bourses-page #primary,
body.cnfp-single-bourse-page #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    border: none !important;
    background: #0d1b2a !important;
}

body.cnfp-bourses-page .entry-content,
body.cnfp-single-bourse-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.cnfp-bourses-page article,
body.cnfp-single-bourse-page article {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.cnfp-bourses-page #secondary,
body.cnfp-single-bourse-page #secondary,
body.cnfp-single-bourse-page .ast-separate-container .ast-article-single,
body.cnfp-single-bourse-page .ast-separate-container #primary {
    display: block !important;
    width: 100% !important;
    float: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.cnfp-single-bourse-page #secondary {
    display: none !important;
}

body.cnfp-bourses-page .entry-header,
body.cnfp-bourses-page .entry-footer,
body.cnfp-single-bourse-page .entry-header,
body.cnfp-single-bourse-page .entry-footer,
body.cnfp-single-bourse-page .post-navigation,
body.cnfp-single-bourse-page .comments-area,
body.cnfp-single-bourse-page .ast-single-related-posts-container {
    display: none !important;
}

/* ====== Hide old Elementor footer on single bourse pages ====== */
body.cnfp-single-bourse-page .elementor-location-footer,
body.cnfp-single-bourse-page footer.site-footer,
body.cnfp-single-bourse-page .site-footer,
body.cnfp-single-bourse-page #ast-footer-markup,
body.cnfp-single-bourse-page .ast-small-footer,
body.cnfp-single-bourse-page .ast-footer-overlay,
body.cnfp-single-bourse-page .site-below-footer-wrap,
body.cnfp-single-bourse-page .site-above-footer-wrap,
body.cnfp-single-bourse-page .ast-footer-copyright {
    display: none !important;
}

/* Hide old Elementor nav on all pages */
.elementor-widget-nav-menu,
.elementor-widget-wp-widget-nav_menu,
.elementor-widget-navigation-menu {
    display: none !important;
}
