/*==========================================
    Article Pages - آمار مارکتینگ
    شامل: ریست، نوار بالا، هدر، بدنه مقاله، فوتر
===========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Vazirmatn',sans-serif;
    background:#F8FAFC;
    color:#333;
    line-height:1.9;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/*=========================
        Top Bar
=========================*/

.top-bar{
    background:#123C69;
    padding:10px 0;
    font-size:14px;
    color:#FFFFFF;
}

.top-contact{
    display:flex;
    gap:25px;
    align-items:center;
}

.top-contact span{
    display:flex;
    align-items:center;
    gap:8px;
}

.top-contact i{
    color:#7AC943;
}

.top-right{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:15px;
}

.top-right a{
    color:#FFFFFF;
    font-size:18px;
    transition:.3s;
}

.top-right a:hover{
    color:#7AC943;
}

.top-order-btn{
    background:#7AC943;
    padding:8px 18px;
    border-radius:8px;
    font-size:14px !important;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:8px;
}

.top-order-btn:hover{
    background:#5FAF2D;
    color:#FFFFFF !important;
}

/*=========================
        Header
=========================*/

.main-header{
    background:#FFFFFF;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    padding:18px 0;
}

.navbar-brand{
    display:flex;
    align-items:center;
}

.navbar-brand img{
    width:60px;
    margin-left:12px;
}

.navbar-brand span{
    font-size:28px;
    font-weight:800;
    color:#123C69;
}

.nav-link{
    color:#444;
    font-weight:600;
    margin:0 10px;
    transition:.3s;
}

.nav-link:hover{
    color:#7AC943;
}

.nav-link.active{
    color:#123C69;
}

.search-box{
    display:flex;
    align-items:center;
    border:2px solid #E5E7EB;
    border-radius:10px;
    overflow:hidden;
}

.search-box input{
    border:none;
    outline:none;
    padding:10px 15px;
    width:200px;
}

.search-box button{
    border:none;
    background:#7AC943;
    color:#fff;
    padding:10px 16px;
}

.search-box button i{
    color:#FFFFFF;
}

.search-box button:hover{
    background:#5FAF2D;
}

/*=========================
      Article Hero
=========================*/

.article-hero{
    background:linear-gradient(135deg,#F8FBFF,#EEF5FF);
    padding:55px 0;
}

/* مسیر صفحه */

.breadcrumb-nav{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    font-size:14px;
    color:#64748B;
    margin-bottom:22px;
}

.breadcrumb-nav a{
    color:#2563EB;
}

.breadcrumb-nav a:hover{
    color:#1D4ED8;
}

.breadcrumb-nav i{
    font-size:11px;
    color:#94A3B8;
}

.article-cat-badge{
    display:inline-block;
    background:#2563EB;
    color:#FFFFFF;
    padding:8px 20px;
    border-radius:30px;
    font-size:14px;
    font-weight:700;
    margin-bottom:18px;
}

.article-hero h1{
    font-size:38px;
    color:#1E293B;
    font-weight:800;
    line-height:1.7;
    margin-bottom:18px;
    max-width:900px;
}

.article-lead{
    font-size:18px;
    color:#64748B;
    line-height:2.1;
    max-width:900px;
    margin-bottom:25px;
}

.article-meta-bar{
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    color:#64748B;
    font-size:15px;
}

.article-meta-bar span{
    display:flex;
    align-items:center;
    gap:8px;
}

.article-meta-bar i{
    color:#7AC943;
}

@media(max-width:768px){

    .article-hero{
        padding:40px 0;
    }

    .article-hero h1{
        font-size:26px;
    }

    .article-lead{
        font-size:16px;
    }

}

/*=========================
      Article Layout
=========================*/

.article-section{
    padding:70px 0;
}

.article-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:40px;
    align-items:start;
}

/* بدون این، جدول‌های عریض ستون گرید را پهن می‌کنند و صفحه افقی اسکرول می‌خورد */
.article-layout > *{
    min-width:0;
}

@media(max-width:992px){

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

    .article-layout{
        grid-template-columns:minmax(0,1fr);
    }

}

/*=========================
      Article Body
=========================*/

.article-body{
    background:#FFFFFF;
    border-radius:20px;
    padding:50px;
    box-shadow:0 12px 35px rgba(0,0,0,.06);
}

