/* ===================================================================
   Footer Layout Fix CSS
   Comprehensive solution for footer edge-to-edge layout
   ================================================================= */

/* Reset body and html to prevent layout issues */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Force all elements to use border-box */
*,
*::before,
*::after {
  box-sizing: border-box !important;
}

/* Ensure hero section spans full viewport width */
.hero-section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

/* Ensure notices marquee spans full viewport width */
.notices-marquee {
  width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
}

/* Ensure all sections that should be full-width span properly */
section {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Fix any sections with background that should span full width */
.section-bg-1,
.section-bg-2,
.section-bg-3,
.section-bg-4,
.magazine-layout,
.stats-section,
.alumni-section,
.partners-section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative !important;
}

/* Ensure footer spans full viewport width */
.modern-footer {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Fix container within footer */
.modern-footer .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Ensure rows don't create gaps */
.modern-footer .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Fix column padding */
.modern-footer [class*="col-"] {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Prevent any container overflow */
.container,
.container-fluid {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .hero-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }

  .modern-footer {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }

  .section-bg-1,
  .section-bg-2,
  .section-bg-3,
  .section-bg-4,
  .magazine-layout,
  .stats-section,
  .alumni-section,
  .partners-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }

  .notices-marquee {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }

  .modern-footer .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .modern-footer .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .modern-footer [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  html,
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .modern-footer .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .modern-footer [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Ensure no horizontal scroll */
* {
  box-sizing: border-box !important;
}

/* Fix any potential Bootstrap conflicts */
.modern-footer .container-fluid.px-0 {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Ensure footer background extends fully */
.modern-footer::before,
.modern-footer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100vw;
  background: inherit;
  z-index: -1;
}

.modern-footer::before {
  left: -100vw;
}

.modern-footer::after {
  right: -100vw;
}
