* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", sans-serif;
  background: #f9f9fc;
}
.footer {
  background-color: #f5f5f7;
  padding: 30px 20px;
  border-top: 1px solid #ddd;
  margin-top: 30px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.footer-logo-social {
  flex: 1 1 220px;
  min-width: 200px;
}
.footer-logo {
  margin-top: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 36px;
  margin-right: 12px;
}
.footer-logo span {
  font-size: 26px;
  font-weight: 600;
  color: #333;
}
.footer-social a {
  margin-right: 15px;
  color: #333;
  font-size: 20px;
  text-decoration: none;
}
.footer-column {
  flex: 1 1 180px;
  min-width: 150px;
}
.footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}
.footer-column a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
}
.footer-bottom {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #666;
}
.footer-bottom a {
  margin-right: 15px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

/* Tablet & small screens - keep two-column menus */
@media (max-width: 980px) {
  .footer-logo-social {
    flex: 1 1 100%;
    min-width: unset;
  }
  .footer-column {
    flex: 1 1 calc(50% - 20px);
    min-width: 150px;
  }
}

/* Small screens ≤600px — keep two columns + bump font size + add gap */
@media (max-width: 600px) {
  .footer-column {
    flex: 1 1 calc(50% - 20px);
    min-width: 150px;
  }
  /* Font size bump */
  .footer-column h4 {
    font-size: 18px;
  }
  .footer-column a {
    font-size: 17px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 15px; /* extra gap */
  }
  .footer-bottom a {
    display: inline-block;
    margin: 0 5px;
    font-size: 16px;
  }
}

/* Ultra-small ≤400px — stack menus in one column */
@media (max-width: 400px) {
  .footer-column {
    flex: 1 1 100%;
  }
}