.article-body h2{
    font-size:28px;
    color:#123C69;
    font-weight:800;
    margin:45px 0 18px;
    padding-right:16px;
    border-right:5px solid #7AC943;
    scroll-margin-top:110px;
}

.article-body h2:first-child{
    margin-top:0;
}

.article-body h3{
    font-size:21px;
    color:#1E293B;
    font-weight:700;
    margin:30px 0 12px;
}

.article-body p{
    color:#475569;
    font-size:16.5px;
    line-height:2.2;
    margin-bottom:18px;
}

.article-body strong{
    color:#1E293B;
}

.article-body a{
    color:#2563EB;
    font-weight:600;
    border-bottom:1px dashed #93C5FD;
}

.article-body a:hover{
    color:#1D4ED8;
}

/* فهرست‌ها */

.article-body ul,
.article-body ol{
    margin:0 0 20px;
    padding-right:22px;
    color:#475569;
}

.article-body ul{
    list-style:disc;
}

.article-body ol{
    list-style:decimal;
}

.article-body li{
    margin-bottom:12px;
    line-height:2.1;
    font-size:16.5px;
}

.article-body li::marker{
    color:#7AC943;
}

/* جدول */

.table-wrapper{
    overflow-x:auto;
    margin:0 0 25px;
}

.article-body table{
    width:100%;
    min-width:520px;
    border-collapse:collapse;
    font-size:15.5px;
}

.article-body thead{
    background:#123C69;
    color:#FFFFFF;
}

.article-body th,
.article-body td{
    padding:14px 16px;
    text-align:right;
    border:1px solid #E2E8F0;
}

.article-body th{
    font-weight:700;
    border-color:#1E4E85;
}

.article-body tbody tr:nth-child(even){
    background:#F8FAFC;
}

.article-body td{
    color:#475569;
}

/* کد */

.code-block{
    direction:ltr;
    text-align:left;
    background:#0F172A;
    color:#E2E8F0;
    padding:22px 24px;
    border-radius:14px;
    overflow-x:auto;
    margin:0 0 25px;
    font-family:'Consolas','Courier New',monospace;
    font-size:14.5px;
    line-height:1.9;
}

/* باکس نکته */

.note-box{
    display:flex;
    gap:16px;
    background:#EFF6FF;
    border-right:5px solid #2563EB;
    border-radius:12px;
    padding:20px 24px;
    margin:0 0 25px;
}

.note-box i{
    color:#2563EB;
    font-size:20px;
    flex-shrink:0;
    margin-top:6px;
}

.note-box p{
    margin:0;
    color:#1E40AF;
    font-size:16px;
}

/* باکس هشدار */

.warn-box{
    display:flex;
    gap:16px;
    background:#FFFBEB;
    border-right:5px solid #F59E0B;
    border-radius:12px;
    padding:20px 24px;
    margin:0 0 25px;
}

.warn-box i{
    color:#D97706;
    font-size:20px;
    flex-shrink:0;
    margin-top:6px;
}

.warn-box p{
    margin:0;
    color:#92400E;
    font-size:16px;
}

/* جمع‌بندی */

.summary-box{
    background:#F0FDF4;
    border:1px solid #BBF7D0;
    border-radius:16px;
    padding:28px 32px;
    margin-top:40px;
}

.summary-box h3{
    margin-top:0;
    color:#166534;
}

.summary-box ul{
    margin-bottom:0;
}

.summary-box li{
    color:#15803D;
}

@media(max-width:768px){

    .article-body{
        padding:28px 22px;
    }

    .article-body h2{
        font-size:22px;
    }

    .article-body h3{
        font-size:18px;
    }

    .article-body p,
    .article-body li{
        font-size:15.5px;
    }

}

/*=========================
        Sidebar
=========================*/

.article-sidebar{
    position:sticky;
    top:110px;
    display:flex;
    flex-direction:column;
    gap:25px;
}

@media(max-width:992px){

    .article-sidebar{
        position:static;
    }

}

