/* =====================================================
   DPO India Footer Fix CSS
   Ready to upload
   Purpose: keeps footer logo and footer layout same on all pages
   ===================================================== */

/* Footer base */
footer,
.footer,
#footer {
  background-color: #111827;
  padding: 40px 0 20px 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Footer container */
footer .container,
.footer .container,
#footer .container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Footer logo wrapper */
.footer-logo,
.footer-logo-wrap,
.footer-brand,
footer .logo,
#footer .logo {
  text-align: center !important;
  margin: 0 auto 25px auto !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Main footer logo size fix */
.footer-logo img,
.footer-logo-wrap img,
.footer-brand img,
footer .logo img,
#footer .logo img,
footer img[src$='.svg'],
.footer img[src$='.svg'],
#footer img[src$='.svg'] {
  width: 260px !important;
  max-width: 260px !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: 90px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Prevent SVG/logo from stretching full screen */
footer svg,
.footer svg,
#footer svg {
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: 90px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Footer text */
footer p,
.footer p,
#footer p {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 5px 0 !important;
}

/* Footer links */
footer a,
.footer a,
#footer a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px !important;
}

footer a:hover,
.footer a:hover,
#footer a:hover {
  color: #5ec5f7 !important;
  text-decoration: none !important;
}

/* Footer columns */
.footer-row,
.footer-content,
footer .row,
#footer .row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 25px !important;
}

.footer-col,
footer .col,
#footer .col {
  flex: 1 1 220px !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
}

/* Footer headings */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6,
#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}

/* Footer lists */
footer ul,
.footer ul,
#footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

footer ul li,
.footer ul li,
#footer ul li {
  margin-bottom: 8px !important;
}

/* Footer bottom */
.footer-bottom,
.footer-copyright,
footer .copyright,
#footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin-top: 25px !important;
  padding-top: 15px !important;
  text-align: center !important;
  color: #ffffff !important;
  font-size: 13px !important;
}

/* Remove unwanted huge space caused by images */
footer img,
.footer img,
#footer img {
  object-fit: contain !important;
}

/* Tablet */
@media (max-width: 991px) {
  footer,
  .footer,
  #footer {
    padding: 35px 0 18px 0 !important;
  }

  .footer-logo img,
  .footer-logo-wrap img,
  .footer-brand img,
  footer .logo img,
  #footer .logo img,
  footer img[src$='.svg'],
  .footer img[src$='.svg'],
  #footer img[src$='.svg'],
  footer svg,
  .footer svg,
  #footer svg {
    width: 230px !important;
    max-width: 230px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  footer,
  .footer,
  #footer {
    padding: 30px 0 15px 0 !important;
    text-align: center !important;
  }

  footer .container,
  .footer .container,
  #footer .container {
    padding: 0 15px !important;
  }

  .footer-row,
  .footer-content,
  footer .row,
  #footer .row {
    display: block !important;
  }

  .footer-col,
  footer .col,
  #footer .col {
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 20px !important;
  }

  .footer-logo img,
  .footer-logo-wrap img,
  .footer-brand img,
  footer .logo img,
  #footer .logo img,
  footer img[src$='.svg'],
  .footer img[src$='.svg'],
  #footer img[src$='.svg'],
  footer svg,
  .footer svg,
  #footer svg {
    width: 200px !important;
    max-width: 200px !important;
    max-height: 80px !important;
  }

  footer p,
  .footer p,
  #footer p,
  footer a,
  .footer a,
  #footer a {
    font-size: 13px !important;
    text-align: center !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .footer-logo img,
  .footer-logo-wrap img,
  .footer-brand img,
  footer .logo img,
  #footer .logo img,
  footer img[src$='.svg'],
  .footer img[src$='.svg'],
  #footer img[src$='.svg'],
  footer svg,
  .footer svg,
  #footer svg {
    width: 170px !important;
    max-width: 170px !important;
  }
}
