html {
  scroll-behavior: smooth;
}

body.pb-single-body {
  margin: 0;
  background: #15120d;
  color: #f7efe2;
  overflow-x: hidden;
}

.pb-single-post-page {
  direction: rtl;
  min-height: 100vh;
  font-family: Yekan, IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(208, 141, 38, 0.22), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 238, 197, 0.12), transparent 32%),
    radial-gradient(circle at 50% 105%, rgba(208, 141, 38, 0.18), transparent 42%),
    linear-gradient(135deg, #1b1710 0%, #11100d 48%, #241a0d 100%);
  position: relative;
  isolation: isolate;
}

.pb-single-post-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(rgba(255, 238, 197, 0.08) 1px, transparent 1px);
  background-size: 54px 54px, 54px 54px, 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.18));
}

.pb-single-post-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.28), transparent 24%, transparent 76%, rgba(0,0,0,0.32)),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.34) 100%);
}

.pb-post-shell {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

/* Header */

.pb-article-header {
  position: relative;
  z-index: 20;
  padding: 24px 0;
}

.pb-article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 238, 197, 0.12);
  border-radius: 28px;
  background: rgba(20, 17, 12, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.pb-nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.pb-nav-logo img {
  width: 166px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.4));
}

.pb-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pb-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(255, 248, 234, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
  transition: 0.24s ease;
}

.pb-nav-links a:hover {
  transform: translateY(-2px);
  color: #1a1308;
  background: #d08d26;
  border-color: #d08d26;
}

/* Hero */

.pb-post-hero {
  padding: 46px 0 72px;
}

.pb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
}

.pb-hero-content {
  position: relative;
}

.pb-post-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pb-post-kicker a,
.pb-post-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  color: rgba(255, 248, 234, 0.78);
  text-decoration: none;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
}

.pb-post-kicker a {
  color: #f0bd72;
  background: rgba(208, 141, 38, 0.13);
  border-color: rgba(208, 141, 38, 0.22);
}

.pb-post-title {
  margin: 0;
  max-width: 880px;
  color: #fff4df;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: -2px;
  text-shadow: 0 22px 60px rgba(0,0,0,0.5);
}

.pb-post-title::after {
  content: "";
  display: block;
  width: 172px;
  height: 8px;
  margin-top: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d08d26, #ffeec5, rgba(208,141,38,0.18));
  box-shadow: 0 12px 34px rgba(208,141,38,0.28);
}

.pb-post-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 248, 234, 0.72);
  font-size: 18px;
  line-height: 2.15;
}

.pb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.pb-primary-action,
.pb-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  font-size: 15px;
  transition: 0.25s ease;
}

.pb-primary-action {
  background: linear-gradient(135deg, #d08d26, #ffe0a3);
  color: #17100a;
  box-shadow: 0 18px 42px rgba(208,141,38,0.24);
}

.pb-secondary-action {
  color: rgba(255, 248, 234, 0.84);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
}

.pb-primary-action:hover,
.pb-secondary-action:hover {
  transform: translateY(-3px);
}

.pb-hero-visual {
  position: relative;
}

.pb-cover-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  aspect-ratio: 1 / 1;
  min-height: unset;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 238, 197, 0.16);
  box-shadow:
    0 34px 90px rgba(0,0,0,0.44),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: rotate(-2deg);
}

.pb-cover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72), transparent 54%),
    radial-gradient(circle at 30% 20%, rgba(255,238,197,0.18), transparent 30%);
}

.pb-cover-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.95) contrast(1.05);
}

.pb-floating-note {
  position: absolute;
  right: -20px;
  bottom: 34px;
  z-index: 4;
  width: 190px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 238, 197, 0.9);
  color: #17100a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
  transform: rotate(3deg);
}

.pb-floating-note span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.72;
  margin-bottom: 6px;
}

.pb-floating-note strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

/* Main layout */

.pb-post-main {
  padding: 0 0 44px;
}

.pb-post-layout {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.pb-post-sidebar {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
}

/* Sidebar cards */

.pb-sidebar-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 248, 234, 0.075);
  border: 1px solid rgba(255, 238, 197, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 62px rgba(0,0,0,0.26);
}

.pb-sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255,238,197,0.12), transparent 45%);
}

.pb-card-label {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 950;
  color: #d08d26;
}

.pb-sidebar-card h3 {
  position: relative;
  margin: 0 0 16px;
  color: #fff4df;
  font-size: 20px;
  line-height: 1.7;
}

.pb-toc ul {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-toc li {
  margin: 0 0 7px;
}

.pb-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(255, 248, 234, 0.72);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  transition: 0.22s ease;
}

.pb-toc a:hover {
  color: #18110a;
  background: #d08d26;
}

.pb-toc-sub {
  padding-right: 12px;
  opacity: 0.82;
}

.pb-toc span {
  color: rgba(255, 248, 234, 0.62);
  font-size: 14px;
  line-height: 2;
}

