html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.pb-blog-body {
  margin: 0;
  overflow-x: hidden;
  background: #110e0a;
  color: #fff4df;
  font-family: Yekan, IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
}

body.pb-blog-body a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================
   PAGE
========================= */

.pb-blog-page {
  direction: rtl;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 0%, rgba(208,141,38,0.18), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(255,238,197,0.06), transparent 28%),
    linear-gradient(180deg, #19140e 0%, #100f0c 45%, #14110d 100%);
}

.pb-blog-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px),
    radial-gradient(rgba(255,238,197,0.08) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 20px 20px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.2));
}

.pb-blog-container {
  width: min(1180px, calc(100% - 34px));
  margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.pb-blog-topbar {
  padding: 30px 0 0;
}

.pb-blog-nav {
  min-height: 78px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 30px;
  background: rgba(20,16,11,0.72);
  border: 1px solid rgba(255,238,197,0.11);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.pb-blog-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.pb-blog-logo img {
  width: 165px;
  display: block;
}

.pb-blog-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pb-blog-menu a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255,248,234,0.76);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  font-weight: 850;
  transition: 0.22s ease;
}

.pb-blog-menu a:hover {
  color: #181008;
  background: #d08d26;
  border-color: #d08d26;
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */

.pb-blog-hero {
  padding: 58px 0 38px;
}

.pb-blog-hero-layout-v2 {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: stretch;
  gap: 28px;
}

/* LEFT SIDE */

.pb-blog-hero-side {
  direction: rtl;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 470px;
  padding: 42px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(208,141,38,0.16), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255,238,197,0.12), transparent 32%),
    linear-gradient(180deg, rgba(255,248,234,0.08), rgba(255,248,234,0.025)),
    rgba(18,15,11,0.84);
  border: 1px solid rgba(255,238,197,0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
}

.pb-blog-hero-side::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 30px;
  border: 1px dashed rgba(255,238,197,0.13);
  pointer-events: none;
}

.pb-blog-hero-side span {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #181008;
  background: #d08d26;
  font-size: 12px;
  font-weight: 950;
}

.pb-blog-hero-side h2 {
  max-width: 560px;
  margin: 0;
  color: #fff4df;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.42;
  font-weight: 950;
  letter-spacing: -1.5px;
}

.pb-blog-hero-side p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255,248,234,0.66);
  font-size: 14px;
  line-height: 2.05;
}

.pb-blog-side-stats {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  max-width: 430px;
}

.pb-blog-side-stats div {
  flex: 1;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

.pb-blog-side-stats strong {
  display: block;
  color: #ffe0a3;
  font-size: 30px;
  font-weight: 950;
}

.pb-blog-side-stats small {
  display: block;
  margin-top: 5px;
  color: rgba(255,248,234,0.58);
  font-size: 12px;
  font-weight: 800;
}

/* RIGHT SIDE */

.pb-blog-hero-main {
  direction: rtl;
  width: 430px;
  min-width: 430px;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* SEARCH */

.pb-blog-search-panel {
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,248,234,0.08), rgba(255,248,234,0.03)),
    rgba(20,16,11,0.72);
  border: 1px solid rgba(255,238,197,0.11);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 65px rgba(0,0,0,0.28);
}

.pb-blog-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
}

.pb-blog-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff4df;
  font-family: inherit;
  font-size: 14px;
}

.pb-blog-search input::placeholder {
  color: rgba(255,248,234,0.4);
}

.pb-blog-search button {
  height: 52px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  color: #181008;
  background: linear-gradient(135deg, #d08d26, #ffe0a3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(208,141,38,0.22);
  transition: 0.22s ease;
}

.pb-blog-search button:hover {
  transform: translateY(-2px);
}

.pb-blog-clear {
  width: fit-content;
  margin: 12px auto 0;
  display: block;
  color: rgba(255,248,234,0.6);
  font-size: 13px;
  font-weight: 800;
}

/* HERO CARD */

.pb-blog-hero-content {
  flex: 1;
  min-height: 370px;
  padding: 38px 30px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(208,141,38,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,248,234,0.085), rgba(255,248,234,0.03)),
    rgba(20,16,11,0.76);
  border: 1px solid rgba(255,238,197,0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.3);
}

.pb-blog-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffd99b;
  background: rgba(208,141,38,0.12);
  border: 1px solid rgba(208,141,38,0.22);
  font-size: 12px;
  font-weight: 900;
}

