/*=====================================
        CONTENT CARD
======================================*/

.blog-content-card{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    border:1px solid #ffe7a0;

    box-shadow:0 12px 35px rgba(255,193,7,.12);

}

.blog-banner{

    overflow:hidden;

}

.blog-banner img{

    width:100%;

    height:480px;

    object-fit:cover;

    display:block;

}

.blog-share{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 35px;

    border-bottom:1px solid #eee;

}

.share-title{

    font-size:20px;

    font-weight:700;

}

.share-icons{

    display:flex;

    gap:10px;

}

.share-icons a{

    width:42px;

    height:42px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#f8f9fa;

    color:#444;

    transition:.35s;

    text-decoration:none;

}

.share-icons a:hover{

    background:#0d6efd;

    color:#fff;

    transform:translateY(-5px);

}

.blog-description{

    padding:40px;

    line-height:34px;

    font-size:17px;

    color:#000000;

}

.blog-description h2{

    font-size:34px;

    font-weight:700;

    margin:35px 0 20px;

}

.blog-description h3{

    font-size:28px;

    font-weight:700;

    margin:30px 0 18px;

}

.blog-description p{

    margin-bottom:20px;

}

.blog-description img{

    width:100%;

    border-radius:18px;

    margin:30px 0;

}

.blog-description ul{

    padding-left:20px;

}

.blog-description li{

    margin-bottom:12px;

}
/*====================================
        STICKY SIDEBAR
=====================================*/

.blog-sidebar{

    position:sticky;

    top:100px;

}



/*====================================
        SIDEBAR CARD
=====================================*/

.sidebar-card{

    background:#fff;

    padding:28px;

    margin-bottom:25px;

    border-radius:20px;

    border:1px solid #ffe8b3;

    box-shadow:0 10px 30px rgba(255,193,7,.10);

}

.sidebar-title{

    position:relative;

    font-size:22px;

    font-weight:700;

    margin-bottom:25px;

    padding-left:18px;

}

.sidebar-title::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

    background:#dc3545;

    border-radius:10px;

}



/*====================================
        SEARCH
=====================================*/

.search-box{

    position:relative;

}

.search-box input{

    padding:14px 55px 14px 18px;

    border-radius:12px;

}

.search-box button{

    position:absolute;

    right:6px;

    top:6px;

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    background:#0d6efd;

    color:#fff;

}



/*====================================
        CATEGORY
=====================================*/

.category-list{

    list-style:none;

    margin:0;

    padding:0;

}

.category-list li{

    margin-bottom:12px;

}

.category-list a{

    display:flex;

    justify-content:space-between;

    align-items:center;

    text-decoration:none;

    padding:12px 16px;

    border-radius:12px;

    background:#fafafa;

    color:#333;

    transition:.3s;

}

.category-list a:hover{

    background:#0d6efd;

    color:#fff;

    transform:translateX(5px);

}

.count{

    background:#dc3545;

    color:#fff;

    width:30px;

    height:30px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:13px;

}



/*====================================
        LATEST BLOG
=====================================*/

.latest-blog{

    display:flex;

    gap:15px;

    margin-bottom:20px;

}

.latest-blog img{

    width:90px;

    height:75px;

    object-fit:cover;

    border-radius:12px;

}

.latest-blog h6{

    margin-bottom:8px;

    font-size:15px;

    line-height:22px;

}

.latest-blog h6 a{

    color:#222;

    text-decoration:none;

}

.latest-blog span{

    font-size:13px;

    color:#777;

}



/*====================================
        CONTACT
=====================================*/

.contact-widget input,
.contact-widget textarea{

    margin-bottom:15px;

    border-radius:12px;

    padding:14px;

}

.contact-widget button{

    border-radius:12px;

    padding:14px;

    font-weight:600;

}



/*====================================
        SOCIAL
=====================================*/

.social-icons{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

}

.social-icons a{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#f5f5f5;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#333;

    text-decoration:none;

    transition:.3s;

}

