/**
 * Ù‚Ø§Ù„Ø¨ ØªÚ©â€ŒÙ†ÙˆØ´ØªÙ‡ v2 â€” ØªÙ…Ø§Ù… Ø³Ù„Ú©ØªÙˆØ±Ù‡Ø§ Ø²ÛŒØ± .hamta-sa-root (Ø¨Ø¯ÙˆÙ† ØªØ¯Ø§Ø®Ù„ Ø¨Ø§ Woodmart)
 */

.hamta-sa-root {
    --brand-primary: #2563eb;
    --brand-primary-light: #3b82f6;
    --brand-primary-dark: #1d4ed8;
    --brand-secondary: #333;
    --brand-accent: #60a5fa;
    --gray-50: #f9fafb;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --hd-sidebar-sticky-top: 20px;
    /* تایپوگرافی پیش‌فرض مقاله */
    --sa-font-h1: 22px;
    --sa-font-h2: 18px;
    --sa-font-h3: 16px;
    --sa-font-h4: 14px;
    --sa-font-h5: 12px;
    --sa-font-h6: 10px;
    --sa-font-body: 14px;
}

.hamta-sa-root.single-article-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.hamta-sa-root *,
.hamta-sa-root *::before,
.hamta-sa-root *::after {
    box-sizing: border-box;
}

.hamta-sa-root .reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    z-index: 1;
    pointer-events: none;
}

.hamta-sa-root .reading-progress-bar .progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}

.hamta-sa-root .article-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.hamta-sa-root .article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hamta-sa-root .article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamta-sa-root .article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hamta-sa-root .article-hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    color: var(--white);
    width: 100%;
}

.hamta-sa-root .hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hamta-sa-root .hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.hamta-sa-root .hero-breadcrumb a:hover {
    color: var(--white);
}

.hamta-sa-root .hero-bc-sep {
    opacity: 0.55;
    font-size: 12px;
}

.hamta-sa-root .hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.hamta-sa-root .hero-category {
    background: var(--brand-accent);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.hamta-sa-root .hero-category a {
    color: var(--white);
    text-decoration: none;
}

.hamta-sa-root .hero-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.92;
    flex-wrap: wrap;
}

.hamta-sa-root .hero-title {
    font-size: var(--sa-font-h1);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    max-width: 800px;
}

.hamta-sa-root .hero-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamta-sa-root .hero-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.hamta-sa-root .hero-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamta-sa-root .hero-author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px;
}

.hamta-sa-root .hero-author-info span {
    font-size: 13px;
    opacity: 0.85;
}

.hamta-sa-root .article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start !important;
}

.hamta-sa-root .article-main {
    min-width: 0;
}

.hamta-sa-root .article-content-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.hamta-sa-root .article-content {
    font-size: var(--sa-font-body);
    line-height: 1.9;
    color: var(--gray-700);
}

.hamta-sa-root .article-content h1 {
    font-size: var(--sa-font-h1);
    font-weight: 700;
    color: var(--brand-secondary);
    margin: 36px 0 18px;
}

.hamta-sa-root .article-content h2 {
    font-size: var(--sa-font-h2);
    font-weight: 700;
    color: var(--brand-secondary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--brand-accent);
    display: inline-block;
}

.hamta-sa-root .article-content h3 {
    font-size: var(--sa-font-h3);
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 30px 0 15px;
}

.hamta-sa-root .article-content h4 {
    font-size: var(--sa-font-h4);
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 25px 0 12px;
}

.hamta-sa-root .article-content h5 {
    font-size: var(--sa-font-h5);
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 20px 0 10px;
}

.hamta-sa-root .article-content h6 {
    font-size: var(--sa-font-h6);
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 16px 0 8px;
}

.hamta-sa-root .article-content p {
    font-size: var(--sa-font-body);
    margin-bottom: 20px;
}

