.blog-page {
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

.blog-container {
    width: 100%;
    padding: 38px 80px 80px;
    margin: 0 auto;
}


.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-direction: row-reverse;
    margin-bottom: 24px;
    text-decoration: none;
    color: #888;
    font-size: 10px;
    line-height: 1;
}

.blog-breadcrumb a {
    transition: color 0.2s ease;
    color: #000000;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #222;
}

.blog-breadcrumb span {
    color: #c6c6c6;
}


/* =========================================
   FEATURED POST
========================================= */

.featured-post {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: ltr;
    align-items: center;
    column-gap: 58px;
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    overflow: hidden;
    border-radius: 7px 0 0 7px;
}

.featured-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.4s ease;
}

.featured-image:hover img {
    transform: scale(1.025);
}


/* -----------------------------------------
   Featured Content
----------------------------------------- */

.featured-content {
    direction: rtl;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 0 2px;
}

.featured-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #000000;
    font-size: 12px;
    font-weight: 400;
}

.featured-content h1 {
    margin: 0 0 12px;
    width: 100%;
    color: #000000;
    font-size: 36px;
    line-height: 1.8;
    font-weight: 700;
}

.featured-description {
    width: 100%;
    margin: 0 0 13px;
    color: #000000;
    font-size: 17px;
    line-height: 2.1;
    font-weight: 400;
}

.featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
    color: #000000;
    font-size: 14px;
}

.featured-meta span+span::before {
    content: "•";
    margin-left: 12px;
    color: #000000;
}

.featured-meta strong {
    color: #444;
    font-weight: 500;
}

.read-more {
    position: relative;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding-bottom: 3px;
}

.read-more::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background: #111;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.25s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
}


/* =========================================
   BLOG SECTION
========================================= */

.blog-section {
    display: grid;
    gap: 38px;
    direction: rtl;
    align-items: start;
}


/* =========================================
   SECTION TITLE
========================================= */

.section-title {
    margin-bottom: 23px;
}

.section-title h2 {
    margin: 0;

    color: #000000;

    font-size: 25px;
    font-weight: 500;
}


/* =========================================
   POSTS GRID
========================================= */

/* .posts-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    direction: ltr;
} */


/* =========================================
   BLOG CARD
========================================= */

.blog-card {
    direction: rtl;
    background: #fff;
    width: 100%;
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.45s ease,
        opacity 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.035);
}


/* =========================================
   CARD CONTENT
========================================= */

.blog-card-content {
    padding-top: 9px;
}


.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #000000;
    font-size: 12px;
}

.blog-card-meta span:first-child {
    color: #000000;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0%;

}

.blog-card h3 {
    margin: 0 0 7px;

    color: #171717;

    font-size: 11px;
    line-height: 1.9;
    font-weight: 600;
}

.blog-card h3 a {
    transition: color 0.2s ease;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
}

.blog-card h3 a:hover {
    color: #666;
}

.blog-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #000000;
    margin-bottom: 25px;
    font-size: 12px;
    font-weight: 400;
}


/* =========================================
   CARD FOOTER
========================================= */

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    color: #000000;
    font-size: 12px;
}

.card-arrow {
    display: flex;

    width: 79px;
    height: 18px;

    align-items: center;
    justify-content: center;

    color: #000000;

    font-size: 12px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.blog-card:hover .card-arrow {
    transform: translateX(-3px);
    color: #111;
}


/* =========================================
   SIDEBAR
========================================= */

.blog-sidebar {
    width: 100%;
}

.sidebar-box {
    width: 100%;

    padding: 18px 25px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;

    background: #FAFAFA;
}

.sidebar-box h3 {
    margin: 0 0 14px;

    color: #222;

    font-size: 11px;
    line-height: 1.7;
    font-weight: 600;
}

.category-list {
    list-style: none;

    display: flex;
    flex-direction: column;

    padding: 0;
    gap: 0;
}

.category-list li {
    display: flex;

    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    color: #000000;
    font-size: 14px;
    text-decoration: none;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    transition: color 0.2s ease;
    color: #000000;
    text-decoration: none;
}

.category-list a:hover {
    color: #111;
}

.category-list span {
    color: #000000;
    font-size: 12px;
}


.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* =========================================
   PAGINATION
========================================= */

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    direction: rtl;
}