.pb-cta-card {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,238,197,0.2), transparent 35%),
    linear-gradient(145deg, rgba(208,141,38,0.24), rgba(255,255,255,0.06));
}

.pb-cta-card p {
  position: relative;
  margin: 0 0 18px;
  color: rgba(255, 248, 234, 0.72);
  font-size: 14px;
  line-height: 2;
}

.pb-cta-card a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #17100a;
  background: #ffe0a3;
  text-decoration: none;
  font-weight: 950;
  font-size: 14px;
}

.pb-related-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.pb-related-post {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.055);
  transition: 0.22s ease;
}

.pb-related-post:hover {
  transform: translateX(-4px);
  background: rgba(208,141,38,0.13);
  border-color: rgba(208,141,38,0.2);
}

.pb-related-post img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
}

.pb-related-post span {
  color: rgba(255, 248, 234, 0.82);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 850;
}

/* Article */

.pb-post-content-wrap {
  min-width: 0;
}

.pb-post-content {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 62px);
  border-radius: 36px;
  color: #2b2419;
  background:
    linear-gradient(180deg, rgba(255,250,238,0.97), rgba(244,232,211,0.96));
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow:
    0 34px 90px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 2.35;
}

.pb-post-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(30,22,12,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208,141,38,0.06), transparent 28%, transparent 72%, rgba(208,141,38,0.05));
  background-size: 18px 18px, 100% 100%;
  opacity: 0.8;
}

.pb-post-content > * {
  position: relative;
}

.pb-post-content p {
  margin: 0 0 27px;
}

.pb-post-content h2,
.pb-post-content h3,
.pb-post-content h4 {
  color: #18130c;
  line-height: 1.7;
  scroll-margin-top: 34px;
}

.pb-post-content h2 {
  margin: 54px 0 20px;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -0.8px;
  padding: 18px 22px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(208,141,38,0.18), rgba(208,141,38,0.04));
  border-right: 6px solid #d08d26;
}

.pb-post-content h3 {
  margin: 42px 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.pb-post-content h4 {
  margin: 34px 0 14px;
  font-size: 20px;
  font-weight: 950;
}

.pb-post-content a {
  color: #965a09;
  font-weight: 950;
  text-decoration: none;
  border-bottom: 1px dashed rgba(150,90,9,0.45);
}

.pb-post-content a:hover {
  color: #17100a;
  border-bottom-color: #17100a;
}

.pb-post-content strong,
.pb-post-content b {
  color: #17100a;
  font-weight: 950;
}

.pb-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  margin: 30px auto;
  box-shadow: 0 22px 60px rgba(24,17,10,0.18);
}

.pb-post-content blockquote {
  margin: 36px 0;
  padding: 26px 28px;
  border-radius: 26px;
  background: #1b1710;
  color: rgba(255,248,234,0.86);
  border-right: 7px solid #d08d26;
  box-shadow: 0 22px 54px rgba(0,0,0,0.18);
}

.pb-post-content blockquote p {
  margin-bottom: 0;
}

.pb-post-content ul,
.pb-post-content ol {
  margin: 0 0 30px;
  padding-right: 28px;
}

.pb-post-content li {
  margin-bottom: 12px;
}

.pb-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 34px 0;
  overflow: hidden;
  border-radius: 22px;
  font-size: 15px;
  background: rgba(255,255,255,0.6);
}

.pb-post-content th,
.pb-post-content td {
  padding: 15px;
  border: 1px solid rgba(30,22,12,0.12);
}

.pb-post-content th {
  background: rgba(208,141,38,0.16);
  color: #17100a;
  font-weight: 950;
}

.pb-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(30,22,12,0.12);
}

.pb-post-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #17100a;
  background: rgba(208,141,38,0.16);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.pb-post-tags a:hover {
  color: #fff4df;
  background: #17100a;
}

/* Comments */

.pb-comments-section {
  padding: 18px 0 86px;
}

.pb-comments-box {
  padding: clamp(26px, 4vw, 52px);
  border-radius: 36px;
  background: rgba(255, 248, 234, 0.08);
  border: 1px solid rgba(255, 238, 197, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 74px rgba(0,0,0,0.28);
}

.pb-comment-form-wrap {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.pb-comment-form-wrap h2,
.pb-comments-list-wrap h2 {
  margin: 0 0 10px;
  color: #fff4df;
  font-size: 30px;
  font-weight: 950;
}

.pb-comments-note,
.comment-notes,
.logged-in-as {
  color: rgba(255,248,234,0.62);
  line-height: 2;
  font-size: 14px;
}

.comment-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
}

.comment-form-author {
  order: 1 !important;
}

.comment-form-comment {
  order: 2 !important;
}

.form-submit {
  order: 3 !important;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,248,234,0.86);
  font-weight: 950;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.075);
  border-radius: 22px;
  padding: 16px 18px;
  color: #fff4df;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.22s ease;
}