.hamta-sa-root .article-content a {
    color: var(--brand-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.hamta-sa-root .article-content a:hover {
    border-bottom-color: var(--brand-accent);
}

.hamta-sa-root .article-content ul,
.hamta-sa-root .article-content ol {
    font-size: var(--sa-font-body);
    margin: 20px 0;
    padding-right: 25px;
}

.hamta-sa-root .article-content li {
    font-size: var(--sa-font-body);
    margin-bottom: 10px;
}

.hamta-sa-root .article-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-right: 4px solid var(--brand-accent);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--gray-700);
}

.hamta-sa-root .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 25px 0;
}

.hamta-sa-root .article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.6;
}

.hamta-sa-root .article-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--brand-accent);
}

.hamta-sa-root .article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.hamta-sa-root .sa-page-links {
    margin: 20px 0;
    font-size: 14px;
}

.hamta-sa-root .article-tags-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.hamta-sa-root .tags-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.hamta-sa-root .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hamta-sa-root .tag-link {
    padding: 6px 14px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.hamta-sa-root .tag-link:hover {
    background: var(--brand-accent);
    color: var(--white);
}

.hamta-sa-root .share-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.hamta-sa-root .share-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 0 0 15px;
}

.hamta-sa-root .share-title-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--brand-accent);
}

.hamta-sa-root .share-title-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.hamta-sa-root .share-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.hamta-sa-root .share-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    min-height: 72px;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.25;
    text-align: center;
}

.hamta-sa-root .share-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hamta-sa-root .share-btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.hamta-sa-root .share-btn-label {
    display: block;
}

.hamta-sa-root .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamta-sa-root .share-btn.twitter {
    background: #1da1f2;
}
.hamta-sa-root .share-btn.facebook {
    background: #4267b2;
}
.hamta-sa-root .share-btn.linkedin {
    background: #0077b5;
}
.hamta-sa-root .share-btn.telegram {
    background: #0088cc;
}
.hamta-sa-root .share-btn.whatsapp {
    background: #25d366;
}
.hamta-sa-root .share-btn.copy-link {
    background: var(--gray-600);
}

.hamta-sa-root .author-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.hamta-sa-root .author-box-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hamta-sa-root .author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-accent);
    flex-shrink: 0;
}

.hamta-sa-root .author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamta-sa-root .author-box-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--brand-secondary);
}

.hamta-sa-root .author-role {
    font-size: 14px;
    color: var(--brand-accent);
    margin-bottom: 8px;
}

.hamta-sa-root .author-stats {
    font-size: 13px;
    color: var(--gray-500);
}

.hamta-sa-root .author-box-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.hamta-sa-root .author-box-social {
    display: flex;
    gap: 10px;
}

.hamta-sa-root .author-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.hamta-sa-root .author-social-link:hover {
    background: var(--brand-accent);
    color: var(--white);
}

.hamta-sa-root .author-social-link--text {
    width: auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.hamta-sa-root .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.hamta-sa-root .nav-post {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

.hamta-sa-root .nav-post:hover {
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-md);
}

.hamta-sa-root .nav-post-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.hamta-sa-root .nav-post-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hamta-sa-root .nav-post.nav-next {
    text-align: left;
}

.hamta-sa-root .related-posts {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.hamta-sa-root .related-posts-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 0 0 20px;
}

.hamta-sa-root .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hamta-sa-root .related-post-card {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.hamta-sa-root .related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hamta-sa-root .related-post-thumb {
    height: 140px;
    overflow: hidden;
}

.hamta-sa-root .related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hamta-sa-root .related-post-card:hover .related-post-thumb img {
    transform: scale(1.05);
}

.hamta-sa-root .related-post-content {
    padding: 15px;
}

.hamta-sa-root .related-post-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.5;
}

.hamta-sa-root .related-post-title a {
    color: var(--brand-secondary);
    text-decoration: none;
}

.hamta-sa-root .related-post-title a:hover {
    color: var(--brand-accent);
}

.hamta-sa-root .related-post-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.hamta-sa-root .comments-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.hamta-sa-root .comments-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 0 0 25px;
}

