/**
 * Edge Page Custom Styles
 * Fix gap between what-we-do and tailored sections
 */

/* =================================================================
   Section Wrapper Level Adjustments
   ================================================================= */

/* Remove bottom spacing from what-we-do section wrapper */
.section-wrapper.section-what_we_do {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove top spacing from tailored section wrapper */
.section-wrapper.section-tailored {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =================================================================
   Internal Section Level Adjustments
   ================================================================= */

/* Remove bottom padding/margin from what-we-do internal section */
.section-wrapper.section-what_we_do .sections,
.edge-what-we-do-section {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove top padding/margin from tailored internal section */
.section-wrapper.section-tailored .sections,
.edge-tailored-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Specific class controls for fine-tuning */
.no-bottom-spacing {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.no-top-spacing {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* =================================================================
   Adjacent Section Control
   ================================================================= */

/* Control spacing between what-we-do and tailored when adjacent */
.section-wrapper.section-what_we_do + .section-wrapper.section-tailored {
  margin-top: 0 !important; /* Set to 0 for zero gap */
}

/* =================================================================
   Responsive Adjustments (if needed)
   ================================================================= */

@media (max-width: 991px) {
  /* Maintain zero gap on mobile */
  .section-wrapper.section-what_we_do,
  .section-wrapper.section-tailored {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* =================================================================
   Container Adjustments Inside Sections
   ================================================================= */

/* Ensure container doesn't add extra spacing */
.edge-what-we-do-section .container,
.edge-tailored-section .container {
  padding-top: 0;
}

.edge-what-we-do-section .container {
  padding-bottom: 0;
}
