/* FOOTER */
footer {
  background: #2c2c2c; /* Darker background for contrast */
  color: #e0e0e0;
  padding: 2.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
}

/* FOOTER CONTAINER */
.footer-container {
  max-width: 1280px; /* Match navbar and main content */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #4a4a4a; /* Subtle gray border */
}

/* FOOTER COLUMNS */
.footer-column {
  flex: 1 1 200px;
  min-width: 160px;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  border-left: 4px solid #e0e0e0; /* Theme-consistent border */
  padding-left: 0.5rem;
}

/* FOOTER LINKS */
.footer-column a {
  display: flex;
  align-items: center;
  color: #e0e0e0;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
  gap: 0.5rem;
}

.footer-column a:hover {
  color: #ffffff; /* Subtle hover effect, no movement */
}

/* FOOTER ICONS */
.footer-icon {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
}

/* FOOTER COPYRIGHT */
.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  color: #4a4a4a;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-style: italic;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .footer-column {
    min-width: 0;
    text-align: left;
  }

  .footer-column h4 {
    font-size: 1.1rem;
    border-left: 4px solid #e0e0e0;
    padding-left: 0.5rem;
  }

  .footer-column a {
    font-size: 0.9rem;
    justify-content: flex-start;
  }

  .footer-copy {
    padding-top: 1rem;
    font-size: 0.8rem;
  }
}

/* ULTRA-SMALL SCREENS */
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjusted for smaller screens */
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  .footer-column a {
    font-size: 0.85rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
}