:root {
  --footer-bg-color: #3a3939;
}

[data-theme="dark"] {
  --footer-bg-color: #0f0f0f;
} 

footer.site-footer {
  padding: 2rem;
  background-color: var(--footer-bg-color);
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  color: #eee;
  gap: 2.5rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* LEFT LOGO */
.footer-left {
  flex: 0 0 auto;
}

.footer-left a img {
  height: 130px;
  margin-bottom: 0.5rem;
}

/* With just one link left (the rest of the site's pages were removed),
   letting this stretch to fill the row (flex: 1) left it floating alone in
   a huge empty middle strip between the logo and the social icons. Sizing
   it to its content keeps it snug against the logo instead. */
.footer-center {
  flex: 0 0 auto;
  margin-top: 30px;
  text-align: left;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  margin-top: 30px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.footer-right {
  margin-top: 50px;
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  gap: 1rem;
}

.footer-right img {
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.2s ease;
}

.footer-right img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  /* .footer-content is the actual flex container (.site-footer is a plain
     block), so the stacking + order overrides below need to target it. */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-center {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .footer-right {
    order: 2;
    margin-left: 0;
  }
}
