/* Nashr Footer Widget (Design like screenshot) */

footer {
  margin: 114px 0 0;
}

.nashr-el-footer {
  padding: 24px 0 0;
  margin: -114px 0 0;
}

.nashr-footer-card {
  background: var(--nashr-footer-card-bg, #fff);
  border-radius: var(--nashr-footer-radius, 22px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 22px 26px;
  direction: rtl;
}

/* ---------- Newsletter ---------- */
.nashr-footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nashr-nl-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}

.nashr-nl-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
  background: rgba(0, 0, 0, 0.03);
}

.nashr-nl-texts h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--nashr-footer-heading, #1f1a16);
}

.nashr-nl-texts p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--nashr-footer-muted, #6f6761);
}

.nashr-nl-form-wrap {
  display: flex;
}

.nashr-nl-form {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: var(--nashr-footer-input-bg, #faf7f4);
}

.nashr-nl-form input[type="email"] {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--nashr-footer-text, #2b2420);
}

.nashr-nl-form input[type="email"]::placeholder {
  color: rgba(43, 36, 32, 0.45);
}

.nashr-nl-form button {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
  box-shadow: 0 10px 18px rgba(118, 97, 82, 0.25);
}

/* اگر از شورتکد خبرنامه استفاده کردی */
.nashr-nl-shortcode {
  width: min(520px, 100%);
}
.nashr-nl-shortcode form {
  width: 100%;
}

/* ---------- Grid ---------- */
.nashr-footer-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-areas:
    "info support quick guide"
    "info extras extras extras";
  gap: 26px;
}

.nashr-footer-col--guide { grid-area: guide; }
.nashr-footer-col--quick { grid-area: quick; }
.nashr-footer-col--support { grid-area: support; }
.nashr-footer-info { grid-area: info; }
.nashr-footer-extras { grid-area: extras; }

.nashr-footer-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--nashr-footer-heading, var(--color-sys-primary));
  display: flex;
  align-items: center;
  gap: 10px;
}

.nashr-footer-col h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
  opacity: 0.9;
}

.nashr-footer-menu,
.nashr-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nashr-footer-menu li {
  margin: 0;
  padding: 0;
}

.nashr-footer-menu a {
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  text-decoration: none;
  color: var(--nashr-footer-muted, #6f6761);
}

.nashr-footer-menu a:hover {
  color: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
}

/* ---------- Info column (right) ---------- */
.nashr-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.nashr-footer-brand img {
  width: 52px;
  height: auto;
  display: block;
}

.nashr-footer-brand .brand-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--nashr-footer-heading, var(--color-sys-primary));
}

.nashr-footer-block-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--nashr-footer-heading, var(--color-sys-primary));
  display: flex;
  align-items: center;
  gap: 10px;
}

.nashr-footer-block-title .ic {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
}

.nashr-footer-block-title .ic svg {
  width: 30px;
  height: 30px;
  fill: var(--color-sys-primary);
}

.nashr-footer-phones {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nashr-footer-phones li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--nashr-footer-muted, #6f6761);
  direction: ltr;
}

.nashr-footer-phones a {
  color: inherit;
  text-decoration: none;
}
.nashr-footer-phones a:hover {
  color: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
}

.nashr-footer-address {
  font-size: 13px;
  line-height: 1.9;
  color: var(--nashr-footer-muted, #6f6761);
}

/* ---------- Badges + Social ---------- */
.nashr-footer-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}

.nashr-footer-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nashr-footer-badges a,
.nashr-footer-badges img {
  display: block;
}

.nashr-footer-badges img {
  height: 62px;
  width: auto;
}

.nashr-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nashr-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--nashr-footer-accent, var(--color-material-theme-sys-light-primary, #766152));
  text-decoration: none;
}

.nashr-footer-social a svg {
  width: 34px;
  height: 34px;
  fill: var(--color-sys-primary);
}

.nashr-footer-social a:hover {

}

/* ---------- Bottom bar ---------- */
.nashr-footer-bottombar {
  margin-top: 14px;
  background: var(--nashr-footer-card-bg, #fff);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  direction: rtl;
  font-family: 'IRANSansXFaNum';
}

.nashr-footer-bottombar .left,
.nashr-footer-bottombar .right {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--nashr-footer-muted, #6f6761);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nashr-footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "info info"
      "guide quick"
      "support support"
      "extras extras";
  }
  .nashr-footer-extras { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nashr-footer-card { padding: 18px 16px; }

  .nashr-footer-newsletter {
    flex-direction: column;
    align-items: stretch;
  }
  .nashr-nl-title { min-width: 0; }
  .nashr-nl-form-wrap { justify-content: stretch; }

  .nashr-footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "guide"
      "quick"
      "support"
      "extras";
  }

  .nashr-footer-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nashr-footer-badges img { height: 56px; }

  .nashr-footer-bottombar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .nashr-nl-form { flex-direction: column; align-items: stretch; }
  .nashr-nl-form button { width: 100%; }
}