.hamta-sa-root .comments-title span {
    background: var(--brand-accent);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 13px;
    margin-right: 8px;
}

.hamta-sa-root .comments-closed {
    color: var(--gray-600);
    margin: 0;
}

/* stickyØ› ØªÙ…â€ŒÙ‡Ø§ Ú¯Ø§Ù‡ÛŒ Ø±ÙˆÛŒ aside Ø³ØªÙˆÙ† overflow/max-height Ù…ÛŒâ€ŒÚ¯Ø°Ø§Ø±Ù†Ø¯ â€” Ø¨Ø§ !important Ø®Ù†Ø«ÛŒ Ù…ÛŒâ€ŒØ´ÙˆØ¯ */
.hamta-sa-root .article-layout > .article-sidebar,
.hamta-sa-root.single-article-wrapper aside.article-sidebar {
    position: sticky;
    top: var(--hd-sidebar-sticky-top, 20px);
    align-self: start;
    height: fit-content;
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto;
}

/* ÙˆÛŒØ¬Øªâ€ŒÙ‡Ø§ÛŒ ÙˆØ±Ø¯Ù¾Ø±Ø³/ØªÙ… Ø¯Ø§Ø®Ù„ Ø³ØªÙˆÙ† Ù†Ø¨Ø§ÛŒØ¯ Ø¯ÙˆØ¨Ø§Ø±Ù‡ Ø§Ø³Ú©Ø±ÙˆÙ„ Ø¨Ø³Ø§Ø²Ù†Ø¯ */
.hamta-sa-root .article-sidebar .sidebar-widget,
.hamta-sa-root .article-sidebar .hamta-sa-dynamic-widgets,
.hamta-sa-root .article-sidebar .hamta-sa-dynamic-widgets .widget {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

.hamta-sa-root .sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.hamta-sa-root .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.hamta-sa-root .sa-search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hamta-sa-root .sa-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.hamta-sa-root .sa-search-submit {
    padding: 10px 16px;
    background: var(--brand-accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.hamta-sa-root .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamta-sa-root .toc-list li {
    margin-bottom: 8px;
}

.hamta-sa-root .toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    background: var(--gray-50);
}

.hamta-sa-root .toc-list a:hover,
.hamta-sa-root .toc-list a.active {
    background: var(--brand-accent);
    color: var(--white);
}

.hamta-sa-root .toc-list a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    flex-shrink: 0;
}

.hamta-sa-root .toc-list li.toc-h3 a {
    padding-right: 25px;
    font-size: 13px;
}

.hamta-sa-root .reading-progress-widget {
    text-align: center;
}

.hamta-sa-root .progress-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

.hamta-sa-root .progress-circle svg {
    transform: rotate(-90deg);
}

.hamta-sa-root .progress-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 8;
}

.hamta-sa-root .progress-bar {
    fill: none;
    stroke: var(--brand-accent);
    stroke-width: 8;
    stroke-linecap: round;
}

.hamta-sa-root .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-accent);
}

.hamta-sa-root .progress-label {
    font-size: 13px;
    color: var(--gray-500);
}

.hamta-sa-root .sidebar-author {
    text-align: center;
}

.hamta-sa-root .sidebar-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--brand-accent);
}

.hamta-sa-root .sidebar-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamta-sa-root .sidebar-author h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--brand-secondary);
}

.hamta-sa-root .sidebar-author p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0 0 15px;
}

.hamta-sa-root .sidebar-author-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--brand-accent);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.hamta-sa-root .sidebar-author-btn:hover {
    box-shadow: var(--shadow-md);
}

.hamta-sa-root .popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamta-sa-root .popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.hamta-sa-root .popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hamta-sa-root .popular-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.hamta-sa-root .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamta-sa-root .popular-post-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.4;
}

