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

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

.blog-single--bahman-three {
  --bb3-ink: var(--j2-ink, var(--color-foreground, #161616));
  --bb3-page: var(--j2-bg, var(--color-background, #fff));
  --bb3-card: var(--j2-card, var(--color-surface, #fff));
  --bb3-line: var(--j2-line, var(--color-border, #e8e8e8));
  --bb3-accent: var(--j2-accent, var(--color-primary, #086095));
  --bb3-radius: 0;
  --bb3-tool: var(--j2-accent, var(--color-primary, #086095));
  display: block;
  width: 100%;
  max-width: none;
  padding: 1.25rem 0 3rem;
  color: var(--bb3-ink);
  background: var(--bb3-page);
  box-sizing: border-box;
}

.blog-single--bahman-three .shell {
  width: 100%;
  max-width: var(--jdm-site-width, 1120px);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

/* —— هیرو داخل ستون —— */
.blog-single--bahman-three .bb3-hero {
  position: relative;
  min-height: clamp(320px, 48vw, 560px);
  margin: 0 0 1.25rem;
  overflow: hidden;
  background-color: #27282e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  box-sizing: border-box;
}

.blog-single--bahman-three .bb3-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(18, 18, 19) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.blog-single--bahman-three .bb3-hero--no-media {
  background: linear-gradient(135deg, #1a3a5c, #27282e);
}

.blog-single--bahman-three .bb3-hero__tools {
  position: absolute;
  top: 1.1rem;
  inset-inline-start: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  background: var(--bb3-tool);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.2;
}

.blog-single--bahman-three .bb3-hero__tool {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.blog-single--bahman-three a.bb3-hero__tool:hover,
.blog-single--bahman-three button.bb3-hero__tool:hover {
  opacity: 0.9;
}

.blog-single--bahman-three .bb3-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(5.5rem, 28vw, 18.5rem) clamp(1.1rem, 3vw, 3rem) clamp(1.1rem, 3vw, 3rem);
  box-sizing: border-box;
}

.blog-single--bahman-three .bb3-hero__title {
  margin: 0 0 0.85rem;
  max-width: 70%;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.65;
  color: #fff;
}

.blog-single--bahman-three .bb3-hero__title-span {
  display: inline;
  padding: 0.12em 0.35em;
  background: var(--bb3-card);
  color: var(--bb3-ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.blog-single--bahman-three .bb3-hero__excerpt {
  margin: 0 0 0.85rem;
  max-width: 92%;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: #fff;
}

.blog-single--bahman-three .bb3-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

/* —— مقاله —— */
.blog-single--bahman-three .bb3-article,
.blog-single--bahman-three .bb3-related,
.blog-single--bahman-three #blog-comments,
.blog-single--bahman-three .comments-area,
.blog-single--bahman-three .sidebar .contact-card,
.blog-single--bahman-three .sidebar .blog-cat-sidebar__panel {
  border: 0;
  border-radius: 0;
  background: var(--bb3-card);
  box-shadow: none;
}

.blog-single--bahman-three .bb3-content {
  padding: 1.25rem clamp(1.15rem, 2.5vw, 1.75rem) 1.15rem;
  font-size: var(--jdm-blog-fs-body, 1.05rem);
  line-height: 1.9;
  color: var(--bb3-ink, #222);
}

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

.blog-single--bahman-three .bb3-content h2 {
  font-size: var(--jdm-blog-fs-h2, 1.45rem);
  margin: 1.4rem 0 0.7rem;
}

.blog-single--bahman-three .bb3-content h3 {
  font-size: var(--jdm-blog-fs-h3, 1.25rem);
  margin: 1.2rem 0 0.6rem;
}

.blog-single--bahman-three .bb3-content p {
  margin: 0 0 1rem;
}

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

.blog-single--bahman-three .bb3-content img {
  max-width: 100%;
  height: auto;
}

.blog-single--bahman-three .bb3-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.85rem clamp(1.15rem, 2.5vw, 1.75rem) 1.25rem;
  border-top: 1px solid var(--bb3-line);
}

.blog-single--bahman-three .bb3-tags__label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #333;
}

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

.blog-single--bahman-three .bb3-tags__chip {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--bb3-line);
  background: var(--bb3-card);
  color: var(--bb3-ink);
  font-size: 0.84rem;
  text-decoration: none;
}

.blog-single--bahman-three .bb3-tags__chip:hover {
  border-color: var(--bb3-accent);
  color: var(--bb3-accent);
}

.blog-single--bahman-three .bb3-tags .blog-single-shortlink {
  margin-top: 0.35rem;
  width: 100%;
}

.blog-single--bahman-three .bb3-related {
  margin-top: 1rem;
  border-top: 1px solid var(--bb3-line);
  padding: 0.85rem clamp(1.15rem, 2.5vw, 1.75rem) 1.15rem;
  box-sizing: border-box;
}

.blog-single--bahman-three .bb3-related .panel__head,
.blog-single--bahman-three .bb3-related .panel__body {
  padding-inline: 0;
}

.blog-single--bahman-three #blog-comments,
.blog-single--bahman-three .comments-area {
  margin-top: 1rem;
  padding: 0.85rem clamp(1.15rem, 2.5vw, 1.75rem) 1.15rem;
  border-top: 1px solid var(--bb3-line);
  box-sizing: border-box;
}

.blog-single--bahman-three .sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  .blog-single--bahman-three .bb3-hero__title {
    max-width: 100%;
  }

  .blog-single--bahman-three .bb3-hero__content {
    padding-top: 7rem;
  }

  .blog-single--bahman-three .sidebar {
    margin-top: 1rem;
  }
}

@media print {
  .blog-single--bahman-three .bb3-hero__tools,
  .blog-single--bahman-three .sidebar,
  .blog-single--bahman-three .bb3-related,
  .blog-single--bahman-three #blog-comments,
  .blog-single--bahman-three .comments-area {
    display: none !important;
  }
}
