/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

body{margin:0}
.blog-layout{display:grid;grid-template-columns:1fr 320px;gap:40px}
@media(max-width:767px){.blog-layout{grid-template-columns:1fr}}

.rok-post-hero{
    position:relative;
    min-height:520px;
    display:flex;
    align-items:flex-end;
    background-size:cover;
    background-position:center;
    color:#fff;
}

.rok-post-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.75),rgba(0,0,0,.2));
}

.rok-post-hero-inner{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:80px 20px 60px;
}

.rok-post-title{
    font-size:48px;
    line-height:1.2;
    margin:15px 0;
    color:#fff;
}

.rok-post-meta{
    display:flex;
    gap:12px;
    align-items:center;
    color:#fff;
}

.rok-single-container{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:50px;
}

.rok-content{
    min-width:0;
}

.rok-sidebar{
    position:sticky;
    top:100px;
    height:fit-content;
}

.rok-sidebar .widget{
    background:#fff;
    padding:25px;
    margin-bottom:30px;
    border:1px solid #eee;
    border-radius:12px;
}

.widget-title{
    margin-bottom:20px;
}

@media(max-width:991px){

    .rok-single-container{
        grid-template-columns:1fr;
    }

    .rok-sidebar{
        position:relative;
        top:0;
    }

    .rok-post-title{
        font-size:34px;
    }

}
/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/

.rok-container{
    max-width:1280px;
    width:100%;
    margin:0 auto;
    padding:0 20px;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.rok-blog-hero{
    position:relative;
    min-height:380px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:url(images/blog-banner.jpg) center center/cover no-repeat;
}

.rok-blog-hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.25)
    );
}

.rok-blog-hero .rok-container{
    position:relative;
    z-index:2;
    padding-bottom:60px;
}

.rok-blog-subtitle{
    display:inline-block;
    color:#ffffff;
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:2px;
}

.rok-blog-title{
    color:#fff;
    font-size:56px;
    line-height:1.2;
    margin:15px 0;
}

.rok-blog-description{
    max-width:700px;
    color:#fff;
    font-size:18px;
    line-height:1.7;
}

/*--------------------------------------------------------------
# Main Layout
--------------------------------------------------------------*/

.rok-blog-main{
    padding:70px 0;
}

.rok-blog-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:40px;
    align-items:start;
}

/*--------------------------------------------------------------
# Blog Grid
--------------------------------------------------------------*/

.rok-blog-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:35px;
}

/*--------------------------------------------------------------
# Blog Card
--------------------------------------------------------------*/

.rok-post-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.rok-post-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

/*--------------------------------------------------------------
# Image
--------------------------------------------------------------*/

.rok-post-image{
    display:block;
    overflow:hidden;
}

.rok-post-image img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.5s;
}

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

/*--------------------------------------------------------------
# Body
--------------------------------------------------------------*/

.rok-post-body{
    padding:28px;
    display:flex;
    flex-direction:column;
    flex:1;
}

/*--------------------------------------------------------------
# Meta
--------------------------------------------------------------*/

.rok-post-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
    font-size:14px;
}

.rok-post-meta a{
    color:#0d6efd;
    text-decoration:none;
    font-weight:600;
}

.rok-dot{
    color:#999;
}

/*--------------------------------------------------------------
# Title
--------------------------------------------------------------*/

.rok-post-title{
    margin:0 0 15px;
    font-size:28px;
    line-height:1.3;
}

.rok-post-title a{
    color:#222;
    text-decoration:none;
    transition:.3s;
}

.rok-post-title a:hover{
    color:#0d6efd;
}

/*--------------------------------------------------------------
# Excerpt
--------------------------------------------------------------*/

.rok-post-excerpt{
    flex:1;
    color:#666;
    line-height:1.8;
}

/*--------------------------------------------------------------
# Button
--------------------------------------------------------------*/

.rok-read-more{
    display:inline-flex;
    align-items:center;
    margin-top:25px;
    font-weight:600;
    color:#0d6efd;
    text-decoration:none;
}

.rok-read-more:hover{
    text-decoration:underline;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.rok-sidebar{
    position:sticky;
    top:100px;
}

.rok-sidebar .widget{
    background:#fff;
    padding:30px;
    margin-bottom:30px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.widget-title{
    margin:0 0 20px;
    font-size:22px;
}

.rok-sidebar ul{
    margin:0;
    padding:0;
    list-style:none;
}

.rok-sidebar li{
    margin-bottom:12px;
}

.rok-sidebar a{
    color:#444;
    text-decoration:none;
}

.rok-sidebar a:hover{
    color:#0d6efd;
}

/*--------------------------------------------------------------
# Search Widget
--------------------------------------------------------------*/

.rok-sidebar input[type="search"]{
    width:100%;
    padding:12px 15px;
    border:1px solid #ddd;
    border-radius:8px;
}

.rok-sidebar button{
    margin-top:10px;
    padding:12px 18px;
    border:none;
    background:#0d6efd;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/

.rok-pagination{
    margin-top:50px;
}

.nav-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.page-numbers{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:8px;
    background:#f5f5f5;
    color:#333;
    text-decoration:none;
}

.page-numbers.current{
    background:#0d6efd;
    color:#fff;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media(max-width:1200px){

    .rok-blog-title{
        font-size:46px;
    }

}

@media(max-width:991px){

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

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

    .rok-sidebar{
        position:relative;
        top:0;
    }

}

@media(max-width:767px){

    .rok-blog-title{
        font-size:34px;
    }

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

    .rok-post-image img{
        height:220px;
    }

    .rok-post-body{
        padding:22px;
    }

}