.social-icons a:hover{

    background:#0d6efd;

    color:#fff;

    transform:translateY(-5px);

}



/*====================================
        MOBILE
=====================================*/

@media(max-width:991px){

.blog-sidebar{

position:static;

margin-top:40px;

}

}
/*==================================
PREVIOUS NEXT
===================================*/

.blog-navigation{

margin-top:70px;

margin-bottom:70px;

}

.nav-blog-card{

display:block;

padding:30px;

border-radius:20px;

background:#fff;

border:1px solid #ffe4b3;

box-shadow:0 10px 30px rgba(255,193,7,.10);

text-decoration:none;

color:#222;

transition:.35s;

}

.nav-blog-card:hover{

transform:translateY(-8px);

color:#0d6efd;

}

.nav-blog-card small{

color:#dc3545;

font-weight:700;

}

.nav-blog-card h5{

margin-top:15px;

font-weight:700;

line-height:30px;

}



/*==================================
RELATED
===================================*/

.related-blog-section{

padding:80px 0;

}

.related-card{

background:#fff;

border-radius:22px;

overflow:hidden;

box-shadow:0 15px 35px rgba(255,193,7,.10);

border:1px solid #fff0bf;

transition:.35s;

height:100%;

}

.related-card:hover{

transform:translateY(-10px);

}

.related-img{

position:relative;

overflow:hidden;

}

.related-img img{

width:100%;

height:220px;

object-fit:cover;

transition:.5s;

}

.related-card:hover img{

transform:scale(1.08);

}

.related-img span{

position:absolute;

left:15px;

bottom:15px;

background:#0d6efd;

color:#fff;

padding:8px 18px;

border-radius:40px;

font-size:13px;

}

.related-content{

padding:25px;

}

.related-date{

color:#666;

margin-bottom:15px;

font-size:14px;

}

.related-content h4{

font-size:24px;

font-weight:700;

line-height:34px;

margin-bottom:15px;

}

.related-content h4 a{

color:#222;

text-decoration:none;

}

.related-content h4 a:hover{

color:#0d6efd;

}

.related-content p{

line-height:28px;

color:#666;

margin-bottom:20px;

}

.related-btn{

display:inline-flex;

align-items:center;

gap:10px;

background:#0d6efd;

padding:12px 22px;

border-radius:40px;

color:#fff;

text-decoration:none;

font-weight:600;

}

.related-btn:hover{

background:#dc3545;

color:#fff;

}



/*==================================
RESPONSIVE
===================================*/

@media(max-width:991px){

.related-blog-section{

padding:50px 0;

}

.nav-blog-card{

text-align:left!important;

}

}
/*==========================
    BLOG PAGE
===========================*/

.blog-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    border:1px solid #eee;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.35s;
    height:100%;
}

.blog-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.blog-image-box{
    position:relative;
    overflow:hidden;
}

.blog-image{
    width:100%;
    height:240px;
    object-fit:cover;
    transition:.5s;
}

.blog-card:hover .blog-image{
    transform:scale(1.08);
}

