/**
 * Article Post Styles - Figma Design
 * Strategic Club - استراتژیک کلاب
 * Exact implementation from Figma design
 *
 * @package Strategic_Club
 * @since 1.0.0
 */

/* ==========================================================================
   Article Post Article
   ========================================================================== */

.article-post-article {
    width: 100%;
    direction: rtl;
}

/* Main Container - Figma: width 1224px */
.article-post-main {
    background: #101114;
}

.article-post-container {
    width: 1640px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Grey Container for Text Blocks - Figma Design */
.grey-container {
    background: #25272D;
    border: 1px solid #30343B;
    border-radius: 4px;
    padding: 16px 24px;
    width: 100%;
    box-sizing: border-box;
}

.grey-container--compact {
    padding: 12px 16px;
}

.grey-container--large {
    padding: 24px 32px;
    border-radius: 8px;
}

/* Text Block Container - Figma: bg #25272D, border #30343B, border-radius 4px */
.text-block-container {
    background: #25272D;
    border: 1px solid #30343B;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
    width: 100%;
    box-sizing: border-box;
}

.text-block-container p {
    margin: 0;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Vazir', sans-serif;
}

/* Info Box - Figma: bg #25272D, border #30343B, border-radius 4px */
.info-box {
    background: #25272D;
    border: 1px solid #30343B;
    border-radius: 4px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.info-box__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-box__icon svg {
    width: 100%;
    height: 100%;
}

.info-box__text {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
}

/* Header Section - Figma Node: 6002:21163 */
.article-header-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

/* Inner meta wrapper - Figma: flex-col gap-12px items-end w-full shrink-0 */
.article-header-meta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
    flex-shrink: 0;
}

/* Breadcrumb row - Figma: flex items-center justify-between (breadcrumb left, title right) */
.article-breadcrumb-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

/* Breadcrumb - Figma: gap 4px, font 16px, line-height 1.2 */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
    flex-shrink: 0;
}

.breadcrumb-links-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.breadcrumb-links-wrapper > li {
    min-width: 0;
    overflow: hidden;
}

.breadcrumb-link {
    color: #C4C8CF;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-link:hover {
    color: #1081DF;
}

.breadcrumb-separator {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrumb-separator svg {
    width: 100%;
    height: 100%;
}

.breadcrumb-current {
    display: inline-block;
    color: #C4C8CF;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    vertical-align: middle;
}

/* Post Title - Figma: 24px, line-height 32px, weight 400 */
.article-post-title {
    font-family: 'Vazir', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 32px;
    color: #FFFFFF;
    margin: 0;
    text-align: right;
    flex-shrink: 0;
}

/* Post Subtitle - Figma: 18px, line-height 1.5, weight 400 */
.article-post-subtitle {
    font-family: 'Vazir', sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    color: #8F96A3;
    margin: 0;
    text-align: right;
    direction: rtl;
    align-self: flex-start;
}

/* Post Meta - Figma: gap 16px */
.article-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-meta-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
}

.meta-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-icon svg {
    width: 100%;
    height: 100%;
    fill: #8F96A3;
}

.meta-value {
    font-family: 'Vazir', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #8F96A3;
}

.article-meta-author-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-author a {
    font-family: 'Vazir', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2.1;
    color: #8F96A3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.meta-author a:hover {
    color: #1081DF;
}

.meta-separator {
    width: 4px;
    height: 4px;
    background: #8F96A3;
    border-radius: 50%;
}

.meta-date {
    font-family: 'Vazir', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #8F96A3;
}

.article-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* Category Badge - Figma: bg #25272D, padding 8px 12px, border-radius 4px */
.article-category-badge {
    background: #25272D;
    color: #FFFFFF;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.article-category-badge:hover {
    background: #30343B;
    color: #FFFFFF;
}

/* Featured Image - Figma: height 688px, border-radius 8px, width 1224px */
.article-featured-image {
    width: 100%;
    height: 688px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================================================================
   About Article Section - Figma Node: 6002:21164
   bg: #1C1E22, border-radius: 8px, padding: 24px, gap: 32px (flex-col)
   Aligned with Post Header: same max-width (1224px) and same horizontal padding
   ========================================================================== */

.article-about-article {
    margin-top: 16px;
    padding: 24px;
    width: 100%;
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
    background: #1C1E22;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    direction: rtl;
}

/* Inner content wrapper - gap: 24px between all content blocks */
.article-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: flex-end;
}

