/* ==================================================
   MUSLIM PATH ACADEMY BLOG
   Matches About / Teachers / Free Trial visual language
   ================================================== */

.mpa-blog-page{
    --mpa-navy:#08284c;
    --mpa-blue:#01478d;
    --mpa-gold:#fdb002;
    --mpa-text:#24384b;
    --mpa-muted:#66798a;
    --mpa-border:#dce5ec;
    --mpa-soft:#f6f8fa;

    background:#fff;
    color:var(--mpa-text);
}

.mpa-blog-page *,
.mpa-blog-page *::before,
.mpa-blog-page *::after{
    box-sizing:border-box;
}

.mpa-blog-container{
    width:min(1180px, calc(100% - 36px));
    margin-inline:auto;
}


/* ==================================================
   PROFILE
   ================================================== */

.mpa-blog-profile{
    padding:30px 0 54px;
    background:#fff;
}

.mpa-blog-cover{
    position:relative;
    width:100%;
    height:360px;
    overflow:hidden;
    border-radius:14px;
    background:#eef3f7;
}

.mpa-blog-cover img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.mpa-blog-profile__mark{
    position:relative;
    z-index:2;
    width:92px;
    height:92px;
    margin-top:-46px;
    margin-inline-start:34px;
    overflow:hidden;
    border:0;
    border-radius:50%;
    background:transparent;
    box-shadow:none;
    margin-left:auto;
    margin-right:auto;
    padding:0;
}

