:root {
    --primary: #e44d26;
    --primary-dark: #c0392b;
    --dark: #1a1a2e;
    --text: #222;
    --text-muted: #666;
    --border: #e8e8e8;
    --bg: #fff;
    --white: #fff;
    --sidebar-width: 220px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset Bootstrap Reboot Defaults */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
figure,
blockquote,
address {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* BREAKING NEWS BAR */
.breaking-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
}

.breaking-bar .label {
    background: var(--primary);
    padding: 4px 12px;
    font-weight: 700;
    margin-right: 12px;
    border-radius: 3px;
}

.breaking-bar .ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-bar .ticker-inner {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.breaking-bar-wrap {
    display: flex;
    align-items: center;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.header-top {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 11px;
    color: #555;
    font-weight: 400;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.header-nav a {
    display: flex;
    flex-direction: row;
    padding: 6px 10px;
    color: #444;
    font-size: 18px;
    border-radius: 6px;
    transition: .2s;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.header-nav a i {
    font-size: 18px;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary);
    background: #fff5f2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu {
    position: relative;
}

.user-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    width: 260px;
    overflow: hidden;
    display: none;
    z-index: 200;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: #111;
    text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f9f9f9;
}

.ud-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #666;
    flex-shrink: 0;
}

.btn-login {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-size: 15px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.dark-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: .3s;
    flex-shrink: 0;
}

.toggle-switch.on {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: .3s;
}

.toggle-switch.on::after {
    left: 22px;
}

.ud-app-section {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}

.ud-app-section p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-align: center;
}

.ud-app-section .app-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ud-app-section .app-btns a {
    display: block;
}

.ud-app-section .app-btns a img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ── MOBILE HEADER ICONS (hidden on desktop) ── */
.mobile-header-icons {
    display: none;
    align-items: center;
    gap: 16px;
}

.mobile-header-icons a {
    color: #444;
    font-size: 20px;
    line-height: 1;
}

.mobile-header-icons a:hover {
    color: var(--primary);
}

/* ── MOBILE CATEGORY BAR ── */
.mob-cat-bar {
    display: none;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 12px;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.mob-cat-bar::-webkit-scrollbar {
    display: none;
}

.mob-cat-bar a {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    font-weight: 500;
    transition: .2s;
}

.mob-cat-bar a.active,
.mob-cat-bar a:hover {
    background: #fff5f2;
    color: var(--primary);
    border-color: var(--primary);
}

/* ── MOBILE BOTTOM NAV ── */
.mob-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}

.mob-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.mob-bottom-nav a.active,
.mob-bottom-nav a:hover {
    color: var(--primary);
}

.mob-bottom-nav a i {
    font-size: 22px;
}

/* ── MOBILE PROFILE BOTTOM SHEET ── */
.mob-profile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1100;
    opacity: 0;
    transition: opacity .3s;
}

.mob-profile-overlay.open {
    display: block;
    opacity: 1;
}

.mob-profile-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    z-index: 1101;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1);
    max-height: 92vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.mob-profile-sheet.open {
    transform: translateY(0);
}

.mob-sheet-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
}

.mob-sheet-header {
    display: flex;
    align-items: center;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.mob-sheet-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #444;
    padding: 4px;
    line-height: 1;
}

.mob-sheet-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    color: #111;
}

.mob-sheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

a.mob-sheet-row:hover {
    background: #f9f9f9;
}

.mob-sheet-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #666;
    flex-shrink: 0;
}

.mob-sheet-links {
    padding: 16px;
}

.mob-sheet-links a {
    display: block;
    font-size: 14px;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.mob-sheet-links a:last-child {
    border-bottom: none;
}

.mob-sheet-links a:hover {
    color: var(--primary);
}

.mob-sheet-copyright {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    padding: 12px 16px 20px;
}

/* Dark mode sheet */
body.dark-mode .mob-profile-sheet {
    background: #1a1a2e;
}

body.dark-mode .mob-sheet-handle {
    background: #3a3a5a;
}

body.dark-mode .mob-sheet-header {
    border-color: #2a2a3e;
}

body.dark-mode .mob-sheet-back {
    color: #ccc;
}

body.dark-mode .mob-sheet-title {
    color: #f0f0f0;
}

body.dark-mode .mob-sheet-row {
    border-color: #2a2a3e;
    color: #ddd;
}

body.dark-mode a.mob-sheet-row:hover {
    background: #252540;
}

body.dark-mode .mob-sheet-icon {
    border-color: #3a3a5a;
    color: #aaa;
    background: #252540;
}

body.dark-mode .mob-sheet-links a {
    color: #aaa;
    border-color: #2a2a3e;
}

body.dark-mode .mob-sheet-links a:hover {
    color: var(--primary);
}

body.dark-mode .mob-sheet-copyright {
    color: #555;
}

/* MAIN LAYOUT */
.main-wrap {
    display: flex;
    gap: 20px;
    padding: 16px 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 2px;
    transition: .2s;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #fff5f2;
    color: var(--primary);
}

.sidebar-nav .nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* CARDS */
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: .2s;
    border: 1px solid var(--border);
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.news-card-body {
    padding: 12px;
}

.news-card .cat-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.news-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0;
    line-height: 1.4;
    color: #111;
}

