/* =====================================
   BLOG.CSS - PART 1
   LAYOUT + ARTICLE
===================================== */

body{
    background:#f4f8fb;
}

/* LAYOUT */

.rr-blog-layout{
    max-width:1240px;
    margin:30px auto 50px;
    padding:0 20px;

    display:grid;
    grid-template-columns:minmax(0,820px) 320px;
    gap:35px;
}

.rr-blog-main{
    min-width:0;
}

/* ARTICLE CARD */

.rr-blog{

    background:#ffffff;

    border:1px solid #dbe7f3;

    border-radius:16px;

    padding:24px;

    box-shadow:
    0 8px 24px rgba(15,23,42,.04);
}

/* TITLE */

.rr-blog-title{

    font-size:32px;

    line-height:1.25;

    font-weight:800;

    color:#0f2d52;

    margin:0 0 16px;
}

/* CONTENT */

.rr-blog-content{

    font-size:17px;

    line-height:1.75;

    color:#374151;
}

.rr-blog-content p{

    margin:0 0 12px;
}

/* H2 */

.rr-blog-content h2{

    font-size:27px;

    line-height:1.3;

    font-weight:800;

    color:#0f2d52;

    margin:28px 0 10px;

    border-left:4px solid #0ea5e9;

    padding-left:12px;
}

/* H3 */

.rr-blog-content h3{

    font-size:21px;

    line-height:1.35;

    font-weight:700;

    color:#17406d;

    margin:20px 0 8px;
}

/* LINKS */

.rr-blog-content a{

    color:#0b74c8;

    text-decoration:none;
}

.rr-blog-content a:hover{

    color:#085a9a;
}

/* FEATURE IMAGE */

.rr-blog-featured-image{

    margin:0 0 18px;

    border-radius:10px;

    overflow:hidden;
}

.rr-blog-featured-image img{

    width:100%;

    display:block;
}



/* =====================================
   BLOG.CSS - PART 2
   CONTENT ELEMENTS + TOC
===================================== */

/* CONTENT IMAGES */

.rr-blog-figure{
    margin:14px 0;
}

.rr-blog-figure img{

    width:88%;
    max-width:640px;

    display:block;

    margin:0 auto;

    border-radius:10px;

    box-shadow:
    0 8px 25px rgba(15,23,42,.08);
}

.rr-blog-figure figcaption{

    margin-top:10px;

    text-align:center;

    font-size:14px;

    color:#6b7280;
}

/* LISTS */

.rr-blog-content ul:not(.rr-toc-list),
.rr-blog-content ol{

    margin:10px 0 14px 22px;
    padding:0;
}

.rr-blog-content ul:not(.rr-toc-list){
    list-style:disc;
}

.rr-blog-content ol{
    list-style:decimal;
}

.rr-blog-content li{

    margin-bottom:4px;

    line-height:1.7;
}

.rr-blog-content li:last-child{
    margin-bottom:0;
}

/* BLOCKQUOTE */

.rr-blog-content blockquote{

    margin:24px 0;

    padding:18px 22px;

    background:#f8fafc;

    border-left:4px solid #0ea5e9;

    border-radius:10px;

    color:#374151;
}

/* TABLE */

.rr-table-wrap{

    overflow-x:auto;

    margin:24px 0;
}

.rr-blog-content table{

    width:100%;

    border-collapse:collapse;

    font-size:15px;
}

.rr-blog-content th{

    background:#eef7ff;

    color:#0f2d52;

    font-weight:700;
}

.rr-blog-content td,
.rr-blog-content th{

    border:1px solid #dbe7f3;

    padding:12px;
}

/* HR */

.rr-blog-content hr{

    border:none;

    height:1px;

    background:#dbe7f3;

    margin:30px 0;
}

/* =====================================
   TOC
===================================== */

.rr-toc{

    background:#eef7ff;

    border:1px solid #d4e7f7;

    border-radius:10px;

    padding:10px 14px;

    margin:16px 0 22px;
}

.rr-toc-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:8px;
}

.rr-toc-title{

    font-size:14px;

    font-weight:700;

    color:#0f2d52;
}

.rr-toc-toggle{

    background:none;

    border:none;

    cursor:pointer;

    font-size:12px;

    font-weight:600;

    color:#0f766e;

    padding:0;
}