.sidebar-card{
    background:#FFFFFF;
    border-radius:18px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.sidebar-card h3{
    font-size:19px;
    color:#123C69;
    font-weight:800;
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:2px solid #F1F5F9;
}

/* فهرست مطالب */

.toc-list li{
    margin-bottom:12px;
}

.toc-list a{
    display:flex;
    align-items:flex-start;
    gap:9px;
    color:#475569;
    font-size:15px;
    line-height:1.9;
    transition:.3s;
}

.toc-list a:hover{
    color:#2563EB;
}

.toc-list i{
    color:#7AC943;
    font-size:11px;
    margin-top:9px;
    flex-shrink:0;
}

/* مقالات مرتبط */

.related-list li{
    margin-bottom:16px;
    padding-bottom:16px;
    border-bottom:1px solid #F1F5F9;
}

.related-list li:last-child{
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:none;
}

.related-list a{
    color:#1E293B;
    font-size:15.5px;
    font-weight:600;
    line-height:1.9;
    transition:.3s;
}

.related-list a:hover{
    color:#2563EB;
}

.related-list span{
    display:block;
    color:#94A3B8;
    font-size:13px;
    margin-top:4px;
}

/* باکس سفارش */

.sidebar-cta{
    background:linear-gradient(135deg,#123C69,#2563EB);
    color:#FFFFFF;
    text-align:center;
}

.sidebar-cta i{
    font-size:34px;
    color:#7AC943;
    margin-bottom:14px;
}

.sidebar-cta h3{
    color:#FFFFFF;
    border-bottom:none;
    padding-bottom:0;
    margin-bottom:10px;
}

.sidebar-cta p{
    color:#DBEAFE;
    font-size:15px;
    margin-bottom:20px;
}

.sidebar-btn{
    display:block;
    background:#7AC943;
    color:#FFFFFF;
    padding:13px 20px;
    border-radius:10px;
    font-weight:700;
    transition:.3s;
}

.sidebar-btn:hover{
    background:#5FAF2D;
    color:#FFFFFF;
}

/*=========================
      Bottom CTA
=========================*/

.article-cta{
    background:linear-gradient(135deg,#123C69,#2563EB);
    padding:70px 0;
    color:#FFFFFF;
    text-align:center;
}

.article-cta h2{
    font-size:32px;
    font-weight:800;
    margin-bottom:16px;
}

.article-cta p{
    max-width:700px;
    margin:0 auto 28px;
    color:#E2E8F0;
    font-size:17px;
}

.cta-buttons{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.btn-cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#7AC943;
    color:#FFFFFF;
    padding:15px 34px;
    border-radius:12px;
    font-weight:700;
    transition:.3s;
}

.btn-cta:hover{
    background:#5FAF2D;
    color:#FFFFFF;
    transform:translateY(-4px);
}

.btn-cta-outline{
    display:inline-flex;
    align-items:center;
    gap:10px;
    border:2px solid #FFFFFF;
    color:#FFFFFF;
    padding:15px 34px;
    border-radius:12px;
    font-weight:700;
    transition:.3s;
}

.btn-cta-outline:hover{
    background:#FFFFFF;
    color:#123C69;
}

@media(max-width:576px){

    .article-cta h2{
        font-size:24px;
    }

    .btn-cta,
    .btn-cta-outline{
        width:100%;
        justify-content:center;
    }

}

/*=========================
        Footer
=========================*/

.footer{
    background:linear-gradient(135deg,#1E293B,#334155);
    padding:70px 0 20px;
    color:#FFFFFF;
}

.footer-logo{
    width:90px;
    margin-bottom:15px;
}

.footer h4{
    margin-bottom:20px;
    font-weight:700;
}

.footer p{
    line-height:32px;
    color:#EAF4FF;
}

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

.footer ul li{
    margin-bottom:12px;
}

.footer ul li a{
    color:#EAF4FF;
    transition:.3s;
}

.footer ul li a:hover{
    color:#7AC943;
    padding-right:6px;
}

.footer p i{
    color:#7AC943;
    margin-left:8px;
}

.footer-social{
    margin-top:20px;
}

.footer-social a{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    margin-left:10px;
    color:#FFFFFF;
    transition:.3s;
}

.footer-social a:hover{
    background:#7AC943;
    transform:translateY(-4px);
}

.footer hr{
    margin:35px 0 20px;
    border-color:rgba(255,255,255,.2);
}

.copyright{
    text-align:center;
    color:#EAF4FF;
    font-size:15px;
}