.comment-form textarea {
  min-height: 190px;
  resize: vertical;
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
  color: rgba(255,248,234,0.42);
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: rgba(208,141,38,0.7);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 5px rgba(208,141,38,0.13);
}

.required {
  color: #d08d26;
}

.form-submit .submit,
.comment-form input[type="submit"] {
  width: fit-content;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #d08d26, #ffe0a3);
  color: #17100a;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 950;
  font-size: 15px;
  transition: 0.25s ease;
}

.form-submit .submit:hover,
.comment-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(208,141,38,0.22);
}

/* Comment list */

.comment-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.comment-list .comment {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff4df;
  font-weight: 950;
}

.comment-author img {
  border-radius: 50%;
}

.comment-meta {
  margin: 8px 0 12px;
  font-size: 13px;
  color: rgba(255,248,234,0.5);
}

.comment-meta a {
  color: rgba(255,248,234,0.5);
  text-decoration: none;
}

.comment-body p {
  color: rgba(255,248,234,0.78);
  line-height: 2;
}

.reply a {
  display: inline-flex;
  color: #d08d26;
  font-weight: 950;
  font-size: 14px;
  text-decoration: none;
}

/* Responsive */

@media (max-width: 1040px) {
  .pb-hero-grid {
    grid-template-columns: 1fr;
  }

  .pb-hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .pb-post-layout {
    grid-template-columns: 1fr;
  }

  .pb-post-sidebar {
    position: static;
    order: 2;
  }

  .pb-post-content-wrap {
    order: 1;
  }
}

@media (max-width: 760px) {
  .pb-post-shell {
    width: min(100% - 22px, 1180px);
  }

  .pb-article-header {
    padding: 14px 0;
  }

  .pb-article-nav {
    flex-direction: column;
    border-radius: 24px;
    padding: 16px;
  }

  .pb-nav-logo img {
    width: 142px;
  }

  .pb-nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pb-nav-links a {
    flex: 1;
    min-width: 96px;
    height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pb-post-hero {
    padding: 28px 0 44px;
  }

  .pb-post-title {
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1.34;
    letter-spacing: -1px;
  }

  .pb-post-title::after {
    width: 120px;
    height: 7px;
  }

  .pb-post-lead {
    font-size: 15px;
    line-height: 2.1;
  }

  .pb-primary-action,
  .pb-secondary-action {
    width: 100%;
  }

  .pb-cover-card {
  aspect-ratio: 1 / 1;
  min-height: unset;
  border-radius: 28px;
  transform: none;
}

.pb-cover-card img {
  height: 100%;
}

  .pb-floating-note {
    right: 14px;
    bottom: 14px;
    width: 156px;
    transform: none;
  }

  .pb-post-content {
    padding: 24px 18px;
    border-radius: 28px;
    font-size: 16px;
    line-height: 2.25;
  }

  .pb-post-content h2 {
    font-size: 23px;
    padding: 15px 16px;
  }

  .pb-post-content h3 {
    font-size: 20px;
  }

  .pb-sidebar-card,
  .pb-comments-box {
    border-radius: 26px;
  }

  .pb-comments-section {
    padding-bottom: 54px;
  }
}


#respond {
  margin-top: 28px;
}

.comment-list #respond {
  margin: 24px 0 10px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

#cancel-comment-reply-link {
  display: inline-flex;
  margin-right: 12px;
  color: #d08d26;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.comment-reply-title {
  color: #fff4df;
  font-size: 20px;
  font-weight: 950;
}


#pb-comment-message {
  margin-bottom: 18px;
}

.pb-comment-success,
.pb-comment-error {
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 2;
  animation: pbFade .25s ease;
}

.pb-comment-success {
  background: rgba(56, 161, 105, 0.16);
  border: 1px solid rgba(56, 161, 105, 0.32);
  color: #b7ffd1;
}

.pb-comment-error {
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(220, 38, 38, 0.32);
  color: #ffd0d0;
}

@keyframes pbFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   FOOTER
   ========================= */

.pb-footer {
  position: relative;
  z-index: 2;

  padding: 38px 20px;

  border-top: 1px solid rgba(255,255,255,0.08);

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.03)
    );
}

.pb-footer-inner {
  max-width: 1180px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  flex-wrap: wrap;
}

.pb-footer p {
  margin: 0;

  color: var(--text-muted);

  font-size: 15px;

  line-height: 1.9;
}

.pb-footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pb-footer-links a {
  color: #dbe5ee;

  text-decoration: none;

  font-size: 15px;
  font-weight: 700;

  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.pb-footer-links a:hover {
  color: var(--accent);
}

/* MOBILE */

@media (max-width: 768px) {

  .pb-footer-inner {
    flex-direction: column;

    text-align: center;
  }

  .pb-footer-links {
    gap: 18px;
  }

}
