/* =========================================================
   NOOR PRO ACADEMY — BLOG
   Clean stylesheet
   ========================================================= */

.blog-page{
    background:#f7faf9;
    min-height:100vh;
}

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

.blog-hero{
    position:relative;
    overflow:hidden;
    padding:78px 24px 78px;
    background:linear-gradient(135deg,#103f49 0%,#087f81 100%);
    color:#fff;
}

.blog-hero::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
    right:-180px;
    top:-180px;
}

.blog-hero-content{
    position:relative;
    z-index:2;
    width:min(1180px,100%);
    margin:0 auto;
}

.blog-label{
    display:inline-block;
    padding:7px 14px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:30px;
    background:rgba(255,255,255,.10);
    color:#fff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.8px;
}

.blog-hero h1{
    margin:22px 0 12px;
    color:#fff;
    font-size:56px;
    line-height:1.08;
    font-weight:800;
    letter-spacing:-1.5px;
}

.blog-hero h1 span{
    color:#61d3c4;
}

.blog-hero p{
    max-width:700px;
    margin:0;
    color:rgba(255,255,255,.88);
    font-size:17px;
    line-height:1.7;
}

.blog-search{
    position:relative;
    width:min(620px,100%);
    margin-top:30px;
}

.blog-search i{
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    color:#087f81;
    font-size:17px;
    z-index:2;
}

.blog-search input{
    width:100%;
    height:58px;
    box-sizing:border-box;
    padding:0 20px 0 52px;
    border:0;
    outline:0;
    border-radius:16px;
    background:#fff;
    color:#102b35;
    font-size:15px;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

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

.blog-content{
    width:min(1180px,calc(100% - 48px));
    margin:0 auto;
    padding:58px 0 90px;
}

.blog-heading{
    margin-bottom:28px;
}

.blog-heading > span,
.blog-heading span{
    display:block;
    margin-bottom:8px;
    color:#087f81;
    font-size:12px;
    font-weight:800;
    letter-spacing:1px;
}

.blog-heading h2{
    margin:0;
    color:#102b35;
    font-size:32px;
    line-height:1.2;
}

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

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
    width:100%;
}

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

.blog-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    min-height:500px;
    overflow:hidden;
    background:#fff;
    border:1px solid #dfeae8;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(16,43,53,.06);
    transition:transform .2s ease,box-shadow .2s ease;
}

.blog-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 35px rgba(16,43,53,.11);
}

/* =========================
   CARD IMAGE
   ========================= */

.blog-card-image{
    display:block;
    width:100%;
    height:215px;
    min-height:215px;
    overflow:hidden;
    background:linear-gradient(135deg,#103f49,#087f81);
    text-decoration:none;
}

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

.blog-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 25% 25%,rgba(79,174,123,.28),transparent 35%),
        linear-gradient(135deg,#103f49,#087f81);
}

.blog-placeholder i{
    width:72px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:20px;
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.20);
    color:#fff;
    font-size:28px;
}

/* =========================
   CARD BODY
   ========================= */

.blog-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:23px;
    background:#fff;
}

.blog-card-meta{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:12px;
    color:#71838a;
    font-size:12px;
}

.blog-card-meta i{
    color:#159a9c;
}

.blog-card h3{
    margin:0 0 11px;
    color:#102b35;
    font-size:21px;
    line-height:1.35;
}

.blog-card h3 a{
    color:#102b35;
    text-decoration:none;
}

.blog-card h3 a:hover{
    color:#087f81;
}

.blog-card p{
    margin:0 0 20px;
    color:#71838a;
    font-size:14px;
    line-height:1.7;
}

.blog-read-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:auto;
    color:#087f81;
    font-size:14px;
    font-weight:800;
    text-decoration:none;
}

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

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

.blog-empty{
    padding:70px 25px;
    text-align:center;
    background:#fff;
    border:1px solid #e3ece9;
    border-radius:20px;
}

.blog-empty i{
    margin-bottom:15px;
    color:#159a9c;
    font-size:42px;
}

