﻿.blog-detail-page {
    --bp-navy: #0b2341;
    --bp-orange: #ff8a1e;
    --bp-blue: #0b84e3;
    --bp-muted: #6b7684;
    --bp-line: #e7edf5;
    --bp-bg: #f4f6fa;
    direction: rtl;
    background: var(--bp-bg);
    padding: 24px 0 60px;
}

.blog-detail-page .container {
    max-width: 1240px;
}

/* Breadcrumb */
.blog-breadcrumb {
    background: transparent;
    padding: 14px 0;
}

.blog-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1240px;
    font-size: 13px;
    color: var(--bp-muted, #6b7684);
    flex-wrap: wrap;
}

.blog-breadcrumb .bc-home {
    display: inline-flex;
    color: var(--bp-orange, #ff8a1e);
    flex-shrink: 0;
}

.blog-breadcrumb ul,
.blog-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bp-muted, #6b7684);
}

    .blog-breadcrumb .breadcrumb-item:not(:first-child):before {
        content: "\203A";
        display: inline-block;
        transform: scaleX(-1);
        color: #c2c9d4;
    }

    .blog-breadcrumb .breadcrumb-item a {
        color: var(--bp-muted, #6b7684);
    }

        .blog-breadcrumb .breadcrumb-item a:hover {
            color: var(--bp-orange, #ff8a1e);
        }

    .blog-breadcrumb .breadcrumb-item .breadcrumb_last {
        color: var(--bp-navy, #0b2341);
        font-weight: 700;
    }

/* Layout */
.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 991px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
}

.blog-main {
    min-width: 0;
}

/* Hero image */
.blog-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 35, 65, 0.1);
    margin-bottom: -40px;
    z-index: 1;
}

    .blog-hero img {
        width: 100%;
        height: 340px;
        object-fit: cover;
        display: block;
    }

.blog-hero-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bp-orange, #ff8a1e);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(255, 138, 30, 0.35);
}

/* Article head card */
.blog-article-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(11, 35, 65, 0.06);
    padding: 28px 28px 20px;
    margin: 0 20px;
}

@media (max-width: 640px) {
    .blog-article-card {
        margin: 0 8px;
        padding: 20px 16px 16px;
    }
}

