/* ==========================================
   HERO BENTO SECTION
========================================== */
.hero-section {
    padding: 60px 20px;
    background: #f8fafc;
}

.container {
    width: min(1400px, 100%);
    margin: auto;
}

/* ==========================================
   MAIN BENTO
========================================== */
.hero-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 700px;
    overflow: hidden;
    gap: 10px;
}

/* ==========================================
   BIG CARD
========================================== */
.big-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.big-card img,
.small-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   RIGHT SIDE GRID
========================================== */
.small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.small-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* ==========================================
   OVERLAY
========================================== */
.big-card::after,
.small-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, .75));
}

/* ==========================================
   CONTENT
========================================== */
.card-content {
    position: absolute;
    z-index: 2;
    bottom: 35px;
    left: 35px;
    right: 35px;
    color: white;
}

.card-content span,
.small-content span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(10px);
    font-size: .8rem;
}

.card-content h1 {
    margin-top: 15px;
    font-size: 2.4rem;
    line-height: 1.2;
}

.card-content p {
    margin-top: 15px;
    line-height: 1.6;
}

.small-content {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    color: white;
}

.small-content h3 {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* ==========================================
   IMAGE EFFECT
========================================== */
.big-card img,
.small-card img {
    transition: .5s ease;
}

.big-card:hover img,
.small-card:hover img {
    transform: scale(1.08);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media(max-width:900px) {
    .hero-bento {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .big-card {
        height: 500px;
    }

    .small-grid {
        height: 600px;
    }
}

@media(max-width:500px) {
    .small-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .small-card {
        height: 300px;
    }

    .card-content h1 {
        font-size: 1.8rem;
    }
}

/* ==========================================
   LATEST BLOG SECTION
========================================== */


.latest-blog-section{

    padding:40px 20px;

    background:#f8fafc;

}




/* MAIN WRAPPER */

.latest-blog-wrapper{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

    align-items:stretch;

}






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


.featured-post{

    background:white;

    display:flex;

    flex-direction:column;

    border:1px solid #e2e8f0;

}



.featured-post img{

    width:100%;

    height:300px;

    object-fit:cover;

}




.featured-post-content{

    padding:30px;

    display:flex;

    flex-direction:column;

    flex:1;

}





.featured-post-content h2{

    font-size:1.8rem;

    line-height:1.3;

    color:#0f172a;

}





.featured-description{

    margin-top:15px;

    color:#64748b;

    line-height:1.7;

    flex:1;

}





.featured-date{

    margin-top:20px;

    color:#64748b;

    font-size:.9rem;

}





.featured-button{

    margin-top:20px;

    width:max-content;

    padding:12px 25px;

    background:#2563eb;

    color:white;

    text-decoration:none;

    font-weight:600;

}





.featured-button:hover{

    background:#1e40af;

}







/* ==========================================
   RIGHT BLOG LIST
========================================== */


.latest-posts{

    background:white;

    border:1px solid #e2e8f0;

    padding:15px 25px;

    display:flex;

    flex-direction:column;

}





.latest-post{


    display:flex;

    gap:20px;

    padding:18px 0;

    border-bottom:1px solid #e2e8f0;

    flex:1;

}



.latest-post:last-child{

    border-bottom:none;

}




.latest-post img{


    width:130px;

    height:80px;

    object-fit:cover;

}





.latest-post h3{

    font-size:1.05rem;

    line-height:1.4;

    color:#0f172a;

}





.latest-post span{

    display:block;

    margin-top:8px;

    font-size:.85rem;

    color:#64748b;

}







/* ==========================================
   HOVER
========================================== */


.latest-post:hover h3{

    color:#2563eb;

}







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


@media(max-width:900px){


    .latest-blog-wrapper{

        grid-template-columns:1fr;

    }


}



@media(max-width:500px){


    .latest-post img{

        width:100px;

        height:70px;

    }


}

/*=====================================
EDITORIAL SECTION
=====================================*/

.editorial-section{
    padding: 40px 20px;
}

.editorial-feature{
    margin-top:40px;
    border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
    background:#111827;
    transition:.35s;
}

.editorial-feature:hover{
    border-color:var(--primary-color);
}

.editorial-feature-link{
    display:grid;
    grid-template-columns:55% 45%;
    text-decoration:none;
    color:inherit;
}

.editorial-feature-image{
    overflow:hidden;
}

.editorial-feature-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.editorial-feature:hover img{
    transform:scale(1.05);
}

.editorial-feature-content{
    padding:45px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.editorial-category{
    display:inline-block;
    color:var(--primary-color);
    font-size:.82rem;
    text-transform:uppercase;
    letter-spacing:1px;
    font-weight:600;
    margin-bottom:18px;
}

.editorial-feature-content h3{
    font-size:2rem;
    color:#fff;
    line-height:1.3;
    margin-bottom:20px;
    transition:.3s;
}

.editorial-feature:hover h3{
    color:var(--primary-color);
}

.editorial-feature-content p{
    color:#b8c0cc;
    line-height:1.8;
    margin-bottom:25px;
}

.editorial-meta{
    display:flex;
    align-items:center;
    gap:12px;
    color:#8b95a7;
    font-size:.9rem;
}

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

.editorial-grid{
    margin-top:50px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.editorial-card{
    background:#111827;
    border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
    transition:.35s;
}

.editorial-card:hover{
    transform:translateY(-8px);
    border-color:var(--primary-color);
}

.editorial-card a{
    display:block;
    text-decoration:none;
    color:inherit;
}

.editorial-card img{
    width:100%;
    aspect-ratio:16/10;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.editorial-card:hover img{
    transform:scale(1.08);
}

.editorial-card-content{
    padding:22px;
}

.editorial-card-content h3{
    color:#fff;
    font-size:1.1rem;
    line-height:1.5;
    margin:12px 0 18px;
    transition:.3s;
}

.editorial-card:hover h3{
    color:var(--primary-color);
}

.editorial-card time{
    color:#94a3b8;
    font-size:.85rem;
}

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

@media(max-width:1100px){

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

    .editorial-feature-link{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .editorial-section{
        padding: 60px 20px;
    }

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

    .editorial-feature-content{
        padding:30px;
    }

    .editorial-feature-content h3{
        font-size:1.6rem;
    }

}