/* --- Footer Styling --- */
.site-footer {
  background: #002868;
  color: #fff;
  padding: 2rem 1.5rem 1rem;
  margin-top: 3rem;
  min-height: 200px;         /* Reserve space */
  line-height: 1.5;
  font-size: 1rem;
  font-family: system-ui, sans-serif; /* lock font early */
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-container > div {
  flex: 1 1 250px; /* ✅ each column has predictable width */
}

.footer-container h4,
.footer-container h5 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.4; /* ✅ ensure headings don’t reflow */
}

.footer-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-container li {
  margin-bottom: 0.5rem;
}

.footer-container a {
  color: #fff; /* strong contrast on blue */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: #f3f3f3;
}

/* --- Footer Bottom --- */
.footer-bottom {
  min-height: 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #f5f5f5; /* brighter than #ddd for higher contrast */
  line-height: 1.5; /* ✅ stable spacing */
}

.footer-bottom a {
  color: #fff; /* high-contrast links */
  font-weight: bold;
  text-decoration: underline; /* underline helps accessibility */
}

.footer-bottom a:hover {
  color: #fff; /* stays consistent for clarity */
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-container h4,
  .footer-container h5 {
    font-size: 1rem;
  }

  .footer-container ul {
    padding-left: 0.5rem; /* better spacing on small screens */
  }

  .footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-container {
    gap: 1rem;
  }

  .footer-container h4,
  .footer-container h5 {
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}
