﻿@media (min-width: 1400px) {
    .container-index {
        max-width: 100vw;
        --bs-gutter-x: 0;
    }
}

/*==========================
    BLOG SIDEBAR
==========================*/

.blog-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-item {
    position: relative;
    
    border: 1px solid rgba(109,40,217,.12);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 28px;
    transition: .35s;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30,20,60,.05);
}

    .sidebar-item:hover {
        border-color: #7c3aed;
        box-shadow: 0 25px 70px rgba(109,40,217,.12);
    }

    .sidebar-item::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 5px;
        height: 70px;
        border-radius: 30px;
        background: linear-gradient(to bottom,#a855f7,#6d28d9);
    }

    .sidebar-item h5 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 22px;
        padding-right: 18px;
        position: relative;
    }

        .sidebar-item h5::after {
            content: "";
            position: absolute;
            right: 0;
            top: 35%;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #8b5cf6;
            transform: translateY(-50%);
        }

.search-wrapper {
    position: relative;
}

    .search-wrapper input {
        height: 58px;
        border-radius: 16px;
        border: 1px solid #ece7ff;
        background: #faf9ff;
        padding-right: 20px;
        padding-left: 60px;
        transition: .3s;
    }

        .search-wrapper input:focus {
            border-color: #7c3aed;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(124,58,237,.12);
        }

#searchBtn {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #6d28d9;
    color: #fff;
    transition: .3s;
}

    #searchBtn:hover {
        background: #8b5cf6;
        transform: scale(1.05);
    }


.category-file {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .category-file li {
        margin-bottom: 12px;
    }

        .category-file li:last-child {
            margin-bottom: 0;
        }

    .category-file a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 18px;
        border-radius: 16px;
        text-decoration: none;
        transition: .3s;
        border: 1px solid transparent;
        background: #faf9ff;
    }

        .category-file a:hover {
            background: #fff;
            border-color: #7c3aed;
            transform: translateX(-5px);
        }

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 600;
}

    .category-title i {
        color: #7c3aed;
        font-size: 17px;
    }

.number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109,40,217,.08);
    color: #6d28d9;
    font-weight: 700;
    transition: .3s;
}

.category-file a:hover .number {
    background: #6d28d9;
    color: #fff;
}

