/* ====================================================
   Custom Footer Styles (non-conflicting)
   ==================================================== */

.custom-footer {
  background: #0d1b2a;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  padding-top: 40px;
  border-top: 3px solid #1b263b;
  /* Ensure visibility */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Ensure proper box model */
  box-sizing: border-box;
  /* Ensure proper positioning */
  position: relative;
  width: 100%;
}

.custom-footer .custom-footer-inner {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

.custom-footer .footer-top {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  /* Ensure visibility */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.custom-footer .footer-top .row {
  /* Ensure row visibility */
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  /* Ensure proper alignment */
  align-items: center !important;
  width: 100% !important;
  /* Ensure proper flex behavior */
  flex-wrap: wrap !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.custom-footer .footer-top .col-lg {
  /* Ensure column visibility */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  /* Ensure proper flex behavior */
  flex: 1 1 auto;
  min-width: 0;
  /* Ensure visibility on all screen sizes */
  display: block !important;
  /* Override Bootstrap grid issues */
  flex: 0 0 auto !important;
  max-width: none !important;
}

/* Ensure visibility on mobile */
.custom-footer .footer-top .col-lg {
  display: block !important;
  /* Ensure proper mobile display */
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.custom-footer .footer-logo {
  display: flex;
  align-items: center;
  min-height: 60px;
  justify-content: flex-start;
  /* Ensure visibility */
  visibility: visible !important;
  opacity: 1 !important;
  /* Ensure it's not hidden behind other elements */
  position: relative;
  z-index: 10;
  /* Prevent overflow hiding */
  overflow: visible !important;
  /* Add padding to ensure visibility */
  padding: 5px 0;
  /* Debug: Add background to see container */
  
  /* Ensure flex properties work correctly */
  flex: 1 1 auto;
  min-width: 0;
  /* Ensure proper sizing */
  width: 100% !important;
  max-width: 300px !important;
  /* Ensure proper sizing on all devices */
  box-sizing: border-box !important;
}

.custom-footer .footer-logo img {
  max-height: 60px;
  width: auto;
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  /* Fallback for SVG issues */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Ensure SVG renders correctly */
  shape-rendering: geometricPrecision;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Override any potential hiding rules */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
  /* Add a border to make it visible for debugging */
  border: 1px solid transparent;
  /* Ensure proper sizing */
  min-width: 70px;
  min-height: 30px;
  /* Ensure it takes up space */
  display: inline-block !important;
  /* Add a background color for debugging */

  /* Ensure visibility on all devices */
  max-width: 100% !important;
  height: auto !important;
  /* Ensure proper dimensions even if SVG fails */
  min-width: 70px !important;
  min-height: 40px !important;
  /* Ensure proper stacking */
  isolation: isolate;
}

/* Footer Links */
.custom-footer .footer-middle {
  padding: 40px 0;
}

.custom-footer .ft-col {
  margin-bottom: 20px;
}

.custom-footer .ft-col .heading {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 16px;
  transition: color 0.3s;
}

.custom-footer .ft-col .heading:hover {
  color: #3fa9f5;
}

.custom-footer .ft-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-footer .ft-col ul li {
  margin: 6px 0;
}

.custom-footer .ft-col ul li a {
  color: #d9d9d9;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.custom-footer .ft-col ul li a:hover {
  color: #3fa9f5;
}

/* Social Icons */
.custom-footer .ft-social ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-footer .ft-social a {
  color: #fff;
  background: #1b263b;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.custom-footer .ft-social a:hover {
  background: #3fa9f5;
}

/* Copyright */
.custom-footer .copyright {
  text-align: right;
  font-size: 13px;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-footer .footer-middle .row {
    flex-direction: column;
    text-align: center;
  }

  .custom-footer .ft-col {
    margin-bottom: 15px;
  }

  .custom-footer .ft-social {
    justify-content: center;
    margin-bottom: 15px;
  }

  .custom-footer .copyright {
    text-align: center;
    margin-top: 10px;
  }
  
  /* Ensure footer logo visibility on mobile */
  .custom-footer .footer-top .col-lg {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    /* Ensure proper mobile display */
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .custom-footer .footer-logo {
    justify-content: center !important;
    text-align: center !important;
  }
  
  .custom-footer .footer-logo img {
    margin: 0 auto !important;
    /* Ensure proper mobile sizing */
    max-height: 50px !important;
    min-width: 120px !important;
    min-height: 30px !important;
  }
  
  /* Ensure row behavior on mobile */
  .custom-footer .footer-top .row {
    flex-direction: column !important;
    align-items: center !important;
  }
}
