/* ═══════════════════════════════════════════
   Blog Single – irfollower (v3 – magazine layout)
   Cover image top, title below, TOC sidebar left
   ═══════════════════════════════════════════ */

/* ===== Progress ===== */
.irf-bs-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb);
    width: 0;
    z-index: 99999;
    transition: width .1s linear;
}

/* ===== Header Section ===== */
.irf-bs-header {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #2563eb 60%, #1d4ed8 100%);
    padding: 120px 0 40px;
    color: #fff;
}

.irf-bs-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    margin-bottom: 22px;
}

.irf-bs-breadcrumb a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    transition: color .2s;
}

.irf-bs-breadcrumb a:hover { color: #fff; }
.irf-bs-breadcrumb span { opacity: .7; color: rgba(255,255,255,.7); }
.irf-bs-breadcrumb-current { opacity: 1; color: #fff; font-weight: 600; }

.irf-bs-cat-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    transition: all .2s;
}

.irf-bs-cat-badge:hover {
    background: rgba(255,255,255,.25);
}

.irf-bs-title {
    font-family: IRANSansX, sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.7;
    color: #fff;
    margin: 0 0 20px;
}

.irf-bs-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.irf-bs-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    padding: 5px 14px 5px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}

.irf-bs-author-pill:hover {
    background: rgba(255,255,255,.22);
}

.irf-bs-author-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.irf-bs-meta-tags {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

.irf-bs-meta-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.irf-bs-comment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}

    .irf-bs-comment-link:hover {
        color: #fff;
        text-decoration: none;
    }

.irf-bs-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: auto;
    position: relative;
}

.irf-bs-share-icons a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.irf-bs-share-icons a:hover {
    background: rgba(255,255,255,.3);
    color: #fff;
}

/* ===== Body ===== */
.irf-bs-body {
    background: #f8fafc;
    padding: 40px 0 70px;
}

/* ===== Sticky TOC (sidebar left) ===== */
.irf-bs-toc-sticky {
    position: sticky;
    top: 100px;
}

.irf-bs-toc-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.irf-bs-toc-label i {
    color: #3b82f6;
}

#toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 2px solid #e5e7eb;
    padding-right: 14px;
}

#toc a {
    display: block;
    padding: 6px 10px 6px 0;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    line-height: 1.7;
    transition: all .2s;
    border-right: 2px solid transparent;
    margin-right: -16px;
    padding-right: 14px;
}

#toc a:hover {
    color: #2563eb;
}

#toc a.active {
    color: #1d4ed8;
    font-weight: 600;
    border-right-color: #3b82f6;
}

/* ===== Article ===== */
.irf-bs-article {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 42px 38px;
    box-shadow: 0 12px 40px rgba(0,0,0,.05);
    font-family: IRANSansX, sans-serif;
    font-size: 16px;
    line-height: 2.2;
    color: #1f2937;
}

.irf-bs-article h2,
.irf-bs-article h3,
.irf-bs-article h4,
.irf-bs-article h5,
.irf-bs-article strong,
.irf-bs-article b {
    font-family: IRANSansX, sans-serif;
}

/* Featured image inside article */
.irf-bs-featured-img {
    margin: -42px -38px 28px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.irf-bs-article .irf-bs-featured-img img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

.irf-bs-article h2 {
    font-size: 24px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 14px;
    color: #111827;
    border-right: 4px solid #3b82f6;
    padding-right: 14px;
}

.irf-bs-article h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #1f2937;
}

.irf-bs-article h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 10px;
    color: #374151;
}

.irf-bs-article p {
    margin-bottom: 18px;
    color: #374151;
}

.irf-bs-article img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 22px 0;
}

.irf-bs-article ul,
.irf-bs-article ol {
    margin: 14px 0;
    padding-right: 24px;
    list-style: disc;
}

.irf-bs-article ol { list-style: decimal; }

.irf-bs-article li {
    margin-bottom: 8px;
    line-height: 2;
}

.irf-bs-article a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37,99,235,.2);
    transition: border-color .2s;
}

.irf-bs-article a:hover { border-bottom-color: #2563eb; }

.irf-bs-article blockquote {
    margin: 26px 0;
    padding: 20px 22px;
    background: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: #1d4ed8;
    line-height: 2;
}

.irf-bs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.irf-bs-article table th,
.irf-bs-article table td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: right;
}

.irf-bs-article table th {
    background: #f3f4f6;
    font-weight: 700;
    color: #111827;
}

/* ===== Footer Strip (CTA) ===== */
.irf-bs-footer-strip {
    background: #f1f5f9;
    padding: 0 0 60px;
}

.irf-bs-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Author card */
.irf-bs-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 26px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

.irf-bs-author-av {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #eff6ff;
}

.irf-bs-author-detail { flex: 1; }

.irf-bs-author-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #3b82f6;
    letter-spacing: 1px;
}

.irf-bs-author-detail h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 4px 0 6px;
}

.irf-bs-author-detail h4 a {
    color: #111827;
    text-decoration: none;
}

