/* ================= FOOTER SECTION CSS ================= */
.footer { 
  background: #ffffff;   /* White background like navbar */
  color: #333; 
  padding: 60px 0 20px; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Headings */
.footer h5 { 
  color: #000; 
  font-weight: 700; 
  margin-bottom: 20px; 
  position: relative;
}

/* Decorative underline for headings */
.footer h5::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #007bff; /* Blue accent */
  margin-top: 8px;
  border-radius: 2px;
}

/* Links */
.footer a { 
  color: #555; 
  text-decoration: none; 
  transition: all 0.3s ease; 
  display: inline-block;
  padding: 4px 0;
}

.footer a:hover { 
  color: #007bff; 
  background-color: #f8f9fa; /* subtle background highlight */
  border-radius: 4px;
  padding-left: 5px; 
}

/* Utility hover class */
.hover-primary:hover {
  color: #007bff !important;
}

/* Footer bottom */
.footer-bottom { 
  border-top: 1px solid rgba(0, 0, 0, 0.1); 
  padding-top: 20px; 
  margin-top: 40px; 
  text-align: center;   /* left aligned */
  font-size: 14px;
  color: #666;
}

/* Social icons */
.footer .social-icons a {
  color: #555;
  font-size: 18px;
  margin: 0 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
  color: #007bff;
  transform: scale(1.15);
}

/* Logo Auto-fit (same as navbar) */
.footer-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .footer {
    text-align: left; /* keep left aligned on mobile */
  }
  .footer h5::after {
    margin-left: 0; /* underline stays left */
  }
  .footer a {
    display: block;
    margin: 6px 0;
    text-align: left;
  }
  .social-icons {
    justify-content: flex-start; /* icons left aligned */
  }
}
