/**
 * استایل فوتر — بازسازی دقیق از روی کد واقعی سایت مرجع (qstp.noavaran-ai.com)
 * فونت Vazirmatn به‌صورت محلی در functions.php لود می‌شه (نه گوگل، طبق درخواست).
 */

/* حذف پس‌زمینه‌ی پیش‌فرض GeneratePress */
body .site-footer.qstp-footer,
body .site-footer.qstp-footer > .inside-top-bar,
body .site-footer.qstp-footer .footer-widgets {
  background: transparent !important;
}

.qstp-footer {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  padding: 24px 16px 40px;
}
.qstp-footer * { box-sizing: border-box; }

/* ===================== ساختار بیرونی + دو حاشیه‌ی افست‌شده ===================== */
.qf-outer {
  max-width: 1400px;
  margin: 0 auto;
}
.qf-inner {
  position: relative;
}
.qf-content {
  position: relative;
  z-index: 10;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 900px) {
  .qf-content { padding: 20px 5px !important; gap: 18px; box-sizing: border-box; }
  .qf-col-logo { display: none !important; }
  .qf-col-grid .qf-box:last-child .qf-box-body p {
    font-size: 10px !important;
    white-space: nowrap;
    text-align: center;
  }
}

/* دو خط حاشیه‌ی تخت‌رنگ، هرکدوم گوشه‌ی مخالف با ۹۹٪ عرض/ارتفاع */
.qf-border {
  position: absolute;
  width: 99%;
  height: 99%;
  border: 1px solid #1F48EB;
  border-radius: 8px;
  pointer-events: none;
}
.qf-border-a { bottom: 0; left: 0; }
.qf-border-b { top: 0; right: 0; }
@media (max-width: 900px) {
  .qf-border { display: none; }
}

/* ===================== بنر بالا ===================== */
.qf-banner {
  width: 100%;
  background: rgba(22, 103, 217, 0.27);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qf-banner-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #16181D;
}
.qf-banner-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  text-align: justify;
  margin: 0;
  color: #33363F;
}
@media (max-width: 900px) {
  .qf-banner-title { font-size: 20px; }
  .qf-banner-text { font-size: 12px; }
}

/* ===================== ردیف ستون‌ها ===================== */
.qf-columns {
  display: flex;
  align-items: stretch;
  gap: 20px;
}
@media (max-width: 900px) {
  .qf-columns { flex-direction: column; align-items: center; gap: 10px; }
}

/* --- باکس با حاشیه‌ی گرادینت (تکنیک padding) --- */
.qf-box {
  border-radius: 8px;
  padding: 2px;
  box-shadow: 0 3.27px 3.27px rgba(0, 0, 0, 0.15);
  background: linear-gradient(90deg, rgba(31, 72, 235, 0.72) 0%, rgba(22, 103, 217, 0.27) 100%);
  height: 100%;
}
.qf-box-inner {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px 40px;
  height: 100%;
}
.qf-box-inner h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #16181D;
}
.qf-box-body { margin-top: 8px; }
.qf-box-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.95;
  text-align: justify;
  color: #33363F;
}
.qf-box-body b { font-weight: 700; }
.qf-ltr { direction: ltr; unicode-bidi: embed; }

/* لینک‌های مفید */
.qf-col-links { width: 20%; }
.qf-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.qf-links-list a {
  font-size: 12px;
  color: #33363F;
  text-decoration: none;
}
.qf-links-list a:hover { color: #1F48EB; }

/* گرید ۳ باکس */
.qf-col-grid {
  width: 60%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.qf-col-grid .qf-box-address { grid-column: 1 / -1; }

/* شبکه‌های اجتماعی */
.qf-col-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.qf-social-label {
  font-size: 12px;
  color: #33363F;
  margin: 0 0 8px;
}
.qf-social-pill {
  width: 290px;
  max-width: 100%;
  height: 39px;
  border-radius: 8px;
  background: rgba(31, 72, 235, 0.83);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.qf-social-pill:last-child { margin-bottom: 0; }
.qf-social-pill p {
  font-size: 12px;
  color: #ffffff;
  margin: 0;
  padding-right: 10px;
}
.qf-bold { font-weight: 600; }
.qf-social-icons { display: flex; height: 100%; }
.qf-social-icons a {
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #5C2F71;
}
.qf-social-icons a:last-child { border-left: none; }
.qf-social-icons svg { width: 18px; height: 18px; }

/* لوگو */
.qf-col-logo {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qf-col-logo img {
  max-width: 150px;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .qf-col-links,
  .qf-col-grid,
  .qf-col-social,
  .qf-col-logo {
    width: 100%;
  }
  .qf-col-grid { grid-template-columns: 1fr; }
}

/* دکمه‌ی برگشت به بالا */
.qstp-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #042C53;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(4,44,83,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.qstp-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.qstp-back-to-top:hover { background: #0C447C; }
.qstp-back-to-top-arrow {
  display: block !important;
  font-size: 22px !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 1 !important;
  color: #ffffff !important;
}
@media (max-width: 600px) {
  .qstp-back-to-top { bottom: 16px; left: 16px; width: 40px; height: 40px; }
}

/* دکمه‌ی بازگشت — دقیقاً هم‌رنگ و هم‌حالت دکمه‌ی «برگشت به بالا» */
.qstp-back-btn {
    position: Absolute !important;
    top: 110px !important;
    left: 24px !important;
    z-index: 150;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0px;
    min-height: 40px;
    background: #042C53;
    border: none;
    border-radius: 18px;
    padding: 11px 20px;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(4,44,83,0.35);
    transition: background .15s ease;
}
.qstp-back-btn:hover {
    background: #0C447C;
}
.qstp-back-btn span:not(.dashicons) {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
.qstp-back-btn .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .qstp-back-btn {
        display: none !important;
    }
}