/* Footer - full width background + centered content + responsive */
#site-footer {
  width: 100%;
  background: #000;                 /* full-width background */
  color: #fff;
  padding: 40px 0 20px;             /* vertical padding (top, right/left via inner container) */
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

/* Inner centered container: keeps content readable on large screens */
.footer-container {
  max-width: 1200px;               /* width constraint for content */
  margin: 0 auto;                  /* center horizontally */
  padding: 0 20px;                 /* horizontal gutter */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;                 /* allow columns to wrap on small screens */
  gap: 32px;
  box-sizing: border-box;
}

/* Each column */
.footer-column {
  flex: 1 1 260px;                 /* grow, shrink, base width */
  min-width: 220px;                /* prevents columns shrinking too small */
}

/* Column heading */
.footer-column h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
  border-bottom: 2px solid #6d28d9;
  display: inline-block;
  padding-bottom: 6px;
}

/* Lists */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.footer-column ul li {
  margin: 8px 0;
  font-size: 14px;
  color: #bbb;
  transition: color .18s ease;
}

/* Links */
.footer-column ul li a {
  color: #bbb;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;                   /* increases hit area */
}
.footer-column ul li a:hover,
.footer-column ul li:hover {
  color: #6d28d9;
}

/* Module list with vertical border indicator */
.module-list li {
  padding-left: 10px;
  border-left: 3px solid #6d28d9;
  padding-right: 8px;
}

/* Footer bottom */
.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
  margin-top: 18px;
  box-sizing: border-box;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Social icons group */
.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icons a {
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.social-icons a:hover {
  color: #fff;
  background: linear-gradient(90deg,#6d28d9,#9333ea);
  transform: translateY(-2px);
}

/* Copyright text */
.footer-bottom p {
  margin: 0;
  color: #bdbdbd;
  font-size: 14px;
  text-align: right;
  flex: 1 1 auto;
}

/* Small-screen layout adjustments */
@media (max-width: 900px) {
  .footer-container {
    gap: 20px;
    padding: 0 18px;
  }

  .footer-column {
    flex: 1 1 48%;         /* two columns where possible */
    min-width: 200px;
  }

  .module-list li { border-left-width: 3px; padding-left: 8px; }
}

/* Stack columns and bottom items on narrow screens */
@media (max-width: 600px) {
  .footer-container {
    display: block;         /* stack columns vertically */
    padding: 0 16px;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 18px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 16px 6px;
    gap: 10px;
  }

  .footer-bottom p { text-align: center; order: 2; font-size: 13px; }
  .social-icons { order: 1; margin-bottom: 6px; }
  .social-icons a { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }

  .footer-column h3 { font-size: 16px; }
  .footer-column ul li { font-size: 15px; }
}

/* Very small phones */
@media (max-width: 420px) {
  #site-footer { padding: 28px 0 18px; }
  .footer-container { padding: 0 12px; gap: 14px; }
  .footer-column h3 { font-size: 15px; }
  .footer-column ul li { font-size: 14px; line-height: 1.45; }
  .module-list li { border-left-width: 2px; padding-left: 8px; }
  .social-icons a { width: 42px; height: 42px; }
  .footer-bottom p { font-size: 13px; }
}

/* Accessibility: keyboard focus */
.footer-column ul li a:focus,
.social-icons a:focus {
  outline: 3px solid rgba(109,40,217,0.18);
  outline-offset: 3px;
}

/* small polish: prevent long lists from overflowing */
.footer-column ul { word-break: break-word; }