.pb-blog-hero h1 {
  max-width: 360px;
  margin: 0 auto;
  color: #fff4df;
  font-size: clamp(42px, 4vw, 68px);
  line-height: 1.28;
  font-weight: 950;
  letter-spacing: -1.7px;
}

.pb-blog-hero h1::after {
  content: "";
  display: block;
  width: 126px;
  height: 6px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d08d26, #ffe0a3);
}

.pb-blog-hero p {
  max-width: 310px;
  margin: 22px auto 0;
  color: rgba(255,248,234,0.66);
  font-size: 14px;
  line-height: 2;
}

/* =========================
   CATEGORIES
========================= */

.pb-blog-categories-section {
  padding: 0 0 30px;
}

.pb-blog-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
}

.pb-blog-categories::-webkit-scrollbar {
  display: none;
}

.pb-blog-categories a {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(255,248,234,0.7);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 850;
  transition: 0.2s ease;
}

.pb-blog-categories a:hover,
.pb-blog-categories a.is-active {
  color: #181008;
  background: #d08d26;
  border-color: #d08d26;
  transform: translateY(-2px);
}

/* =========================
   CONTENT
========================= */

.pb-blog-content {
  padding: 0 0 80px;
}

.pb-blog-section-head {
  margin-bottom: 24px;
  padding: 0 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.pb-blog-section-head span {
  display: block;
  margin-bottom: 6px;
  color: #d08d26;
  font-size: 13px;
  font-weight: 900;
}

.pb-blog-section-head h2 {
  margin: 0;
  color: #fff4df;
  font-size: 30px;
  line-height: 1.5;
  font-weight: 950;
}

.pb-blog-section-head small {
  color: rgba(255,248,234,0.52);
  font-size: 13px;
  font-weight: 850;
}

/* =========================
   POSTS GRID
========================= */

.pb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pb-post-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,248,234,0.08), rgba(255,248,234,0.03)),
    rgba(20,16,11,0.8);
  border: 1px solid rgba(255,238,197,0.11);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  transition: 0.24s ease;
}

.pb-post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(208,141,38,0.36);
  box-shadow: 0 34px 90px rgba(0,0,0,0.35);
}

.pb-post-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.pb-post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.34s ease;
}

.pb-post-card:hover .pb-post-image img {
  transform: scale(1.06);
}

.pb-post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72), transparent 55%),
    radial-gradient(circle at 30% 18%, rgba(255,238,197,0.15), transparent 30%);
}

.pb-post-image span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  min-height: 31px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff4df;
  background: rgba(0,0,0,0.44);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.pb-post-content {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.pb-post-meta {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,248,234,0.48);
  font-size: 12px;
  font-weight: 800;
}

.pb-post-content h3 {
  margin: 0 0 10px;
  color: #fff4df;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 950;
}

.pb-post-content h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-post-content p {
  margin: 0;
  color: rgba(255,248,234,0.66);
  font-size: 13.5px;
  line-height: 1.95;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-post-link {
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #181008;
  background: linear-gradient(135deg, #d08d26, #ffe0a3);
  font-size: 13px;
  font-weight: 950;
  transition: 0.22s ease;
}

.pb-post-link:hover {
  transform: translateY(-2px);
}

/* =========================
   PAGINATION
========================= */

.pb-blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.pb-blog-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: rgba(255,248,234,0.72);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 900;
}

.pb-blog-pagination .current {
  color: #181008;
  background: #d08d26;
  border-color: #d08d26;
}

/* =========================
   EMPTY
========================= */

.pb-blog-empty {
  padding: 46px 24px;
  border-radius: 30px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,248,234,0.08), rgba(255,248,234,0.03)),
    rgba(20,16,11,0.78);
  border: 1px solid rgba(255,238,197,0.11);
}

.pb-blog-empty h3 {
  margin: 0 0 10px;
  color: #fff4df;
  font-size: 24px;
  font-weight: 950;
}

.pb-blog-empty p {
  margin: 0 0 20px;
  color: rgba(255,248,234,0.62);
  font-size: 14px;
}

