/* =========================================================
   BLOG PAGE HERO
========================================================= */

.blog-page-hero {
    position: relative;
    min-height: 330px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: linear-gradient(115deg, #071522 0%, #102a3b 55%, #173e51 100%);
}

/* Decorative circles */

.blog-page-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: -130px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);
}

.blog-page-hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -100px;
    bottom: -140px;

    border-radius: 50%;

    background: rgba(230, 57, 70, 0.12);
}

/* =========================================================
   HERO CONTENT
========================================================= */

.blog-hero-content {
    position: relative;
    z-index: 2;

    max-width: 850px;

    padding: 65px 0;
}

.blog-hero-badge {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 8px 15px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.blog-hero-badge i {
    color: #ff5967;
}

.blog-hero-content h1 {
    margin: 18px 0 14px;

    color: #ffffff;

    font-size: 50px;

    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -1px;
}

.blog-hero-content h1 span {
    color: #ff5967;
}

.blog-hero-content > p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 16px;

    line-height: 1.8;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.blog-breadcrumb {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 25px;
}

.blog-breadcrumb a,
.blog-breadcrumb strong {
    font-size: 13px;
}

.blog-breadcrumb a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: rgba(255, 255, 255, 0.72);

    text-decoration: none;

    transition: 0.25s ease;
}

.blog-breadcrumb a:hover {
    color: #ffffff;
}

.blog-breadcrumb span {
    color: rgba(255, 255, 255, 0.35);

    font-size: 10px;
}

.blog-breadcrumb strong {
    color: #ffffff;
}

/* =========================================================
   MAIN BLOG SECTION
========================================================= */

.modern-blog-section {
    padding: 80px 0;

    background: #f7f9fc;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.modern-blog-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 40px;
}

.modern-blog-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #e63946;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.modern-blog-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 36px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.7px;
}

.modern-blog-heading h2 span {
    color: #e63946;
}

.modern-blog-heading > p {
    max-width: 470px;

    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.8;
}

/* =========================================================
   BLOG GRID
   DESKTOP = 4 CARDS
========================================================= */

.modern-blog-grid {
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}

/* =========================================================
   BLOG CARD
========================================================= */

.modern-blog-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e8edf3;

    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.modern-blog-card:hover {
    transform: translateY(-7px);

    border-color: rgba(230, 57, 70, 0.25);

    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
}

/* =========================================================
   BLOG IMAGE
========================================================= */

.modern-blog-image {
    position: relative;

    height: 215px;

    overflow: hidden;

    background: #e9eef4;
}

.modern-blog-image > a {
    display: block;

    width: 100%;
    height: 100%;
}

.modern-blog-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}

.modern-blog-card:hover .modern-blog-image img {
    transform: scale(1.08);
}

/* =========================================================
   IMAGE DARK OVERLAY
========================================================= */

.modern-blog-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.25)
    );

    pointer-events: none;
}

/* =========================================================
   CATEGORY
========================================================= */

.modern-blog-category {
    position: absolute;

    left: 14px;
    bottom: 14px;

    z-index: 5;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 11px;

    border-radius: 6px;

    background: #e63946;

    color: #ffffff;

    font-size: 10px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 0.4px;

    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.28);
}

.modern-blog-category i {
    font-size: 9px;
}

/* =========================================================
   PLACEHOLDER
========================================================= */

.modern-blog-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #98a2b3;

    font-size: 40px;

    background: linear-gradient(135deg, #edf1f5, #dfe6ee);
}

/* =========================================================
   BLOG CONTENT
========================================================= */

.modern-blog-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 21px 20px 19px;
}

/* =========================================================
   META
========================================================= */

.modern-blog-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 12px;
}

.modern-blog-meta span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #98a2b3;

    font-size: 10px;

    font-weight: 600;
}

.modern-blog-meta i {
    color: #e63946;

    font-size: 10px;
}

/* =========================================================
   TITLE
========================================================= */

.modern-blog-content h3 {
    margin: 0 0 10px;

    min-height: 54px;

    font-size: 18px;

    line-height: 1.5;

    font-weight: 800;
}

.modern-blog-content h3 a {
    color: #101828;

    text-decoration: none;

    transition: color 0.25s ease;
}

.modern-blog-content h3 a:hover {
    color: #e63946;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.modern-blog-content > p {
    margin: 0;

    color: #667085;

    font-size: 12.5px;

    line-height: 1.7;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 64px;
}

/* =========================================================
   BOTTOM
========================================================= */