.blog-empty h2{
    margin:0 0 8px;
    color:#102b35;
}

.blog-empty p{
    margin:0;
    color:#71838a;
}

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

.blog-post-page{
    min-height:100vh;
    padding:45px 20px 80px;
    background:#f7faf9;
}

.blog-article{
    width:min(900px,100%);
    margin:0 auto;
    overflow:hidden;
    background:#fff;
    border:1px solid #e3ece9;
    border-radius:22px;
    box-shadow:0 10px 35px rgba(16,43,53,.06);
}

.article-back{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:28px 32px 0;
    color:#087f81;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.article-header{
    padding:25px 42px 35px;
}

.article-header .blog-label{
    color:#087f81;
    border-color:#cfe5e1;
    background:#edf8f6;
}

.article-header h1{
    margin:20px 0 15px;
    color:#102b35;
    font-size:42px;
    line-height:1.18;
}

.article-meta{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    color:#71838a;
    font-size:13px;
}

.article-meta span{
    display:inline-flex;
    align-items:center;
    gap:7px;
}

.article-meta i{
    color:#159a9c;
}

.article-cover{
    width:100%;
    max-height:480px;
    overflow:hidden;
}

.article-cover img{
    display:block;
    width:100%;
    height:100%;
    max-height:480px;
    object-fit:cover;
}

.article-content{
    padding:35px 42px 55px;
    color:#40545b;
    font-size:16px;
    line-height:1.9;
}

.article-content p{
    margin:0 0 20px;
}

.article-content h2,
.article-content h3{
    margin:30px 0 12px;
    color:#102b35;
    line-height:1.3;
}

.article-content a{
    color:#087f81;
}

/* =========================
   NOT FOUND
   ========================= */

.blog-not-found{
    width:min(700px,100%);
    margin:60px auto;
    padding:60px 30px;
    text-align:center;
    background:#fff;
    border:1px solid #e3ece9;
    border-radius:20px;
}

.blog-not-found > i{
    margin-bottom:20px;
    color:#e87524;
    font-size:45px;
}

.blog-not-found h1{
    margin:0 0 10px;
    color:#102b35;
}

.blog-not-found p{
    margin:0 0 25px;
    color:#71838a;
    line-height:1.7;
}

.blog-back-button{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 20px;
    border-radius:10px;
    background:#087f81;
    color:#fff;
    text-decoration:none;
    font-weight:700;
}

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

@media(max-width:900px){

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

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

}

@media(max-width:620px){

    .blog-hero{
        padding:55px 18px 60px;
    }

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

    .blog-hero p{
        font-size:16px;
    }

    .blog-content{
        width:calc(100% - 28px);
        padding:42px 0 65px;
    }

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

    .blog-card-image{
        height:190px;
        min-height:190px;
    }

    .article-header{
        padding:25px 22px 28px;
    }

    .article-header h1{
        font-size:30px;
    }

    .article-content{
        padding:28px 22px 40px;
    }

    .article-meta{
        flex-direction:column;
        gap:7px;
    }

}

/* =========================================================
   PREMIUM BLOG CARDS
   ========================================================= */

.blog-card{
    position:relative;
    min-height:540px !important;
    border:1px solid #dfeae8 !important;
    border-radius:22px !important;
    overflow:hidden !important;
    background:#fff !important;
    box-shadow:0 8px 28px rgba(16,43,53,.07) !important;
    transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease !important;
}

.blog-card:hover{
    transform:translateY(-8px) !important;
    border-color:#b9dcda !important;
    box-shadow:0 22px 45px rgba(16,43,53,.13) !important;
}

/* IMAGE */

.blog-card-image{
    position:relative !important;
    height:230px !important;
    min-height:230px !important;
    background:
        radial-gradient(circle at 20% 20%,rgba(97,211,196,.28),transparent 32%),
        linear-gradient(135deg,#103f49 0%,#087f81 100%) !important;
}

.blog-card-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        transparent 45%,
        rgba(8,50,57,.35) 100%
    );
    pointer-events:none;
}