.hamta-sa-root .popular-post-content h4 a {
    color: var(--brand-secondary);
    text-decoration: none;
}

.hamta-sa-root .popular-post-content h4 a:hover {
    color: var(--brand-accent);
}

.hamta-sa-root .popular-post-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.hamta-sa-root .hamta-sa-dynamic-widgets .widget {
    margin-bottom: 16px;
}

.hamta-sa-root .hamta-sa-dynamic-widgets .widget:last-child {
    margin-bottom: 0;
}

.hamta-sa-root .article-sidebar .hd-articles-widget {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.hamta-sa-root .article-sidebar .hd-articles-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-secondary);
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.hamta-sa-root .article-sidebar .hd-articles-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamta-sa-root .article-sidebar .hd-articles-recent li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: flex-start;
}

.hamta-sa-root .article-sidebar .hd-articles-recent li:last-child {
    border-bottom: none;
}

.hamta-sa-root .article-sidebar .hd-articles-recent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-secondary);
    text-decoration: none;
    line-height: 1.4;
}

.hamta-sa-root .article-sidebar .hd-articles-recent-title:hover {
    color: var(--brand-accent);
}

@media (max-width: 1200px) {
    .hamta-sa-root .article-layout {
        grid-template-columns: 1fr 280px;
    }
    .hamta-sa-root .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hamta-sa-root .article-layout {
        grid-template-columns: 1fr;
    }
    .hamta-sa-root .article-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hamta-sa-root .article-sidebar .sidebar-widget,
    .hamta-sa-root .article-sidebar .hd-articles-widget,
    .hamta-sa-root .article-sidebar .hamta-sa-dynamic-widgets {
        margin-bottom: 0;
    }
    .hamta-sa-root .hamta-sa-dynamic-widgets {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hamta-sa-root .article-hero {
        min-height: 300px;
    }
    .hamta-sa-root .article-hero-content {
        padding: 25px;
    }
    .hamta-sa-root .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .hamta-sa-root .article-content-card {
        padding: 25px;
    }
    .hamta-sa-root .article-sidebar {
        grid-template-columns: 1fr;
    }
    .hamta-sa-root .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .hamta-sa-root .post-navigation {
        grid-template-columns: 1fr;
    }
    .hamta-sa-root .share-buttons {
        justify-content: center;
    }
}

/* --- ÙØ±Ù… Ø¯ÛŒØ¯Ú¯Ø§Ù‡ Ø¯Ø§Ø®Ù„ Ú†ÛŒØ¯Ù…Ø§Ù† ØªÚ©â€ŒÙ†ÙˆØ´ØªÙ‡ v2 (RTLØŒ ØªØ±ØªÛŒØ¨ Ø¨Ø§ orderØŒ Ú©Ù¾Ú†Ø§/Ø§ÙØ²ÙˆÙ†Ù‡ Ù‚Ø¨Ù„ Ø§Ø² Ø§Ø±Ø³Ø§Ù„) --- */
.hamta-sa-root .comments-section .comment-respond,
.hamta-sa-root .comments-section #respond {
    direction: rtl;
    text-align: right;
}

.hamta-sa-root .comments-section #commentform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    direction: rtl;
    text-align: right;
    align-items: start;
}

.hamta-sa-root .comments-section #commentform > * {
    grid-column: 1 / -1;
    margin: 0;
}

.hamta-sa-root .comments-section #commentform > .comment-notes,
.hamta-sa-root .comments-section #commentform > .logged-in-as {
    order: 1;
}

.hamta-sa-root .comments-section #commentform > .comment-form-comment {
    order: 2;
}

.hamta-sa-root .comments-section #commentform > .comment-form-author {
    grid-column: 1;
    order: 3;
}

.hamta-sa-root .comments-section #commentform > .comment-form-email {
    grid-column: 2;
    order: 4;
}

