/* ======= Modern Footer Styles ======= */

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  background-color: var(--custom2-color) !important;
  padding: 1.15rem 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

footer p {
  margin-bottom: 0;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

footer p.float-end {
  justify-content: flex-end;
}

footer a.nav-link,
footer p a {
  display: inline-flex !important;
  align-items: center;
  padding: 0.35rem 0.85rem !important;
  border-radius: var(--radius-pill) !important;
  font-family: "OpenSans-Semibold", sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Light Footer (Light text on Custom2 color) */
footer .footer-light .copyright {
  color: rgba(255, 255, 255, 0.7);
}

footer .footer-light a.nav-link,
footer .footer-light p a {
  color: rgba(255, 255, 255, 0.82) !important;
  background-color: transparent;
}

footer .footer-light a.nav-link:hover,
footer .footer-light p a:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

footer .footer-light a.nav-link.active,
footer .footer-light p .active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

/* Dark Footer (Dark text on Custom2 color) */
footer .footer-dark .copyright {
  color: rgba(0, 0, 0, 0.6) !important;
}

footer .footer-dark a.nav-link,
footer .footer-dark p a {
  color: rgba(0, 0, 0, 0.75) !important;
  background-color: transparent;
}

footer .footer-dark a.nav-link:hover,
footer .footer-dark p a:hover {
  color: #000000 !important;
  background-color: rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

footer .footer-dark a.nav-link.active,
footer .footer-dark p .active {
  color: #000000 !important;
  background-color: rgba(0, 0, 0, 0.14) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  footer p.float-end {
    float: none !important;
    justify-content: center;
    margin-top: 0.5rem;
  }
  footer p {
    justify-content: center;
  }
}
