/* ========================================
   Hide About Us Section on Services Page
   ======================================== */

/* Hide sections containing stats/counter boxes */
.elementor-section .gva-icon-box-group {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide parent section of stats/counter content */
.elementor-top-section:has(.icon-box-item-content),
.elementor-top-section:has(.gva-icon-box-group) {
  display: none !important;
}

/* Hide sections with "ABOUT US" label */
.elementor-section:has(.section-subtitle-tag) {
  display: none !important;
}

/* Hide by text content patterns */
.elementor-element:has([class*="counter"]),
.elementor-widget-container:has([class*="professional-experts"]) {
  display: none !important;
}

/* Fallback: Hide 2nd top-level section if needed */
/* body.page .elementor-top-section:nth-of-type(2) {
    display: none !important;
} */

/* ========================================
   Reorder Sections - Move Company Overview After Hero
   ======================================== */

/* Make the page container use flexbox for reordering */
body.page .elementor-inner,
body.page .elementor {
  display: flex !important;
  flex-direction: column !important;
}

/* Company Overview section - move to position 2 (after hero) */
.elementor-top-section:has([class*="company-overview"]),
.elementor-section:has(.elementor-heading-title:contains("Company Overview")),
.elementor-section:has(.section-subtitle-tag:contains("COMPANY OVERVIEW")) {
  order: 2 !important;
}

/* Hero/Slider section - keep at position 1 */
.elementor-top-section:first-child,
.elementor-section:has(.gva-slider) {
  order: 1 !important;
}

/* All other sections - default order 3+ */
.elementor-top-section {
  order: 3;
}

/* Ensure proper spacing after reordering */
.elementor-top-section:has([class*="company-overview"]) {
  margin-top: 0 !important;
}
