/* =====================================================
   जनसेतु समाचार
   Category Page
   category.css
   Part - 1
===================================================== */

/* =========================================
   CATEGORY PAGE
========================================= */

.category-page{

    padding:40px 0;

    background:#f5f5f5;

    min-height:100vh;

}

/* =========================================
   CONTAINER
========================================= */

.container{

    width:90%;

    max-width:1300px;

    margin:auto;

}

/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb{

    background:#ffffff;

    border-bottom:1px solid #e5e5e5;

    padding:15px 0;

}

.breadcrumb .container{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:15px;

}

.breadcrumb a{

    color:#E63946;

    text-decoration:none;

    font-weight:600;

}

.breadcrumb a:hover{

    text-decoration:underline;

}

.breadcrumb span{

    color:#666;

}

/* =========================================
   CATEGORY HEADER
========================================= */

.category-header{

    background:#ffffff;

    padding:40px 0;

    text-align:center;

    border-bottom:1px solid #eee;

}

.category-header h1{

    font-size:40px;

    color:#1D3557;

    margin-bottom:10px;

    font-weight:700;

}

.category-header p{

    font-size:18px;

    color:#666;

    margin-bottom:20px;

}

.category-count{

    display:inline-block;

    background:#E63946;

    color:#ffffff;

    padding:10px 22px;

    border-radius:30px;

    font-size:15px;

    font-weight:600;

}
/* =====================================================
   Category Page
   Part - 2
   Layout + Sidebar + Grid
===================================================== */

/* =========================================
   MAIN LAYOUT
========================================= */

.category-layout{

    display:grid;

    grid-template-columns:2.2fr 1fr;

    gap:30px;

    align-items:start;

}

/* =========================================
   LEFT CONTENT
========================================= */

.category-content{

    width:100%;

}

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

.news-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

}

/* =========================================
   SIDEBAR
========================================= */

.category-sidebar{

    display:flex;

    flex-direction:column;

    gap:25px;

}

/* =========================================
   SIDEBAR WIDGET
========================================= */

.sidebar-widget{

    background:#ffffff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

/* Widget Title */

.sidebar-widget h3{

    background:#1D3557;

    color:#ffffff;

    padding:16px 20px;

    font-size:20px;

    font-weight:600;

}

/* Widget Body */

.sidebar-widget > div{

    padding:18px;

}

/* =========================================
   SIDEBAR NEWS ITEM
========================================= */

.sidebar-news{

    display:flex;

    gap:12px;

    padding:15px 0;

    border-bottom:1px solid #eeeeee;

}

.sidebar-news:last-child{

    border-bottom:none;

}

.sidebar-news img{

    width:90px;

    height:70px;

    object-fit:cover;

    border-radius:8px;

    flex-shrink:0;

}

.sidebar-content{

    flex:1;

}

.sidebar-content h4{

    font-size:16px;

    line-height:1.5;

    margin-bottom:8px;

}

.sidebar-content h4 a{

    color:#222;

    text-decoration:none;

    transition:.3s;

}

.sidebar-content h4 a:hover{

    color:#E63946;

}

.sidebar-content span{

    color:#777;

    font-size:14px;

}

/* =========================================
   TRENDING NUMBER
========================================= */

.trending-number{

    width:32px;

    height:32px;

    border-radius:50%;

    background:#E63946;

    color:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

    flex-shrink:0;

}

/* =====================================================
   Category Page
   Part - 3
   News Cards
===================================================== */

/* =========================================
   NEWS CARD
========================================= */

.news-card{

    background:#ffffff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    transition:.3s;

    display:flex;

    flex-direction:column;

}

.news-card:hover{

    transform:translateY(-6px);

    box-shadow:0 12px 30px rgba(0,0,0,.15);

}

/* =========================================
   NEWS IMAGE
========================================= */

.news-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

}

/* =========================================
   NEWS CONTENT
========================================= */

.news-content{

    padding:18px;

}

/* =========================================
   CATEGORY BADGE
========================================= */

.news-category{

    display:inline-block;

    background:#E63946;

    color:#ffffff;

    padding:6px 14px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;

    margin-bottom:12px;

}

/* =========================================
   NEWS TITLE
========================================= */

.news-content h3{

    font-size:22px;

    line-height:1.5;

    margin-bottom:12px;

}

.news-content h3 a{

    color:#1D3557;

    text-decoration:none;

    transition:.3s;

}

.news-content h3 a:hover{

    color:#E63946;

}

/* =========================================
   SHORT DESCRIPTION
========================================= */

.news-content p{

    color:#555;

    font-size:16px;

    line-height:1.8;

    margin-bottom:18px;

    text-align:justify;

}

/* =========================================
   NEWS META
========================================= */

.news-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:14px;

    color:#777;

    margin-bottom:18px;

    border-top:1px solid #eeeeee;

    padding-top:12px;

}

