
    /* =========================================
       BLOG
    ========================================= */

.blog {
    padding: 55px 0 80px;
    direction: rtl;
}


/* =========================================
   HEADER
========================================= */

.blog-header {
    margin-bottom: 35px;
}

.blog-header-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #f3f6f8;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.blog-header h1 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 32px;
    font-weight: 800;
}

.blog-header p {
    margin: 0;
    color: #777;
    font-size: 15px;
}


/* =========================================
   FEATURED POST
========================================= */

.blog-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 390px;
    margin-bottom: 55px;
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .055);
}

.blog-featured-image {
    position: relative;
    display: block;
    min-height: 390px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-featured:hover .blog-featured-image img {
    transform: scale(1.04);
}

.blog-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: #888;
    font-size: 12px;
}

.blog-meta a,
.blog-meta span:first-child {
    color: #555;
    font-weight: 600;
}

.blog-meta-separator {
    color: #ccc;
}

.blog-featured-content h2 {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.65;
    font-weight: 800;
}

.blog-featured-content h2 a {
    color: #171717;
    text-decoration: none;
    transition: color .25s ease;
}

.blog-featured-content h2 a:hover {
    color: #777;
}

.blog-featured-content p {
    margin: 0 0 25px;
    color: #777;
    font-size: 14px;
    line-height: 2.1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap .25s ease;
}

.blog-read-more:hover {
    gap: 14px;
    color: #555;
}


/* =========================================
   LAYOUT
========================================= */

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 35px;
    align-items: start;
}


/* =========================================
   SECTION TITLE
========================================= */

.blog-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.blog-section-title span {
    display: block;
    margin-bottom: 4px;
    color: #999;
    font-size: 12px;
}

.blog-section-title h2 {
    margin: 0;
    color: #171717;
    font-size: 22px;
    font-weight: 800;
}

.blog-title-line {
    flex: 1;
    height: 1px;
    background: #ededed;
}


/* =========================================
   BLOG GRID
========================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}


/* =========================================
   BLOG CARD
========================================= */

.blog-card {
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 17px;
    background: #fff;
    transition:
            transform .3s ease,
            box-shadow .3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);
}

.blog-card-image {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content .blog-meta {
    margin-bottom: 10px;
}

.blog-card-content h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 750;
}

.blog-card-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #202020;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: #777;
    font-size: 13px;
    line-height: 1.9;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.blog-card-link:hover {
    color: #777;
}


/* =========================================
   SIDEBAR
========================================= */

.blog-sidebar {
    position: sticky;
    top: 90px;
}

.blog-sidebar-box {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #e9e9e9;
    border-radius: 17px;
    background: #fff;
}

.blog-sidebar-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.blog-sidebar-title i {
    color: #555;
    font-size: 16px;
}

.blog-sidebar-title h3 {
    margin: 0;
    color: #222;
    font-size: 15px;
    font-weight: 750;
}


/* =========================================
   SEARCH
========================================= */

.blog-search {
    position: relative;
}

.blog-search input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 48px;
    border: 1px solid #e4e4e4;
    border-radius: 11px;
    outline: none;
    background: #fafafa;
    color: #222;
    font-family: inherit;
    font-size: 12px;
    transition: border-color .25s ease;
}

.blog-search input[type="search"]:focus {
    border-color: #aaa;
}

.blog-search button {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    cursor: pointer;
}


/* =========================================
   CATEGORIES
========================================= */

.blog-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-categories li {
    border-bottom: 1px solid #f1f1f1;
}

.blog-categories li:last-child {
    border-bottom: 0;
}

.blog-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: padding .2s ease;
}

.blog-categories a:hover {
    padding-right: 5px;
    color: #111;
}

.blog-categories small {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    padding: 0 6px;
    border-radius: 7px;
    background: #f5f5f5;
    color: #888;
    font-size: 10px;
}


/* =========================================
   SIDEBAR POSTS
========================================= */

.blog-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-sidebar-post {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.blog-sidebar-post-image {
    flex: 0 0 65px;
    width: 65px;
    height: 65px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f3f3;
}

.blog-sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-sidebar-post-image i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaa;
}

.blog-sidebar-post h4 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 5px;
    color: #333;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 700;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-sidebar-post span {
    color: #999;
    font-size: 10px;
}


/* =========================================
   NO IMAGE
========================================= */

.blog-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #f5f5f5;
    color: #bbb;
    font-size: 30px;
}


/* =========================================
   EMPTY
========================================= */

.blog-empty {
    grid-column: 1 / -1;
    padding: 70px 20px;
    border: 1px solid #eee;
    border-radius: 17px;
    text-align: center;
}

.blog-empty i {
    color: #bbb;
    font-size: 45px;
}

.blog-empty h3 {
    margin: 15px 0 7px;
    color: #333;
    font-size: 17px;
}

.blog-empty p {
    margin: 0;
    color: #999;
    font-size: 13px;
}


/* =========================================
   PAGINATION
========================================= */

.blog-pagination {
    margin-top: 35px;
    text-align: center;
}

.blog-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s ease;
}

.blog-pagination .current {
    border-color: #222;
    background: #222;
    color: #fff;
}

.blog-pagination a:hover {
    border-color: #222;
    background: #222;
    color: #fff;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .blog {
        padding: 40px 0 60px;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 300px;
    }

    .blog-featured-image img {
        min-height: 300px;
    }

    .blog-featured-content {
        padding: 30px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

}


@media (max-width: 767px) {

    .blog-header h1 {
        font-size: 25px;
    }

    .blog-header p {
        font-size: 13px;
        line-height: 1.9;
    }

    .blog-featured {
        border-radius: 15px;
    }

    .blog-featured-image {
        min-height: 230px;
    }

    .blog-featured-image img {
        min-height: 230px;
    }

    .blog-featured-content {
        padding: 22px;
    }

    .blog-featured-content h2 {
        font-size: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 210px;
    }

    .blog-section-title h2 {
        font-size: 19px;
    }

}


@media (max-width: 480px) {

    .blog-header {
        margin-bottom: 25px;
    }

    .blog-featured-content {
        padding: 18px;
    }

    .blog-featured-content h2 {
        font-size: 18px;
    }

    .blog-featured-content p {
        font-size: 12px;
    }

    .blog-sidebar-box {
        padding: 18px;
    }

}
