/*==========================*/
/*===== SECT: GENERAL =====*/
/*========================*/


body.blog-central .col-md-12,
body.blog-article .col-md-12 j{
    padding-right: 5px;
    padding-left: 5px
}
body.blog-central .container,
body.blog-article .container {
    padding-right: 5px;
    padding-left: 5px;
}
body.blog-central .main,
body.blog-article .main {
    background: #D1D2D4;

    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 1200px;
    height: auto;
}
body.blog-central .container-wrapper,
body.blog-article .container-wrapper {
    position: relative;
    padding: 0;
    margin-top: 1px;
}
/* body.blog-article .page-header {
    display: none;
} */
body.blog-article .page-header.article {
    display: inherit
}


:root {
    --brand: #3066DA;
    --bg: #202430;
    --white: #ffffff;
    --card: #2D2D2D;
    --ring: rgba(48, 102, 218, .35);
    --ink-heading: #1C2330;
    --ink-body: #161B22;
    --ink-muted: #5B6678;
    --links-hover: #2550B5;
}


/*==============================*/
/*===== SECT: BLOG CENTRAL =====*/
/*==============================*/
/* === Grid === */
.blog-central .blog-grid{
    --grid-gap: 18px;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop: 3 */
    gap: var(--grid-gap);
    padding: 30px 0;
}

@media (max-width: 1024px){
    .blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } /* â‰¤1024: 2 */
}
@media (max-width: 480px){
    .blog-grid{ grid-template-columns: 1fr; } /* â‰¤480: 1 */
}




/*----------
    CARD
----------*/


.blog-card{
    --zoom-scale: 1.03;
    --zoom-dur: 420ms;
    --zoom-ease: cubic-bezier(.16,1,.3,1);
}


.blog-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    overflow: hidden; /* trims the zoomed image */
    box-shadow: 0 1px 2px rgba(0,0,0,.25); /* subtle */
    transition: box-shadow .25s ease, transform .25s ease;



}



.blog-card .card-media{
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;


}
.blog-card .card-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;


}








.blog-card .card-media img {
    transform: scale(1);
    will-change: transform;
    backface-visibility: hidden;
    transition: transform var(--zoom-dur) var(--zoom-ease) 40ms;


}

.blog-card:hover .card-media img,
.blog-card:focus-within .card-media img{
    transform: scale(1.05);
}











/*----------
    BODY
----------*/

.blog-card .card-body{
    padding: 14px 14px 16px;
    color: var(--text);
}
.blog-card .card-title{
    margin: 0 0 10px;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.25;
    color: var(--ink);
    font-weight: 600;
    text-transform: unset;
}
.blog-card .card-title a{
    color: var(--white);
    text-decoration: unset !important

}
.blog-card .card-title a:hover{ text-decoration: underline; }

/* Button */
.btn-more{
    display: inline-block;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    line-height: 1;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 2px 8px rgba(48,102,218,.18); /* light */
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-more:hover{
    background: var(--links-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -8px rgba(48,102,218,.35);
}
.btn-more:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
}




/*===============================*/
/*===== SECT: BLOG ARTICLE =====*/
/*=============================*/



/*---------------------------*/
/*  TOPOGRAPHY - HEADINGS   */



/* ===== Desktop / default (â‰¥1024px) ===== */
.main .container-wrapper h1.article-title {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    margin: 6px 0 16px;
    color: #fff;
    font-weight: 600;
}
/* Body headings */
.article-body h2 {
    font-size: clamp(1.45rem, 2.2vw, 2.10rem);
    line-height: 1.2;
}
.article-body h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.70rem);
    line-height: 1.25;
}
.article-body h4 {
    font-size: clamp(1.18rem, 1.2vw, 1.35rem);
    line-height: 1.3;
}
/* H5 min locked at 18px everywhere */
.article-body h5 {
    font-size: clamp(1.125rem, 0.9vw, 1.20rem);
    line-height: 1.35;
}
/* Pleasant spacing */