/* =========================================
   READ MORE BUTTON
========================================= */

.read-more{

    display:inline-block;

    background:#E63946;

    color:#ffffff;

    text-decoration:none;

    padding:10px 20px;

    border-radius:6px;

    font-weight:600;

    transition:.3s;

}

.read-more:hover{

    background:#c62839;

}

/* =====================================================
   Category Page
   Part - 4
   Load More + Empty State + Advertisement
===================================================== */

/* =========================================
   LOAD MORE SECTION
========================================= */

.load-more-box{

    display:flex;

    justify-content:center;

    margin:50px 0;

}

#loadMoreBtn{

    padding:14px 35px;

    background:#E63946;

    color:#ffffff;

    border:none;

    border-radius:8px;

    font-size:17px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

    width:100%;

}

#loadMoreBtn:hover{

    background:#c62839;

    transform:translateY(-2px);

}

#loadMoreBtn:disabled{

    background:#999;

    cursor:not-allowed;

}

/* =========================================
   ADVERTISEMENT
========================================= */

.ad-box{

    text-align:center;

    padding:15px;

}

.ad-box img{

    width:100%;

    border-radius:10px;

    margin-bottom:10px;

}

.ad-box p{

    font-size:15px;

    color:#666;

}

/* =========================================
   EMPTY NEWS
========================================= */

.empty-news{

    padding:80px 20px;

    text-align:center;

}

.empty-news img{

    width:180px;

    margin-bottom:25px;

}

.empty-news h2{

    font-size:34px;

    color:#1D3557;

    margin-bottom:15px;

}

.empty-news p{

    font-size:18px;

    color:#666;

    margin-bottom:30px;

}

.empty-news .read-btn{

    display:inline-block;

    background:#E63946;

    color:#ffffff;

    padding:12px 28px;

    border-radius:8px;

    text-decoration:none;

    transition:.3s;

}

.empty-news .read-btn:hover{

    background:#c62839;

}

/* =========================================
   SKELETON LOADING
========================================= */

.skeleton{

    background:linear-gradient(
        90deg,
        #eeeeee 25%,
        #f5f5f5 50%,
        #eeeeee 75%
    );

    background-size:200% 100%;

    animation:skeletonLoading 1.5s infinite;

    border-radius:8px;

}

@keyframes skeletonLoading{

    0%{

        background-position:200% 0;

    }

    100%{

        background-position:-200% 0;

    }

}

/* =========================================
   FADE ANIMATION
========================================= */

.fade-in{

    animation:fadeIn .5s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =====================================================
   Category Page
   Part - 5
   Responsive Design + Production Optimization
===================================================== */

/* =========================================
   LAPTOP
========================================= */

@media (max-width:1200px){

    .category-layout{

        grid-template-columns:2fr 1fr;

        gap:25px;

    }

}

/* =========================================
   TABLET
========================================= */

@media (max-width:992px){

    .category-layout{

        grid-template-columns:1fr;

    }

    .category-sidebar{

        margin-top:40px;

    }

    .news-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width:768px){

    .category-page{

        padding:20px 0;

    }

    .category-header{

        padding:30px 15px;

    }

    .category-header h1{

        font-size:30px;

    }

    .category-header p{

        font-size:16px;

    }

    .news-grid{

        grid-template-columns:1fr;

        gap:20px;

    }

    .news-card img{

        height:220px;

    }

    .news-content{

        padding:16px;

    }

    .news-content h3{

        font-size:20px;

    }

    .news-content p{

        font-size:15px;

    }

    .news-meta{

        flex-direction:column;

        align-items:flex-start;

        gap:8px;

    }

    .sidebar-widget h3{

        font-size:18px;

    }

    .sidebar-news{

        gap:10px;

    }

    .sidebar-news img{

        width:80px;

        height:60px;

    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width:480px){

    .container{

        width:94%;

    }

    .breadcrumb{

        font-size:13px;

    }

    .category-header h1{

        font-size:26px;

    }

    .category-count{

        font-size:14px;

        padding:8px 18px;

    }

    .news-card img{

        height:200px;

    }

    .news-content h3{

        font-size:18px;

    }

    .news-content p{

        font-size:14px;

        line-height:1.6;

    }

    .read-more{

        width:100%;

        text-align:center;

    }

    #loadMoreBtn{

        width:100%;

    }

}

/* =========================================
   IMAGE OPTIMIZATION
========================================= */

img{

    max-width:100%;

    display:block;

}

/* =========================================
   SMOOTH SCROLL
========================================= */

html{

    scroll-behavior:smooth;

}

/* =========================================
   SELECTION
========================================= */

::selection{

    background:#E63946;

    color:#ffffff;

}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f1f1f1;

}

::-webkit-scrollbar-thumb{

    background:#E63946;

    border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

    background:#c62839;

}