.irf-bs-author-detail h4 a:hover { color: #2563eb; }

.irf-bs-author-detail p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.8;
}

/* CTA card */
.irf-bs-cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 40px 34px;
    background: linear-gradient(145deg, #0f1f4a 0%, #1a3272 50%, #1e40af 100%);
    border-radius: 24px;
    color: #fff;
}

.irf-bs-cta-deco {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.07);
    pointer-events: none;
}

.irf-bs-cta-deco-1 {
    width: 340px; height: 340px;
    top: -130px; right: -100px;
}

.irf-bs-cta-deco-2 {
    width: 240px; height: 240px;
    bottom: -90px; left: -70px;
}

.irf-bs-cta-icon-wrap {
    width: 68px; height: 68px;
    border-radius: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #93c5fd;
    margin-bottom: 14px;
}

.irf-bs-cta-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    font-family: IRANSansX, sans-serif;
    color: #fff;
}

.irf-bs-cta-card p {
    font-size: 17px;
    color: rgba(255,255,255,.75);
    margin: 0 0 18px;
    line-height: 1.8;
    max-width: 600px;
}

.irf-bs-cta-feats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}

.irf-bs-cta-feat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

.irf-bs-cta-feat i {
    font-size: 14px;
    color: #93c5fd;
}

.irf-bs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1d4ed8;
    padding: 13px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.irf-bs-cta-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,.25);
}

/* ===== Related Posts ===== */
.irf-bs-related {
    background: #f1f5f9;
    padding: 48px 0 56px;
}

.irf-bs-related-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.irf-bs-related-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    font-family: IRANSansX, sans-serif;
    padding-right: 14px;
    border-right: 3px solid #3b82f6;
}

.irf-bs-related-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, #e5e7eb, transparent);
}

.irf-bs-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid #e5e7eb;
    transition: all .25s ease;
    height: 100%;
}

.irf-bs-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: #bfdbfe;
}

.irf-bs-related-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.irf-bs-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.irf-bs-related-card:hover .irf-bs-related-img { transform: scale(1.05); }

.irf-bs-related-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.irf-bs-related-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: IRANSansX, sans-serif;
}

.irf-bs-related-card:hover .irf-bs-related-body h4 { color: #2563eb; }

.irf-bs-related-read {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== Toast ===== */
.irf-bs-toast {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #16a34a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-4px);
    transition: all .3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.irf-bs-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scroll Top ===== */
.irf-bs-scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 8px 22px rgba(37,99,235,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s;
    z-index: 999;
}

.irf-bs-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.irf-bs-scroll-top:hover {
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .irf-bs-header { padding-top: 100px; }
    .irf-bs-title { font-size: 26px; }
    .irf-bs-article { padding: 28px 22px; }
    .irf-bs-featured-img { margin: -28px -22px 22px; }
    .irf-bs-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .irf-bs-header { padding-top: 95px; padding-bottom: 28px; }
    .irf-bs-breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
        gap: 4px 6px;
        margin-bottom: 14px;
    }

    .irf-bs-breadcrumb-current {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .irf-bs-cat-badge { font-size: 11px; padding: 3px 12px; margin-bottom: 10px; }
    .irf-bs-title { font-size: 20px; line-height: 1.6; margin-bottom: 16px; text-align: center; }

    .irf-bs-header-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .irf-bs-meta-tags {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .irf-bs-share-icons {
        margin-right: 0;
        justify-content: center;
    }

    .irf-bs-article {
        padding: 22px 18px;
        font-size: 15px;
    }

    .irf-bs-featured-img { margin: -22px -18px 18px; }

    .irf-bs-scroll-top {
        bottom: 20px;
        left: 20px;
    }
}

/* ── FAQ Accordion (blog articles) ── */
.blog-faq { margin-top: 48px; margin-bottom: 40px; }
.blog-faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.blog-faq-item:hover { border-color: #bfdbfe; }
.blog-faq-item.active { border-color: #93c5fd; box-shadow: 0 4px 16px rgba(59,130,246,.08); }
.blog-faq-q {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; cursor: pointer;
    font-family: IRANSansX, sans-serif; font-size: 15px; font-weight: 700;
    color: #1e293b; user-select: none; transition: background .2s;
}
.blog-faq-q:hover { background: #f8fafc; }
.blog-faq-q::before {
    content: ''; width: 8px; height: 8px;
    border-left: 2px solid #3b82f6; border-bottom: 2px solid #3b82f6;
    transform: rotate(-45deg); transition: transform .3s; flex-shrink: 0;
}
.blog-faq-item.active .blog-faq-q::before { transform: rotate(135deg); }
.blog-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 20px;
}
.blog-faq-item.active .blog-faq-a { max-height: 500px; padding: 0 20px 18px; }
.blog-faq-a p { font-size: 14px; color: #64748b; line-height: 2; margin: 0; }
.blog-faq-a a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.blog-faq-a a:hover { text-decoration: underline; }
