/**
 * قالب تک‌مطلب بلاگ — بهمن یک
 * هیرو خبری تصویری، بج تاریخ، عنوان روی نوار سفید، محتوا + سایدبار.
 */

body.jdm-blog-single-tpl-bahman-one {
  background: var(--color-background, #fff);
  color: var(--color-foreground, #161616);
}

.blog-single--bahman-one {
  --bb1-ink: var(--j2-ink, var(--color-foreground, #161616));
  --bb1-muted: rgba(255, 255, 255, 0.88);
  --bb1-page: var(--j2-bg, var(--color-background, #fff));
  --bb1-card: var(--j2-card, var(--color-surface, #fff));
  --bb1-line: var(--j2-line, var(--color-border, #e8e8e8));
  --bb1-accent: var(--j2-accent, var(--color-primary, #0b3d91));
  --bb1-radius: var(--radius, 15px);
  --bb1-shadow: var(--j2-shadow, 0 4px 18px rgba(15, 23, 42, 0.08));
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 0 3rem;
  color: var(--bb1-ink);
  background: var(--bb1-page);
  box-sizing: border-box;
}

/* —— هیرو —— */
.blog-single--bahman-one .bb1-hero {
  position: relative;
  min-height: clamp(360px, 52vw, 620px);
  padding: clamp(5rem, 10vw, 7.5rem) 1.25rem 2rem;
  background-color: #0f274f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
}

.blog-single--bahman-one .bb1-hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 40, 0.25) 0%, rgba(8, 18, 40, 0.55) 45%, rgba(8, 18, 40, 0.82) 100%);
  pointer-events: none;
  z-index: 0;
}

.blog-single--bahman-one .bb1-hero--no-media .bb1-hero__wash {
  background: linear-gradient(135deg, #0b3d91, #16325c);
  opacity: 1;
}

.blog-single--bahman-one .bb1-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--jdm-site-width, 1120px);
  margin-inline: auto;
}

.blog-single--bahman-one .bb1-hero__crumbs {
  margin: 0 0 1.25rem;
}

.blog-single--bahman-one .bb1-hero__crumbs .j2-crumbs__list,
.blog-single--bahman-one .bb1-hero__crumbs .j2-crumbs__list li,
.blog-single--bahman-one .bb1-hero__crumbs .j2-crumbs__list a,
.blog-single--bahman-one .bb1-hero__crumbs .j2-crumbs__list span {
  color: #fff;
  font-size: 0.8rem;
}

.blog-single--bahman-one .bb1-hero__crumbs a {
  text-decoration: none;
}

.blog-single--bahman-one .bb1-hero__crumbs a:hover {
  color: #fff;
  opacity: 0.9;
}

.blog-single--bahman-one .bb1-hero__crumbs .j2-crumbs__list li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.75);
}

.blog-single--bahman-one .bb1-hero__layout {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem 1.5rem;
}

.blog-single--bahman-one .bb1-date {
  flex: 0 0 auto;
  width: clamp(110px, 14vw, 160px);
  min-height: clamp(130px, 16vw, 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 1rem 0.75rem;
  border-radius: var(--bb1-radius);
  background: #fff;
  color: #000;
  box-shadow: var(--bb1-shadow);
  box-sizing: border-box;
}

.blog-single--bahman-one .bb1-date__day {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}

.blog-single--bahman-one .bb1-date__month {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.blog-single--bahman-one .bb1-hero__content {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-single--bahman-one .bb1-hero__title {
  margin: 0 0 0.85rem;
  font-size: var(--jdm-blog-fs-title, clamp(1.2rem, 2.4vw, 1.45rem));
  font-weight: 700;
  line-height: 1.7;
  color: #000;
}

.blog-single--bahman-one .bb1-hero__title-span {
  display: inline;
  padding: 0.15rem 0.45rem;
  background: #fff;
  color: #000;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 2px;
}

.blog-single--bahman-one .bb1-hero__excerpt {
  margin: 0 0 1.1rem;
  max-width: 52rem;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.9;
  color: var(--bb1-muted);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.blog-single--bahman-one .bb1-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
}

.blog-single--bahman-one .bb1-hero__meta-main,
.blog-single--bahman-one .bb1-hero__meta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}

.blog-single--bahman-one .bb1-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
}

.blog-single--bahman-one .bb1-hero__stat:hover {
  color: #fff;
}

.blog-single--bahman-one .bb1-hero__stat-label {
  opacity: 0.9;
}

/* —— شل / محتوا —— */
.blog-single--bahman-one .shell {
  width: 100%;
  max-width: var(--jdm-site-width, 1120px);
  margin: 1.75rem auto 0;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.blog-single--bahman-one .shell.shell--no-sidebar {
  display: block;
}

.blog-single--bahman-one .bb1-article,
.blog-single--bahman-one .bb1-related,
.blog-single--bahman-one #blog-comments,
.blog-single--bahman-one .comments-area,
.blog-single--bahman-one .sidebar .contact-card,
.blog-single--bahman-one .sidebar .blog-cat-sidebar__panel {
  background: var(--bb1-card);
  border: 1px solid var(--bb1-line);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.blog-single--bahman-one .bb1-article {
  padding: clamp(1.15rem, 2.5vw, 1.85rem);
}

.blog-single.blog-single--bahman-one .entry-content.bb1-content {
  /* پدینگ از .bb1-article — جلوگیری از فاصله دوبل */
  padding: 0;
  font-size: var(--jdm-blog-fs-body, 0.98rem);
  line-height: 2;
  color: var(--bb1-ink, #222);
}

.blog-single--bahman-one .bb1-content > *:first-child {
  margin-top: 0;
}

.blog-single--bahman-one .bb1-content h2 {
  font-size: var(--jdm-blog-fs-h2, 1.3rem);
  margin: 1.6rem 0 0.8rem;
  font-weight: 700;
}

.blog-single--bahman-one .bb1-content h3 {
  font-size: var(--jdm-blog-fs-h3, 1.12rem);
  margin: 1.3rem 0 0.65rem;
}

.blog-single--bahman-one .bb1-content p {
  margin: 0 0 1.05rem;
}

.blog-single--bahman-one .bb1-content a {
  color: var(--bb1-accent);
}

.blog-single--bahman-one .bb1-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-single--bahman-one .bb1-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--bb1-line);
}

.blog-single--bahman-one .bb1-tags__label {
  font-weight: 700;
  font-size: 0.92rem;
}

.blog-single--bahman-one .bb1-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-single--bahman-one .bb1-tags__chip {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bb1-page) 55%, var(--bb1-card));
  color: #333;
  text-decoration: none;
  font-size: 0.84rem;
}

.blog-single--bahman-one .bb1-tags__chip:hover {
  background: color-mix(in oklab, var(--bb1-page) 35%, var(--bb1-card));
}

/* فاصله شرت‌لینک مشترک داخل فوتر برچسب بهمن */
.blog-single--bahman-one .bb1-tags .blog-single-shortlink {
  margin-top: 0.35rem;
}

.blog-single--bahman-one .bb1-related {
  margin-top: 1.15rem;
  overflow: hidden;
}

.blog-single--bahman-one .bb1-related .panel__head,
.blog-single--bahman-one .bb1-related .panel__body {
  padding-inline: 1.15rem;
}

.blog-single--bahman-one .bb1-related .panel__head {
  padding-top: 1.1rem;
}

.blog-single--bahman-one .bb1-related .panel__body {
  padding-bottom: 1.15rem;
}

.blog-single--bahman-one #blog-comments,
.blog-single--bahman-one .comments-area {
  margin-top: 1.15rem;
  padding: 1.15rem;
}

.blog-single--bahman-one .sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: var(
    --jdm-blog-single-sticky-top,
    calc(var(--wp-admin--admin-bar--height, 0px) + var(--nav-h, 68px) + 12px)
  );
  align-self: start;
}

@media (max-width: 768px) {
  .blog-single--bahman-one .bb1-hero {
    min-height: 320px;
    padding: 4.25rem 1rem 1.35rem;
  }

  .blog-single--bahman-one .bb1-hero__layout {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .blog-single--bahman-one .bb1-date {
    width: 96px;
    min-height: 110px;
    align-self: flex-start;
  }

  .blog-single--bahman-one .bb1-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-single--bahman-one .sidebar {
    position: static;
  }
}
