/* === Global Unified Footer Style === */
footer {
  background: linear-gradient(225deg, #1e3a8a 0%, #0f172a 60%, #020617 100%) !important;
  color: rgba(255,255,255,0.85) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding-bottom: 2rem;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

/* هاله نور هماهنگ با هیرو */
footer::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.03) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* اطمینان از خوانایی محتوا روی پس‌زمینه تیره */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
}
footer a {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
footer p, footer span, footer li {
  color: rgba(255,255,255,0.75) !important;
}

/* رفع مشکل عرض فوتر در صفحات با کانتینر محدود */
.about-page footer,
body:not(.home-page) footer {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
}

footer .container,
footer .container-fluid {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

/* ریسپانسیو هاله نور */
@media (max-width: 768px) {
  footer::after {
    width: 350px;
    height: 350px;
    top: -30%;
    right: -15%;
  }
}
