.ad-page {
  background: #fff;
  color: #1f2430;
  text-align: right;
  font-family: "dana", "iransans", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: clip;
}

.ad-page,
.ad-page button,
.ad-page input {
  font-family: "dana", "iransans", Tahoma, sans-serif;
}

.ad-page a,
.ad-page a:hover,
.ad-page a:focus {
  text-decoration: none;
}

.ad-emoji {
  display: inline-block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  vertical-align: -0.12em;
}

.ad-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.ad-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  color: #6b7280;
  font-size: 12.5px;
}

.ad-crumbs a,
.ad-crumbs a:hover,
.ad-crumbs a:focus {
  color: #6b7280;
}

.ad-crumbs a:hover,
.ad-crumbs a:focus {
  color: #2563eb;
}

.ad-crumbs li {
  min-width: 0;
}

.ad-crumbs .is-current {
  color: #0f172a;
  font-weight: 800;
}

.ad-hero {
  position: relative;
  margin: 22px auto 26px;
  padding: 42px 40px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .35);
}

.ad-hero::before,
.ad-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ad-hero::before {
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 158, 11, .3), transparent 70%);
}

.ad-hero::after {
  bottom: -140px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 70%);
}

.ad-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 99px;
  background: rgba(245, 158, 11, .2);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
}

.ad-hero h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.45;
  background: linear-gradient(90deg, #fff, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ad-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.ad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
}

.ad-article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(37, 99, 235, .08);
}

.ad-media {
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.ad-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.ad-media.is-missing::after {
  content: "تصویر مقاله";
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.ad-media.is-missing img {
  display: none;
}

.ad-body {
  padding: 32px 34px 36px;
  color: #1f2430;
  font-size: 15.5px;
  line-height: 2;
}

.ad-body::after {
  display: block;
  clear: both;
  content: "";
}

.ad-body p,
.ad-body ul,
.ad-body ol,
.ad-body blockquote,
.ad-body table,
.ad-body pre {
  margin: 0 0 18px;
}

.ad-body h2,
.ad-body h3,
.ad-body h4 {
  margin: 28px 0 12px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.5;
}

.ad-body h2 { font-size: 22px; }
.ad-body h3 { font-size: 18px; }
.ad-body h4 { font-size: 16px; }

.ad-body a,
.ad-body a:hover,
.ad-body a:focus {
  color: #2563eb;
  font-weight: 800;
}

.ad-body img {
  max-width: 100%;
  height: auto;
  margin: 8px 0 18px;
  border-radius: 14px;
}

.ad-body .float-right {
  float: right;
  max-width: 46%;
  margin: 6px 0 12px 18px;
}

.ad-body .float-left {
  float: left;
  max-width: 46%;
  margin: 6px 18px 12px 0;
}

.ad-body ul,
.ad-body ol {
  padding: 0 22px 0 0;
}

.ad-body li {
  margin-bottom: 8px;
}

.ad-body blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-right: 3px solid #f59e0b;
  border-radius: 12px;
  background: #f8fafc;
  color: #374151;
}

.ad-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.ad-body th,
.ad-body td {
  padding: 10px 12px;
  border: 1px solid #eef0f4;
  text-align: right;
}

.ad-body th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

.ad-body iframe,
.ad-body video {
  max-width: 100%;
  border: 0;
  border-radius: 14px;
}

.ad-body pre {
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.7;
  direction: ltr;
  text-align: left;
}

.ad-back,
.ad-back:hover,
.ad-back:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 34px 28px;
  color: #2563eb;
  font-size: 13.5px;
  font-weight: 800;
}

.ad-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.ad-side-card {
  padding: 22px 20px;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.ad-side-card h2 {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f4;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.ad-side-card h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
}

.ad-side-card p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.9;
}

.ad-side a.ad-all,
.ad-side a.ad-all:hover,
.ad-side a.ad-all:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ad-support {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
}

.ad-support h2,
.ad-support p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.ad-support h2 {
  border-bottom-color: rgba(255, 255, 255, .15);
}

.ad-support h2::after {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.ad-support p {
  color: #cbd5e1;
}

.ad-support-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-support a,
.ad-support a:hover,
.ad-support a:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ad-support a.is-ghost,
.ad-support a.is-ghost:hover {
  border: 1.5px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
}

.ad-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 10px auto 40px;
  padding: 38px 34px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .35);
}

.ad-cta h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  background: linear-gradient(90deg, #fff, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ad-cta p {
  margin: 0;
  color: #c5cad6;
  font-size: 13.5px;
  line-height: 1.9;
}

.ad-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ad-cta a,
.ad-cta a:hover,
.ad-cta a:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-cta a.is-ghost,
.ad-cta a.is-ghost:hover {
  border: 1.5px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 980px) {
  .ad-hero {
    padding: 32px 24px;
    border-radius: 18px;
  }

  .ad-hero h1 {
    font-size: 26px;
  }

  .ad-layout {
    grid-template-columns: 1fr;
  }

  .ad-side {
    position: static;
  }

  .ad-media img {
    height: 280px;
  }

  .ad-cta h2 {
    font-size: 23px;
  }
}

@media (max-width: 640px) {
  .ad-wrap {
    padding: 0 12px;
  }

  .ad-page {
    padding-bottom: 72px;
  }

  .ad-hero {
    padding: 26px 18px;
    border-radius: 16px;
    text-align: center;
  }

  .ad-hero h1 {
    font-size: 21px;
  }

  .ad-meta {
    justify-content: center;
    font-size: 12px;
  }

  .ad-body {
    padding: 22px 18px 26px;
    font-size: 14.5px;
  }

  .ad-body .float-left,
  .ad-body .float-right {
    float: none;
    max-width: 100%;
    margin: 8px 0 16px;
  }

  .ad-back {
    margin: 0 18px 22px;
  }

  .ad-media img {
    height: 210px;
  }

  .ad-cta {
    flex-direction: column;
    padding: 26px 18px;
    border-radius: 16px;
    text-align: center;
  }

  .ad-cta h2 {
    font-size: 20px;
  }

  .ad-cta-actions,
  .ad-cta a {
    width: 100%;
  }
}