.pb-blog-empty a {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #181008;
  background: #d08d26;
  font-size: 13px;
  font-weight: 950;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1020px) {

  .pb-blog-hero-layout-v2 {
    flex-direction: column;
    direction: rtl;
  }

  .pb-blog-hero-main {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .pb-blog-hero-side {
    min-height: auto;
  }

  .pb-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {

  .pb-blog-container {
    width: min(100% - 22px, 1180px);
  }

  .pb-blog-topbar {
    padding-top: 14px;
  }

  .pb-blog-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
  }

  .pb-blog-logo {
    justify-content: center;
  }

  .pb-blog-logo img {
    width: 140px;
  }

  .pb-blog-menu {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pb-blog-menu a {
    flex: 1;
    min-width: 90px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pb-blog-hero {
    padding: 36px 0 26px;
  }

  .pb-blog-hero-side,
  .pb-blog-hero-content {
    padding: 32px 24px;
    border-radius: 30px;
  }

  .pb-blog-search {
    flex-direction: column;
  }

  .pb-blog-search button {
    width: 100%;
  }

  .pb-blog-hero h1 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .pb-blog-side-stats {
    flex-direction: column;
    max-width: none;
  }

  .pb-blog-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pb-blog-section-head h2 {
    font-size: 24px;
  }

  .pb-posts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pb-post-card {
    border-radius: 26px;
  }

  .pb-post-content h3 {
    font-size: 18px;
  }
}

/* ===== WINDOWS HERO FIX ===== */

@media (min-width: 1021px) {

  .pb-blog-hero-layout-v2 {
    display: grid !important;
    grid-template-columns: minmax(560px, 1fr) 430px !important;
    grid-template-areas: "side main" !important;
    gap: 28px !important;
    align-items: stretch !important;
    direction: ltr !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
  }

  .pb-blog-hero-main {
    grid-area: main !important;
    width: 430px !important;
    min-width: 430px !important;
    max-width: 430px !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .pb-blog-hero-side {
    grid-area: side !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    direction: rtl !important;
    min-height: 470px !important;
    padding: 46px 54px !important;
  }

  .pb-blog-hero-side h2 {
    max-width: 620px !important;
    font-size: 52px !important;
    line-height: 1.35 !important;
  }

  .pb-blog-hero-side p {
    max-width: 560px !important;
  }

  .pb-blog-hero-content {
    width: 100% !important;
    min-height: 370px !important;
  }

  .pb-blog-search-panel {
    width: 100% !important;
  }
}



/* ===== COMPACT HERO + CENTER FIX ===== */

@media (min-width: 1021px) {
  .pb-blog-container {
    width: min(1080px, calc(100% - 34px));
  }

  .pb-blog-topbar {
    padding-top: 22px;
  }

  .pb-blog-hero {
    padding: 42px 0 20px;
  }

  .pb-blog-hero-layout-v2 {
    max-width: 1080px !important;
    gap: 24px !important;
  }

  .pb-blog-hero-side {
    min-height: 380px !important;
    padding: 34px 42px !important;
  }

  .pb-blog-hero-content {
    min-height: 295px !important;
    padding: 28px 26px !important;
  }

  .pb-blog-search-panel {
    padding: 11px !important;
  }

  .pb-blog-search input,
  .pb-blog-search button {
    height: 46px !important;
  }

  .pb-blog-hero-side h2 {
    font-size: 42px !important;
    line-height: 1.35 !important;
  }

  .pb-blog-hero h1 {
    font-size: 50px !important;
    line-height: 1.25 !important;
  }

  .pb-blog-hero-side p,
  .pb-blog-hero p {
    margin-top: 14px !important;
    line-height: 1.85 !important;
  }

  .pb-blog-side-stats {
    margin-top: 22px !important;
  }

  .pb-blog-categories-section {
    padding-bottom: 18px !important;
  }

  .pb-blog-content {
    padding-top: 0 !important;
  }

  .pb-blog-section-head {
    margin-bottom: 18px !important;
  }
}


@media (min-width: 1021px) {
  .pb-blog-hero-side {
    min-height: 330px !important;
  }

  .pb-blog-hero-content {
    min-height: 250px !important;
  }

  .pb-blog-hero-side h2 {
    font-size: 38px !important;
  }

  .pb-blog-hero h1 {
    font-size: 44px !important;
  }
}

/* ===== HERO ALIGNMENT FIX ===== */

@media (min-width: 1021px) {

  .pb-blog-hero-layout-v2 {
    transform: translateX(0px);
  }

}


.pb-post-link,
.pb-post-link span{
  color: #111 !important;
}



/* =========================
   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;
  }

}
