/* =========================================================================
   AUK Footer — mobile & desktop polish
   Overrides legacy float-based rules in style.css where needed.
   ========================================================================= */

footer {
  background: #2d4d89;
  color: #fff;
  padding: 40px 0 32px;
  margin-top: 40px;
  overflow-x: hidden;
}
footer .row {
  padding: 0 16px !important; /* override inline padding-right: 25px */
  margin: 0 auto;
  max-width: 1240px;
}

/* Footer logo */
.logo-footer-test {
  text-align: center;
  margin-bottom: 20px;
}
.logo-footer-test img {
  max-width: 180px;
  height: auto;
  display: inline-block;
}

/* Readable text colors on the dark footer */
.footer-links,
.footer-links p,
.footer-links span,
.footer-slinks p,
.footer-slinks span {
  color: #ffffff !important;
}
.footer-links p a,
.footer-links a {
  color: #f6a120 !important;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { color: #ffbf3d !important; }

/* Menu list */
.footer-menu ul,
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu ul li,
.footer-links ul li {
  margin-bottom: 8px;
  float: none;
  width: auto;
}
.footer-menu ul li a,
.footer-links ul li a {
  display: inline-block;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}
/* Remove any inherited ::before markers from other stylesheets */
.footer-menu ul li a::before,
.footer-links ul li a::before {
  content: none !important;
  display: none !important;
}
.footer-menu ul li a:hover,
.footer-links ul li a:hover {
  color: #f6a120 !important;
}

/* Footer about paragraph styling */
.footer-links span {
  display: block;
  font-size: 14.5px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 14px;
}
.footer-links p {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

/* Social icons row */
.footer-slinks { text-align: start; }
.footer-slinks p {
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-slinks ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-slinks li {
  float: none;
  margin: 0;
}
.footer-slinks li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.footer-slinks li a:hover {
  background: #f6a120;
  border-color: #f6a120;
  color: #fff;
  transform: translateY(-2px);
}
.footer-slinks li a img {
  width: 16px !important;
  height: 16px !important;
  vertical-align: middle;
  object-fit: contain;
  /* Force icon images to same pure-white as FontAwesome icons */
  filter: brightness(0) invert(1);
  transition: filter 0.15s;
}
.footer-slinks li a:hover img {
  /* Keep white on hover — matches fa icons behavior */
  filter: brightness(0) invert(1);
}

/* Copyright line */
.footer-slinks > span {
  display: block;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  opacity: 0.8;
}

/* =========================================================================
   Tablet (≤ 991px)
   ========================================================================= */
@media (max-width: 991.98px) {
  footer {
    padding: 32px 0 24px;
  }
  footer .row {
    padding: 0 20px !important;
  }
  footer .col-lg-3 {
    margin-bottom: 28px;
  }
  footer .col-lg-3:last-child {
    margin-bottom: 0;
  }
  .logo-footer-test {
    text-align: center;
  }
  .logo-footer-test img {
    max-width: 160px;
  }
}

/* =========================================================================
   Mobile (≤ 767px) — stacked, centered, tidy spacing
   ========================================================================= */
@media (max-width: 767.98px) {
  footer {
    padding: 28px 0 22px;
    margin-top: 32px;
  }
  footer .row {
    padding: 0 16px !important;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  footer .col-lg-3,
  footer .col-md-12 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
  }

  /* Logo */
  .logo-footer-test {
    margin: 0 0 4px;
  }
  .logo-footer-test img {
    max-width: 140px;
  }

  /* Menu — center items */
  .footer-menu ul,
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .footer-menu ul li,
  .footer-links ul li {
    margin: 0;
    width: auto;
  }

  /* About block — center with comfortable line-height */
  .footer-links {
    text-align: center;
  }
  .footer-links p { font-size: 15px; }
  .footer-links span {
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto 12px;
  }

  /* Social icons centered */
  .footer-slinks { text-align: center; }
  .footer-slinks p { font-size: 14px; }
  .footer-slinks ul {
    justify-content: center;
    gap: 10px;
  }
  .footer-slinks li a {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .footer-slinks > span {
    font-size: 12px;
    padding-top: 12px;
  }
}

/* =========================================================================
   Very small (≤ 380px)
   ========================================================================= */
@media (max-width: 380px) {
  footer .row { padding: 0 12px !important; }
  .footer-slinks ul { gap: 8px; }
  .footer-slinks li a { width: 36px; height: 36px; font-size: 14px; }
  .logo-footer-test img { max-width: 120px; }
}
