﻿.hd-design {
    direction: rtl;
    font-family: inherit;
    color: #1d1d1b;
}

/* عرض کانتینر: site-container.css */
.hpb-container {
    padding: 0;
}

.hd-brand {
    font-weight: 700;
}

.hd-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.hd-menu a {
    color: #fff;
    text-decoration: none;
}

.hd-hero {
    background: #f8f8f8;
    padding: 24px 0;
}

.hd-hero .hpb-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
}

.hd-btn {
    display: inline-block;
    background: #81298e;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    padding: 10px 18px;
}

.hd-btn-light {
    background: #fff;
    color: #81298e;
}

.hd-slider {
    position: relative;
    min-height: 340px;
    border-radius: 14px;
    overflow: hidden;
    background: #ddd;
}

.hd-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd-slide-bg--placeholder {
    background: #cfcfcf;
}

.hd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
}

.hd-slide.is-active {
    opacity: 1;
}

.hd-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .7));
}

.hd-slide-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
    max-width: 70%;
}

.hd-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: rgba(255, 255, 255, .75);
}

.hd-prev {
    right: 12px;
}

.hd-next {
    left: 12px;
}

.hd-section {
    padding: 32px 0;
}

.hd-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.hd-category {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8f8f8;
    text-decoration: none;
    color: #1d1d1b;
}

.hd-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.hd-product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.hd-product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hd-product-card h3 {
    font-size: 14px;
    margin: 8px 0;
}

.hd-price {
    color: #81298e;
    font-weight: 700;
}

.hd-products-hamta .hd-hamta-card {
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.hd-products-hamta .hd-hamta-card .product-image img {
    width: 100%;
    border-radius: 8px;
}

.hd-products-hamta .hd-hamta-card .product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.hd-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.hd-video-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 12px;
}

.hd-video-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.hd-faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.hd-faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.hd-cta {
    background: #81298e;
    color: #fff;
    text-align: center;
}

.hpb-footer {
    background: #f4f4f4;
    padding: 30px 0 16px;
}

.hpb-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hpb-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-copy {
    margin-top: 16px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    font-size: 13px;
}

/*
 * چیدمان موبایل فقط با کلاس بدنه (نسخهٔ سرور موبایل) — نه مدیاکوئری برای تعویض اصلی.
 * دسکتاپ: .hd-mode-desktop (پیش‌فرض استایل‌های بالا).
 */
.hd-mode-mobile .hd-hero .hpb-container {
    grid-template-columns: 1fr;
}

.hd-mode-mobile .hpb-footer-grid {
    grid-template-columns: 1fr;
}

.hd-mode-mobile .hd-menu ul {
    flex-wrap: wrap;
    gap: 10px;
}

.hd-mode-mobile .hd-slider {
    min-height: 220px;
}

/* ——— چیدمان تطبیقی: دسکتاپ چندلایه با sticky فقط روی منو ——— */
.hpb-header-desktop {
    background: transparent;
}

.hpb-header-desktop .hpb-header-tier-top {
    background: #1e73be;
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}

.hpb-header-desktop .hpb-header-tier-top-inner {
    text-align: center;
}

.hpb-header-desktop .hpb-header-scroll-pack {
    background: #fff;
    color: #1d1d1b;
    border-bottom: 1px solid #eaeaea;
}

.hpb-header-desktop .hpb-header-middle-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.hpb-header-desktop .hd-brand-desktop {
    flex: 0 0 auto;
}

.hpb-header-desktop .hd-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.hpb-header-desktop .hd-brand-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.hpb-header-desktop .hpb-header-search {
    flex: 1;
    min-width: 0;
}

.hpb-header-desktop .hpb-header-search .woocommerce-product-search,
.hpb-header-desktop .hpb-header-search .search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin: 0;
}

.hpb-header-desktop .hpb-header-search input[type="search"],
.hpb-header-desktop .hpb-header-search input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
}

