.footer {
  width: 100%;
  background-color: black;
  color: #bbb;
  height: 400px;
  position: relative;
  padding: 70px 20px 40px; /* 70px top gap, 40px bottom */
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  position: relative;
}

.footer-column a {
  color: #bbb;
  font-size: 12pt;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

/* Footer bottom image */
.footer-image {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 100px;
  object-fit: cover;
}

/* Large screens */
@media (min-width: 901px) {
  .footer-inner {
    gap: 0;
  }

  .footer-column {
    width: 300px;
    padding: 0 30px;
  }

  /* Vertical lines for middle columns */
  .footer-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    width: 1px;
    height: 200%; /* twice as tall as column */
    background-color: #bbb;
  }

  /* Left border for first column */
  .footer-column:first-child::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 1px;
    height: 200%;
    background-color: #bbb;
  }

  /* Right border for last column */
  .footer-column:last-child::after {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    width: 1px;
    height: 200%;
    background-color: #bbb;
  }

  .footer-image {
    display: block;
  }
}

/* Small/medium screens */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-column {
    border: none;
    padding: 0;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .footer-column::after,
  .footer-column::before {
    display: none;
  }

  .footer-image {
    display: none;
  }
}