.blog-category{
    position:absolute;
    left:20px;
    bottom:20px;
    background:#0d6efd;
    color:#fff;
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.blog-content{
    padding:25px;
}

.blog-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.meta-badge{
    background:#eef4ff;
    color:#0d6efd;
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.blog-title{
    font-size:24px;
    font-weight:700;
    line-height:1.5;
    margin-bottom:15px;
}

.blog-title a{
    color:#222;
    text-decoration:none;
}

.blog-title a:hover{
    color:#0d6efd;
}

.blog-desc{
    color:#666;
    line-height:30px;
    margin-bottom:25px;
}

.blog-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.view-badge{
    background:#fff6ea;
    color:#ff9800;
    padding:8px 16px;
    border-radius:30px;
    font-weight:600;
}

.blog-btn{
    background:#0d6efd;
    color:#fff;
    padding:12px 22px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.blog-btn:hover{
    background:#dc3545;
    color:#fff;
}

.blog-hero{
    background:#f8fbff;
    padding:70px 0;
    text-align:center;
}

.blog-badge{
    background:#0d6efd;
    color:#fff;
    padding:10px 22px;
    border-radius:30px;
    font-weight:600;
}

.blog-main-title{
    font-size:48px;
    font-weight:800;
    margin:25px 0;
}

.hero-text{
    color:#666;
    font-size:18px;
}

.pagination{
    justify-content:center;
    margin-top:40px;
}

.pagination .page-link{
    border:none;
    margin:0 5px;
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#0d6efd;
}

.pagination .active .page-link{
    background:#0d6efd;
    color:#fff;
}

@media(max-width:992px){

.blog-title{
    font-size:22px;
}

.blog-main-title{
    font-size:36px;
}

}

@media(max-width:768px){

.blog-image{
    height:220px;
}

.blog-content{
    padding:20px;
}

.blog-title{
    font-size:20px;
}

.blog-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
}

.blog-btn{
    width:100%;
    text-align:center;
}

.blog-main-title{
    font-size:30px;
}

}

.social-icons{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

}

.social-icons a{

    width:48px;

    height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#f8f9fa;

    color:#0d6efd;

    font-size:20px;

    text-decoration:none;

    transition:.3s;

}

.social-icons a:hover{

    background:#0d6efd;

    color:#fff;

    transform:translateY(-5px);

}


/*=========================================
    SUBJECT DETAILS
=========================================*/

.subject-detail-placeholder{
    min-height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8f9fa;
    font-size:80px;
    color:#E53935;
}


/*=========================================
    SUBJECT INFO ICON
=========================================*/

.subject-info-icon{
    width:48px;
    height:48px;
    min-width:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#FFF1F1;
    color:#E53935;
    font-size:20px;
}


/*=========================================
    SUBJECT CONTENT
=========================================*/

.subject-content-block{
    margin-top:40px;
    margin-bottom:40px;
}

.subject-content-block h3{
    font-size:28px;
    font-weight:700;
    color:#1F2937;
}

.subject-content-block ul{
    padding-left:20px;
}

.subject-content-block li{
    margin-bottom:10px;
}


/*=========================================
    SUBJECT SIDEBAR ICON
=========================================*/

.subject-sidebar-icon{
    width:65px;
    height:55px;
    min-width:65px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:linear-gradient(
        135deg,
        #ff5f6d,
        #ff2d55
    );
    color:#fff;
    font-size:24px;
}


/*=========================================
    CATEGORY ACTIVE SUBJECT
=========================================*/

.category-list li a.active{
    color:#E53935;
    font-weight:700;
    background:#FFF1F1;
}


/*=========================================
    SUBJECT DETAIL RESPONSIVE
=========================================*/

@media(max-width:991px){

    .subject-detail-placeholder{
        min-height:280px;
    }

    .subject-content-block h3{
        font-size:24px;
    }

}


@media(max-width:576px){

    .subject-detail-placeholder{
        min-height:220px;
        font-size:60px;
    }

    .subject-info-icon{
        width:42px;
        height:42px;
        min-width:42px;
    }

}
/* =========================================
   SUBJECT DETAILS LAYOUT
========================================= */

.subject-details-layout{
    align-items:flex-start;
}


/* =========================================
   STICKY SIDEBAR
========================================= */

.subject-sidebar{
    position:sticky;
    position:-webkit-sticky;
    top:30px;
    height:auto;
    align-self:flex-start;
}


/* Sidebar cards spacing */

.subject-sidebar .sidebar-card{
    margin-bottom:25px;
}


/* =========================================
   IMPORTANT
   Sticky ke parent par overflow hidden nahi hona chahiye
========================================= */

.subject-details-layout,
.subject-details-layout > .col-lg-4{
    overflow:visible !important;
}


/* =========================================
   MOBILE / TABLET
========================================= */

@media(max-width:991px){

    .subject-sidebar{
        position:static;
        top:auto;
    }

}
