/* ===== FOOTER FIX (GLOBAL) ===== */

/* Footer container fix */
.footercontainer {
  width: 100%;
  overflow-x: hidden;
}

footer .footer-top .row {
  justify-content: flex-start !important;
}

/* Left section */
.footetfirsthalf {
  flex: 0 0 25%;
  max-width: 25%;
}

/* Right section */
.footetsecondhalf {
  flex: 0 0 75%;
  max-width: 75%;
}

/* Inner footer columns */
.h6_footer-inner {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding-left: 10px;
  padding-right: 10px;
}

/* Remove unwanted spacing */
.h6_footer-widget {
  margin-right: 0 !important;
}

/* Headings alignment */
.h6_footer-widget-title {
  text-align: left !important;
}

.h6_footer-widget-title.text-center {
  text-align: center !important;
}

/* Bottom bar fix */
.footer-bottom {
  margin-top: 0 !important;
}

/* Social icons spacing */
.h6_footer-social ul {
  display: flex;
  gap: 10px;
}

/* Footer links alignment */
.footer-links ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.footer-links ul li {
  list-style: none;
}

/* Copyright text alignment */
.h6_copyright-text {
  margin: 0;
}

.h6_copyright-text p {
  margin: 0;
}

/* Subjects columns spacing fix */
.h6_footer-widget-list .row {
  margin-left: 0;
  margin-right: 0;
}

.h6_footer-widget-list .row .col-6 {
    padding-left: 15px;
    padding-right: 15px;
}

.h6_footer-widget-list .row .col-6.pe-2 {
    padding-right: 8px !important;
}

.h6_footer-widget-list .row .col-6.ps-2 {
    padding-left: 8px !important;
}

/* Footer bottom alignment fix */
.footer-bottom .row {
  align-items: center;
}

.footer-bottom .col-md-6:first-child {
  display: flex;
  align-items: center;
}

.footer-bottom .col-md-6:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .footetfirsthalf,
  .footetsecondhalf {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .h6_footer-inner {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .footer-bottom .col-md-6:last-child {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
    .h6_footer-widget-list .row .col-6 {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 15px;
    }
    
    .h6_footer-widget-list .row .col-6.pe-2 {
        padding-right: 5px !important;
    }
    
    .h6_footer-widget-list .row .col-6.ps-2 {
        padding-left: 5px !important;
    }
    
    .footer-links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-bottom .col-md-6 {
        text-align: left;
    }
    
    .footer-bottom .col-md-6:last-child {
        justify-content: flex-start;
    }
}

/* Tablet responsive fixes */
@media (min-width: 768px) and (max-width: 991px) {
    .h6_footer-widget-list .row .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .h6_footer-widget-list .row .col-6.pe-2 {
        padding-right: 6px !important;
    }
    
    .h6_footer-widget-list .row .col-6.ps-2 {
        padding-left: 6px !important;
    }
    
    .footer-bottom .col-md-6:last-child {
        justify-content: flex-start;
        margin-top: 10px;
    }
}