.hamta-sa-root .comments-section #commentform > .comment-form-url {
    order: 5;
}

.hamta-sa-root .comments-section #commentform > .comment-form-cookies-consent {
    order: 6;
}

.hamta-sa-root .comments-section #commentform > *:not(.comment-notes):not(.logged-in-as):not(.comment-form-comment):not(.comment-form-author):not(.comment-form-email):not(.comment-form-url):not(.comment-form-cookies-consent):not(.form-submit) {
    order: 15;
}

.hamta-sa-root .comments-section #commentform > .form-submit {
    order: 20;
    justify-self: end;
    margin-top: 4px;
}

.hamta-sa-root .comments-section #commentform label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.hamta-sa-root .comments-section #commentform input[type="text"],
.hamta-sa-root .comments-section #commentform input[type="email"],
.hamta-sa-root .comments-section #commentform input[type="url"],
.hamta-sa-root .comments-section #commentform input[type="search"],
.hamta-sa-root .comments-section #commentform textarea {
    width: 100%;
    max-width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.hamta-sa-root .comments-section #commentform textarea {
    min-height: 160px;
    resize: vertical;
}

.hamta-sa-root .comments-section #commentform .form-submit input[type="submit"],
.hamta-sa-root .comments-section #commentform input[type="submit"] {
    min-width: 200px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand-primary);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 639px) {
    .hamta-sa-root .comments-section #commentform > .comment-form-author,
    .hamta-sa-root .comments-section #commentform > .comment-form-email {
        grid-column: 1 / -1;
    }
}

/* امتیاز و نظر مقاله */
.hamta-sa-root .hamta-content-review {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
}

.hamta-sa-root .hamta-content-review__title {
    font-size: var(--sa-font-h2);
    margin: 0 0 16px;
    color: var(--brand-secondary);
}

.hamta-sa-root .hamta-content-review__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hamta-sa-root .hamta-content-review__score {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-accent);
}

.hamta-sa-root .hamta-content-review__stars {
    color: #f5a623;
}

.hamta-sa-root .hamta-content-review__count {
    font-size: var(--sa-font-body);
    color: var(--gray-500);
}

.hamta-sa-root .hamta-content-review__item {
    border-top: 1px solid var(--gray-200);
    padding: 16px 0;
}

.hamta-sa-root .hamta-content-review__item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: var(--sa-font-body);
}

.hamta-sa-root .hamta-content-review__item-stars {
    color: #f5a623;
    margin-right: auto;
}

.hamta-sa-root .hamta-content-review__form-wrap h3 {
    font-size: var(--sa-font-h4);
    margin: 20px 0 12px;
}

.hamta-sa-root .hamta-content-review__field {
    margin-bottom: 14px;
}

.hamta-sa-root .hamta-content-review__field label,
.hamta-sa-root .hamta-content-review__label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--sa-font-body);
    font-weight: 600;
}

.hamta-sa-root .hamta-content-review__field input[type="text"],
.hamta-sa-root .hamta-content-review__field textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: var(--sa-font-body);
}

.hamta-sa-root .hamta-content-review .star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.hamta-sa-root .hamta-content-review .star-rating-input input {
    display: none;
}

.hamta-sa-root .hamta-content-review .star-rating-input label {
    cursor: pointer;
    color: #d1d5db;
    font-size: 22px;
}

.hamta-sa-root .hamta-content-review .star-rating-input label:hover,
.hamta-sa-root .hamta-content-review .star-rating-input label:hover ~ label,
.hamta-sa-root .hamta-content-review .star-rating-input input:checked ~ label {
    color: #f5a623;
}

.hamta-sa-root .hamta-content-review__login-note {
    font-size: var(--sa-font-body);
    color: var(--gray-600);
    margin-bottom: 12px;
}

.hamta-sa-root .hamta-content-review__empty {
    font-size: var(--sa-font-body);
    color: var(--gray-500);
    margin: 0 0 12px;
}