.recent-post {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recent-post__item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

    .recent-post__item:last-child {
        border: none;
        padding-bottom: 0;
    }

    .recent-post__item img {
        width: 82px;
        height: 82px;
        border-radius: 14px;
        object-fit: cover;
        transition: .35s;
    }

    .recent-post__item:hover img {
        transform: scale(1.08);
    }

    .recent-post__item .date {
        color: #8b5cf6;
        font-size: 13px;
        margin-bottom: 6px;
    }

    .recent-post__item h6 {
        margin: 0;
        font-size: 16px;
        line-height: 1.7;
    }

    .recent-post__item a {
        color: #222;
        transition: .3s;
    }

    .recent-post__item:hover a {
        color: #6d28d9;
    }

@media(max-width:991px) {

    .blog-sidebar {
        position: static;
    }

    .sidebar-item {
        padding: 22px;
    }
}

.sidebar-item .recent-post__item h6 a {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 10px;
    color: hsla(0, 0.8%, 74.3%, 0.9);
}
.search-dropdown {
    position: inherit;
}

/*.blog-sidebar {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 120px !important;
    align-self: flex-start !important;
    z-index: 100 !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    overflow: visible !important;
    contain: none !important;
    height: fit-content !important;
    max-height: calc(100vh - 140px);
}
.blog-section,
.blog-section > .container,
.blog-section .row,
.blog-sidebar {
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
}*/
/*.blog-sidebar {
    position: relative;
    transition: .25s ease;
    will-change: transform;
    margin-top: -125px;
}

@media(max-width:991px) {
    .blog-sidebar {
        position: static !important;
        transform: none !important;
    }
}*/
/*
.blog-sidebar {
    width: 100%;
}

    .blog-sidebar.fixed {
        position: fixed;
        top: 120px;
        z-index: 100;
    }

    .blog-sidebar.bottom {
        position: absolute;
        top: auto;
    }

*/
/*
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #121212;
    border: 1px solid rgba(140,82,255,.12);
    transition: .35s;
}
    .blog-card:hover {
        transform: translateY(-8px);
        border-color: #8c52ff;
        box-shadow: 0 20px 45px rgba(140,82,255,.18);
    }
    .blog-card figure {
        margin: 0;
        height: 240px;
        overflow: hidden;
    }
        .blog-card figure img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: .5s;
        }
    .blog-card:hover figure img {
        transform: scale(1.08);
    }
.blog-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
    .blog-content h4 {
        margin: 0;
        line-height: 1.9;
        font-size: 20px;
        font-weight: 700;
    }
.blog-card:hover h4 a {
    color: #b18cff;
}
.blog-content h4 a {
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: .3s;
}
.blog-date {
    padding: 18px 22px 0;
    color: #8b8b8b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-type {
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    background: rgba(140,82,255,.15);
    color: #b18cff;
    border: 1px solid rgba(140,82,255,.25);
}
.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px 22px 0;
}
.blog-grid-item {
    height: 100%;
}
.bar-icon2 {
    display: none;
}
@media(max-width:768px) {

    .blog-card figure {
        height: 200px;
    }

    .blog-content {
        padding: 18px;
    }

        .blog-content h4 {
            font-size: 17px;
        }
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #131318;
    border: 1px solid rgba(138,92,246,.12);
    border-radius: 22px;
    overflow: hidden;
    transition: .35s;
}

    .blog-card:hover {
        transform: translateY(-8px);
        border-color: #8a5cf6;
        box-shadow: 0 20px 45px rgba(138,92,246,.18);
    }

.blog-image {
    display: block;
    height: 250px;
    overflow: hidden;
}

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .5s;
    }

.blog-card:hover img {
    transform: scale(1.08);
}

.blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.post-type {
    background: rgba(138,92,246,.12);
    color: #b89cff;
    padding: 7px 15px;
    border-radius: 40px;
    font-size: 12px;
}

.blog-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.8;
    font-weight: 700;
}

    .blog-title a {
        color: #fff;
        text-decoration: none;
        transition: .3s;
    }

.blog-card:hover .blog-title a {
    color: #b89cff;
}

.blog-summary {
    margin: 18px 0 30px;
    color: #9f9f9f;
    line-height: 2.2;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 18px;
}

.blog-date {
    color: #7d7d7d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more {
    color: #8a5cf6;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .3s;
}

.blog-card:hover .read-more {
    transform: translateX(-6px);
}*/

/*.col-lg-4 {
    display: flex;
    flex-direction: column;
}
.blog-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}*/


/* Article Breadcrumb Header */

.blog-details-breadcrumb {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
  /*  background: radial-gradient(circle at top right, rgba(99,102,241,.18), transparent 35%), radial-gradient(circle at bottom left, rgba(14,165,233,.15), transparent 35%), #0f172a;*/
}


 /*   .blog-details-breadcrumb::before {
        content: "";
        position: absolute;
        width: 450px;
        height: 450px;
        background: rgba(255,255,255,.04);
        border-radius: 50%;
        top: -250px;
        right: -150px;
        filter: blur(20px);
    }*/


    .blog-details-breadcrumb .breadcrumb__wrapper {
        position: relative;
        z-index: 2;
        text-align: center;
    }


    /* دسته بندی ها */

    .blog-details-breadcrumb .breadcrumb__postType {
        display: inline-block;
        margin: 0 5px 20px;
    }


        .blog-details-breadcrumb .breadcrumb__postType .btn {
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.15);
            backdrop-filter: blur(10px);
            transition: .3s ease;
        }


            .blog-details-breadcrumb .breadcrumb__postType .btn:hover {
                background: #fff;
                color: #111;
                transform: translateY(-3px);
            }



    /* عنوان مقاله */

    .blog-details-breadcrumb .breadcrumb__title {
        color: #fff;
        font-size: clamp(30px,4vw,48px);
        line-height: 1.6;
        font-weight: 800;
        margin: 20px auto 30px;
        max-width: 900px;
    }



    /* اطلاعات پایین عنوان */

    .blog-details-breadcrumb .breadcrumb__date {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        padding: 0;
        margin: 0;
        list-style: none;
    }


        .blog-details-breadcrumb .breadcrumb__date li {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            border-radius: 50px;
            color: rgba(255,255,255,.8);
            font-size: 14px;
            background: rgba(255,255,255,.06);
            border: 1px solid rgba(255,255,255,.1);
            backdrop-filter: blur(10px);
        }



            /* جداکننده بین اطلاعات */

          /*  .blog-details-breadcrumb .breadcrumb__date li:not(:last-child)::after {
                content: "";
                width: 5px;
                height: 5px;
                background: rgba(255,255,255,.4);
                border-radius: 50%;
                position: absolute;
                right: -10px;
            }*/



/* موبایل */

@media(max-width:768px) {

    .blog-details-breadcrumb {
        padding: 60px 0;
    }


        .blog-details-breadcrumb .breadcrumb__title {
            font-size: 28px;
            line-height: 1.7;
        }


        .blog-details-breadcrumb .breadcrumb__date {
            flex-direction: column;
        }


            .blog-details-breadcrumb .breadcrumb__date li {
                width: 100%;
                justify-content: center;
            }


                .blog-details-breadcrumb .breadcrumb__date li::after {
                    display: none;
                }
}