.blog-title {
    font-family: "Yekan-Bold", Sans-serif;
    color: var(--bp-navy, #0b2341);
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 14px;
    line-height: 1.5;
}

.blog-lead {
    color: var(--bp-muted, #6b7684);
    font-size: 15px;
    line-height: 2;
    margin: 0 0 18px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bp-line, #e7edf5);
    font-size: 13px;
    color: var(--bp-muted, #6b7684);
}

    .blog-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .blog-meta svg {
        width: 17px;
        height: 17px;
        color: var(--bp-orange, #ff8a1e);
        flex-shrink: 0;
    }

/* Body */
.blog-body {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(11, 35, 65, 0.06);
    padding: 30px 28px;
    margin: 20px 20px 0;
    color: #2b3648;
    font-size: 15px;
    line-height: 2.1;
}

@media (max-width: 640px) {
    .blog-body {
        margin: 20px 8px 0;
        padding: 20px 16px;
    }
}

    .blog-body h2, .blog-body h3 {
        font-family: "Yekan-Bold", Sans-serif;
        color: var(--bp-navy, #0b2341);
        font-size: 19px;
        font-weight: 900;
        margin: 28px 0 14px;
        padding-right: 14px;
        border-right: 4px solid var(--bp-blue, #0b84e3);
    }

    .blog-body p {
        margin: 0 0 14px;
    }

    .blog-body ol {
        list-style: none;
        margin: 18px 0;
        padding: 0;
        counter-reset: bp-step;
        position: relative;
    }

        .blog-body ol:before {
            content: "";
            position: absolute;
            top: 6px;
            bottom: 6px;
            right: 17px;
            width: 2px;
            background: var(--bp-line, #e7edf5);
        }

        .blog-body ol > li {
            counter-increment: bp-step;
            position: relative;
            padding: 0 50px 22px 0;
        }

            .blog-body ol > li:last-child {
                padding-bottom: 0;
            }

            .blog-body ol > li:before {
                content: counter(bp-step);
                position: absolute;
                right: 0;
                top: 0;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: var(--bp-blue, #0b84e3);
                color: #fff;
                font-weight: 700;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 1;
            }

    .blog-body ul {
        margin: 14px 0;
        padding-right: 20px;
    }

    .blog-body blockquote {
        background: #fff4e8;
        border-right: 4px solid var(--bp-orange, #ff8a1e);
        border-radius: 12px;
        padding: 16px 18px;
        margin: 20px 0;
        color: #6b4a1e;
        font-size: 14px;
        line-height: 2;
    }

        .blog-body blockquote:before {
            content: "نکته مهم:";
            display: block;
            font-weight: 900;
            color: var(--bp-orange, #ff8a1e);
            margin-bottom: 4px;
        }

    .blog-body img {
        max-width: 100%;
        border-radius: 12px;
        margin: 10px 0;
    }

/* Tags */
.blog-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 20px 0;
}

@media (max-width: 640px) {
    .blog-tags-row {
        margin: 20px 8px 0;
    }
}

.blog-tags-row a {
    background: #eef1f6;
    color: var(--bp-navy, #0b2341);
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    transition: 0.2s ease;
}

    .blog-tags-row a:hover {
        background: var(--bp-orange, #ff8a1e);
        color: #fff;
    }

/* Share */
.blog-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 20px 0;
}

@media (max-width: 640px) {
    .blog-share-row {
        margin: 18px 8px 0;
    }
}

.blog-share-row .bs-label {
    font-size: 13px;
    color: var(--bp-muted, #6b7684);
}

.blog-share-row a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

    .blog-share-row a svg {
        width: 16px;
        height: 16px;
    }

.blog-share-row .bs-telegram {
    background: #29a9eb;
}

.blog-share-row .bs-whatsapp {
    background: #25d366;
}

.blog-share-row .bs-twitter {
    background: #14171a;
}

.blog-share-row .bs-facebook {
    background: #1877f2;
}

/* Author */
.blog-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(11, 35, 65, 0.06);
    padding: 20px 24px;
    margin: 20px 20px 0;
}

@media (max-width: 640px) {
    .blog-author-card {
        margin: 20px 8px 0;
        flex-wrap: wrap;
    }
}

.blog-author-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bp-bg, #f4f6fa);
    flex-shrink: 0;
}

.blog-author-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Yekan-Bold", Sans-serif;
    color: var(--bp-navy, #0b2341);
    font-size: 15px;
    font-weight: 900;
}

    .blog-author-name svg {
        width: 16px;
        height: 16px;
        color: #22c55e;
    }

.blog-author-role {
    color: var(--bp-orange, #ff8a1e);
    font-size: 12px;
    margin: 2px 0 6px;
}

.blog-author-about {
    color: var(--bp-muted, #6b7684);
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bp-widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 35, 65, 0.06);
    padding: 18px;
}

.bp-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Yekan-Bold", Sans-serif;
    color: var(--bp-navy, #0b2341);
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 14px;
}

    .bp-widget-title svg {
        width: 18px;
        height: 18px;
        color: var(--bp-orange, #ff8a1e);
    }

.bp-search {
    display: flex;
    gap: 8px;
}

    .bp-search input {
        flex: 1;
        min-width: 0;
        border: 1px solid var(--bp-line, #e7edf5);
        border-radius: 10px;
        padding: 10px 14px;
        font: inherit;
        outline: none;
        background: var(--bp-bg, #f4f6fa);
    }

        .bp-search input:focus {
            border-color: var(--bp-blue, #0b84e3);
        }

    .bp-search button {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        border: none;
        border-radius: 10px;
        background: var(--bp-navy, #0b2341);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .bp-search button svg {
            width: 18px;
            height: 18px;
        }

.bp-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 10px;
    color: #2b3648;
    font-size: 13px;
    transition: background 0.2s ease;
}

    .bp-cat-item:hover {
        background: var(--bp-bg, #f4f6fa);
    }

.bp-cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

    .bp-cat-icon svg {
        width: 15px;
        height: 15px;
    }

.bp-cat-title {
    flex: 1;
}

.bp-cat-count {
    background: var(--bp-bg, #f4f6fa);
    color: var(--bp-muted, #6b7684);
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 999px;
}

.bp-popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bp-line, #e7edf5);
}

    .bp-popular-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .bp-popular-item img {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
    }

.bp-popular-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--bp-navy, #0b2341);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-popular-date {
    font-size: 11px;
    color: var(--bp-muted, #6b7684);
    margin-top: 4px;
}

.bp-cta-widget {
    background: linear-gradient(160deg, var(--bp-navy, #0b2341), #123a63);
    color: #fff;
    text-align: center;
    padding: 26px 20px;
}

.bp-cta-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--bp-orange, #ff8a1e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

    .bp-cta-icon svg {
        width: 26px;
        height: 26px;
        color: #fff;
    }

.bp-cta-widget h4 {
    font-family: "Yekan-Bold", Sans-serif;
    font-size: 15px;
    margin: 0 0 8px;
}

.bp-cta-widget p {
    font-size: 12.5px;
    color: #c7d3e3;
    margin: 0 0 18px;
    line-height: 1.9;
}

.bp-cta-widget form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bp-cta-input {
    width: 100%;
    border: 1px solid #ffffff33;
    background: #ffffff14;
    color: #fff;
    border-radius: 10px;
    padding: 11px 14px;
    font: inherit;
    outline: none;
    text-align: center;
}

    .bp-cta-input::placeholder {
        color: #c7d3e3;
    }

    .bp-cta-input:focus {
        border-color: var(--bp-orange, #ff8a1e);
    }

.bp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bp-orange, #ff8a1e);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

    .bp-cta-btn:hover {
        background: #ff9a3d;
        color: #fff;
    }
