
/* CTEJA Home Layout Fix V1 */
body.home .ast-container,
body.home .site-content .ast-container,
body.home #primary,
body.home .content-area,
body.home .site-main,
body.home .entry-content,
body.home article.page,
body.home .site-content {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body.home .entry-header,
body.home .entry-title,
body.home .ast-page-builder-template .entry-header,
body.home .ast-title-bar-wrap,
body.home .ast-page-title-wrap,
body.home .ast-breadcrumbs-wrapper,
body.home .ast-breadcrumbs,
body.home .ast-article-single > .entry-header,
body.home .site-content > .ast-container > #primary > .site-main > article > header {
  display:none!important;
}

/* aggressively remove the second Astra title row */
body.home .ast-container + .ast-container,
body.home .site-header + .ast-container,
body.home .ast-primary-header-bar + .ast-container {
  max-width:none!important;
}

/* Hero full browser width even when shortcode sits inside WP content */
body.home .cteja-hero {
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
}

/* Search overlaps hero bottom */
body.home .cteja-hero + .cteja-search-shell,
body.home .cteja-search-shell {
  position:relative;
  z-index:20;
}

body.home .cteja-hero + .cteja-search-shell {
  margin-top:-42px!important;
}

/* Search remains centered */
body.home .cteja-search-shell {
  max-width:1240px!important;
  padding-left:20px!important;
  padding-right:20px!important;
}

/* remove any default top whitespace before first shortcode */
body.home .entry-content > *:first-child {
  margin-top:0!important;
}

/* Elementor/Gutenberg wrapper safety */
body.home .wp-site-blocks,
body.home .entry-content > .wp-block-group,
body.home .entry-content > .wp-block-shortcode {
  max-width:none!important;
}

/* mobile/tablet */
@media(max-width:920px){
  body.home .cteja-hero + .cteja-search-shell {
    margin-top:-28px!important;
  }
}
@media(max-width:600px){
  body.home .cteja-hero {
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
  }
  body.home .cteja-hero + .cteja-search-shell {
    margin-top:14px!important;
  }
  body.home .cteja-search-shell {
    padding-left:12px!important;
    padding-right:12px!important;
  }
}