.pagination a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 17px;
    height: 24px;

    color: #000000;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.pagination a:hover {
    color: #111;
}

.pagination a.active {
    color: #111;
    font-size: 16px;
    font-weight: 700;

}

.pagination .pagination-arrow {
    color: #777;
    text-decoration: none;
    font-size: 12px;
}


/* =========================================
    BLOG-DETAIL
========================================= */
:root {
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
}

.breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 3px 10px;
    padding: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 6L3 4L5 2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.breadcrumb-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

    .breadcrumb-item a:hover {
        color: #334155;
    }

.breadcrumb-item.active {
    color: #64748b;
}

.category-badge {
    font-size: 0.8rem;
    color: #000000;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.25rem;
}

.post-meta {
    font-size: 14px;
    color: #000000;
    gap: 1.25rem;
    font-weight: 400;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
}

.meta-separator {
    width: 4px;
    height: 4px;
    background-color: #000000;
    border-radius: 50%;
    display: inline-block;
}

.featured-image-wrapper {
    margin: 1.75rem 0 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.article-content p {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.related-posts-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease;
}

    .related-card:hover {
        transform: translateY(-2px);
    }

.related-img-wrapper {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    height: 220px;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-card-title {
    color: #111;
}

.related-meta {
    font-size: 12px;
    color: #000000;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.mobile-article-wrapper {
    background: #fff;
    direction: rtl;
    text-align: right;
   
}

.hero-image img {
    width: 100%;
    display: block;
}

.article-body {
    padding: 20px 16px;
}

.category-badge {
    background: #e60067;
    color: #fff;
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 12px;
}

.main-title {
    font-size: 20px;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-bottom: 24px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.dot {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}

.content-text p {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 15px;
}

.content-text h2 {
    font-size: 17px;
    margin: 24px 0 12px 0;
    color: #000;
}

.related-section {
    margin-top: 30px;
}

.related-title {
    font-size: 18px;
    margin-bottom: 16px;
}

.related-card img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.related-card p {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    color: #444;
}

.mobile-article-wrapper{
    display: none;
}

@media (max-width: 991px) {
    .desktop-article-wrapper{
        display: none;

    }

    .mobile-article-wrapper {
        display: block;
    }

    .blog-container {
        width: min(100% - 40px, 850px);
    }

    .featured-post {
        column-gap: 35px;
    }

    .featured-content h1 {
        font-size: 20px;
    }

    .blog-section {

        gap: 25px;
    }

    .posts-grid {
        gap: 18px;
    }

}


@media (max-width: 767.98px) {
    .meta-row {
        display: flex;
        flex-direction: row-reverse;
    }

    .blog-page {
        width: 100%;
        overflow: hidden;
    }

    .blog-container {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        margin: 0 auto;

        display: grid;
        grid-template-columns: 1fr;
    }

    
    .blog-breadcrumb {
        display: none;
    }

    .blog-section {
        display: contents;
    }


    /* =========================================
       CATEGORY / SIDEBAR
    ========================================= */

    .blog-sidebar {
        grid-row: 1;
        width: 100%;
        margin: 0 0 23px;
        padding: 0;
        order: 1;
    }

    .sidebar-box {
        width: 100%;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .sidebar-box h3 {
        display: none;
    }

    .category-list {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        flex-direction: row;
        margin: 0;
        padding: 0;

        list-style: none;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-list li {
        flex: 0 0 auto;

        display: flex;
        align-items: center;

        width: auto;
        padding: 0;
        margin: 0;

        border: 0;
        background: transparent;
    }

    .category-list li a {
        display: flex;
        align-items: center;
        justify-content: center;

        height: 32px;
        padding: 0 12px;

        white-space: nowrap;

        border-radius: 18px;
        background: #f3f3f3;

        color: #111;
        text-decoration: none;

        font-size: 10px;
        font-weight: 400;
        line-height: 1;
    }


    .account-sidebar__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47.25px;
    height: 47.25px;
    margin-bottom: 20px;
}

    .category-list li span {
        display: none;
    }


    /* =========================================
       FEATURED ARTICLE
    ========================================= */

    .featured-post {
        grid-row: 2;

        width: 100%;
        display: flex;
        flex-direction: column;

        margin: 0;
        padding: 0;

        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .featured-image {
        width: 100%;
        height: 180px;

        margin: 0 0 10px;

        border-radius: 0;
        overflow: hidden;
    }

    .featured-image a,
    .featured-image img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .featured-image img {
        object-fit: cover;
    }


  .featured-content {
        width: 100%;
        padding: 0;

        gap: 14px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label  meta"
            "title title";

        align-items: center;
    }


   .featured-label {
        grid-area: label;

        justify-self: start;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 23px;
        padding: 0 8px;
        margin: 0;

        border-radius: 4px;
        background: #F3F4F6;

        font-size: 12px;
        font-weight: 400;
        color: #000000;
    }

    .featured-content h1 {
        grid-area: title;

        width: 100%;

        margin: 6px 0 0;

        font-size: 15px;
        line-height: 1.9;
        font-weight: 600;

        text-align: right;
        color: #111;
    }

    .featured-description {
        display: none;
    }

   .featured-meta {
        grid-area: meta;

        width: auto;
        margin: 0;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        font-size: 8px;
    }

    .featured-meta span {
        display: none;
    }

    .featured-meta span:first-child {
        display: block;
    }

    .featured-meta strong {
        font-size: 12px;
        font-weight: 400;
        color: Gray;

    }

    .read-more {
        display: none;
    }


    /* =========================================
       POSTS AREA
    ========================================= */

    .posts-area {
        grid-row: 3;

        width: 100%;
        margin-top: 22px;
    }

    .section-title {
        display: none;
    }


    /* =========================================
       BLOG CARDS
    ========================================= */

    .posts-grid {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 10px;

        margin: 0;
        padding: 0;
    }

    .blog-card {
        width: 100%;
        min-height: 90px;

        display: flex;
        flex-direction: row;
        align-items: stretch;
    
        padding: 7px;


        border: 1px solid #ededed;
        border-radius: 7px;

        background: #fff;

        box-shadow: none;
    }


    .blog-card-image {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;

        margin: 0 0 0 9px;

        border-radius: 5px;
        overflow: hidden;

        background: #f1f1f1;
    }

    .blog-card-image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    .blog-card-content {
        min-width: 0;
        flex: 1;

        display: flex;
        flex-direction: column;

        padding: 0;
    }


    .blog-card-meta {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        width: 100%;

        margin: 0 0 3px;
    }

    .blog-card-meta span {
        display: none;
    }

    .blog-card-meta span:first-child {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        min-height: 17px;
        padding: 6px;

        border-radius: 3px;
        background: #f5f5f5;

        font-size: 12px;
        line-height: 1;
        color: #444;
    }


    .blog-card h3 {
        width: 100%;

        margin: 0;

        font-size: 10px;
        line-height: 1.7;
        font-weight: 600;

        text-align: right;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .blog-card h3 a {
        color: #111;
        text-decoration: none;
    }


    .blog-card p {
        display: none;
    }


    .blog-card-footer {
        margin-top: auto;

        width: 100%;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding-top: 2px;
    }

    .blog-card-footer > span {
        font-size:12px;
        color: #8C8C8C;
    }

    .card-arrow {
        display: none;
    }


    /* =========================================
       MORE ARTICLES
    ========================================= */

    .pagination {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 10px;
        padding: 0;

        border: 1px solid #F0F0F0;
        border-radius: 7px;

        height: 37px;

        background: #fff;
    }


    .pagination a {
        display: none;
    }

    .pagination::after {
        content: "مشاهده مقالات بیشتر";

        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        font-size: 16px;
        font-weight: 700;
        color: #000000;
    }


    .desktop-article-wrapper {
        display: flex !important;
        flex-direction: column !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 0 !important; 
        padding-bottom: 24px !important;
        margin-top: 0 !important;
    }
        .desktop-article-wrapper nav[aria-label="breadcrumb"] {
            display: none !important;
        }

        .desktop-article-wrapper .featured-image-wrapper {
            order: 1 !important;
            margin-left: -16px !important; 
            margin-right: -16px !important;
            margin-top: 0 !important;
            margin-bottom: 16px !important;
            border-radius: 0 !important;
            overflow: hidden;
        }

        .desktop-article-wrapper .featured-image {
            width: 100% !important;
            height: auto !important;
            display: block !important;
            object-fit: cover;
        }

        .desktop-article-wrapper header {
            order: 2 !important;
            margin-bottom: 28px !important;
        }
        .desktop-article-wrapper .category-badge {
            display: inline-flex !important;
            align-self: flex-start !important; 
            margin-inline-start: 0 !important;
            margin-inline-end: auto !important;
            background-color: #e60067 !important;
            color: #ffffff !important;
            font-size: 0.75rem !important;
            font-weight: 700 !important;
            padding: 7px 13px !important;
            border-radius: 6px !important;
            margin-bottom: 12px !important;
        }

        .desktop-article-wrapper .post-title {
            font-size: 1.15rem !important;
            font-weight: 800 !important;
            line-height: 1.6 !important;
            color: #1a1a1a !important;
            margin-bottom: 28px !important;
        }

        .desktop-article-wrapper .post-meta {
            font-size: 0.78rem !important;
            flex-direction: row-reverse;
            color: #71717a !important;
            gap: 6px !important;
        }

        .desktop-article-wrapper .author-img {
            width: 28px !important;
            height: 28px !important;
            border-radius: 50% !important;
        }

        .desktop-article-wrapper .author-name {
            font-weight: 600 !important;
            color: #374151 !important;
            font-size: 0.78rem !important;
        }

        .desktop-article-wrapper .meta-separator {
            display: inline-block !important;
            width: 4px !important;
            height: 4px !important;
            background-color: #9ca3af !important;
            border-radius: 50% !important;
            margin: 0 4px !important;
        }

        .desktop-article-wrapper .article-content {
            order: 3 !important;
            font-size: 0.92rem !important;
            line-height: 1.85 !important;
            color: #4b5563 !important;
            text-align: right;
        }

            .desktop-article-wrapper .article-content h2 {
                font-size: 1.05rem !important;
                font-weight: 800 !important;
                color: #111827 !important;
                margin-top: 20px !important;
                margin-bottom: 10px !important;
            }

            .desktop-article-wrapper .article-content p {
                margin-bottom: 14px !important;
            }


        .desktop-article-wrapper .related-posts-section {
            order: 4 !important;
            margin-top: 24px !important;
            border-top: 1px solid #E0E0E0;
            padding-top: 20px !important;
        }

        .desktop-article-wrapper .related-title {
            font-size: 1.05rem !important;
            font-weight: 800 !important;
            color: #111827 !important;
            margin-bottom: 16px !important;
        }

        .desktop-article-wrapper .blog-related-swiper {
            width: 100% !important;
            overflow: hidden !important;
        }

        .desktop-article-wrapper .related-card {
            display: block !important;
            text-decoration: none !important;
        }

        .desktop-article-wrapper .related-img-wrapper {
            width: 100% !important;
            border-radius: 12px !important;
            overflow: hidden !important;
            aspect-ratio: 16 / 10 !important;
            background-color: #f3f4f6;
            margin-bottom: 8px !important;
        }

        .desktop-article-wrapper .related-img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            display: block !important;
        }

        .desktop-article-wrapper .related-card-title {
            font-size: 0.82rem !important;
            font-weight: 700 !important;
            line-height: 1.5 !important;
            color: #374151 !important;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .desktop-article-wrapper .related-meta {
            display: none !important;

        }

        .desktop-article-wrapper .post-meta > .d-flex {
            flex-direction: row-reverse !important;
            gap: 8px !important; 
        }
}