﻿/**
 * ==========================================================================
 * الهنداوي للتكييف - تنسيقات صفحة المقال الفردي (article.css)
 * تصميم مخصص مطابق للنموذج المرجعي (AirFix) ومتناغم 100% مع هوية الموقع
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
   1. المتغيرات والأساسيات العامة لصفحة المقال
   -------------------------------------------------------------------------- */
.article-page {
    background-color: var(--bg-warm, #E8EDF2);
    color: var(--color-text-main, #000000);
    font-family: var(--font-primary, 'Almarai', sans-serif);
    overflow-x: clip;
}

.article-page .site-layout {
    background-color: var(--bg-warm, #E8EDF2);
    min-height: 100vh;
}

/* ضبط روابط النافبار في صفحة المقال */
.article-page .main-header .nav-link {
    display: inline-block;
    transform-origin: center center;
    transition: color 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: none;
    will-change: transform;
}

.article-page .main-header .nav-link:hover {
    color: var(--color-dark, #000000);
    transform: scale(1.07);
    text-shadow: none;
}

.article-page .main-header .nav-link.active {
    color: var(--color-royal-blue, #1705A5);
    text-shadow: none;
}

.article-page .main-header .nav-link.active:hover {
    transform: scale(1.07);
}

/* --------------------------------------------------------------------------
   2. سكشن رأس المقال المتمركز والصورة البارزة (مطابق للصورة المرجعية)
   -------------------------------------------------------------------------- */
.article-hero-section {
    width: 100%;
    padding: 48px 0 24px;
    background-color: var(--bg-warm, #E8EDF2);
}

.article-hero-container {
    width: 100%;
    max-width: var(--container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* شارة التصنيف المركزية المستديرة مع النقطة الزرقاء الملكية */
.article-category-badge-wrap {
    margin-bottom: 20px;
}

.article-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-dark, #000000);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-category-pill .tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-royal-blue, #1705A5);
}

/* العنوان الرئيسي المتمركز العريض */
.article-main-title {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-dark, #000000);
    max-width: 960px;
    margin: 0 auto 36px;
    letter-spacing: -0.3px;
    text-align: center;
}

/* الصورة البارزة الكبيرة للمقال بزوايا مستديرة ناعمة كالصورة المرجعية */
.article-featured-hero-wrap {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background-color: #cbd5e1;
    position: relative;
}

.article-featured-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-featured-hero-wrap:hover .article-featured-img {
    transform: scale(1.015);
}

/* --------------------------------------------------------------------------
   3. تخطيط العمودين لمحتوى المقال (Two-Column Layout)
   -------------------------------------------------------------------------- */
.article-body-section {
    width: 100%;
    padding: 40px 0 70px;
    background-color: var(--bg-warm, #E8EDF2);
}

.article-body-container {
    width: 100%;
    max-width: var(--container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 36px;
    box-sizing: border-box;
}

.article-layout-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 48px;
    align-items: stretch;
    position: relative;
}

/* --------------------------------------------------------------------------
   4. العمود الجانبي وتثبيت بطاقات المقال (Sticky Sidebar)
   -------------------------------------------------------------------------- */
.article-sidebar {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 20;
}

/* بطاقات السايدبار العامة البيضاء الفاخرة */
.sidebar-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* 1. بطاقة فهرس محتويات المقال (TOC Card - انسياب طبيعي بأعلى الصفحة) */
.toc-card {
    position: relative;
    width: 100%;
    overflow: visible;
}

.toc-card .sidebar-top-badge {
    background-color: var(--color-dark, #000000);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    padding: 9px 14px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-card .sidebar-top-badge i {
    color: var(--color-royal-blue, #1705A5);
    font-size: 12.5px;
}

.toc-card-body {
    padding: 10px 12px 14px;
    overflow: visible;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-right: 2.5px solid transparent;
}

.toc-text {
    flex: 1;
    word-break: break-word;
}

.toc-number {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 11px;
    font-weight: 800;
    color: #8c857f;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: var(--color-royal-blue, #1705A5);
    background: rgba(23, 5, 165, 0.04);
    border-right-color: var(--color-royal-blue, #1705A5);
}

.toc-link:hover .toc-number {
    background: var(--color-royal-blue, #1705A5);
    color: #ffffff;
}

.toc-link.is-active {
    color: var(--color-royal-blue, #1705A5);
    background: rgba(23, 5, 165, 0.06);
    border-right-color: var(--color-royal-blue, #1705A5);
    font-weight: 700;
}

.toc-link.is-active .toc-number {
    background: var(--color-royal-blue, #1705A5);
    color: #ffffff;
}

/* 2. بطاقة طلب استشارة هندسية وفنية (Consultation Card) */
.consultation-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.consultation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.consultation-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.consultation-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-dark, #000000);
}

.support-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
    display: inline-block;
}

.consultation-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--color-royal-blue, #1705A5);
    background: rgba(23, 5, 165, 0.08);
    padding: 2px 7px;
    border-radius: 20px;
}

.consultation-card-body {
    padding: 14px;
}

.consultation-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-dark, #000000);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.consultation-card-title {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--color-dark, #000000);
    line-height: 1.4;
    margin: 0 0 6px;
}

.consultation-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 12px;
}

.consultation-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* زر طلب استشارة الرئيسي - متطابق 100% مع أزرار الموقع الرسمي (btn-booking-submit / btn-hero-solid) */
.btn-site-consultation {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-brand-blue, #1A479C);
    color: #ffffff !important;
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px var(--color-brand-blue-glow, rgba(26, 71, 156, 0.28));
    transition: all 0.22s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-site-consultation i {
    font-size: 13px;
    color: #ffffff;
    transition: transform 0.22s ease;
}

.btn-site-consultation:hover {
    background-color: var(--color-brand-blue-hover, #14397E);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 71, 156, 0.38);
}

.btn-site-consultation:hover i {
    transform: translateX(-4px);
}

/* زر الاتصال الهاتفي - بأرضية بيضاء وتنسيق هادئ مكمل لزر الموقع */
.btn-consultation-call {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #ffffff;
    color: var(--color-dark, #000000);
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.22s ease;
}

.btn-consultation-call i {
    color: var(--color-royal-blue, #1705A5);
    font-size: 13px;
    transition: transform 0.2s ease;
}

.btn-consultation-call:hover {
    background: #f8fafc;
    color: var(--color-royal-blue, #1705A5);
    border-color: rgba(23, 5, 165, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-consultation-call:hover i {
    transform: scale(1.15);
}

/* 3. صندوق مشاركة المقال (Social Share Card) */
.social-share-card {
    padding: 12px 14px 14px;
}

.share-box-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #6b635c;
    margin-bottom: 8px;
}

.share-buttons-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    background: #ffffff;
    color: #475569;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-royal-blue, #1705A5);
    color: var(--color-royal-blue, #1705A5);
    box-shadow: 0 4px 10px rgba(23, 5, 165, 0.15);
}

.share-btn.share-wa:hover {
    border-color: #25d366;
    color: #25d366;
}

.share-btn.share-fb:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.share-btn.share-tw:hover {
    border-color: #000000;
    color: #000000;
}

.share-btn.share-li:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

/* تلميح نجاح النسخ */
.copy-success-tooltip {
    display: none;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 8px;
    animation: fadeInTooltip 0.25s ease;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   5. محتوى المقال الفني الكامل (مباشرة على خلفية الصفحة دون صندوق أبيض)
   -------------------------------------------------------------------------- */
.article-content-main {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    min-width: 0;
}

/* العناوين الفرعية H2 المنسقة بدقة كالصورة المرجعية تماماً */
.article-content-main h2 {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 23px;
    font-weight: 800;
    color: var(--color-dark, #000000);
    line-height: 1.45;
    margin: 34px 0 12px;
}

.article-content-main h2:first-of-type {
    margin-top: 0;
}

/* الفقرات النصية المريحة للقراءة */
.article-content-main p {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 16px;
    color: var(--color-text-main, #000000);
    line-height: 1.85;
    margin: 0 0 20px;
    font-weight: 400;
}

/* بطاقة الاقتباس الهندسي الناعمة */
.article-content-main .article-highlight-quote {
    background: rgba(255, 255, 255, 0.75);
    border-right: 4px solid var(--color-royal-blue, #1705A5);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 26px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark, #000000);
    line-height: 1.75;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.article-highlight-quote i {
    color: var(--color-royal-blue, #1705A5);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* قائمة نقاط الفحص الفني */
.article-content-main .article-checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15.5px;
    color: #000000;
    line-height: 1.65;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.article-checklist-item i {
    color: var(--color-royal-blue, #1705A5);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* صندوق نصيحة ذهبية */
.article-content-main .article-tip-box {
    background: #fffbeb;
    border-right: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 15.5px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}

.article-tip-box i {
    color: #f59e0b;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* صندوق تنبيه وتحذير فني */
.article-content-main .article-warning-box {
    background: #fef2f2;
    border-right: 4px solid #ef4444;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 15.5px;
    font-weight: 600;
    color: #991b1b;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.08);
}

.article-warning-box i {
    color: #ef4444;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* بطاقة الحجز والاستشارة أسفل المقال */
.in-article-cta-box {
    margin-top: 42px;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.in-article-cta-info {
    flex: 1;
    min-width: 260px;
}

.in-article-cta-info h4 {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 17px;
    font-weight: 800;
    color: var(--color-dark, #000000);
    margin: 0 0 6px;
}

.in-article-cta-info p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.in-article-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.in-article-cta-actions .btn-site-consultation {
    width: auto;
    padding: 11px 24px;
}

.btn-consultation-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 211, 102, 0.1);
    color: #15803d;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.btn-consultation-whatsapp-link:hover {
    background: #25d366;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

/* --------------------------------------------------------------------------
   6. سكشن مقالات ذات صلة (3 كروت بيضاء كالصورة المرجعية تماماً)
   -------------------------------------------------------------------------- */
.related-posts-section {
    width: 100%;
    padding: 50px 0 85px;
    background-color: var(--bg-warm, #E8EDF2);
}

.related-posts-container {
    width: 100%;
    max-width: var(--container-max-width, 1440px);
    margin: 0 auto;
    padding: 0 36px;
    box-sizing: border-box;
}

.related-posts-header {
    margin-bottom: 28px;
}

.related-posts-title {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-dark, #000000);
    margin: 0;
}

/* شبكة الكروت الثلاثة */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

/* كارت المقال المطابق لتصميم صفحة المقالات (blog.css) */
.related-post-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
    border-color: rgba(0, 0, 0, 0.18);
}

/* حاوية صورة الكارت */
.related-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #000000;
}

.related-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-post-card:hover .related-card-thumb-img {
    transform: scale(1.07);
}

/* شارة التصنيف فوق الصورة */
.related-card-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* وقت القراءة فوق الصورة */
.related-card-read-time {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-dark, #000000);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.related-card-read-time i {
    color: var(--color-royal-blue, #1705A5);
    font-size: 11px;
}

/* محتوى الكارت الداخلي */
.related-card-content {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.related-card-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.related-card-date-badge i {
    color: #94a3b8;
}

/* عنوان الكارت */
.related-card-title {
    font-family: var(--font-primary, 'Almarai', sans-serif);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--color-dark, #000000);
    margin: 0 0 10px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* مقتطف الكارت */
.related-card-excerpt {
    font-size: 14px;
    color: #55524e;
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ذيل الكارت */
.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.related-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-dark, #000000);
    transition: all 0.2s ease;
}

.related-card-read-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.related-post-card:hover .related-card-read-more {
    color: var(--color-royal-blue, #1705A5);
}

.related-post-card:hover .related-card-read-more i {
    transform: translateX(-4px);
}

.related-card-site-label {
    font-size: 12px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   7. التجاوب مع مختلف مقاسات الشاشات (Responsive Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .article-hero-container,
    .article-body-container,
    .related-posts-container {
        padding: 0 24px;
    }

    .article-layout-grid {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }

    .related-posts-grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .article-layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .article-sidebar {
        height: auto;
    }

    .article-sidebar-sticky {
        position: static;
        top: auto;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .article-hero-section {
        padding: 32px 0 18px;
    }

    .article-hero-container,
    .article-body-container,
    .related-posts-container {
        padding: 0 16px;
    }

    .article-main-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .article-featured-hero-wrap {
        border-radius: 14px;
    }

    .article-body-section {
        padding: 28px 0 50px;
    }

    .article-content-main h2 {
        font-size: 20px;
    }

    .article-content-main p {
        font-size: 15px;
    }

    .related-posts-section {
        padding: 36px 0 60px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .related-posts-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   ظهور محتوى صفحة المقال بالتتالي بطريقة البلور بعد التحميل (Article Sequential Blur-In)
   ========================================================================== */
.article-blur-item {
    opacity: 0;
    filter: blur(18px);
    -webkit-filter: blur(18px);
    transform: translateY(24px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

/* اكتمال الظهور عند تفعيل article-revealed */
.article-revealed .article-blur-item {
    opacity: 1;
    filter: blur(0px);
    -webkit-filter: blur(0px);
    transform: translateY(0);
}

/* تتابع الظهور الزمني لعناصر رأس صفحة المقال والعمودين */
.article-revealed .article-category-badge-wrap.article-blur-item {
    transition-delay: 0.08s;
}

.article-revealed .article-main-title.article-blur-item {
    transition-delay: 0.22s;
}

.article-revealed .article-featured-hero-wrap.article-blur-item {
    transition-delay: 0.36s;
}

.article-revealed .toc-card.article-blur-item {
    transition-delay: 0.48s;
}

.article-revealed .article-content-main.article-blur-item {
    transition-delay: 0.52s;
}

.article-revealed .consultation-card.article-blur-item {
    transition-delay: 0.62s;
}

.article-revealed .social-share-card.article-blur-item {
    transition-delay: 0.74s;
}

.article-revealed .related-posts-header.article-blur-item {
    transition-delay: 0.1s;
}

/* كروت المقالات ذات الصلة بالبلور المتتالي */
.article-blur-related-card {
    opacity: 0;
    filter: blur(14px);
    -webkit-filter: blur(14px);
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--card-index, 0) * 0.12s);
}

.related-revealed .article-blur-related-card,
.article-revealed .related-posts-section .article-blur-related-card,
.article-animation-complete .article-blur-related-card {
    opacity: 1 !important;
    filter: blur(0px) !important;
    -webkit-filter: blur(0px) !important;
    transform: translateY(0) !important;
}

/* إزالة الفلتر تماماً بعد انتهاء الحركات للحفاظ على النقاء التام للخطوط وتأثيرات التحويم */
.article-animation-complete .article-blur-item,
.article-animation-complete .article-blur-related-card {
    filter: none !important;
    -webkit-filter: none !important;
    will-change: auto !important;
    transform: none !important;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .article-blur-item,
    .article-blur-related-card {
        opacity: 1 !important;
        filter: none !important;
        -webkit-filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

