/* ================================
   PAYAMAKE ARTICLE
================================ */

.article-page {
    background:#ffffff;
}

.article-hero {
    padding:70px 0 65px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,224,230,.10), transparent 35%),
        linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
}

.article-hero-inner {
    max-width:920px;
    margin:0 auto;
    text-align:center;
}

.article-breadcrumb {
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:24px;
    color:#64748b;
    font-size:13px;
}

.article-breadcrumb a {
    color:#64748b;
    text-decoration:none;
}

.article-breadcrumb a:hover {
    color:var(--accent);
}

.article-category {
    display:inline-block;
    margin-bottom:16px;
    color:var(--accent);
    font-size:14px;
    font-weight:900;
}

.article-hero h1 {
    color:var(--primary);
    font-size:46px;
    line-height:1.65;
    font-weight:900;
    margin-bottom:20px;
}

.article-lead {
    max-width:820px;
    margin:0 auto;
    color:#475569;
    font-size:18px;
    line-height:2.15;
}

.article-meta {
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px 24px;
    margin-top:25px;
    color:#64748b;
    font-size:13px;
}

.article-layout {
    display:grid;
    grid-template-columns:250px minmax(0, 820px);
    gap:55px;
    justify-content:center;
    align-items:start;
    padding:80px 0 110px;
}

.article-sidebar {
    position:sticky;
    top:110px;
}

.article-toc {
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:24px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:22px;
}

.article-toc strong {
    color:var(--primary);
    font-size:15px;
    margin-bottom:8px;
}

.article-toc a {
    color:#64748b;
    font-size:13px;
    line-height:1.8;
    text-decoration:none;
    transition:.25s;
}

.article-toc a:hover {
    color:var(--accent);
}

.article-content {
    min-width:0;
}

.article-content p,
.article-content li {
    color:#334155;
    font-size:17px;
    line-height:2.25;
    text-align:justify;
}

.article-content p {
    margin-bottom:24px;
}

.article-content h2 {
    color:var(--primary);
    font-size:30px;
    line-height:1.6;
    font-weight:900;
    margin:58px 0 20px;
    scroll-margin-top:110px;
}

.article-content h3 {
    color:var(--primary);
    font-size:21px;
    line-height:1.7;
    font-weight:800;
    margin:35px 0 12px;
}

.article-content ol,
.article-content ul {
    margin:0 0 30px;
    padding-right:25px;
}

.article-content li {
    margin-bottom:10px;
}

.article-inline-link {
    color:#0891b2;
    font-weight:800;
    text-decoration:none;
    border-bottom:1px solid rgba(8,145,178,.25);
}

.article-inline-link:hover {
    color:var(--primary);
    border-bottom-color:var(--primary);
}

.article-highlight,
.article-note {
    margin:35px 0;
    padding:25px 28px;
    border-radius:20px;
    background:#ecfeff;
    border-right:4px solid var(--accent);
}

.article-highlight {
    color:var(--primary);
    font-size:16px;
    line-height:2;
}

.article-note {
    background:#f8fafc;
    border-right-color:#1A2F50;
}

.article-note p {
    margin:6px 0 0;
}

.article-note-title {
    color:var(--primary);
    font-size:14px;
    font-weight:900;
}

.article-image {
    margin:38px 0 46px;
}

.article-image img {
    display:block;
    width:100%;
    height:auto;
    border-radius:24px;
    border:1px solid #e2e8f0;
    box-shadow:0 20px 50px rgba(15,23,42,.08);
}

.article-image figcaption {
    margin-top:10px;
    text-align:center;
    color:#64748b;
    font-size:12px;
    line-height:1.8;
}

.article-table-wrap {
    overflow-x:auto;
    margin:35px 0 45px;
    border:1px solid #e2e8f0;
    border-radius:18px;
}

.article-table-wrap table {
    width:100%;
    min-width:580px;
    border-collapse:collapse;
}

.article-table-wrap th,
.article-table-wrap td {
    padding:15px 18px;
    text-align:right;
    border-bottom:1px solid #e2e8f0;
    font-size:14px;
    line-height:1.9;
}

.article-table-wrap th {
    color:var(--primary);
    background:#f8fafc;
    font-weight:900;
}

.article-table-wrap td {
    color:#475569;
}

.article-table-wrap tr:last-child td {
    border-bottom:0;
}

.article-steps {
    display:grid;
    gap:14px;
    margin:30px 0 45px;
}

.article-step {
    display:flex;
    align-items:flex-start;
    gap:18px;
    padding:20px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
}

