/* Clean footer for static site */
.atl-footer {
  background: radial-gradient(circle at 12% 18%, #1f7a52 0%, #12573b 30%, #0f3a2a 63%, #0a261a 100%);
  color: #e4eee7;
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.atl-footer .atl-footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.atl-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 1fr 1.05fr;
  gap: 26px 32px;
  align-items: start;
}
.atl-footer-grid > div {
  display: grid;
  gap: 10px;
}
.atl-footer h3 {
  margin: 0;
  color: #eaf4ed;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.atl-footer-grid > div:first-child h3 {
  position: relative;
  padding-left: 54px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.atl-footer-grid > div:first-child h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  background-image: url("/assets/img/trang-chu-0.png");
  background-size: 28px 28px;
  background-repeat: no-repeat;
  background-position: center;
}
.atl-footer p {
  margin: 0;
  line-height: 1.7;
  color: #cfded4;
  font-size: 15px;
  max-width: 620px;
}
.atl-footer p strong {
  color: #f0faf4;
}
.atl-footer a {
  color: #e7f2ea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.16s ease, text-decoration-color 0.16s ease, opacity 0.16s ease;
}
.atl-footer a:hover {
  color: #f4fbf7;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.8);
}
.atl-footer .atl-foot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.atl-footer .atl-foot-list li {
  line-height: 1.55;
}
.atl-footer .atl-cta {
  display: grid;
  gap: 12px;
  align-items: stretch;
}
.atl-footer-grid > div:nth-child(4) p strong {
  display: block;
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.atl-footer-grid > div:nth-child(4) .atl-foot-list {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.atl-footer-grid > div:nth-child(4) {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}
.atl-footer .atl-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  min-width: 0;
  width: 100%;
  background: linear-gradient(135deg, #28a067, #1f6b47);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(31,107,71,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.atl-footer .atl-btn:hover {
  background: linear-gradient(135deg, #2eb776, #238353);
  box-shadow: 0 14px 36px rgba(31,107,71,0.32);
  transform: translateY(-1px);
}
.atl-foot-map {
  display: grid;
  gap: 10px;
}
.atl-map-lazy {
  background: linear-gradient(135deg, rgba(26,108,74,0.54), rgba(17,68,50,0.5));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
}
.atl-map-lazy:hover,
.atl-map-lazy:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  border-color: rgba(255,255,255,0.16);
}
.atl-map-placeholder {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  color: #e7f2ea;
}
.atl-map-pin {
  font-size: 26px;
}
.atl-map-title {
  margin: 0;
  font-weight: 800;
}
.atl-map-address {
  margin: 0;
  color: #cfded4;
}
.atl-map-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f6b75f;
  font-weight: 700;
}
.atl-map-cta::after {
  content: "→";
  opacity: 0.9;
  font-size: 13px;
}
.atl-map-iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.atl-foot-social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.atl-social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #f4fbf7;
  box-shadow: 0 10px 20px rgba(0,0,0,0.16);
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.atl-social-btn svg {
  width: 20px;
  height: 20px;
  fill: #f4fbf7;
}
.atl-social-btn:hover,
.atl-social-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
}
.atl-footer .atl-meta {
  text-align: center;
  margin-top: 6px;
  padding-top: 18px;
  color: #c4d4cb;
  font-size: 13px;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.atl-footer .atl-meta span {
  display: inline-block;
  margin: 0 2px;
}

/* Tablet layout */
@media (max-width: 1100px) {
  .atl-footer {
    padding: 40px 0 30px;
  }
  .atl-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .atl-footer-grid > div:nth-child(4) {
    grid-column: span 1;
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .atl-footer {
    padding: 16px 0 22px;
  }
  .atl-footer .atl-footer-container {
    padding: 0 16px;
    gap: 16px;
  }
  .atl-footer h3 {
    font-size: 15px;
  }
  .atl-footer p,
  .atl-footer .atl-foot-list li {
    font-size: 14px;
    line-height: 1.6;
  }
  .atl-footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .atl-footer-grid > div {
    gap: 6px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }
  .atl-footer .atl-foot-list {
    gap: 6px;
  }
  .atl-foot-list li {
    padding: 8px 0;
  }
  .atl-foot-list li + li {
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .atl-footer-grid > div:first-child h3 {
    padding-left: 0;
    min-height: auto;
  }
  .atl-footer-grid > div:first-child h3::before {
    width: 0;
    height: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  /* Order mobile: CTA -> Khóa học -> Tài nguyên/social -> Giới thiệu */
  .atl-footer-grid > div:nth-child(4) { order: 1; }
  .atl-footer-grid > div:nth-child(2) { order: 2; }
  .atl-footer-grid > div:nth-child(3) { order: 3; }
  .atl-footer-grid > div:nth-child(1) { order: 4; }
  .atl-footer p {
    max-width: none;
  }
  .atl-footer .atl-btn {
    min-height: 48px;
  }
  /* Ẩn pseudo logo để tránh tràn/đụng safe area */
  .atl-footer-grid > div:first-child h3::before {
    display: none;
  }
  .atl-foot-social {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-items: center;
  }
  .atl-social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}