.article-body h2 {
    margin: 1em 0 0.6em;
    font-weight: 600
}
.article-body h3 {
    margin: 0.8em 0 0.5em;
    font-weight: 600
}
.article-body h4 {
    margin: 0.6em 0 0.4em;
    font-weight: 600
}
.article-body h5 {
    margin: 0.4em 0 0.3em;
    font-weight: 600
}
/* ===== Tablets & small laptops (<1024px) ===== */
@media (max-width: 1024px) {
    .main .container-wrapper h1.article-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
        line-height: 1.18;
    }
    .article-body h2 {
        font-size: clamp(1.40rem, 4.5vw, 1.95rem);
        line-height: 1.22;
    }
    .article-body h3 {
        font-size: clamp(1.25rem, 3.8vw, 1.60rem);
        line-height: 1.26;
    }
    .article-body h4 {
        font-size: clamp(1.18rem, 3.2vw, 1.35rem);
        line-height: 1.30;
    }
    .article-body h5 {
        font-size: clamp(1.125rem, 2.6vw, 1.20rem);
        line-height: 1.34;
    }
    .article-body h2 {
        margin: 1.15em 0 .5em;
    }
    .article-body h3 {
        margin: 1.05em 0 .45em;
    }
    .article-body h4 {
        margin: 1.00em 0 .40em;
    }
    .article-body h5 {
        margin: 0.95em 0 .35em;
    }
}
/* ===== Small phones (<375px) ===== */
@media (max-width: 375px) {
    .main .container-wrapper h1.article-title {
        font-size: clamp(1.28rem, 6vw, 1.40rem);
        line-height: 1.20;
    }
    .article-body h2 {
        font-size: clamp(1.30rem, 6.4vw, 1.38rem);
        line-height: 1.24;
    }
    .article-body h3 {
        font-size: clamp(1.22rem, 5.8vw, 1.30rem);
        line-height: 1.28;
    }
    .article-body h4 {
        font-size: clamp(1.18rem, 5.2vw, 1.24rem);
        line-height: 1.32;
    }
    /* H5 stays â‰¥ 18px here too */
    .article-body h5 {
        font-size: clamp(1.125rem, 4.8vw, 1.18rem);
        line-height: 1.36;
    }
    .article-body h2 {
        margin: 1.0em 0 .45em;
    }
    .article-body h3 {
        margin: 0.95em 0 .40em;
    }
    .article-body h4 {
        margin: 0.90em 0 .38em;
    }
    .article-body h5 {
        margin: 0.85em 0 .35em;
    }
}
.blog-article h5 {
    text-transform: unset
}
/*----------*/
/*  HERO   */
:root {
    --hero-h: clamp(180px, 28vw, 300px);
}
/* === Helper visibility classes you control in HTML ===
   .md-hide  -> hide at Ã¢â€°Â¤768px
   .sm-hide  -> hide at Ã¢â€°Â¤480px
   .sm-only  -> the ONE to show at Ã¢â€°Â¤480px (others hide)
*/
/* === Base === */
.article-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 20px;
}
.hero-grid {
    display: grid;
    gap: 18px;
    height: var(--hero-h);
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px 100px; /* room for the overlapping card */
    border-radius: 10px;
    border: 1px solid var(--card)
}
.hero-grid.cols-1 {
    grid-template-columns: 1fr;
}
.hero-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.hero-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    padding: clamp(10px, 1.6vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.hero-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.hero-grid.cols-3 > .hero-item:only-child {
    grid-column: 2;
}
.hero-grid.cols-3 > .hero-item:first-child:nth-last-child(2) {
    grid-column: 1;
}
.hero-grid.cols-3 > .hero-item:first-child:nth-last-child(2) ~ .hero-item {
    grid-column: 3;
}
.hero-grid.cols-2 > .hero-item:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(540px, 86%);
}
.hero-grid.compact {
    --hero-h: clamp(150px, 22vw, 260px);
}
/* Optional fine-tune by column count */
.hero-grid.cols-3 {
    --hero-h: clamp(170px, 22vw, 330px);
}
.hero-grid.cols-2 {
    --hero-h: clamp(180px, 24vw, 280px);
}
.hero-grid.cols-1 {
    --hero-h: clamp(190px, 28vw, 300px);
}
/*---------*/
/*  TOP   */
/* optional page-level hook if you add it */
body.article-view {
    background: var(--bg);
    color: var(--text);
}
.blog-article .crumbs {
    max-width: 1100px;
    margin: 20px 0 15px 40px;
    font-size: .9rem;
}
.blog-article .crumbs a {
    text-decoration: none;
    color: var(--brand);
    font-weight: 600;
    border-radius: 3px;
}
.blog-article .crumbs a:hover {
    text-decoration: underline
}
.blog-article .crumbs span {
    margin: 0 .25rem;
}
span.current {
    display: inline-block;
    padding-right: 15px;
}
@media (max-width: 1200px) {
    .blog-article .crumbs {
        margin: 20px 0 10px 25px;
    }
}
@media (max-width: 768px) {
    .blog-article .crumbs span {
        margin: 5px;
    }
    .blog-article .crumbs span.current {
        margin: 0;
    }
}
.article-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    transform: translateY(-105px);
    margin-bottom: -100px;
}
.article-card-inner {
    background: linear-gradient(180deg, rgba(45, 45, 45, .98), rgba(45, 45, 45, .98));
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .20);
    padding: clamp(8px, 1vw, 16px) clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, .06);
    margin: 25px;
}
/* TITLE */
.main .container-wrapper h1.article-title {
    color: var(--white);
    letter-spacing: unset;
    font-weight: 600
}
/* DATE */
.blog-article .bi-calendar2-minus {
    color: var(--white)
}
.article-date {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}
.blog-article .byline-text {
    color: var(--white);
    font-size: .95rem;
}
/* SHARE */
.blog-article .share {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.blog-article .share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--white);
    background: var(--white);
    opacity: .9;
    border: 1px solid rgba(255, 255, 255, .08);
}
.blog-article .bi-facebook,
.blog-article .bi-linkedin {
    color: #1f2330;
    font-size: 18px;
    position: relative;
    bottom: -1px;
}
.share a:hover {
    box-shadow: 0 0 0 3px var(--ring);
}
/*----------*/
/*  BODY   */
.blog-article .article-body h2,
.blog-article .article-body h3,
.blog-article .article-body h4 {
    color: var(--ink-heading);
}
.article-body {
    margin: 0 auto;
    color: var(--text);
    font-size: 1.05rem;
    padding: 0.3rem 5rem 2rem 5rem;
}
.blog-article .article-body p {
    padding-left: 0;
    padding-right: 0;
    color: var(--ink-body);
}
/* LISTS */
.blog-article .article-body ul,
.blog-article .article-body ol {
    padding-left: 1.8em;
    margin: 0.6em 0 1em;
}
.blog-article .article-body li {
    margin-bottom: 0.25em;
}
.article-body li {
    color: black;
}
/* Blockquote */
.article-body blockquote {
    /* margin: 1.6rem 0; */
    padding: 1rem 1.25rem;
    border: 1px solid #00000042;
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    margin: 0;
    color: black;
}
/*------------*/
/*  FOOTER   */
.article-footer {
    max-width: 1000px;
    margin: 24px auto 50px;
    padding: 0 16px;
}
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.post-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #262a36, #202430);
    border: 1px solid rgba(255, 255, 255, .08);
}
.post-nav a:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
}
@media (min-width: 1400px) {
    .hero-grid {
        --hero-h: 280px;
    }
    .hero-grid.compact {
        --hero-h: 240px;
    }
}
@media (max-width: 1200px) {
    .article-hero {
        padding: 0 25px;
    }
    .article-footer {


        padding: 0 80px;
    }
}
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        height: clamp(180px, 48vw, 300px);
        padding: 18px 18px 80px;
    }
    .article-card {
        transform: translateY(-90px);
    }
    .hero-grid .md-hide {
        display: none !important;
    }
    .hero-grid > .hero-item:only-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 520px;
    }
    .article-body {

        padding: 0.3rem 3rem 2rem 3rem;
    }
}
@media (max-width: 768px) {
    .blog-article .share a {
        width: 30px;
        height: 30px;
    }
    .blog-article .bi-facebook,
    .blog-article .bi-linkedin {
        font-size: 16px;
        position: relative;
        bottom: -1px;
    }
    .article-footer {


        padding: 0 25px;
    }
}
@media (max-width: 480px) {
    .article-card-inner {
        margin: 15px;
    }
    .article-card {
        transform: translateY(-105px);
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        height: clamp(240px, 78vw, 400px);
        padding: 12px 10px 100px;
    }
    .hero-grid .sm-only ~ .hero-item,
    .hero-grid .hero-item:not(.sm-only).sm-hide {
        display: none !important;
    }
    .hero-grid .sm-hide {
        display: none !important;
    }
    .article-body {
        padding: 0.5rem 2rem 2.5rem 2rem;
    }
    .blog-article .article-body p {
        font-size: 1rem
    }
    .hero-item img {
        max-width: 94%;
        max-height: 94%;
    }
    .article-hero {
        padding: 0 20px;
    }
    .blog-article .article-body ul,
    .blog-article .article-body ol {
        padding-left: 1.3em;
    }
}

@media (max-width: 375px) {
    .article-body {
        padding: 2px 1.6rem 2.5rem 1.6rem;
    }
    .article-footer {


        padding: 0 20px;
    }
    .post-nav a {
        color: #fff;
        text-decoration: none;
        padding: 10px 14px;
        border-radius: 14px;
        background: linear-gradient(180deg, #262a36, #202430);
        border: 1px solid rgba(255, 255, 255, .08);

    }
}