/* ==========================================================================
   Info Toast - Figma Node: 6002:21175
   bg: #25272D, border: 1px solid #30343B, border-radius: 4px,
   padding: 16px, gap: 8px, items-start, justify-end (RTL: icon on left)
   ========================================================================== */

.article-info-toast {
    background: #25272D;
    border: 1px solid #30343B;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
}

.info-toast-content {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 1px;
    min-height: 1px;
}

.info-toast-title {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #FFFFFF;
    display: block;
    text-align: right;
}

.info-toast-text {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    display: block;
    text-align: right;
    white-space: pre-wrap;
}

.info-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.info-toast-icon img,
.info-toast-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ==========================================================================
   Post Content - Figma: font 16px, line-height 1.5, color #FFFFFF
   ========================================================================== */

.article-post-content {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    width: 100%;
    text-align: right;
    direction: rtl;
}

.article-post-content p {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: right;
    white-space: pre-wrap;
    margin-bottom: 16px;
    margin-top: 0;
}

.article-post-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Article Content — Uniform 24px vertical gap between content blocks
   Applies to: H1–H6, blockquotes (WP + custom), shortcode wrappers,
   paragraphs, and images/figures inside .article-post-content.
   Uses the adjacent-sibling combinator so only gaps *between* elements
   are affected; no extra space is added before the first child or after
   the last child.
   ========================================================================== */