.hpb-header-desktop .hpb-header-actions {
    flex: 0 0 auto;
}

.hpb-header-desktop .hpb-header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1b;
    text-decoration: none;
}

.hpb-header-desktop .hpb-header-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100050;
    background: #1d1d1b;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

body.admin-bar .hpb-header-desktop .hpb-header-nav-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hpb-header-desktop .hpb-header-nav-sticky {
        top: 46px;
    }
}

.hpb-header-desktop .hd-menu-sticky ul {
    justify-content: center;
    flex-wrap: wrap;
}

.hpb-header-desktop .hd-menu-sticky a {
    color: #fff;
}

/* هدر قدیمی تک‌ردیف */
.hpb-header-legacy {
    background: #1d1d1b;
    color: #fff;
    padding: 12px 0;
}

.hpb-header-legacy .hpb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hpb-header-legacy .hd-brand {
    font-weight: 700;
}

.hpb-header-legacy .hd-menu a {
    color: #fff;
}

/* ——— موبایل تطبیقی: نوار بالا ثابت + نوار پایین ——— */
/* !important: تم‌ها (مثلاً WoodMart) گاهی روی header { position:relative } می‌گذارند و نوار را با اسکرول می‌برند */
.hpb-header-mobile-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    z-index: 100050;
    background: #f8fafc;
    color: #1d1d1b;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.admin-bar .hpb-header-mobile-fixed {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hpb-header-mobile-fixed {
        top: 46px !important;
    }
}

.hpb-header-mobile-fixed .hpb-header-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    min-height: 48px;
}

.hd-mobile-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.hd-mobile-brand-logo {
    max-height: 36px;
    width: auto;
}

.hd-mobile-cart-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #81298e;
    color: #fff;
    text-decoration: none;
}

.hd-mobile-cart-circle svg {
    display: block;
}

.hd-mobile-top-spacer {
    height: 58px;
}

body.admin-bar .hd-mobile-top-spacer {
    height: calc(32px + 58px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .hd-mobile-top-spacer {
        height: calc(46px + 58px);
    }
}

.hd-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100050;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 4px;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0));
    background: #fff;
    border-top: 1px solid #eaeaea;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}

/* داخل shell نوار پایین — position:fixed باعث full-bleed مسطح می‌شود */
.mobile-bottom-nav-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.mobile-bottom-nav-shell .hd-mobile-bottom-nav,
.hpb-sticky-bottom-nav-shell .hd-mobile-bottom-nav {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
    padding: 0;
}

.hd-mobile-bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    line-height: 1.2;
}

.hd-mobile-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.hd-mobile-bottom-icon svg {
    display: block;
}

body.hd-has-mobile-bottom-nav {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
}

/* --- Articles / blog layout (shortcode hpb_layout_articles) --- */
.hd-articles {
    --hd-articles-accent: #1abc9c;
    --hd-articles-accent-dark: #16a085;
    --hd-articles-muted: #6b7280;
    --hd-articles-bg: #f3f4f6;
    --hd-articles-card-bg: #fff;
    --hd-articles-border: #e5e7eb;
}

.hd-articles-banner {
    background: linear-gradient(135deg, var(--hd-articles-accent) 0%, var(--hd-articles-accent-dark) 100%);
    color: #fff;
    padding: 28px 0 32px;
    margin-bottom: 0;
}

.hd-articles-breadcrumb {
    font-size: 14px;
    opacity: .92;
    margin-bottom: 10px;
}

.hd-articles-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.hd-articles-breadcrumb a:hover {
    text-decoration: underline;
}

.hd-articles-bc-sep {
    margin: 0 8px;
    opacity: .75;
}

.hd-articles-bc-current {
    font-weight: 600;
}

.hd-articles-banner-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
}

.hd-articles-body {
    background: var(--hd-articles-bg);
    padding: 28px 0 40px;
}

