/* ======================================
   BLOG INDEX PAGE ONLY
====================================== */
*{
    box-sizing:border-box;
}
html {

overflow-y: scroll;

}

.blog-index-page{
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px 0;
}

/* ======================================
   MAIN CONTAINER
====================================== */

.blog-index-page .blog-main-container{
    width: 95%;
    margin: auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-index-page .blog-container{
    width: 95%;
    margin: auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ======================================
   LEFT CONTENT
====================================== */

.blog-index-page .left-content{
    flex: 1;
    min-width: 0;
}

.blog-index-page .blog-card{
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-index-page .blog-title{
    font-size: 26px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-index-page .blog-title a{
    text-decoration: none;
    color: #222;
}

.blog-index-page .blog-title a:hover{
    color: #007bff;
}

.blog-index-page .blog-meta{
    color: #777;
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-index-page .blog-description{
    color: #444;
    line-height: 1.8;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.blog-index-page .read-more{
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.blog-index-page .read-more:hover{
    background: #0056b3;
}

/* ======================================
   RIGHT SIDEBAR
====================================== */

.blog-index-page .right-sidebar{
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-index-page .sidebar-title{
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #222;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.blog-index-page .category-list{
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-index-page .category-list li{
    margin-bottom: 14px;
}

.blog-index-page .category-list a{
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fc;
    border-left: 4px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-index-page .category-list a:hover{
    background: #eef4ff;
    border-left: 4px solid #007bff;
    color: #007bff;
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(0,123,255,0.12);
}

/* ======================================
   PAGINATION
====================================== */

.blog-index-page .blog-pagination{
    margin-top: 30px;
}

.blog-index-page .blog-pagination a{
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
    border: 1px solid #ddd;
}

.blog-index-page .blog-pagination a.active{
    background: #007bff;
    color: #fff;
}

.blog-index-page .back-btn:hover{

    background:linear-gradient(135deg, #0056b3, #003f7f);

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(0,123,255,0.4);

}

/* ======================================
   RESPONSIVE
====================================== */

@media(max-width: 991px){

    .blog-index-page .blog-container{
        flex-direction: column;
        gap:20px;
    }

    .blog-index-page .left-content,
    .blog-index-page .right-sidebar{
        width:100%;
        min-width:100%;
    }

}
