/* =========================================================
   MASHARIB FAIZI — BLOG SYSTEM
========================================================= */

.mf-blog-system {
    width: 100%;
    box-sizing: border-box;

    --mf-blue: #2541F4;
    --mf-blue-dark: #1D35D5;
    --mf-navy: #0B1736;
    --mf-text: #17233D;
    --mf-muted: #69778C;
    --mf-light: #F5F8FF;
    --mf-border: #E3EAF5;
}


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

.mf-blog-tabs {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 38px;
}

.mf-blog-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 25px;

    border: 1px solid var(--mf-border);
    border-radius: 50px;

    background: #ffffff;
    color: var(--mf-text);

    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.mf-blog-tab:hover {
    color: var(--mf-blue);
    border-color: rgba(37, 65, 244, .35);

    transform: translateY(-1px);
}

.mf-blog-tab.active {
    background: var(--mf-blue);
    border-color: var(--mf-blue);

    color: #ffffff;

    box-shadow: 0 7px 18px rgba(37, 65, 244, .16);
}


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

.mf-blog-grid {
    width: 100%;

    display: grid;

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

    gap: 26px;

    align-items: stretch;
}


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

.mf-blog-card {
    position: relative;

    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--mf-border);
    border-radius: 18px;

    box-shadow:
        0 7px 24px rgba(11, 23, 54, .055);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

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

    border-color: rgba(37, 65, 244, .20);

    box-shadow:
        0 18px 42px rgba(37, 65, 244, .12);
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.mf-blog-image {
    position: relative;

    display: block;

    width: 100%;
    height: 190px;

    flex: 0 0 190px;

    overflow: hidden;

    background: var(--mf-light);

    text-decoration: none;
}

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

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2, .65, .3, 1);
}

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


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

.mf-blog-placeholder {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(109, 158, 255, .45),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0B1736 0%,
            #2541F4 100%
        );

    color: #ffffff;

    font-family: "Inter", sans-serif;

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

    letter-spacing: 1.2px;
}


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

.mf-blog-content {
    position: relative;

    flex: 1 1 auto;

    display: flex;
    flex-direction: column;

    min-height: 230px;

    padding: 18px 20px 24px;

    box-sizing: border-box;
}


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

.mf-blog-category {
    position: relative;

    z-index: 3;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin: 0 0 11px;

    padding: 6px 11px;

    border-radius: 50px;

    background: #EAF0FF;

    color: var(--mf-blue);

    font-family: "Inter", sans-serif;

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

    line-height: 1;

    letter-spacing: .15px;

    text-transform: uppercase;
}


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

.mf-blog-title {
    position: relative;

    z-index: 3;

    margin: 0 0 10px;

    max-width: 90%;

    flex: 0 0 auto;
}