.mpa-blog-profile__mark img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.mpa-blog-profile__intro{
    max-width:790px;
    padding:25px 34px 0;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

.mpa-blog-eyebrow{
    display:block;
    margin:0 0 12px;
    color:var(--mpa-blue);
    font-size:10px;
    font-weight:750;
    line-height:1.3;
    letter-spacing:.09em;
    text-transform:uppercase;
    text-align:center;
}

.mpa-blog-profile__intro h1{
    margin:0;
    color:var(--mpa-navy);
    font-size:clamp(2.65rem, 5vw, 4.2rem);
    font-weight:730;
    line-height:1.02;
    letter-spacing:-.05em;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

html[dir="rtl"]
.mpa-blog-profile__intro h1{
    letter-spacing:0;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

.mpa-blog-profile__intro p{
    max-width:760px;
    margin:19px 0 0;
    color:var(--mpa-muted);
    font-size:14px;
    line-height:1.9;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}


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

.mpa-blog-categories{
    border-top:1px solid #edf1f4;
    border-bottom:1px solid #edf1f4;
    background:#fff;
}

.mpa-blog-categories__inner{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:68px;
    overflow-x:auto;
    scrollbar-width:none;
}

.mpa-blog-categories__inner::-webkit-scrollbar{
    display:none;
}

.mpa-blog-categories a{
    flex:0 0 auto;
    padding:9px 14px;
    border-radius:8px;
    color:#5e7182;
    font-size:10.5px;
    font-weight:750;
    line-height:1;
    text-decoration:none;
}

.mpa-blog-categories a:hover{
    color:var(--mpa-blue);
    background:#f3f7fa;
}

.mpa-blog-categories a.is-current{
    color:#fff;
    background:var(--mpa-blue);
}


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

.mpa-blog-content{
    padding:60px 0 82px;
}

.mpa-blog-section-title{
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:22px;
}

.mpa-blog-section-title span{
    color:var(--mpa-blue);
    font-size:10px;
    font-weight:750;
    line-height:1;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.mpa-blog-section-title::after{
    content:"";
    flex:1 1 auto;
    height:1px;
    background:#e6edf2;
}

.mpa-blog-section-title--latest{
    margin-top:58px;
}


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

.mpa-blog-featured{
    display:grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(360px, .95fr);
    overflow:hidden;
    border:1px solid var(--mpa-border);
    border-radius:14px;
    background:#fff;
}

.mpa-blog-featured__image{
    position:relative;
    min-height:400px;
    overflow:hidden;
    background:#eef3f7;
}

.mpa-blog-featured__image > img{
    display:block;
    width:100%;
    height:100%;
    min-height:400px;
    object-fit:cover;
}

.mpa-blog-featured__body{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:38px 40px;
}

.mpa-blog-category-label{
    display:block;
    margin-bottom:12px;
    color:var(--mpa-blue);
    font-size:9.5px;
    font-weight:700;
    line-height:1.3;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.mpa-blog-featured h2{
    margin:0;
    font-size:clamp(1.8rem, 3vw, 2.55rem);
    font-weight:710;
    line-height:1.13;
    letter-spacing:-.03em;
}

html[dir="rtl"]
.mpa-blog-featured h2{
    letter-spacing:0;
}

.mpa-blog-featured h2 a{
    color:var(--mpa-navy);
    text-decoration:none;
}

.mpa-blog-featured__body > p{
    margin:17px 0 0;
    color:var(--mpa-muted);
    font-size:13.5px;
    line-height:1.9;
}


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

.mpa-blog-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin-top:20px;
    color:#7b8b99;
    font-size:9.5px;
    font-weight:650;
    line-height:1.4;
}

.mpa-blog-read{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    min-height:38px;
    margin-top:23px;
    padding:10px 16px;
    border:1px solid var(--mpa-blue);
    border-radius:8px;
    color:var(--mpa-blue);
    background:#fff;
    font-size:10.5px;
    font-weight:750;
    line-height:1;
    text-decoration:none;
}

.mpa-blog-read:hover{
    color:#fff;
    background:var(--mpa-blue);
}


/* ==================================================
   ARTICLE GRID
   ================================================== */

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

.mpa-blog-card{
    overflow:hidden;
    border:1px solid var(--mpa-border);
    border-radius:12px;
    background:#fff;
}

.mpa-blog-card__image{
    position:relative;
    display:block;
    aspect-ratio:16 / 10;
    overflow:hidden;
    background:#eef3f7;
}

.mpa-blog-card__image > img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.mpa-blog-card__body{
    padding:22px;
}

.mpa-blog-card h2{
    margin:0;
    font-size:18px;
    font-weight:710;
    line-height:1.35;
    letter-spacing:-.02em;
}

html[dir="rtl"]
.mpa-blog-card h2{
    letter-spacing:0;
}

.mpa-blog-card h2 a{
    color:var(--mpa-navy);
    text-decoration:none;
}

.mpa-blog-card__body > p{
    margin:12px 0 0;
    color:var(--mpa-muted);
    font-size:12px;
    line-height:1.75;
}


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

.mpa-blog-image-placeholder{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f4f7f9;
}

.mpa-blog-image-placeholder img{
    width:64px;
    height:64px;
    object-fit:contain;
    opacity:.85;
}


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

.mpa-blog-empty{
    max-width:620px;
    margin:20px auto;
    padding:56px 30px;
    border:1px solid var(--mpa-border);
    border-radius:12px;
    background:#fff;
    text-align:center;
}

.mpa-blog-empty img{
    width:58px;
    height:58px;
    object-fit:contain;
    margin-bottom:18px;
}

.mpa-blog-empty h2{
    margin:0;
    color:var(--mpa-navy);
    font-size:24px;
    font-weight:730;
}

.mpa-blog-empty p{
    margin:12px auto 0;
    max-width:480px;
    color:var(--mpa-muted);
    font-size:13px;
    line-height:1.8;
}


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

.mpa-blog-pagination{
    margin-top:44px;
}

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

.mpa-blog-pagination a,
.mpa-blog-pagination span{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    height:36px;
    padding:0 9px;
    border:1px solid var(--mpa-border);
    border-radius:7px;
    color:#607486;
    background:#fff;
    font-size:10px;
    font-weight:750;
    text-decoration:none;
}

.mpa-blog-pagination .current{
    border-color:var(--mpa-blue);
    color:#fff;
    background:var(--mpa-blue);
}


/* ==================================================
   CLOSING CTA
   ================================================== */

.mpa-blog-closing{
    padding:0 0 80px;
    background:#fff;
}

.mpa-blog-closing__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:34px;
    padding:36px 40px;
    border:1px solid var(--mpa-border);
    border-radius:14px;
    background:#f7f9fb;
}

.mpa-blog-closing h2{
    margin:0;
    color:var(--mpa-navy);
    font-size:clamp(1.7rem, 3vw, 2.35rem);
    font-weight:720;
    line-height:1.08;
    letter-spacing:-.03em;
}

html[dir="rtl"]
.mpa-blog-closing h2{
    letter-spacing:0;
}

.mpa-blog-closing p{
    margin:11px 0 0;
    color:var(--mpa-muted);
    font-size:13px;
    line-height:1.8;
}

.mpa-blog-btn{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:11px 18px;
    border:1px solid var(--mpa-blue);
    border-radius:8px;
    color:#fff;
    background:var(--mpa-blue);
    font-size:10.5px;
    font-weight:750;
    line-height:1;
    text-decoration:none;
}

.mpa-blog-btn:hover{
    color:var(--mpa-navy);
    border-color:var(--mpa-gold);
    background:var(--mpa-gold);
}


/* ==================================================
   DARK MODE
   ================================================== */

html.mpa-dark .mpa-blog-page,
html.mpa-dark .mpa-blog-profile,
html.mpa-dark .mpa-blog-categories,
html.mpa-dark .mpa-blog-content,
html.mpa-dark .mpa-blog-closing{
    background:#101c28;
}

html.mpa-dark .mpa-blog-profile__mark{
    border-color:#101c28;
    background:transparent;
    border:0;
    box-shadow:none;
    margin-left:auto;
    margin-right:auto;
    padding:0;
}

html.mpa-dark .mpa-blog-profile__intro h1,
html.mpa-dark .mpa-blog-featured h2 a,
html.mpa-dark .mpa-blog-card h2 a,
html.mpa-dark .mpa-blog-empty h2,
html.mpa-dark .mpa-blog-closing h2{
    color:#f2f6f9;
}

html.mpa-dark .mpa-blog-featured,
html.mpa-dark .mpa-blog-card,
html.mpa-dark .mpa-blog-empty{
    border-color:rgba(255,255,255,.1);
    background:#142331;
}

html.mpa-dark .mpa-blog-closing__inner{
    border-color:rgba(255,255,255,.1);
    background:#142331;
}

html.mpa-dark .mpa-blog-categories{
    border-color:rgba(255,255,255,.08);
}

html.mpa-dark .mpa-blog-categories a{
    color:#b9c7d2;
}

html.mpa-dark .mpa-blog-read{
    background:transparent;
}


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

@media(max-width:960px){

    .mpa-blog-cover{
        height:300px;
    }

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

    .mpa-blog-featured__image{
        min-height:330px;
    }

    .mpa-blog-featured__image > img{
        min-height:330px;
    }

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

}


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

@media(max-width:680px){

    .mpa-blog-container{
        width:min(100% - 24px, 1180px);
    }

    .mpa-blog-profile{
        padding-top:18px;
        padding-bottom:38px;
    }

    .mpa-blog-cover{
        height:210px;
        border-radius:10px;
    }

    .mpa-blog-profile__mark{
        width:74px;
        height:74px;
        margin-top:-37px;
        margin-inline-start:18px;
        border-width:4px;
        background:transparent;
    border:0;
    box-shadow:none;
    margin-left:auto;
    margin-right:auto;
    padding:0;
}

    .mpa-blog-profile__intro{
        padding:20px 18px 0;
        text-align:center;
    margin-left:auto;
    margin-right:auto;
}

    .mpa-blog-profile__intro h1{
        font-size:2.08rem;
        line-height:1.08;
        text-align:center;
    margin-left:auto;
    margin-right:auto;
}

    .mpa-blog-profile__intro p{
        font-size:11px;
        line-height:1.75;
        text-align:center;
    margin-left:auto;
    margin-right:auto;
}

    .mpa-blog-categories__inner{
        min-height:58px;
    }

    .mpa-blog-content{
        padding:44px 0 60px;
    }

    .mpa-blog-featured{
        border-radius:10px;
    }

    .mpa-blog-featured__image,
    .mpa-blog-featured__image > img{
        min-height:0;
        aspect-ratio:16 / 10;
    }

    .mpa-blog-featured__body{
        padding:24px 20px;
    }

    .mpa-blog-featured h2{
        font-size:1.72rem;
    }

    .mpa-blog-featured__body > p{
        font-size:11.5px;
        line-height:1.8;
    }

    .mpa-blog-section-title--latest{
        margin-top:44px;
    }

    .mpa-blog-grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .mpa-blog-card{
        border-radius:10px;
    }

    .mpa-blog-card__body{
        padding:19px;
    }

    .mpa-blog-card h2{
        font-size:1.25rem;
    }

    .mpa-blog-card__body > p{
        font-size:11px;
    }

    .mpa-blog-closing{
        padding-bottom:60px;
    }

    .mpa-blog-closing__inner{
        flex-direction:column;
        align-items:flex-start;
        padding:27px 22px;
        border-radius:10px;
    }

    .mpa-blog-btn{
        width:100%;
    }

}