.rr-toc-list{

    margin:0;

    padding-left:16px;
}

.rr-toc-item{

    margin-bottom:2px;
}

.rr-toc-item:last-child{
    margin-bottom:0;
}

.rr-toc-item a{

    display:block;

    font-size:13px;

    line-height:1.35;

    color:#374151;

    text-decoration:none;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.rr-toc-item a:hover{

    color:#0f766e;
}


/* =====================================
   BLOG.CSS - PART 3
   SIDEBAR + PAGINATION
===================================== */

/* SIDEBAR */

.rr-blog-sidebar{

    position:sticky;

    top:20px;

    align-self:start;

    background:#edf7ff;

    border:1px solid #cfe5f8;

    border-radius:16px;

    padding:18px;
}

/* SEARCH BOX */

.rr-sidebar-search{

    background:#ffffff;

    border:1px solid #d9e8f5;

    border-radius:10px;

    overflow:hidden;

    margin-bottom:18px;
}

.rr-sidebar-search form{
    display:flex;
}

.rr-sidebar-search input{

    flex:1;

    border:none;

    padding:14px;

    font-size:14px;

    outline:none;

    background:#fff;
}

.rr-sidebar-search button{

    width:52px;

    border:none;

    background:#eef6ff;

    color:#2563eb;

    cursor:pointer;
}

/* SIDEBAR TITLE */

.rr-sidebar-title{

    background:#dff0ff;

    border-left:4px solid #0ea5e9;

    border-radius:8px;

    padding:12px 14px;

    margin:0 0 18px;

    font-size:18px;

    font-weight:700;

    color:#0f2d52;
}

/* RELATED CARDS */

.rr-blog-sidebar .rr-blog-card{

    display:flex;

    gap:10px;

    margin-bottom:14px;

    padding:10px;

    background:#ffffff;

    border:1px solid #dceaf5;

    border-radius:10px;

    transition:.2s ease;
}

.rr-blog-sidebar .rr-blog-card:hover{

    transform:translateY(-2px);

    box-shadow:
    0 6px 18px rgba(15,23,42,.06);
}

.rr-blog-sidebar .rr-blog-thumb{

    flex:0 0 85px;
}

.rr-blog-sidebar .rr-blog-thumb img{

    width:85px;

    height:65px;

    object-fit:cover;

    border-radius:4px;

    display:block;
}

.rr-blog-sidebar .rr-blog-body{

    flex:1;

    padding:0;
}

.rr-blog-sidebar .rr-blog-title{

    font-size:14px;

    line-height:1.4;

    font-weight:600;

    margin:0;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

.rr-blog-sidebar .rr-blog-title a{

    color:#111827;

    text-decoration:none;
}

.rr-blog-sidebar .rr-blog-title a:hover{

    color:#2563eb;
}

/* HIDE EXCERPT & DATE */

.rr-blog-sidebar .rr-excerpt,
.rr-blog-sidebar .rr-date{

    display:none;
}

/* =====================================
   PAGINATION
===================================== */

.rr-pagination{

    margin:50px 0 20px;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    flex-wrap:wrap;
}

.rr-pagination a{

    min-width:42px;

    height:42px;

    padding:0 12px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    border-radius:10px;

    border:1px solid #d6e4f0;

    background:#ffffff;

    color:#0f2d52;

    font-size:14px;

    font-weight:600;

    transition:.2s ease;
}

.rr-pagination a:hover{

    background:#eef7ff;

    border-color:#0ea5e9;

    color:#0ea5e9;
}

.rr-pagination a.active{

    background:#0ea5e9;

    border-color:#0ea5e9;

    color:#ffffff;
}

.rr-pagination span{

    color:#64748b;

    padding:0 4px;
}

/* =====================================
   MOBILE
===================================== */

@media(max-width:1024px){

    .rr-blog-layout{

        grid-template-columns:1fr;
    }

    .rr-blog-sidebar{

        position:static;

        margin-top:30px;
    }
}

@media(max-width:768px){

    .rr-blog{

        padding:18px;
    }

    .rr-blog-title{

        font-size:28px;
    }

    .rr-blog-content{

        font-size:16px;
    }

    .rr-blog-content h2{

        font-size:24px;
    }

    .rr-blog-content h3{

        font-size:20px;
    }

    .rr-blog-figure img{

        width:100%;

        max-width:100%;
    }
}