/*
Theme Name: Newsbox Modular Pro
Author: Internal Framework
Description: Modular News Theme with Ads, Ratings, SEO, Sitemaps, Builder
Version: 1.0
*/

body{margin:0;font-family:Arial,sans-serif;line-height:1.6}
header{background:#111;color:#fff;padding:8px 15px;position:sticky;top:0;z-index:999}
.container{max-width:1200px;margin:auto;padding:15px}
footer{background:#111;color:#fff;padding:20px;text-align:center;margin-top:40px}
.sidebar{width:30%;float:right}
.content{width:68%;float:left}
.clearfix::after{content:"";display:block;clear:both}
.nb-ad-slot{margin:20px 0;text-align:center}
.nb-rating span{cursor:pointer;color:#ccc;font-size:20px}
.nb-rating .active{color:#ff9800}

/* HEADER STRUCTURE */

/* HEADER BASE */

.nb-header {
    padding:8px 15px;
    transition:all .3s ease;
}

.nb-header-inner {
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1200px;
    margin:auto;
}

.nb-logo img {
    max-height:40px;
    width:auto;
}

/* NAVIGATION */

.nb-nav ul {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:20px;
}

.nb-nav ul li a {
    text-decoration:none;
    font-weight:500;
}

/* HEADER ACTIONS */

.nb-header-actions {
    display:flex;
    gap:10px;
}

.nb-header-actions button,
.nb-menu-toggle {
    background:none;
    border:none;
    font-size:18px;
    cursor:pointer;
}

/* SEARCH BAR */

.nb-search-bar {
    display:none;
    padding:10px 0;
}

.nb-search-bar.active {
    display:block;
}

/* MOBILE */

@media(max-width:768px){

.nb-menu-toggle {
    display:block;
}

.nb-nav {
    display:none;
    width:100%;
}

.nb-nav.active {
    display:block;
}

.nb-nav ul {
    flex-direction:column;
    gap:10px;
}

}
/* END of HEADER STRUCTURE */

/* DARK MODE */

.nb-dark {
    background:#111;
    color:#ddd;
}

.nb-dark a {
    color:#ff9900;
}

.nb-dark .nb-header {
    background:#000 !important;
}

/* ENS of DARK MODE */



/* Breadcrumbs */
.nb-breadcrumbs {
    font-size:13px;
    margin-bottom:15px;
    color:#666;
}

.nb-breadcrumbs a {
    color:#ff6600;
    text-decoration:none;
}

/* End of Breadcrumbs */


/* Mobile Improvements */

@media(max-width:768px){

.content,
.sidebar{
    width:100%;
    float:none;
}

.nb-home-card img{
    width:100%;
    height:auto;
}

.nb-related-item{
    width:48%;
    display:inline-block;
    vertical-align:top;
}

}

/* End of Mobile Improvements */

/* home page */
.nb-hero-grid {
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:15px;
}

.nb-hero-item img {
    width:100%;
    border-radius:8px;
}

.nb-cat-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.nb-latest-item {
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

@media(max-width:768px){
    .nb-hero-grid,
    .nb-cat-grid {
        grid-template-columns:1fr;
    }
}

/* end of home page */

/* Desktop Menu Layout Fix */
.nb-nav {
    display: flex;
    align-items: center;
}

.nb-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

.nb-menu li {
    list-style: none;
}

.nb-menu li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}

/* dummy home page headings  */
.nb-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 20px;
    border-left: 4px solid #ff3c00;
    padding-left: 12px;
}
/* end of dummy home page headings  */

/* Header section */
/* ===============================
   HEADER CLEAN MODERN STYLE
================================ */

.nb-header {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
}

.nb-logo img {
    max-height: 40px;
}

.nb-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nb-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.nb-actions {
    display: flex;
    gap: 15px;
}

.nb-actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* Mobile */
.nb-menu-toggle {
    display: none;
}

@media (max-width: 992px) {

    .nb-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100%;
        background: #111;
        padding: 80px 20px;
        transition: 0.3s;
        flex-direction: column;
    }

    .nb-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .nb-nav.active {
        right: 0;
    }

    .nb-menu-toggle {
        display: block;
    }
}
/* end of header section */

/* toggle dark mode */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .nb-header {
    background: #000;
}

/* End of Dark Mode */

/* searchbar */

.nb-search-bar {
    display: none;
    background: #f5f5f5;
    padding: 15px;
}

.nb-search-bar.active {
    display: block;
}


/* end of searchbar */

/* mobile menu */
.nb-nav {
    transition: right 0.3s ease;
}

@media (max-width: 992px) {
    .nb-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100%;
        background: #111;
        padding: 80px 20px;
    }

    .nb-nav.active {
        right: 0;
    }
}

/* end of mobile menu */


/* darkmode */

body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .nb-header {
    background: #000;
}

/* end of darkmode */
/* ==================================================
   NEWS PORTAL 2-COLUMN LAYOUT SYSTEM (FINAL)
================================================== */

/* --- Main Layout --- */
.nb-home-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* --- Sections --- */
.nb-section {
    margin-bottom: 60px;
}

/* --- Sidebar --- */
.nb-sidebar {
    position: relative;
}

.nb-widget-box {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

/* --- Card System --- */
.nb-hero-item,
.nb-cat-item,
.nb-latest-item {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    transition: 0.2s ease;
}

.nb-hero-item:hover,
.nb-cat-item:hover,
.nb-latest-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* --- Image Control (STRICT) --- */
.nb-hero-item img,
.nb-cat-item img,
.nb-latest-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* --- Title Control --- */
.nb-hero-item h2,
.nb-cat-item p,
.nb-latest-item span {
    padding: 14px 16px 18px;
    min-height: 60px;
    line-height: 1.4;
    font-size: 16px;
}

/* --- Hero Grid --- */
.nb-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.nb-hero-item.hero-1 {
    grid-row: span 2;
}

/* --- Category & Latest Grid --- */
.nb-cat-grid,
.nb-latest {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .nb-home-layout {
        grid-template-columns: 1fr;
    }

    .nb-cat-grid,
    .nb-latest {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nb-cat-grid,
    .nb-latest,
    .nb-hero-grid {
        grid-template-columns: 1fr;
    }

    .nb-hero-item img,
    .nb-cat-item img,
    .nb-latest-item img {
        height: 200px;
    }
}