.news-card h3:hover {
    color: var(--primary);
}

.news-card .meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.live-badge {
    background: #e00;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-right: 4px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

/* GRID */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.news-list-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.news-list-item img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-list-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.news-list-item h4:hover {
    color: var(--primary);
}

.news-list-item .meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* SECTION HEADING */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.section-head h2 {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.section-head a {
    font-size: 12px;
    color: var(--primary);
}

/* FEATURED */
.featured-main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.featured-main img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    padding: 20px;
}

.featured-overlay h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.featured-overlay .meta {
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    margin-top: 6px;
}

/* FOOTER */
footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, .8);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .6);
}

footer h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    transition: .2s;
}

footer ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: .2s;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* TOASTR BOOTSTRAP 5 CONFLICT FIX */
#toast-container {
    z-index: 999999 !important;
}

#toast-container>.toast {
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3) !important;
    width: 300px !important;
    padding: 15px 15px 15px 50px !important;
    color: #fff !important;
    pointer-events: auto !important;
}

#toast-container>.toast-success {
    background-color: #51A351 !important;
}

#toast-container>.toast-error {
    background-color: #BD362F !important;
}

#toast-container>.toast-info {
    background-color: #2F96B4 !important;
}

#toast-container>.toast-warning {
    background-color: #F89406 !important;
}

