footer {
  background-color: #003366; /* Dark navy */
  color: white;
  padding: 1rem 1rem 0.5rem; /* Reduced top and bottom padding */
  font-family: Arial, sans-serif;

  /* Make footer full viewport width */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Container for the entire footer content */
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Reduced gap between sections */
  justify-content: space-between;
  padding: 0.25rem 1rem; /* Reduced vertical padding */
  box-sizing: border-box;
}

/* Each footer section */
.footer-section {
  flex: 1 1 250px;
  padding: 0.25rem 0; /* Added small vertical padding */
  margin: 0;          /* Ensure no extra margin */
}

/* Section titles */
.footer-section h3 {
  margin-bottom: 0.5rem; /* Reduced bottom margin */
  font-size: 1.25rem;
  color: white;
}

/* Paragraphs and lists */
.footer-section p,
.footer-section ul {
  font-size: 0.9rem;       /* Slightly smaller font */
  line-height: 1.3;        /* Reduced line height */
  margin: 0 0 0.5rem 0;    /* Add bottom margin only */
}

/* Remove bullets from lists */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;  /* remove default margins */
}

/* List items */
.footer-section ul li {
  margin-bottom: 0.3rem; /* Reduced spacing */
}

/* Links inside the footer */
.footer-section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ff7f00; /* Orange accent */
}

/* Bottom bar */
.footer-bottom {
  text-align: center;
  margin-top: 1rem;      /* Reduced top margin */
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem 0.25rem; /* Reduced padding */
  opacity: 0.8;
  box-sizing: border-box;
}

/* Responsive layout */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.75rem; /* Reduced gap */
  }

  .footer-section {
    flex: unset;
    max-width: 100%;
    padding: 0.5rem 0; /* Reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section:last-child {
    border-bottom: none;
  }

  .footer-bottom {
    text-align: center;
  }
}