.modern-blog-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding-top: 17px;

    border-top: 1px solid #edf0f4;
}

/* =========================================================
   VIEWS
========================================================= */

.modern-blog-views {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #98a2b3;

    font-size: 11px;

    font-weight: 600;
}

.modern-blog-views i {
    color: #e63946;
}

.modern-blog-views span {
    color: #b0b7c3;

    font-size: 10px;
}

/* =========================================================
   READ MORE
========================================================= */

.modern-read-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #e63946;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.25s ease;
}

.modern-read-more span {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f2;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.modern-read-more:hover {
    color: #b91c2a;
}

.modern-read-more:hover span {
    background: #e63946;

    color: #ffffff;

    transform: translateX(3px);
}

/* =========================================================
   EMPTY STATE
========================================================= */

.modern-blog-empty {
    grid-column: 1 / -1;

    padding: 70px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e8edf3;

    border-radius: 20px;
}

.modern-empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0f2;

    color: #e63946;

    font-size: 27px;
}

.modern-blog-empty h3 {
    margin: 0 0 8px;

    color: #101828;

    font-size: 22px;

    font-weight: 800;
}

.modern-blog-empty p {
    margin: 0;

    color: #667085;

    font-size: 14px;
}

/* =========================================================
   PAGINATION
========================================================= */

.modern-blog-pagination {
    display: flex;

    justify-content: center;

    margin-top: 50px;
}

.modern-blog-pagination .pagination {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 7px;

    margin: 0;
}

.modern-blog-pagination .page-link {
    min-width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 11px;

    border: 1px solid #e4e7ec;

    border-radius: 9px !important;

    background: #ffffff;

    color: #344054;

    font-size: 12px;

    font-weight: 700;

    box-shadow: none;

    transition: 0.25s ease;
}

.modern-blog-pagination .page-link:hover {
    border-color: #e63946;

    background: #e63946;

    color: #ffffff;
}

.modern-blog-pagination .page-item.active .page-link {
    border-color: #e63946;

    background: #e63946;

    color: #ffffff;
}

/* =========================================================
   LARGE LAPTOP
========================================================= */

@media (max-width: 1199px) {
    .modern-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .modern-blog-image {
        height: 220px;
    }
}

/* =========================================================
   TABLET
   2 CARDS
========================================================= */

@media (max-width: 991px) {
    .blog-page-hero {
        min-height: 300px;
    }

    .blog-hero-content {
        padding: 55px 0;
    }

    .blog-hero-content h1 {
        font-size: 42px;
    }

    .modern-blog-section {
        padding: 20px;
    }

    .modern-blog-heading {
        align-items: flex-start;
        padding: 20px;
        flex-direction: column;

        gap: 15px;
    }

    .modern-blog-heading h2 {
        font-size: 32px;
    }

    .modern-blog-heading > p {
        max-width: 650px;
    }

    .modern-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }
}

/* =========================================================
   MOBILE
   1 CARD
========================================================= */

@media (max-width: 767px) {
    .blog-page-hero {
        min-height: 285px;
    }

    .blog-hero-content {
        padding: 50px 0;
    }

    .blog-hero-content h1 {
        font-size: 34px;

        letter-spacing: -0.5px;
    }

    .blog-hero-content > p {
        font-size: 14px;

        line-height: 1.7;
    }

    .blog-breadcrumb {
        margin-top: 20px;
    }

    .modern-blog-section {
        padding: 20px;
    }

    .modern-blog-heading {
        margin-bottom: 30px;
    }

    .modern-blog-heading h2 {
        font-size: 28px;
    }

    .modern-blog-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .modern-blog-image {
        height: 225px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .blog-hero-content {
        padding: 42px 0;
    }

    .blog-hero-badge {
        font-size: 9px;

        padding: 7px 12px;
    }

    .blog-hero-content h1 {
        margin-top: 15px;

        font-size: 29px;
    }

    .blog-hero-content > p {
        font-size: 13px;
    }

    .blog-breadcrumb a,
    .blog-breadcrumb strong {
        font-size: 11px;
    }

    .modern-blog-heading h2 {
        font-size: 25px;
    }

    .modern-blog-label {
        font-size: 10px;
    }

    .modern-blog-image {
        height: 210px;
    }

    .modern-blog-content {
        padding: 19px 17px;
    }

    .modern-blog-content h3 {
        min-height: auto;

        font-size: 18px;
    }

    .modern-blog-content > p {
        font-size: 12.5px;
    }
}
