:root {
    --brand-red: #cc0000;
    --dark-red: #a30000;
    --text-dark: #1a1a1a;
    --blue: #1565c0;
    --green: #2e7d32;
    --teal: #00796b;
    --purple: #6a1b9a;
    --orange: #e65100;
}

* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', Arial, sans-serif;
    background: #f2f2f2;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ================= Top utility bar ================= */
.topbar {
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #555;
}
.topbar-left i { color: var(--brand-red); }
.lang-link { color: #555; font-weight: 600; }
.lang-link.active { color: var(--brand-red); }
.lang-sep { margin: 0 6px; color: #ccc; }
.social-icons { margin-left: 14px; }
.social-icons a { color: #555; margin-left: 10px; font-size: 14px; }
.social-icons a:hover { color: var(--brand-red); }

/* ================= Logo header ================= */
.logo-text {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
.logo-text .pub { color: #111; }
.logo-text .dia {
    background: var(--brand-red);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 2px;
}
.small-logo { font-size: 22px; }
.tagline { color: var(--brand-red); font-size: 12px; font-weight: 700; margin-top: 3px; }

.search-form .form-control { border-radius: 4px 0 0 4px; }
.search-form .btn { border-radius: 0 4px 4px 0; }

.header-icon-link {
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.header-icon-link:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* ================= Red category nav ================= */
.main-nav {
    background: var(--brand-red);
    z-index: 1030;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.main-nav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: none;
}
.main-nav-scroll::-webkit-scrollbar { display: none; }
.main-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 14px !important;
    white-space: nowrap;
    transition: background .15s;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active {
    background: var(--dark-red);
}
.nav-toggler {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 6px 10px;
    display: none;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .nav-toggler { display: block; }
    .main-nav-scroll { display: none; }
}

/* Mobile offcanvas menu */
.mobile-menu-list li a {
    display: block;
    padding: 12px 20px;
    color: #222;
    font-weight: 600;
    border-bottom: 1px solid #f2f2f2;
}
.mobile-menu-list li a:hover,
.mobile-menu-list li a.active {
    background: var(--brand-red);
    color: #fff;
}

/* ================= Badges ================= */
.badge-cat {
    background: var(--brand-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
    letter-spacing: .3px;
}
.badge-cat.badge-blue   { background: var(--blue); }
.badge-cat.badge-green  { background: var(--green); }
.badge-cat.badge-teal   { background: var(--teal); }
.badge-cat.badge-purple { background: var(--purple); }
.badge-cat.badge-orange { background: var(--orange); }

/* ================= Hero slider ================= */
.hero-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    height: 420px;
}
.hero-card img {
    position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-card::after {
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.carousel-item { height: 420px; }
.hero-content {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
    padding: 24px;
}
.hero-content h2 {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 800;
    line-height: 1.35;
    margin: 8px 0;
}
.hero-content p { opacity: .9; }
.carousel-indicators { margin-bottom: 8px; }
.carousel-control-prev, .carousel-control-next { width: 6%; z-index: 3; }

@media (max-width: 767.98px) {
    .hero-card, .carousel-item { height: 300px; }
    .hero-content { padding: 16px; }
    .hero-content p { display: none; }
}

/* ================= Side news list ================= */
.section-title {
    font-weight: 800;
    font-size: 17px;
    border-left: 4px solid var(--brand-red);
    padding-left: 10px;
    margin-bottom: 14px;
}
.news-list-item { display:flex; gap:10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item img { width: 72px; height: 56px; object-fit: cover; border-radius:5px; flex-shrink:0; }
.news-list-item .title { font-size: 14px; font-weight: 700; line-height:1.35; }
.news-list-item .title a:hover { color: var(--brand-red); }
.news-list-item .meta { font-size: 11px; color: #888; margin-top: 3px; }

/* ================= Trending box ================= */
.trending-box { border: 1px solid #eee; border-radius: 8px; background:#fff; overflow: hidden; }
.trending-box .box-title {
    background: var(--brand-red); color:#fff; font-weight:800; padding: 12px 16px;
    font-size: 15px; display:flex; align-items:center; gap:6px;
}
.trending-item { display:flex; align-items:flex-start; gap:12px; padding: 12px 16px; border-bottom: 1px solid #f2f2f2; }
.trending-item:last-child { border-bottom: none; }
.trending-item .num { color: var(--brand-red); font-weight: 800; font-size: 19px; width:18px; flex-shrink: 0; }
.trending-item .title { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.trending-item .title a:hover { color: var(--brand-red); }
.trending-item .meta { font-size: 11px; color: #999; margin-top: 3px; }

/* ================= News cards (special coverage / category grid) ================= */
.news-card { background:#fff; border-radius:8px; overflow:hidden; box-shadow: 0 1px 6px rgba(0,0,0,.08); height:100%; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.news-card img { width:100%; height:150px; object-fit:cover; }
.news-card .body { padding: 13px; }
.news-card .title { font-size:14px; font-weight:700; line-height:1.4; }
.news-card .title a:hover { color: var(--brand-red); }
.news-card .meta { font-size: 11px; color:#888; margin-top:8px;}

@media (max-width: 575.98px) {
    .news-card img { height: 120px; }
    .news-card .title { font-size: 13px; }
}

/* ================= Footer ================= */
footer { background: #171717; color: #bbb; padding: 45px 0 15px; margin-top: 45px; }
footer h5 { color:#fff; font-weight:800; margin-bottom: 14px; }
footer a { color:#bbb; }
footer a:hover { color: var(--brand-red); }
footer .fdiv { margin-bottom: 8px; }

/* ================= Article detail ================= */
.article-body { font-size: 17px; line-height: 1.9; }
.article-body img { max-width:100%; border-radius:8px; margin: 15px 0; }

/* ================= Admin panel ================= */
.admin-sidebar { min-height:100vh; background:#1a1a1a; }
.admin-sidebar .nav-link { color:#ccc; padding:10px 18px; border-radius:4px; }
.admin-sidebar .nav-link.active, .admin-sidebar .nav-link:hover { background: var(--brand-red); color:#fff; }
.admin-topbar { background:#fff; border-bottom:1px solid #eee; }
.stat-card { border-radius:8px; color:#fff; padding:20px; }

/* ================= Responsive container tweaks ================= */
@media (max-width: 575.98px) {
    .logo-text { font-size: 24px; }
    .section-title { font-size: 15px; }
}
.publisher-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-top: -2px;
    margin-bottom: 2px;
}

.mobile-publisher {
    font-size: 11px;
    margin-top: 0;
}

@media (max-width: 576px) {
    .publisher-name {
        font-size: 10px;
    }
}
