/* =========================================================
   WEBLINKUS
   ARABIC BLOG
   PREMIUM BLOG DESIGN
========================================================= */

.blog-page {
    direction: rtl;
    text-align: right;
}


/* =========================================================
   HERO
========================================================= */

.blog-hero {
    padding: 55px 0;
    background: linear-gradient(
        135deg,
        #053666 0%,
        #0b4775 55%,
        #16425b 100%
    );
    border-bottom: 1px solid #0f23ab;
}

.blog-hero-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;
    padding: 7px 15px;

    background: #d10024;
    color: #fff;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;
}

.blog-hero h1 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 38px;
    line-height: 1.4;
    font-weight: 800;
}

.blog-hero p {
    max-width: 700px;
    margin: 0 auto;

    color: #f1eded;

    font-size: 17px;
    line-height: 1.9;
}


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

.blog-section {
    padding: 60px 0 80px;
}


/* =========================================================
   BLOG GRID
   DESKTOP = 4
========================================================= */

.blog-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 25px;

    width: 100%;
}


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

.blog-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.09);
}


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

.blog-card-image {
    position: relative;

    width: 100%;
    height: 210px;

    overflow: hidden;

    background: #f4f4f4;
}

.blog-card-image a {
    display: block;

    width: 100%;
    height: 100%;
}

.blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

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


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #f5f5f5;

    color: #cccccc;

    font-size: 42px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;
}


/* =========================================================
   CATEGORY
========================================================= */

.blog-card-category {
    margin-bottom: 7px;
}

.blog-card-category a {
    display: inline-block;

    color: #d10024;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.3s ease;
}

.blog-card-category a:hover {
    color: #a8001c;
}


/* =========================================================
   DATE
========================================================= */

.blog-meta {
    margin-bottom: 10px;

    color: #888;

    font-size: 12px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}

.blog-meta i {
    color: #d10024;
}


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

.blog-card-title {
    margin: 0 0 10px;

    font-size: 19px;
    line-height: 1.6;
    font-weight: 700;
}

.blog-card-title a {
    color: #222;

    text-decoration: none;

    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #d10024;
}


/* =========================================================
   EXCERPT
   TWO LINES
========================================================= */

.blog-card-excerpt {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    min-height: 50px;

    margin: 0 0 18px;

    color: #666;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   READ MORE
========================================================= */

.blog-read-more {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #eeeeee;

    color: #d10024;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #a8001c;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(-4px);
}


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

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    margin-top: 50px;

    direction: rtl;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    margin: 0 4px;

    padding: 0 10px;

    border: 1px solid #e5e5e5;
    border-radius: 6px;

    background: #fff;

    color: #333;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #d10024;

    border-color: #d10024;

    color: #fff;
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;

    background: transparent;

    color: #777;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    padding: 0 15px;
}


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

.blog-empty {
    padding: 80px 20px;

    text-align: center;
}

.blog-empty > i {
    display: block;

    margin-bottom: 20px;

    color: #d10024;

    font-size: 50px;
}

.blog-empty h2 {
    margin: 0 0 10px;

    color: #222;

    font-size: 26px;
}

.blog-empty p {
    margin: 0;

    color: #777;

    font-size: 15px;
}


/* =========================================================
   TABLET
   2 ARTICLES PER ROW
========================================================= */

@media (max-width: 991px) {

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

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

    .blog-hero h1 {
        font-size: 34px;
    }

}


/* =========================================================
   MOBILE
   1 ARTICLE PER ROW
========================================================= */

@media (max-width: 575px) {

    .blog-hero {
        padding: 40px 15px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-hero p {
        font-size: 15px;
        line-height: 1.8;
    }

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

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

        gap: 20px;
    }

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

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

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

    .blog-card-excerpt {
        font-size: 14px;
    }

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

    .blog-pagination .page-numbers {
        min-width: 38px;
        height: 38px;

        margin: 3px;
    }

}