.blog-card-image img{
    transition:transform .5s ease !important;
}

.blog-card:hover .blog-card-image img{
    transform:scale(1.06) !important;
}

/* PLACEHOLDER */

.blog-placeholder{
    position:relative !important;
}

.blog-placeholder::before{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:50%;
}

.blog-placeholder i{
    position:relative;
    z-index:2;
    width:78px !important;
    height:78px !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.13) !important;
    border:1px solid rgba(255,255,255,.22) !important;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

/* CATEGORY / VISUAL LABEL */

.blog-card-image::before{
    content:"NOOR PRO ACADEMY";
    position:absolute;
    z-index:3;
    top:18px;
    left:18px;
    padding:7px 12px;
    border-radius:30px;
    background:rgba(255,255,255,.92);
    color:#087f81;
    font-size:10px;
    font-weight:800;
    letter-spacing:.7px;
}

/* BODY */

.blog-card-body{
    padding:23px 24px 20px !important;
}

/* DATE */

.blog-card-meta{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 0 12px !important;
    color:#71838a !important;
    font-size:12px !important;
    font-weight:600 !important;
}

.blog-card-meta i{
    width:27px;
    height:27px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#edf8f6;
    color:#087f81 !important;
    font-size:12px;
}

/* TITLE */

.blog-card h3{
    min-height:57px;
    margin:0 0 11px !important;
    color:#102b35 !important;
    font-size:20px !important;
    line-height:1.38 !important;
    letter-spacing:-.2px;
}

.blog-card h3 a{
    color:#102b35 !important;
    text-decoration:none !important;
    transition:color .2s ease;
}

.blog-card h3 a:hover{
    color:#087f81 !important;
}

/* EXCERPT */

.blog-card p{
    min-height:72px;
    margin:0 !important;
    color:#71838a !important;
    font-size:14px !important;
    line-height:1.72 !important;
}

/* AUTHOR */

.blog-card-body::after{
    content:"Noor Pro Academy  •  Education & Learning";
    display:block;
    margin-top:19px;
    padding-top:15px;
    border-top:1px solid #edf1f0;
    color:#71838a;
    font-size:11px;
    font-weight:600;
}

/* READ ARTICLE */

.blog-read-more{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between;
    width:100%;
    box-sizing:border-box;
    margin-top:16px !important;
    padding-top:15px;
    border-top:1px solid #edf1f0;
    color:#087f81 !important;
    font-size:14px !important;
    font-weight:800 !important;
    text-decoration:none !important;
}

.blog-read-more i{
    width:34px;
    height:34px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#edf8f6;
    color:#087f81;
    transition:transform .2s ease,background .2s ease;
}

.blog-card:hover .blog-read-more i{
    transform:translateX(4px);
    background:#087f81;
    color:#fff;
}

/* MOBILE */

@media(max-width:900px){

    .blog-card{
        min-height:520px !important;
    }

    .blog-card-image{
        height:215px !important;
        min-height:215px !important;
    }

}

@media(max-width:620px){

    .blog-card{
        min-height:auto !important;
    }

    .blog-card-image{
        height:200px !important;
        min-height:200px !important;
    }

    .blog-card h3{
        min-height:auto;
    }

    .blog-card p{
        min-height:auto;
    }

}


/* =========================================================
   PREMIUM ARTICLE + RELATED ARTICLES
   ========================================================= */

.blog-post-page{
    min-height:100vh;
    padding:45px 24px 90px !important;
    background:#f7faf9 !important;
}

.blog-post-layout{
    width:min(1240px,100%);
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) 440px;
    gap:28px;
    align-items:start;
}

.blog-article{
    width:100% !important;
    margin:0 !important;
    background:#fff !important;
    border:1px solid #dfeae8 !important;
    border-radius:24px !important;
    overflow:hidden !important;
    box-shadow:0 12px 35px rgba(16,43,53,.07) !important;
}