.hd-articles-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.hd-articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-articles-widget {
    background: var(--hd-articles-card-bg);
    border: 1px solid var(--hd-articles-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.hd-articles-widget-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.hd-articles-search {
    display: flex;
    gap: 8px;
}

.hd-articles-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--hd-articles-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.hd-articles-search-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--hd-articles-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.hd-articles-search-btn:hover {
    background: var(--hd-articles-accent-dark);
}

.hd-articles-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hd-articles-cat-list li + li {
    border-top: 1px solid var(--hd-articles-border);
}

.hd-articles-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.hd-articles-cat-list a:hover {
    color: var(--hd-articles-accent-dark);
}

.hd-articles-cat-count {
    color: var(--hd-articles-muted);
    font-size: 13px;
}

.hd-articles-recent {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hd-articles-recent li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
}

.hd-articles-recent li + li {
    border-top: 1px solid var(--hd-articles-border);
}

.hd-articles-recent-thumb {
    flex-shrink: 0;
}

.hd-articles-recent-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.hd-articles-recent-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #111827;
    text-decoration: none;
}

.hd-articles-recent-title:hover {
    color: var(--hd-articles-accent-dark);
}

.hd-articles-main {
    min-width: 0;
}

.hd-articles-empty {
    margin: 0;
    padding: 24px;
    background: var(--hd-articles-card-bg);
    border-radius: 12px;
    border: 1px dashed var(--hd-articles-border);
    text-align: center;
    color: var(--hd-articles-muted);
}

.hd-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.hd-articles-card {
    background: var(--hd-articles-card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--hd-articles-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
}

.hd-articles-card-media {
    position: relative;
}

.hd-articles-card-cat {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    background: var(--hd-articles-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.hd-articles-card-cat:hover {
    background: var(--hd-articles-accent-dark);
    color: #fff;
}

.hd-articles-card-img-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

.hd-articles-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd-articles-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(120deg, #e5e7eb 0%, #f3f4f6 100%);
}

.hd-articles-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hd-articles-card-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.hd-articles-card-title a {
    color: #111827;
    text-decoration: none;
}

.hd-articles-card-title a:hover {
    color: var(--hd-articles-accent-dark);
}

.hd-articles-card-excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--hd-articles-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hd-articles-card-meta {
    font-size: 13px;
    color: var(--hd-articles-muted);
    margin-bottom: 12px;
}

.hd-articles-meta-dot {
    margin: 0 6px;
}

.hd-articles-readmore {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 700;
    color: var(--hd-articles-accent-dark);
    text-decoration: none;
}

.hd-articles-readmore:hover {
    text-decoration: underline;
}

.hd-articles-pagination {
    margin-top: 28px;
}

.hd-articles-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hd-articles-pagination li {
    margin: 0;
}

.hd-articles-pagination a,
.hd-articles-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--hd-articles-card-bg);
    border: 1px solid var(--hd-articles-border);
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.hd-articles-pagination a:hover {
    border-color: var(--hd-articles-accent);
    color: var(--hd-articles-accent-dark);
}

.hd-articles-pagination span.current {
    background: var(--hd-articles-accent);
    border-color: var(--hd-articles-accent);
    color: #fff;
}

.hd-articles .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 960px) {
    .hd-articles-layout {
        grid-template-columns: 1fr;
    }

    .hd-articles-sidebar {
        order: 2;
    }

    .hd-articles-main {
        order: 1;
    }

    .hd-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Single post layout (template override) --- */
/* اگر تم هنوز یک wrapper باریک دور محتوا گذاشت، این کمک می‌کند (Woodmart و مشابه). */
body.hd-single-post-layout .wd-content-layout,
body.hd-single-post-layout .wd-content-area,
body.hd-single-post-layout .content-layout,
body.hd-single-post-layout .site-content > .container,
.hd-single-shortcode-root .wd-content-layout,
.hd-single-shortcode-root .wd-content-area,
.hd-single-shortcode-root .content-layout,
.hd-single-shortcode-root .site-content > .container {
    max-width: none;
    width: 100%;
}

body.hd-single-post-layout .wd-sidebar,
body.hd-single-post-layout .sidebar-container,
body.hd-single-post-layout aside.sidebar,
.hd-single-shortcode-root .wd-sidebar,
.hd-single-shortcode-root .sidebar-container,
.hd-single-shortcode-root aside.sidebar {
    display: none !important;
}

/* سایدبار مقالهٔ v2 (.article-sidebar) — Woodmart و تم‌های مشابه گاهی روی همهٔ aside overflow می‌گذارند */
body.hd-single-post-layout .hamta-sa-root .article-layout,
.hd-single-shortcode-root .hamta-sa-root .article-layout {
    align-items: start !important;
}

body.hd-single-post-layout .hamta-sa-root .article-sidebar,
.hd-single-shortcode-root .hamta-sa-root .article-sidebar,
.wd-content-area .hamta-sa-root .article-sidebar,
.content-area .hamta-sa-root .article-sidebar,
.entry-content .hamta-sa-root .article-sidebar {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.hd-single-post {
    --hd-single-blue: #2563eb;
    --hd-single-blue-dark: #1d4ed8;
    --hd-single-green: #22c55e;
    --hd-single-green-dark: #16a34a;
    --hd-single-muted: #6b7280;
    --hd-single-border: #e5e7eb;
    --hd-single-bg: #f3f4f6;
    /* فاصلهٔ سایدبار چسبان از بالای دید؛ با هدر ثابت Woodmart بزرگ‌ترش کنید مثلاً 96px */
    --hd-sidebar-sticky-top: 20px;
    --hd-sidebar-sticky-bottom: 20px;
    direction: rtl;
    font-family: inherit;
    color: #111827;
}

body.admin-bar .hd-single-post {
    --hd-sidebar-sticky-top: 52px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hd-single-post {
        --hd-sidebar-sticky-top: 60px;
    }
}

.hd-single-hero {
    position: relative;
    min-height: min(52vh, 520px);
    display: flex;
    align-items: flex-end;
    background: linear-gradient(145deg, #1a2332 0%, #0f1419 100%);
    color: #fff;
}

.hd-single-hero--has-image {
    background-image: var(--hd-single-hero-bg);
    background-size: cover;
    background-position: center;
}

.hd-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.hd-single-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    text-align: center;
}

.hd-single-hero-top {
    margin-bottom: 20px;
    text-align: right;
}

.hd-single-hero-category {
    margin: 0 0 16px;
}

.hd-single-hero-cat {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--hd-single-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .45);
}

.hd-single-hero-cat:hover {
    background: var(--hd-single-blue-dark);
    color: #fff !important;
}

.hd-single-hero-byline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.hd-single-hero-avatar {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.hd-single-hero-byline-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    gap: 4px;
}

.hd-single-hero-author {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.hd-single-hero-byline-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
}

.hd-single-hero-readtime {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

.hd-single-breadcrumb,
.hd-single-breadcrumb a {
    font-size: 13px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.hd-single-breadcrumb a:hover {
    text-decoration: underline;
}

.hd-single-bc-sep {
    margin: 0 6px;
    opacity: .75;
}

.hd-single-bc-current {
    font-weight: 600;
    color: #fff;
}

.hd-single-breadcrumb-yoast {
    background: transparent;
    padding: 0;
    margin: 0;
}

.hd-single-breadcrumb-yoast span,
.hd-single-breadcrumb-yoast a {
    color: rgba(255, 255, 255, .88) !important;
}

.hd-single-title {
    margin: 0 auto 18px;
    font-size: clamp(1.65rem, 4.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hd-single-meta-dot {
    opacity: .65;
}

/* نوار اشتراک رنگی زیر محتوا */
.hd-single-social-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-top: 28px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.hd-single-social-bar-label {
    font-weight: 800;
    font-size: 15px;
    color: #111827;
}

.hd-single-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hd-soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.hd-soc:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
    color: #fff;
}

.hd-soc--tg {
    background: #229ed9;
}

.hd-soc--wa {
    background: #25d366;
}

.hd-soc--tw {
    background: #000;
}

.hd-soc--fb {
    background: #1877f2;
}

.hd-soc--li {
    background: #0a66c2;
}

.hd-soc--copy {
    background: #64748b;
}

.hd-soc--native {
    background: #7c3aed;
}

.hd-soc svg {
    display: block;
}

/* قبلی / بعدی */
.hd-single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.hd-single-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.hd-single-post-nav-link:not(.is-empty):hover {
    border-color: var(--hd-single-blue);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}

.hd-single-post-nav-link.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.hd-single-post-nav-dir {
    font-size: 12px;
    font-weight: 700;
    color: var(--hd-single-muted);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.hd-single-post-nav-next {
    text-align: left;
}

.hd-single-post-nav-prev {
    text-align: right;
}

.hd-single-post-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.hd-single-body {
    background: var(--hd-single-bg);
    padding: 32px 0 48px;
}

.hd-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
    max-width: 1180px;
    margin-inline: auto;
}

.hd-single-main {
    min-width: 0;
}

.hd-single-entry {
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 16px;
    padding: 32px 28px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    font-size: 1.0625rem;
    line-height: 2;
}

.hd-single-entry .alignwide,
.hd-single-entry .alignfull {
    max-width: none;
}

.hd-single-entry h2,
.hd-single-entry h3 {
    margin-top: 1.6em;
    margin-bottom: .65em;
    font-weight: 800;
    line-height: 1.35;
}

.hd-single-entry h2 {
    font-size: 1.35rem;
}

.hd-single-entry h3 {
    font-size: 1.15rem;
}

.hd-single-entry p {
    margin: 0 0 1em;
}

.hd-single-entry ul,
.hd-single-entry ol {
    margin: 0 0 1em;
    padding-inline-start: 1.35em;
}

.hd-single-entry img {
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.hd-single-page-links {
    margin-top: 24px;
    font-size: 15px;
}

.hd-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hd-single-tag {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: var(--hd-single-blue);
    color: #fff;
}

.hd-single-tag:nth-child(even) {
    background: var(--hd-single-green);
}

.hd-single-tag:hover {
    filter: brightness(1.06);
    color: #fff;
}

.hd-single-author-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 14px;
}

.hd-single-author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.hd-single-author-name {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.hd-single-author-bio {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--hd-single-muted);
}

.hd-single-author-bio p {
    margin: 0 0 .6em;
}

.hd-single-author-bio p:last-child {
    margin-bottom: 0;
}

.hd-single-author-social {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hd-single-author-social a {
    font-size: 14px;
    font-weight: 600;
    color: var(--hd-single-blue);
    text-decoration: none;
}

.hd-single-author-social a:hover {
    text-decoration: underline;
}

.hd-single-related {
    margin-top: 36px;
}

.hd-single-related-title {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 800;
}

.hd-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hd-single-related-card {
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
}

.hd-single-related-media {
    position: relative;
}

.hd-single-related-cat {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--hd-single-blue);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.hd-single-related-cat:hover {
    background: var(--hd-single-blue-dark);
    color: #fff !important;
}

.hd-single-related-thumb {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 12px 12px 0 0;
}

.hd-single-related-thumb--empty {
    min-height: 140px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.hd-single-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd-single-related-body {
    padding: 14px;
}

.hd-single-related-card-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.hd-single-related-card-title a {
    color: #111827;
    text-decoration: none;
}

.hd-single-related-card-title a:hover {
    color: var(--hd-single-blue-dark);
}

.hd-single-related-date {
    font-size: 12px;
    color: var(--hd-single-muted);
}

.hd-single-comments-section {
    margin-top: 40px;
}

.hd-single-comments-title {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 800;
}

.hd-single-comments-inner {
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 14px;
    padding: 22px;
}

.hd-single-comments-inner .comment-respond,
.hd-single-comments-inner .commentlist {
    margin: 0;
    padding: 0;
}

.hd-single-comments-inner input[type="text"],
.hd-single-comments-inner input[type="email"],
.hd-single-comments-inner input[type="url"],
.hd-single-comments-inner textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--hd-single-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.hd-single-comments-inner .form-submit input[type="submit"],
.hd-single-comments-inner input[type="submit"] {
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    background: var(--hd-single-green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hd-single-comments-inner .form-submit input[type="submit"]:hover,
.hd-single-comments-inner input[type="submit"]:hover {
    background: var(--hd-single-green-dark);
}

.hd-single-comments-closed {
    margin: 0;
    color: var(--hd-single-muted);
}

.hd-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: var(--hd-sidebar-sticky-top);
    max-height: calc(100vh - var(--hd-sidebar-sticky-top) - var(--hd-sidebar-sticky-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 10px 8px 14px;
    margin: -4px -4px 0;
    border-radius: 14px;
    background: #eef2f7;
    border: 1px solid var(--hd-single-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}

.hd-single-widget,
.hd-single-sidebar .hd-articles-widget {
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.hd-single-widget-title,
.hd-single-sidebar .hd-articles-widget-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.hd-single-search {
    display: flex;
    gap: 8px;
}

.hd-single-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--hd-single-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.hd-single-search-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--hd-single-blue);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.hd-single-search-btn:hover {
    background: var(--hd-single-blue-dark);
}

.hd-single-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.hd-single-toc-list li + li {
    margin-top: 8px;
}

.hd-single-toc-list a {
    color: #374151;
    text-decoration: none;
    line-height: 1.45;
}

.hd-single-toc-list a:hover {
    color: var(--hd-single-blue-dark);
}

.hd-single-toc-sub {
    padding-inline-start: 12px;
}

.hd-single-progress-ring-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto;
}

.hd-single-progress-svg {
    width: 112px;
    height: 112px;
}

.hd-single-progress-track {
    stroke: #e5e7eb;
}

.hd-single-progress-bar {
    stroke: var(--hd-single-blue);
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
    transition: stroke-dashoffset .12s ease-out;
}

.hd-single-progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #111827;
}

.hd-single-author-mini-inner {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hd-single-author-mini-avatar {
    border-radius: 50%;
}

.hd-single-author-mini-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hd-single-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--hd-single-green);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hd-single-follow-btn:hover {
    background: var(--hd-single-green-dark);
}

.hd-single-sidebar .hd-articles-search-btn {
    background: var(--hd-single-blue);
}

.hd-single-sidebar .hd-articles-search-btn:hover {
    background: var(--hd-single-blue-dark);
}

.hd-single-sidebar .hd-articles-recent-title:hover {
    color: var(--hd-single-blue-dark);
}

.hd-single-dynamic-widgets {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hd-single-dynamic-widget {
    background: #fff;
    border: 1px solid var(--hd-single-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.hd-single-dynamic-widget .hd-single-widget-title {
    margin: 0 0 14px;
}

.hd-single-dynamic-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.hd-single-dynamic-widget .wp-block-button__link,
.hd-single-dynamic-widget .button,
.hd-single-dynamic-widget a.button {
    border-radius: 8px;
}

.hd-single-post .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 960px) {
    .hd-single-layout {
        grid-template-columns: 1fr;
    }

    .hd-single-sidebar {
        order: 2;
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .hd-single-main {
        order: 1;
    }

    .hd-single-related-grid {
        grid-template-columns: 1fr;
    }

    .hd-single-hero-inner {
        padding-bottom: 28px;
    }

    .hd-single-post-nav {
        grid-template-columns: 1fr;
    }

    .hd-single-post-nav-next,
    .hd-single-post-nav-prev {
        text-align: right;
    }

    .hd-single-hero {
        min-height: 360px;
    }
}
