
/*
AKKITA Content Cleanup v08.2
Purpose:
- Remove public automation block from homepage
- Tighten homepage rhythm after automation removal
- Keep v08.1 stabilized header/admin flow
*/

/* Keep page clean and prevent horizontal scrollbars */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#page-container,
#et-main-area,
#main-content,
.akx,
.akkita-starter-wrap {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Remove any accidentally rendered Automation System block on old cached pages */
.akx .akx-section.akx-soft .akx-auto:has(.akx-kicker) .akx-kicker {
  /* intentionally no visual rule here; block removal is handled in PHP shortcode override */
}

/* Better rhythm between Process and CTA after automation block removal */
.akx-process-grid {
  margin-bottom: 0 !important;
}

.akx .akx-section.akx-white + .akx-section.akx-white {
  padding-top: 42px !important;
}

/* CTA should feel like a closing commercial block, not a technical automation block */
.akx .akx-section.akx-white .akx-auto {
  border-radius: 28px !important;
}

/* Footer transition cleanup */
.akx-footer {
  margin-top: 0 !important;
}

/* No default Divi footer after AKKITA footer */
body:has(.akx-footer) #main-footer {
  display: none !important;
}

/* Keep Divi title/sidebar hidden on AKKITA pages */
body.page .entry-title,
body.page h1.entry-title,
body.page .main_title,
body.page .et_post_meta_wrapper {
  display: none !important;
}

body.page #sidebar,
body.error404 #sidebar {
  display: none !important;
}

body.page #main-content .container:before,
body.error404 #main-content .container:before {
  display: none !important;
}