.article-back{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
    margin:27px 40px 0 !important;
    color:#087f81 !important;
    font-size:14px;
    font-weight:800;
    text-decoration:none !important;
}

.article-header{
    padding:24px 40px 30px !important;
}

.article-header h1{
    margin:20px 0 14px !important;
    color:#102b35 !important;
    font-size:46px !important;
    line-height:1.14 !important;
    letter-spacing:-1px;
}

.article-header .blog-label{
    color:#087f81 !important;
    background:#edf8f6 !important;
    border-color:#cfe5e1 !important;
}

.article-excerpt{
    max-width:850px;
    margin:0 0 20px;
    color:#71838a;
    font-size:17px;
    line-height:1.7;
}

.article-meta{
    display:flex !important;
    flex-wrap:wrap;
    align-items:center;
    gap:20px !important;
    color:#71838a;
    font-size:13px;
}

.article-meta span{
    display:inline-flex;
    align-items:center;
    gap:7px;
}

.article-meta i{
    color:#087f81;
}

.article-cover{
    width:calc(100% - 80px) !important;
    height:390px !important;
    margin:0 40px 10px !important;
    overflow:hidden !important;
    border-radius:18px !important;
}

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

.article-cover-placeholder{
    position:relative;
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:15px;
    overflow:hidden;
    background:
        radial-gradient(circle at 25% 20%,rgba(97,211,196,.25),transparent 30%),
        linear-gradient(135deg,#103f49,#087f81);
    color:#fff;
}

.article-cover-placeholder i{
    position:relative;
    z-index:2;
    width:82px;
    height:82px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:24px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.2);
    font-size:30px;
}

.article-cover-placeholder strong{
    position:relative;
    z-index:2;
    font-size:20px;
    letter-spacing:.3px;
}

.article-cover-circle{
    position:absolute;
    width:350px;
    height:350px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:50%;
}

.article-content{
    padding:28px 40px 55px !important;
    color:#40545b !important;
    font-size:16px !important;
    line-height:1.9 !important;
}

.article-content p{
    margin:0 0 22px;
}

.article-content h2{
    margin:32px 0 14px;
    color:#102b35;
    font-size:27px;
}

.article-content h3{
    margin:28px 0 12px;
    color:#102b35;
    font-size:22px;
}

.article-content ul,
.article-content ol{
    margin:0 0 24px;
    padding-left:24px;
}

.article-content li{
    margin-bottom:9px;
}

.article-content strong{
    color:#102b35;
}


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

.related-sidebar{
    padding:26px;
    background:#fff;
    border:1px solid #dfeae8;
    border-radius:24px;
    box-shadow:0 12px 35px rgba(16,43,53,.06);
}

.related-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:22px;
}

.related-icon{
    flex:0 0 52px;
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#edf8f6;
    color:#087f81;
    font-size:21px;
}

.related-header h2{
    margin:0 0 4px;
    color:#102b35;
    font-size:22px;
}

.related-header p{
    margin:0;
    color:#71838a;
    font-size:12px;
    line-height:1.5;
}