/* Targets every listed element that immediately follows another listed element */
.article-post-content h1 + h1,
.article-post-content h1 + h2,
.article-post-content h1 + h3,
.article-post-content h1 + h4,
.article-post-content h1 + h5,
.article-post-content h1 + h6,
.article-post-content h1 + p,
.article-post-content h1 + blockquote,
.article-post-content h1 + figure,
.article-post-content h1 + .wp-block-image,
.article-post-content h1 + .wp-block-shortcode,
.article-post-content h1 + [class*="wp-block-"],
.article-post-content h2 + h1,
.article-post-content h2 + h2,
.article-post-content h2 + h3,
.article-post-content h2 + h4,
.article-post-content h2 + h5,
.article-post-content h2 + h6,
.article-post-content h2 + p,
.article-post-content h2 + blockquote,
.article-post-content h2 + figure,
.article-post-content h2 + .wp-block-image,
.article-post-content h2 + .wp-block-shortcode,
.article-post-content h2 + [class*="wp-block-"],
.article-post-content h3 + h1,
.article-post-content h3 + h2,
.article-post-content h3 + h3,
.article-post-content h3 + h4,
.article-post-content h3 + h5,
.article-post-content h3 + h6,
.article-post-content h3 + p,
.article-post-content h3 + blockquote,
.article-post-content h3 + figure,
.article-post-content h3 + .wp-block-image,
.article-post-content h3 + .wp-block-shortcode,
.article-post-content h3 + [class*="wp-block-"],
.article-post-content h4 + h1,
.article-post-content h4 + h2,
.article-post-content h4 + h3,
.article-post-content h4 + h4,
.article-post-content h4 + h5,
.article-post-content h4 + h6,
.article-post-content h4 + p,
.article-post-content h4 + blockquote,
.article-post-content h4 + figure,
.article-post-content h4 + .wp-block-image,
.article-post-content h4 + .wp-block-shortcode,
.article-post-content h4 + [class*="wp-block-"],
.article-post-content h5 + h1,
.article-post-content h5 + h2,
.article-post-content h5 + h3,
.article-post-content h5 + h4,
.article-post-content h5 + h5,
.article-post-content h5 + h6,
.article-post-content h5 + p,
.article-post-content h5 + blockquote,
.article-post-content h5 + figure,
.article-post-content h5 + .wp-block-image,
.article-post-content h5 + .wp-block-shortcode,
.article-post-content h5 + [class*="wp-block-"],
.article-post-content h6 + h1,
.article-post-content h6 + h2,
.article-post-content h6 + h3,
.article-post-content h6 + h4,
.article-post-content h6 + h5,
.article-post-content h6 + h6,
.article-post-content h6 + p,
.article-post-content h6 + blockquote,
.article-post-content h6 + figure,
.article-post-content h6 + .wp-block-image,
.article-post-content h6 + .wp-block-shortcode,
.article-post-content h6 + [class*="wp-block-"],
.article-post-content p + h1,
.article-post-content p + h2,
.article-post-content p + h3,
.article-post-content p + h4,
.article-post-content p + h5,
.article-post-content p + h6,
.article-post-content p + p,
.article-post-content p + blockquote,
.article-post-content p + figure,
.article-post-content p + .wp-block-image,
.article-post-content p + .wp-block-shortcode,
.article-post-content p + [class*="wp-block-"],
.article-post-content blockquote + h1,
.article-post-content blockquote + h2,
.article-post-content blockquote + h3,
.article-post-content blockquote + h4,
.article-post-content blockquote + h5,
.article-post-content blockquote + h6,
.article-post-content blockquote + p,
.article-post-content blockquote + blockquote,
.article-post-content blockquote + figure,
.article-post-content blockquote + .wp-block-image,
.article-post-content blockquote + .wp-block-shortcode,
.article-post-content blockquote + [class*="wp-block-"],
.article-post-content figure + h1,
.article-post-content figure + h2,
.article-post-content figure + h3,
.article-post-content figure + h4,
.article-post-content figure + h5,
.article-post-content figure + h6,
.article-post-content figure + p,
.article-post-content figure + blockquote,
.article-post-content figure + figure,
.article-post-content figure + .wp-block-image,
.article-post-content figure + .wp-block-shortcode,
.article-post-content figure + [class*="wp-block-"],
.article-post-content .wp-block-image + h1,
.article-post-content .wp-block-image + h2,
.article-post-content .wp-block-image + h3,
.article-post-content .wp-block-image + h4,
.article-post-content .wp-block-image + h5,
.article-post-content .wp-block-image + h6,
.article-post-content .wp-block-image + p,
.article-post-content .wp-block-image + blockquote,
.article-post-content .wp-block-image + figure,
.article-post-content .wp-block-image + .wp-block-image,
.article-post-content .wp-block-image + .wp-block-shortcode,
.article-post-content .wp-block-image + [class*="wp-block-"],
.article-post-content .wp-block-shortcode + h1,
.article-post-content .wp-block-shortcode + h2,
.article-post-content .wp-block-shortcode + h3,
.article-post-content .wp-block-shortcode + h4,
.article-post-content .wp-block-shortcode + h5,
.article-post-content .wp-block-shortcode + h6,
.article-post-content .wp-block-shortcode + p,
.article-post-content .wp-block-shortcode + blockquote,
.article-post-content .wp-block-shortcode + figure,
.article-post-content .wp-block-shortcode + .wp-block-image,
.article-post-content .wp-block-shortcode + .wp-block-shortcode,
.article-post-content .wp-block-shortcode + [class*="wp-block-"],
.article-post-content [class*="wp-block-"] + h1,
.article-post-content [class*="wp-block-"] + h2,
.article-post-content [class*="wp-block-"] + h3,
.article-post-content [class*="wp-block-"] + h4,
.article-post-content [class*="wp-block-"] + h5,
.article-post-content [class*="wp-block-"] + h6,
.article-post-content [class*="wp-block-"] + p,
.article-post-content [class*="wp-block-"] + blockquote,
.article-post-content [class*="wp-block-"] + figure,
.article-post-content [class*="wp-block-"] + .wp-block-image,
.article-post-content [class*="wp-block-"] + .wp-block-shortcode,
.article-post-content [class*="wp-block-"] + [class*="wp-block-"] {
    margin-top: 24px;
}

/* Override the default paragraph bottom-margin so spacing is driven
   entirely by the 24px margin-top above — prevents double-spacing. */
.article-post-content p {
    margin-bottom: 0;
}

/* Headings - Enhanced for visual prominence */
.article-post-content h1,
.article-post-content h2 {
    font-family: 'Vazir', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
    width: 100%;
    letter-spacing: -0.01em;
}

.article-post-content h3 {
    font-family: 'Vazir', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
    width: 100%;
    letter-spacing: -0.005em;
}

.article-post-content h4,
.article-post-content h5,
.article-post-content h6 {
    font-family: 'Vazir', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
    width: 100%;
    letter-spacing: 0.005em;
}

