/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 34px 0 18px;
  background: var(--header-bg);
  /* background: rgba(20,20,22,.35); */
}

.site-footer .container{
  width: min(1200px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* 3 cột ngang */
.footer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.footer-col{
  min-width: 0; /* chống tràn làm rớt cột */
}

.footer-title{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .3px;
}

.footer-subtitle{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .2px;
  opacity: .95;
}

.footer-text{
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
}

.footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links a{
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-links a:hover{
  color: var(--text);
  border-bottom-color: rgba(255,255,255,.18);
}

.footer-muted{
  color: var(--text);
  /* color: rgba(255,255,255,.65); */
}

/* Visitors layout */
.footer-metrics{
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.footer-metric{
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
}

.footer-metric strong{
  color: var(--text);
  font-weight: 600;
}

.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  /* color: rgba(255,255,255,.65); */
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr; /* rớt xuống 1 cột khi màn nhỏ */
  }
  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}