.related-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.related-card{
    position:relative;
    display:grid;
    grid-template-columns:145px minmax(0,1fr);
    min-height:150px;
    overflow:hidden;
    background:#fff;
    border:1px solid #e3ece9;
    border-radius:16px;
    text-decoration:none;
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.related-card:hover{
    transform:translateY(-3px);
    border-color:#b9dcda;
    box-shadow:0 10px 25px rgba(16,43,53,.08);
}

.related-image{
    width:145px;
    height:100%;
    min-height:150px;
    overflow:hidden;
    background:linear-gradient(135deg,#103f49,#087f81);
}

.related-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

.related-card:hover .related-image img{
    transform:scale(1.06);
}

.related-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:25px;
    background:linear-gradient(135deg,#103f49,#087f81);
}

.related-body{
    position:relative;
    min-width:0;
    padding:16px 43px 15px 17px;
}

.related-date{
    display:block;
    margin-bottom:7px;
    color:#087f81;
    font-size:11px;
    font-weight:700;
}

.related-date i{
    margin-right:4px;
}

.related-body h3{
    margin:0 0 7px;
    color:#102b35;
    font-size:16px;
    line-height:1.35;
}

.related-body p{
    display:-webkit-box;
    margin:0;
    overflow:hidden;
    color:#71838a;
    font-size:12px;
    line-height:1.55;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}

.related-arrow{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#edf8f6;
    color:#087f81;
    font-size:12px;
    transition:all .2s ease;
}

.related-card:hover .related-arrow{
    background:#087f81;
    color:#fff;
    transform:translate(3px,-50%);
}


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

.related-cta{
    position:relative;
    overflow:hidden;
    margin-top:18px;
    padding:25px;
    border-radius:20px;
    background:
        radial-gradient(circle at 100% 100%,rgba(21,154,156,.15),transparent 40%),
        #edf8f6;
    border:1px solid #d5ebe7;
}

.related-cta-icon{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
    border-radius:14px;
    background:#d5efeb;
    color:#087f81;
}

.related-cta h3{
    margin:0 0 8px;
    color:#102b35;
    font-size:20px;
    line-height:1.3;
}

.related-cta p{
    margin:0 0 18px;
    color:#71838a;
    font-size:13px;
    line-height:1.6;
}

.related-cta a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    box-sizing:border-box;
    padding:13px 18px;
    border-radius:12px;
    background:#087f81;
    color:#fff;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    transition:background .2s ease,transform .2s ease;
}

.related-cta a:hover{
    background:#066f71;
    transform:translateY(-1px);
}


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

@media(max-width:1050px){

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

    .related-sidebar{
        width:100%;
        box-sizing:border-box;
    }

    .related-list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

@media(max-width:700px){

    .blog-post-page{
        padding:25px 14px 60px !important;
    }

    .article-back{
        margin-left:22px !important;
    }

    .article-header{
        padding:20px 22px 25px !important;
    }

    .article-header h1{
        font-size:32px !important;
    }

    .article-cover{
        width:calc(100% - 44px) !important;
        height:240px !important;
        margin:0 22px 5px !important;
    }

    .article-content{
        padding:25px 22px 40px !important;
    }

    .related-list{
        grid-template-columns:1fr;
    }

    .related-card{
        grid-template-columns:125px minmax(0,1fr);
    }

    .related-image{
        width:125px;
    }

}

@media(max-width:480px){

    .related-sidebar{
        padding:18px;
    }

    .related-card{
        grid-template-columns:110px minmax(0,1fr);
    }

    .related-image{
        width:110px;
        min-height:145px;
    }

}

/* =========================================================
   MOBILE ARTICLE — FINAL LAYOUT FIX
   ========================================================= */

@media (max-width: 700px){

    /* Page starts below sticky header */
    .blog-post-page{
        display:block !important;
        width:100% !important;
        box-sizing:border-box !important;
        padding:82px 12px 105px !important;
        margin:0 !important;
        overflow:visible !important;
    }

    /* Force article + sidebar into a real vertical flow */
    .blog-post-layout{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
        position:relative !important;
        overflow:visible !important;
    }

    .blog-article{
        position:relative !important;
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
        z-index:1 !important;
    }

    /* Back button */
    .article-back{
        position:relative !important;
        display:inline-flex !important;
        margin:22px 20px 0 !important;
        z-index:5 !important;
    }

    /* Article header */
    .article-header{
        position:relative !important;
        display:block !important;
        width:100% !important;
        box-sizing:border-box !important;
        padding:20px 20px 25px !important;
        z-index:2 !important;
    }

    .article-header h1{
        display:block !important;
        width:100% !important;
        margin:17px 0 13px !important;
        font-size:31px !important;
        line-height:1.18 !important;
        letter-spacing:-.5px !important;
        word-break:normal !important;
        overflow-wrap:break-word !important;
    }

    .article-excerpt{
        display:block !important;
        width:100% !important;
        margin:0 0 18px !important;
        font-size:14px !important;
        line-height:1.7 !important;
    }

    .article-meta{
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:8px !important;
        width:100% !important;
    }

    /* Cover */
    .article-cover{
        position:relative !important;
        display:block !important;
        width:calc(100% - 40px) !important;
        height:220px !important;
        min-height:220px !important;
        margin:0 20px 5px !important;
        box-sizing:border-box !important;
        border-radius:16px !important;
        overflow:hidden !important;
    }

    .article-cover-placeholder{
        width:100% !important;
        height:100% !important;
    }

    /* Article text */
    .article-content{
        position:relative !important;
        display:block !important;
        width:100% !important;
        box-sizing:border-box !important;
        padding:25px 20px 35px !important;
        font-size:15px !important;
        line-height:1.85 !important;
        z-index:2 !important;
    }

    .article-content p{
        display:block !important;
        margin:0 0 19px !important;
    }

    /* Related section MUST come after article */
    .related-sidebar{
        position:relative !important;
        display:block !important;
        float:none !important;
        clear:both !important;
        width:100% !important;
        max-width:100% !important;
        box-sizing:border-box !important;
        margin:22px 0 0 !important;
        padding:20px !important;
        z-index:3 !important;
    }

    .related-header{
        display:flex !important;
        position:relative !important;
        margin-bottom:18px !important;
    }

    .related-list{
        display:flex !important;
        flex-direction:column !important;
        width:100% !important;
        gap:14px !important;
    }

    .related-card{
        position:relative !important;
        display:grid !important;
        grid-template-columns:105px minmax(0,1fr) !important;
        width:100% !important;
        min-width:0 !important;
        min-height:125px !important;
        box-sizing:border-box !important;
        margin:0 !important;
        transform:none !important;
        overflow:hidden !important;
    }

    .related-image{
        width:105px !important;
        min-width:105px !important;
        height:100% !important;
        min-height:125px !important;
    }

    .related-body{
        position:relative !important;
        min-width:0 !important;
        padding:13px 35px 12px 13px !important;
        box-sizing:border-box !important;
    }

    .related-body h3{
        display:block !important;
        margin:0 0 6px !important;
        font-size:14px !important;
        line-height:1.3 !important;
        overflow-wrap:break-word !important;
    }

    .related-body p{
        display:-webkit-box !important;
        margin:0 !important;
        font-size:11px !important;
        line-height:1.5 !important;
        -webkit-line-clamp:3 !important;
        -webkit-box-orient:vertical !important;
        overflow:hidden !important;
    }

    .related-date{
        margin-bottom:5px !important;
        font-size:10px !important;
    }

    .related-arrow{
        right:9px !important;
        width:27px !important;
        height:27px !important;
        font-size:10px !important;
    }

    /* CTA */
    .related-cta{
        display:block !important;
        width:100% !important;
        box-sizing:border-box !important;
        margin-top:16px !important;
        padding:22px !important;
    }

    .related-cta h3{
        font-size:20px !important;
        line-height:1.3 !important;
    }

}


/* Very small phones */

@media (max-width:420px){

    .blog-post-page{
        padding-left:8px !important;
        padding-right:8px !important;
    }

    .article-header h1{
        font-size:29px !important;
    }

    .article-cover{
        width:calc(100% - 32px) !important;
        margin-left:16px !important;
        margin-right:16px !important;
        height:195px !important;
        min-height:195px !important;
    }

    .article-header,
    .article-content{
        padding-left:16px !important;
        padding-right:16px !important;
    }

    .related-sidebar{
        padding:16px !important;
    }

    .related-card{
        grid-template-columns:92px minmax(0,1fr) !important;
    }

    .related-image{
        width:92px !important;
        min-width:92px !important;
    }

}


/* =========================================================
   MOBILE ARTICLE — OVERLAP FIX
   ========================================================= */

@media (max-width:700px){

    .blog-article{
        display:flex !important;
        flex-direction:column !important;
        position:relative !important;
        overflow:hidden !important;
    }

    .article-back{
        position:relative !important;
        order:1 !important;
        flex:none !important;
        z-index:20 !important;
        margin:22px 20px 0 !important;
    }

    .article-header{
        position:relative !important;
        order:2 !important;
        display:block !important;
        flex:none !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        margin:0 !important;
        padding:20px 20px 22px !important;
        box-sizing:border-box !important;
        overflow:visible !important;
        transform:none !important;
        z-index:10 !important;
    }

    .article-header .blog-label{
        position:relative !important;
        display:inline-block !important;
        z-index:11 !important;
    }

    .article-header h1{
        position:relative !important;
        display:block !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        margin:17px 0 13px !important;
        padding:0 !important;
        box-sizing:border-box !important;
        color:#102b35 !important;
        background:transparent !important;
        font-size:31px !important;
        line-height:1.18 !important;
        overflow:visible !important;
        transform:none !important;
        z-index:12 !important;
    }

    .article-excerpt{
        position:relative !important;
        display:block !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 0 18px !important;
        padding:0 !important;
        box-sizing:border-box !important;
        color:#71838a !important;
        background:transparent !important;
        overflow:visible !important;
        transform:none !important;
        z-index:12 !important;
    }

    .article-meta{
        position:relative !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 !important;
        padding:0 !important;
        gap:8px !important;
        box-sizing:border-box !important;
        overflow:visible !important;
        transform:none !important;
        z-index:12 !important;
    }

    .article-meta span{
        position:relative !important;
        display:inline-flex !important;
        height:auto !important;
        min-height:20px !important;
        color:#71838a !important;
        background:transparent !important;
    }

    /* Cover is a separate block AFTER the complete header */
    .article-cover{
        position:relative !important;
        order:3 !important;
        flex:none !important;
        display:block !important;
        float:none !important;
        clear:both !important;
        width:calc(100% - 40px) !important;
        height:220px !important;
        min-height:220px !important;
        max-height:220px !important;
        margin:0 20px 8px !important;
        padding:0 !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
        transform:none !important;
        z-index:5 !important;
    }

    .article-cover-placeholder{
        position:relative !important;
        display:flex !important;
        width:100% !important;
        height:100% !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
        transform:none !important;
    }

    .article-cover-placeholder i{
        position:relative !important;
        z-index:3 !important;
    }

    .article-cover-placeholder strong{
        position:relative !important;
        z-index:3 !important;
    }

    /* Content comes after cover */
    .article-content{
        position:relative !important;
        order:4 !important;
        display:block !important;
        flex:none !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        margin:0 !important;
        padding:25px 20px 38px !important;
        box-sizing:border-box !important;
        overflow:visible !important;
        transform:none !important;
        z-index:6 !important;
        color:#40545b !important;
        background:#fff !important;
    }

    .article-content p{
        position:relative !important;
        display:block !important;
        width:100% !important;
        height:auto !important;
        margin:0 0 19px !important;
        padding:0 !important;
        color:#40545b !important;
        background:transparent !important;
        overflow:visible !important;
    }

    /* Related must be below the entire article */
    .related-sidebar{
        position:relative !important;
        order:5 !important;
        display:block !important;
        width:100% !important;
        margin:22px 0 0 !important;
        clear:both !important;
        float:none !important;
        transform:none !important;
    }

}


/* Small phones */

@media (max-width:420px){

    .article-header{
        padding-left:16px !important;
        padding-right:16px !important;
    }

    .article-header h1{
        font-size:29px !important;
    }

    .article-cover{
        width:calc(100% - 32px) !important;
        margin-left:16px !important;
        margin-right:16px !important;
        height:195px !important;
        min-height:195px !important;
        max-height:195px !important;
    }

    .article-content{
        padding-left:16px !important;
        padding-right:16px !important;
    }

}