.article-post-content a {
    color: #1081DF;
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-post-content a:hover {
    color: #0D6CB8;
}

/* HR - subtle divider with gradient fade edges */
.article-post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to left, transparent, #30343B 20%, #30343B 80%, transparent);
    margin: 48px 0;
}

/* Images - Figma: border-radius 8px, width 1160px (8px margin each side),
   with gradient overlay at bottom and caption with blue right border (RTL) */
.article-post-content figure,
.article-post-content .wp-block-image {
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

.article-post-content img {
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-post-content figure figcaption,
.article-post-content .wp-block-image figcaption {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: right;
    padding: 8px;
    border-right: 2px solid #1081DF;
    margin-top: 0;
    background: linear-gradient(to bottom, rgba(16, 17, 20, 0), #191A1E);
}

/* Blockquote / Quote & Writer Note
   Figma: bg #25272D, border 1px solid #30343B, border-radius 4px,
   padding 24px, gap 8px, items-start, justify-end
   Has a pen icon in top-right corner that breaks the border line.
   NOTE: .wp-block-quote (default WordPress blockquote block) is intentionally
   excluded here — it is styled separately in wp-blockquote.css. */
.article-post-content blockquote:not(.wp-block-quote),
.article-quote-note {
    background: #25272D;
    border: 1px solid #30343B;
    border-radius: 4px;
    padding: 24px;
    margin: 0 auto;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-style: normal;
    color: #FFFFFF;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-end;
    direction: rtl;
    align-self: center;
}

.article-post-content blockquote:not(.wp-block-quote) p {
    margin: 0;
    color: #FFFFFF;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-style: normal;
    text-align: center;
    min-width: 1px;
}

/* Body wrapper — flex child that holds text + optional author */
.article-quote-note__body {
    min-width: 1px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-quote-note__text {
    margin: 0;
    color: #FFFFFF;
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-style: normal;
    text-align: center;
}

/* Icon label strip — covers the top border to create a "floating" icon effect
   Figma: absolute, top -1px, right 11px, h-px, bg #25272D, px 4px */
.article-quote-note__icon-wrap {
    position: absolute;
    top: -1px;
    right: 11px;
    height: 1px;
    background: #25272D;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4px;
}

/* The SVG icon is 40x40; offset upward by half its height minus the 1px strip */
.article-quote-note__icon-wrap svg,
.article-quote-note__icon-wrap img {
    width: 40px;
    height: 40px;
    display: block;
    position: relative;
    /* top: -20px; */
}

/* Writer attribution footer */
.article-quote-note__author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #30343B;
    width: 100%;
}

.article-quote-note__name {
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #FFFFFF;
    font-style: normal;
    text-align: right;
}

.article-quote-note__role {
    font-family: 'Vazir', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #8F96A3;
    text-align: right;
}

/* Quote icon in top corner (native blockquote fallback — no custom markup)
   Only applies to non-wp-block-quote blockquotes (the custom Quote & Writer Note). */
.article-post-content blockquote:not(.wp-block-quote)::before {
    content: '';
    position: absolute;
    right: 11px;
    top: -1px;
    width: 40px;
    height: 1px;
    background: #25272D;
}

/* ==========================================================================
   Tags Section - Figma Node: 6002:21191
   Tags: bg #25272D, border-radius 4px, padding 8px 12px, height 32px,
   font-size 14px, line-height 1.2, color #FFFFFF, gap 8px
   ========================================================================== */

.article-tags-section {
    width: 100%;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    direction: rtl;
}

/* Tag Buttons - Figma: height 32px, border-radius 4px, padding 8px 12px */
.article-tags a,
.article-tags .tag-link {
    background: #25272D;
    color: #FFFFFF;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.article-tags a:hover,
.article-tags .tag-link:hover {
    background: #1081DF;
    color: #FFFFFF;
}

/* ==========================================================================
   Share & Rating Row - Figma Node: 6590:23547
   Figma: flex, items-center, justify-between, width 1176px, height 40px
   ========================================================================== */

.article-share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
    flex-wrap: wrap;
    gap: 16px;
}

/* Right side: rate label + rating widget
   gap: 12px, items-center, justify-end */
.article-share-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Left side: social buttons + share label - Figma Node: 6590:23548
   gap: 12px, items-center, justify-end */
.article-share-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Social Buttons Group - Figma Node: 6590:23549
   gap: 8px */
.article-social-buttons {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

/* Social Button - Figma: 32px x 32px, bg #25272D, border #30343B,
   border-radius 4px, padding 4px */
.article-social-btn {
    width: 32px;
    height: 32px;
    background: #25272D;
    border: 1px solid #30343B;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.article-social-btn:hover {
    background: #1081DF;
    border-color: #1081DF;
}

.article-social-btn svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: #C4C8CF;
    transition: fill 0.15s ease;
}

.article-social-btn:hover svg {
    fill: #FFFFFF;
}

/* Share Label - Figma Node: 6590:23554
   gap: 8px, items-center */
.article-share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.article-share-label__text {
    font-family: 'Vazir', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: right;
    white-space: nowrap;
}

.article-share-label__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-share-label__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* ==========================================================================
   Comments Section - Figma Node: 6002:21196
   ========================================================================== */

.article-comments-placeholder {
    background: #1C1E22;
    border-radius: 8px;
    padding: 48px 24px;
    margin-top: 54px;
    text-align: center;
    width: 100%;
    max-width: 1640px;
    box-sizing: border-box;
}

.comments-placeholder-content {
    max-width: 400px;
    margin: 0 auto;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
    fill: #C4C8CF;
}

.placeholder-title {
    font-family: 'Vazir', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 12px;
}

.placeholder-message {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #8F96A3;
    margin: 0;
}

/* ==========================================================================
   Similar Articles Section - Figma Node: 6002:21197
   ========================================================================== */

.similar-articles-section {
    margin-top: 54px;
    width: 100%;
    max-width: 1640px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Section Header - Figma: flex gap-16px items-center justify-end
   Line on left (flex-start), title+icon on right (flex-end) */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    direction: rtl;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    direction: rtl;
}

.section-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

/* Section Title - Figma: font 20px, weight 500 (Medium), color #FFFFFF */
.section-title {
    font-family: 'Vazir', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

/* Section Line - Figma: flex-1, height 1px, solid #30343B */
.section-line {
    flex: 1 0 0;
    height: 4px;
    min-height: 1px;
    background: #30343B;
}

/* Grid Layout - 4 columns, gap 24px */
.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Similar Article Card - Figma: border-radius 8px, bg #1C1E22 */
.similar-article-card {
    background: #1C1E22;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.similar-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

/* Card Image - Figma: height 184px, rounded top corners */
.card-image {
    width: 100%;
    height: 184px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.similar-article-card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #25272D;
}

/* Card Content - Figma: bg #1C1E22, padding 16px, gap 16px, items-end, rounded bottom corners */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    border-radius: 0 0 8px 8px;
    flex: 1;
}

/* Card Title - Figma: font 18px, line-height 1.5, weight 400, color #FFFFFF */
.card-title {
    font-family: 'Vazir', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
    text-align: right;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Subtitle - Figma: font 16px, line-height 1.5, color #C4C8CF */
.card-subtitle {
    font-family: 'Vazir', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #C4C8CF;
    margin: 0;
    text-align: right;
    /* width: 100%; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Meta Row - Figma: justify-between, items-center, w-full */
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Left side: views + comments (Figma: gap 8px) */
.card-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right side: date + author (Figma: gap 8px) */
.card-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Meta item: icon + value, RTL order (icon on right, value on left) */
.card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
}

.card-meta .meta-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-meta .meta-icon svg {
    width: 100%;
    height: 100%;
    fill: #8F96A3;
}

/* Meta value - Figma: font 12px, color #8F96A3, line-height 0 (Numbers/12) */
.card-meta .meta-value {
    font-family: 'Vazir', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #8F96A3;
    white-space: nowrap;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1280px) {
    .article-post-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 1024px) {
    .article-post-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .similar-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .similar-articles-section {
        gap: 24px;
    }

    .article-about-article {
        padding: 16px;
        gap: 24px;
    }

    .article-share-section {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .article-post-container {
        padding-left: 35px;
        padding-right: 40px;
    }

    /* Header Section - centered column */
    .article-header-section {
        align-items: center;
        gap: 24px;
    }

    .article-header-meta-wrapper {
        align-items: center;
    }

    /* Breadcrumb + Title row → column, centered */
    .article-breadcrumb-title-row {
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
    }

    .article-breadcrumb {
        justify-content: center;
    }

    .article-breadcrumb .breadcrumb-links-wrapper {
        justify-content: center;
    }

    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 14px;
    }

    .breadcrumb-separator svg {
        width: 16px;
        height: 16px;
    }

    /* Title - 18px, centered */
    .article-post-title {
        font-size: 18px;
        line-height: 1.5;
        text-align: center;
        width: 100%;
    }

    /* Subtitle - 16px, centered */
    .article-post-subtitle {
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
        width: 100%;
        align-self: center;
    }

    /* Meta Row - centered */
    .article-post-meta {
        /* flex-direction: column-reverse; */
        align-items: center;
        gap: 12px;
    }

    .article-meta-left {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .article-meta-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .article-category-badge {
        font-size: 14px;
        height: 32px;
        padding: 8px 12px;
    }

    .article-featured-image {
        height: 220px;
        border-radius: 8px;
    }

    .similar-articles-section {
        gap: 24px;
        margin-top: 32px;
    }

    .similar-articles-section .section-header {
        justify-content: center;
        margin-bottom: 0;
    }

    .similar-articles-section .section-line {
        display: none;
    }

    .similar-articles-section .section-title {
        font-size: 18px;
    }

    .similar-articles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .similar-article-card .card-image {
        height: 153px;
    }

    .similar-article-card .card-content {
        padding: 12px;
        gap: 12px;
    }

    .similar-article-card .card-title {
        font-size: 16px;
    }

    /* ===== About Article Section - Mobile ===== */
    .article-about-article {
        padding: 16px;
        gap: 24px;
    }

    .article-content-wrapper {
        gap: 24px;
    }

    /* Info toast: block layout on mobile to prevent overlap */
    .article-info-toast {
        display: block !important;
        padding: 12px !important;
    }

    /* Post content: full width */
    .article-post-content {
        width: 100%;
    }

    .article-post-content p {
        font-size: 16px;
        line-height: 1.5;
    }

    .article-post-content h1,
    .article-post-content h2,
    .article-post-content h3 {
        font-size: 20px;
    }

    .article-post-content h4,
    .article-post-content h5,
    .article-post-content h6 {
        font-size: 18px;
    }

    /* Image with caption: full width, height 210px */
    .article-post-content figure,
    .article-post-content .wp-caption {
        width: 100%;
        height: 210px;
        border-radius: 8px;
    }

    .article-post-content figure figcaption,
    .article-post-content .wp-caption-text {
        padding: 68px 8px 16px 8px;
    }

    .article-post-content figure figcaption p,
    .article-post-content .wp-caption-text {
        font-size: 12px;
    }

    /* Blockquote */
    .article-post-content blockquote {
        padding: 12px;
    }

    /* Share section: flex-col, centered, gap 16 */
    .article-share-section {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .article-share-left,
    .article-share-right {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    /* Tags: centered */
    .article-tags-section {
        justify-content: center;
    }

    .article-tags {
        justify-content: center;
    }

    /* Comments section: mobile responsive — full width within parent */
    .comments-section {
        max-width: 100%;
        width: 100%;
        margin-top: 32px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .comments-section__container {
        padding: 16px;
    }

    .article-post-content blockquote:not(.wp-block-quote),
    .article-quote-note {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .article-post-title {
        font-size: 21px;
        line-height: 1.4;
    }

    .article-post-subtitle {
        font-size: 17px;
    }

    .article-meta-left {
        /* flex-direction: column; */
        /* align-items: flex-start; */
        gap: 8px;
    }

    .card-meta {
        /* flex-direction: column; */
        gap: 8px;
    }

    .article-share-label__text {
        font-size: 16px;
    }

    .article-social-buttons {
        flex-wrap: wrap;
    }

    .article-about-article {
        padding: 12px;
        gap: 16px;
    }

    /* Comments section: small mobile responsive — full width within parent */
    .comments-section {
        max-width: 100%;
        width: 100%;
        margin-top: 32px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .comments-section__container {
        padding: 16px;
    }
}