.article-step > span {
    flex:0 0 48px;
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:rgba(0,224,230,.12);
    color:#0891b2;
    font-weight:900;
}

.article-step h3 {
    margin:0 0 4px;
    font-size:18px;
}

.article-step p {
    margin:0;
    font-size:14px;
    line-height:2;
}

.article-warning-list {
    display:grid;
    gap:14px;
    margin:30px 0 45px;
}

.article-warning-list > div {
    padding:20px 22px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:18px;
}

.article-warning-list strong {
    display:block;
    color:var(--primary);
    margin-bottom:5px;
}

.article-warning-list p {
    margin:0;
    font-size:14px;
}

.article-checklist {
    list-style:none;
    padding:0 !important;
}

.article-checklist li {
    position:relative;
    padding:13px 40px 13px 0;
    border-bottom:1px solid #e5e7eb;
}

.article-checklist li::before {
    content:"✓";
    position:absolute;
    right:0;
    top:13px;
    color:var(--accent);
    font-weight:900;
}

.article-cta {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    margin-top:60px;
    padding:40px 30px;
    text-align:center;
    background:linear-gradient(135deg,#effcff,#f8fafc);
    border:1px solid #dbeafe;
    border-radius:26px;
}

.article-cta span {
    color:#64748b;
    font-size:14px;
}

.article-cta strong {
    color:var(--primary);
    font-size:21px;
    line-height:1.8;
}

.article-cta .primary-button {
    margin-top:12px;
    text-decoration:none;
}

.article-footer-links {
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-top:35px;
}

.article-footer-links a {
    color:var(--primary);
    font-size:14px;
    font-weight:800;
    text-decoration:none;
}

.article-footer-links a:hover {
    color:var(--accent);
}

@media(max-width:900px){
    .article-layout {
        grid-template-columns:1fr;
        gap:30px;
    }
    .article-sidebar {
        position:static;
    }
    .article-toc {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .article-toc strong {
        grid-column:1/-1;
    }
}

@media(max-width:700px){
    .article-hero {
        padding:55px 0 50px;
    }
    .article-hero h1 {
        font-size:32px;
        line-height:1.7;
    }
    .article-lead {
        font-size:16px;
    }
    .article-layout {
        padding:55px 0 75px;
    }
    .article-content p,
    .article-content li {
        font-size:16px;
        line-height:2.15;
    }
    .article-content h2 {
        font-size:25px;
        margin-top:45px;
    }
    .article-toc {
        grid-template-columns:1fr;
    }
    .article-toc strong {
        grid-column:auto;
    }
    .article-footer-links {
        flex-direction:column;
        align-items:flex-start;
    }
}

/* =========================================================
   ARTICLE MOBILE — FINAL FIX
   فقط برای متن و جدول‌های مقالات
========================================================= */

.article-content p {
    text-align: justify;
    text-justify: inter-word;
}

@media (max-width: 900px) {

    .article-content p {
        text-align: justify;
        text-justify: inter-word;
    }

    /* جدول‌ها داخل عرض صفحه باقی بمانند */
    .article-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .article-table-wrap table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .article-table-wrap th,
    .article-table-wrap td {
        width: 50%;
        box-sizing: border-box;
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.8;
        text-align: right;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   FOOTER CONTACT CARD — FINAL SIZE / PHONE
   Applies to article pages too; main.js dynamic styles are
   intentionally overridden here with !important.
========================================================= */
.footer-contact-card {
    padding: 18px 16px !important;
    min-height: 148px !important;
}

.footer-contact-label {
    gap: 9px !important;
    margin-bottom: 9px !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.footer-contact-status {
    width: 7px !important;
    height: 7px !important;
}

.footer-contact-card p {
    margin: 0 0 10px !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
    opacity: .78 !important;
}

.footer-contact-phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 22px !important;
    line-height: 1.6 !important;
}

.footer-contact-phone::before {
    content: "📞";
    display: inline-block;
    font-size: 19px;
    line-height: 1;
}

@media (max-width: 768px) {
    .footer-contact-card {
        padding: 16px 14px !important;
        min-height: 140px !important;
    }

    .footer-contact-label {
        font-size: 17px !important;
        margin-bottom: 8px !important;
    }

    .footer-contact-card p {
        font-size: 15px !important;
        margin-bottom: 9px !important;
    }

    .footer-contact-phone {
        font-size: 21px !important;
    }

    .footer-contact-phone::before {
        font-size: 18px;
    }
}