.mf-blog-title a {
    display: block;

    color: var(--mf-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

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

    line-height: 1.24;

    text-decoration: none;

    transition: color .25s ease;
}

.mf-blog-title a:hover {
    color: var(--mf-blue);
}


/* =========================================================
   EXCERPT
========================================================= */

.mf-blog-excerpt {
    position: relative;

    z-index: 3;

    max-width: 92%;

    margin: 0 0 14px;

    color: var(--mf-muted);

    font-family: "Inter", sans-serif;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.6;

    flex: 0 0 auto;
}


/* =========================================================
   META
========================================================= */

.mf-blog-meta {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    margin: 0;

    padding: 0;

    color: #7C899A;

    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.4;

    flex: 0 0 auto;
}

.mf-blog-author {
    color: var(--mf-text);

    font-weight: 600;
}

.mf-blog-dot {
    color: #B8C1CE;
}


/* =========================================================
   READ ARTICLE
   FLEX BOTTOM ALIGNMENT
========================================================= */

.mf-blog-read-more {
    position: relative;

    z-index: 4;

    display: inline-flex;

    align-items: center;

    width: fit-content;

    gap: 6px;

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

    color: var(--mf-blue);

    font-family: "Inter", sans-serif;

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

    line-height: 1;

    text-decoration: none;

    flex: 0 0 auto;

    transition:
        color .25s ease,
        gap .25s ease;
}

.mf-blog-read-more:hover {
    color: var(--mf-blue-dark);

    gap: 10px;
}

.mf-blog-arrow {
    display: inline-block;

    font-size: 14px;

    line-height: 1;
}


/* =========================================================
   LARGE CARD NUMBER
========================================================= */

.mf-blog-number {
    position: absolute;

    right: 8px;
    bottom: 3px;

    z-index: 1;

    color: rgba(37, 65, 244, .055);

    font-family: "Inter", sans-serif;

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

    line-height: .9;

    letter-spacing: -3px;

    pointer-events: none;

    user-select: none;
}


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

.mf-blog-pagination {
    width: 100%;

    margin-top: 42px;

    text-align: center;
}

.mf-blog-pagination ul {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mf-blog-pagination li {
    margin: 0;
    padding: 0;
}

.mf-blog-pagination a,
.mf-blog-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid var(--mf-border);

    border-radius: 10px;

    background: #ffffff;

    color: var(--mf-text);

    font-family: "Inter", sans-serif;

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

    text-decoration: none;

    transition: all .25s ease;
}

.mf-blog-pagination a:hover {
    background: var(--mf-blue);

    border-color: var(--mf-blue);

    color: #ffffff;
}

.mf-blog-pagination .current {
    background: var(--mf-blue);

    border-color: var(--mf-blue);

    color: #ffffff;

    box-shadow:
        0 7px 18px rgba(37, 65, 244, .16);
}


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

.mf-blog-empty {
    padding: 60px 25px;

    text-align: center;

    border: 1px dashed var(--mf-border);

    border-radius: 18px;

    background: #ffffff;
}

.mf-blog-empty h3 {
    margin: 0 0 8px;

    color: var(--mf-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;
}

.mf-blog-empty p {
    margin: 0;

    color: var(--mf-muted);

    font-family: "Inter", sans-serif;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

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

        gap: 22px;
    }

    .mf-blog-image {
        height: 190px;

        flex-basis: 190px;
    }

    .mf-blog-title a {
        font-size: 23px;
    }

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

    .mf-blog-read-more {
        font-size: 15px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .mf-blog-tabs {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding: 2px 2px 8px;

        scrollbar-width: none;
    }

    .mf-blog-tabs::-webkit-scrollbar {
        display: none;
    }

    .mf-blog-tab {
        flex: 0 0 auto;
    }


    /* Grid */

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

        gap: 20px;
    }


    /* Card */

    .mf-blog-card {
        height: auto;

        min-height: 0;
    }


    /* Image */

    .mf-blog-image {
        height: 205px;

        flex-basis: 205px;
    }


    /* Content */

    .mf-blog-content {
        min-height: 215px;

        padding: 18px 18px 24px;
    }


    /* Category */

    .mf-blog-category {
        font-size: 11px;
    }


    /* Title */

    .mf-blog-title {
        max-width: 94%;
    }

    .mf-blog-title a {
        font-size: 20px;

        line-height: 1.25;
    }


    /* Excerpt */

    .mf-blog-excerpt {
        max-width: 95%;

        font-size: 12px;

        line-height: 1.6;
    }


    /* Meta */

    .mf-blog-meta {
        font-size: 9px;

        gap: 4px;
    }


    /* Read More */

    .mf-blog-read-more {
        position: relative;

        left: auto;
        bottom: auto;

        margin-top: auto;

        padding-top: 16px;

        font-size: 14px;
    }


    /* Number */

    .mf-blog-number {
        right: 8px;
        bottom: 3px;

        font-size: 58px;
    }


    /* Pagination */

    .mf-blog-pagination {
        margin-top: 32px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .mf-blog-image {
        height: 190px;

        flex-basis: 190px;
    }

    .mf-blog-content {
        min-height: 215px;

        padding: 18px 18px 24px;
    }

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

    .mf-blog-excerpt {
        font-size: 12px;
    }

    .mf-blog-read-more {
        padding-top: 16px;

        font-size: 14px;
    }

    .mf-blog-number {
        font-size: 55px;
    }
}