/* ── DARK MODE ── */
body.dark-mode {
    --bg: #0f0f1a;
    --text: #e0e0e0;
    --text-muted: #999;
    --border: #2a2a3e;
    background: #0f0f1a;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background: #1a1a2e;
    border-color: #2a2a3e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

body.dark-mode .header-nav a {
    color: #ccc;
}

body.dark-mode .header-nav a:hover,
body.dark-mode .header-nav a.active {
    color: var(--primary);
    background: rgba(228, 77, 38, .12);
}

body.dark-mode .user-btn {
    border-color: #2a2a3e;
    color: #ccc;
}

body.dark-mode .user-btn i {
    color: #aaa !important;
}

body.dark-mode .user-dropdown {
    background: #1e1e30;
    border: 1px solid #2a2a3e;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

body.dark-mode .user-dropdown-header {
    border-color: #2a2a3e;
    color: #e0e0e0;
}

body.dark-mode .user-dropdown a,
body.dark-mode .user-dropdown button {
    color: #ddd;
    border-color: #2a2a3e;
}

body.dark-mode .user-dropdown a:hover,
body.dark-mode .user-dropdown button:hover {
    background: #252540;
}

body.dark-mode .ud-icon {
    border-color: #3a3a5a;
    color: #aaa;
    background: #252540;
}

body.dark-mode .dark-toggle-row {
    border-color: #2a2a3e;
    color: #ddd;
}

body.dark-mode .trending-bar {
    background: #1a1a2e !important;
    border-color: #2a2a3e !important;
}

body.dark-mode .trending-bar .ticker-pill {
    border-color: #3a3a5a !important;
    color: #ccc !important;
}

body.dark-mode .trending-bar .ticker-label {
    color: #e0e0e0 !important;
}

body.dark-mode .trending-bar .ticker-fade {
    background: linear-gradient(to right, transparent, #1a1a2e) !important;
}

body.dark-mode .trending-next-btn {
    border-color: #3a3a5a !important;
    background: #1a1a2e !important;
    color: #ccc !important;
}

body.dark-mode .ad-top-bar {
    background: #13131f !important;
    border-color: #2a2a3e !important;
}

body.dark-mode .news-card {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .news-card h3 {
    color: #f0f0f0;
}

body.dark-mode .news-card .meta {
    color: #888;
}

body.dark-mode .db-list-item {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .db-list-body h3 {
    color: #f0f0f0 !important;
}

body.dark-mode .db-section-wrap {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .db-section-head {
    border-color: #2a2a3e;
}

body.dark-mode .db-cat-pill {
    border-color: #3a3a5a !important;
    color: #aaa !important;
}

body.dark-mode .db-share-bar .db-cat-pill:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

body.dark-mode .db-share-icons li a,
body.dark-mode .db-share-icons li span {
    border-color: #3a3a5a !important;
    color: #aaa !important;
}

body.dark-mode .home-left-inner,
body.dark-mode .home-right-inner {
    background: transparent;
}

body.dark-mode .sidebar-menu a {
    border-color: #3a3a5a;
    color: white;
}

body.dark-mode .sidebar-menu a:hover,
body.dark-mode .sidebar-menu a.active {
    background: rgba(228, 77, 38, .12);
    color: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .trending-widget {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .trending-widget h3 {
    color: #f0f0f0;
}

body.dark-mode .trending-title {
    color: #ddd;
}

body.dark-mode .trending-num {
    color: #3a3a5a;
}

body.dark-mode .trending-item {
    border-color: #2a2a3e;
}

body.dark-mode .article-sidebar-box a {
    color: #ddd;
}

body.dark-mode .article-sidebar-box a:hover {
    color: var(--primary);
}

body.dark-mode .article-sidebar-box>div {
    border-color: #2a2a3e;
}

body.dark-mode .cat-nav-bar {
    background: #1a1a2e !important;
    border-color: #2a2a3e !important;
}

body.dark-mode .cat-nav-pill {
    border-color: #3a3a5a !important;
    color: #ccc !important;
}

body.dark-mode .cat-nav-active {
    background: rgba(228, 77, 38, .15) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

body.dark-mode .ad-banner {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .alert-success {
    background: #1a3a2a;
    color: #6fcf97;
    border-color: #2a5a3a;
}

body.dark-mode .alert-error {
    background: #3a1a1a;
    color: #eb5757;
    border-color: #5a2a2a;
}

body.dark-mode .video-card {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .video-info h4 {
    color: #f0f0f0;
}

body.dark-mode .feat-sm-card,
body.dark-mode .featured-big {
    border-color: #2a2a3e;
}

body.dark-mode .google-follow-btn {
    background: linear-gradient(90deg, #2a2010 0%, #3a2a10 100%) !important;
    color: #ffd080 !important;
}

body.dark-mode .section-head {
    border-color: var(--primary);
}

body.dark-mode .section-head h2 {
    color: #f0f0f0;
}

/* Dark mode mobile elements */
body.dark-mode .mobile-header-icons a {
    color: #ccc;
}

body.dark-mode .mobile-header-icons a:hover {
    color: var(--primary);
}

body.dark-mode .mob-cat-bar {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .mob-cat-bar a {
    border-color: #3a3a5a;
    color: #ccc;
}

body.dark-mode .mob-cat-bar a.active,
body.dark-mode .mob-cat-bar a:hover {
    background: rgba(228, 77, 38, .12);
    color: var(--primary);
    border-color: var(--primary);
}

body.dark-mode .mob-bottom-nav {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-mode .mob-bottom-nav a {
    color: #777;
}

body.dark-mode .mob-bottom-nav a.active,
body.dark-mode .mob-bottom-nav a:hover {
    color: var(--primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .home-right {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Show mobile header icons, hide desktop nav + user menu */
    .mobile-header-icons {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    /* Show mobile cat bar and bottom nav */
    .mob-cat-bar {
        display: flex;
    }

    .mob-bottom-nav {
        display: flex;
    }

    /* Add bottom padding so content isn't hidden behind bottom nav */
    body {
        padding-bottom: 62px;
    }

    /* Smaller logo on mobile */
    .header-top {
        padding: 8px 0;
    }

    .logo img {
        height: 36px;
    }

    /* Cat nav bar (desktop) hidden on mobile since we use mob-cat-bar */
    .cat-nav-bar {
        display: none !important;
    }

    .home-wrap {
        flex-direction: column;
        padding: 10px;
        gap: 0;
    }

    .home-left {
        width: 100%;
    }

    .home-left-inner {
        position: static;
        max-height: none;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .sidebar-menu a {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 20px;
        border: 1px solid #e0e0e0;
        margin-bottom: 0;
        white-space: nowrap;
    }

    body.dark-mode .sidebar-menu a {
        border-color: #3a3a5a;
    }

    .sidebar-menu .app-section,
    .sidebar-menu .follow-section {
        display: none;
    }

    .home-right {
        display: none;
    }

    .news-grid-3,
    .news-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-top ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .db-list-thumb {
        width: 110px;
        height: 80px;
    }

    .db-list-body h3 {
        font-size: 15px !important;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-small {
        display: none;
    }

    .featured-big img {
        height: 220px;
    }
}

@media (max-width: 480px) {

    .news-grid-3,
    .news-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .db-list-thumb {
        width: 90px;
        height: 68px;
    }

    .db-list-body h3 {
        font-size: 14px !important;
    }

    .db-share-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .logo img {
        height: 32px;
    }
}

/* === RIGHT SIDEBAR DARK MODE OVERRIDES === */
body.dark-mode .trending-widget {
    background: #1a1a2e !important;
    border-color: #2a2a3e !important;
}

body.dark-mode .trending-widget h4 {
    color: #f0f0f0 !important;
}

body.dark-mode .trending-widget span[style*="color: #888;"] {
    color: #ccc !important;
}

body.dark-mode .trending-widget a,
body.dark-mode .trending-widget button {
    background: #252540 !important;
    border-color: #444 !important;
}

body.dark-mode .trending-widget a i,
body.dark-mode .trending-widget a svg,
body.dark-mode .trending-widget button svg {
    color: #fff !important;
}

body.dark-mode .google-follow-btn {
    background: linear-gradient(90deg, #2a1a1a 0%, #4a2a1a 100%) !important;
    color: #f0f0f0 !important;
}