/* =========================
   Footer Base Styling
========================= */
footer.footer {
  background-color: #51626f;
  color: #fff;
  font-size: 0.9rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Social icons container */
.footer-bottom .d-flex.justify-content-center.gap-3.flex-wrap.mb-3 {
  justify-content: center;
  gap: 1rem;
}

/* Social Icon Buttons */
footer .btn.btn-light.rounded-circle.p-2 {
  width: 40px; /* Default large circle */
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

footer .btn.btn-light.rounded-circle.p-2:hover,
footer .btn.btn-light.rounded-circle.p-2:focus {
  background-color: #e0e0e0;
  outline: none;
}

/* Social Icon Images */
footer .footer-social-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease-in-out;
}

/* Scale up icon on hover */
footer .btn.btn-light.rounded-circle.p-2:hover .footer-social-icon {
  transform: scale(1.15);
}

/* Footer navigation links container */
footer
  .d-flex.flex-column.flex-md-row.justify-content-center.align-items-center.gap-3.text-white.small {
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

/* Footer navigation links */
footer .d-flex.flex-column.flex-md-row a.text-white.text-decoration-none {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  transition: color 0.3s ease;
}

footer .d-flex.flex-column.flex-md-row a.text-white.text-decoration-none:hover,
footer a.text-white.text-decoration-none:focus {
  color: #ddd;
  text-decoration: underline;
  outline: none;
}

/* Accessibility Section */
#accessibilityLinkContainer {
  font-size: 0.85rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* =========================
   Responsive Tweaks
========================= */

/* Tablets */
@media (max-width: 768px) {
  footer.footer {
    font-size: 0.85rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  #accessibilityLinkContainer {
    justify-content: center;
    margin-top: 1rem;
    text-align: center;
  }

  footer
    .d-flex.flex-column.flex-md-row.justify-content-center.align-items-center.gap-3.text-white.small {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Icons scale down slightly */
  footer .btn.btn-light.rounded-circle.p-2 {
    width: 50px;
    height: 50px;
  }

  footer .footer-social-icon {
    width: 32px;
    height: 32px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  footer.footer {
    font-size: 0.8rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Icons smaller for mobile */
  footer .btn.btn-light.rounded-circle.p-2 {
    width: 42px;
    height: 42px;
  }

  footer .footer-social-icon {
    width: 28px;
    height: 28px;
  }
}
