/* =========================================================
   NIROJ KHABAR - COMPLETE CLEAN STYLESHEET
   Replaces old duplicated/conflicting style.css
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #111827;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f5f6fa;
    --white: #ffffff;
    --danger: #dc2626;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Noto Sans Devanagari", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* =========================================================
   HEADER - BIG HEADER NORMAL, COMPACT HEADER STICKY
   ========================================================= */
/* ================= HEADER FIXED ================= */

.big-header {
    background: var(--white);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 101;
}

.top-header {
    background: var(--dark);
    color: #cbd5e1;
    font-size: 14px;
}

.top-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.top-links a:hover {
    color: var(--primary-light);
}

.main-header-area {
    background: var(--white);
    padding: 22px 0;
}

.header-main-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.logo-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.logo-text h1 {
    font-size: 34px;
    color: var(--dark);
    line-height: 1.1;
    font-weight: 900;
    margin: 0;
}

.logo-text p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.header-search {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px;
    width: 360px;
    flex-shrink: 0;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 14px;
    width: 100%;
    font-size: 14px;
}

.header-search button {
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 9px 15px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.dark-toggle,
.mobile-menu-toggle,
.hamburger-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle,
.hamburger-btn {
    display: none;
    border-radius: 12px;
}

.main-navbar {
    background: var(--dark);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    color: #e2e8f0;
    padding: 14px 15px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    background: rgba(96, 165, 250, 0.08);
}

/* Sticky compact header */
.sticky-header {
    position: fixed;
    top: -90px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.14);
    z-index: 9999;
    transition: top 0.25s ease;
}

.sticky-header.show {
    top: 0;
}

.sticky-content {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sticky-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sticky-logo span {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}

.sticky-logo strong {
    font-size: 22px;
    color: var(--dark);
    white-space: nowrap;
}

.sticky-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
}

.sticky-nav a {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 11px;
    border-radius: 8px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.sticky-nav a:hover,
.sticky-nav a.active {
    color: var(--primary);
    background: #eff6ff;
}

/* Mobile drawer */
.mobile-menu-backdrop,
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-menu-backdrop.show,
.mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-panel,
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    background: var(--white);
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
    transition: right 0.25s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-panel.show,
.mobile-menu.show {
    right: 0;
}

.mobile-menu-header,
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header strong,
.mobile-menu-brand strong {
    font-size: 22px;
    color: var(--dark);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-brand span {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.mobile-menu-close {
    border: none;
    background: #f1f5f9;
    color: var(--dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
}

.mobile-search {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.mobile-search input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.mobile-search button {
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 11px;
    border-radius: 10px;
    font-weight: 800;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-links a {
    color: var(--dark);
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
}

.mobile-menu-links a.active,
.mobile-menu-links a:hover {
    background: #eff6ff;
    color: var(--primary);
}

body.menu-open {
    overflow: hidden;
}

/* Dark mode header */
body.dark-mode .big-header,
body.dark-mode .main-header-area,
body.dark-mode .sticky-header,
body.dark-mode .mobile-menu,
body.dark-mode .mobile-menu-panel {
    background: #0f172a;
}

body.dark-mode .logo-text h1,
body.dark-mode .sticky-logo strong,
body.dark-mode .mobile-menu-header strong,
body.dark-mode .mobile-menu-brand strong {
    color: #ffffff;
}

body.dark-mode .logo-text p {
    color: #cbd5e1;
}

body.dark-mode .header-search,
body.dark-mode .mobile-search input {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .header-search input,
body.dark-mode .mobile-search input {
    color: #ffffff;
}

body.dark-mode .header-search input::placeholder,
body.dark-mode .mobile-search input::placeholder {
    color: #94a3b8;
}

body.dark-mode .dark-toggle,
body.dark-mode .mobile-menu-toggle,
body.dark-mode .hamburger-btn,
body.dark-mode .mobile-menu-close {
    background: #f8fafc;
    color: #0f172a;
}

body.dark-mode .sticky-nav a {
    color: #cbd5e1;
}

body.dark-mode .sticky-nav a:hover,
body.dark-mode .sticky-nav a.active {
    background: #1e293b;
    color: var(--primary-light);
}

body.dark-mode .mobile-menu-links a {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark-mode .mobile-menu-links a.active,
body.dark-mode .mobile-menu-links a:hover {
    background: #172554;
    color: #bfdbfe;
}

/* Tablet */
@media (max-width: 992px) {
    .header-main-flex {
        flex-wrap: wrap;
    }

    .header-search {
        order: 4;
        width: 100%;
    }

    .sticky-nav a {
        padding: 8px 8px;
        font-size: 13px;
    }
}

/* Mobile hamburger behavior */
@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .main-navbar,
    .sticky-nav,
    .header-search {
        display: none !important;
    }

    .main-header-area {
        padding: 12px 0;
    }

    .header-main-flex,
    .sticky-content {
        flex-wrap: nowrap;
        gap: 10px;
        height: auto;
        min-height: 62px;
    }

    .site-logo,
    .sticky-logo {
        min-width: 0;
        flex: 1;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 20px;
    }

    .logo-text h1,
    .sticky-logo strong {
        font-size: 22px;
        white-space: nowrap;
    }

    .logo-text p {
        display: none;
    }

    .sticky-logo span {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .dark-toggle {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .mobile-menu-toggle,
    .hamburger-btn {
        display: inline-flex;
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .sticky-header {
        top: -76px;
    }

    .sticky-header.show {
        top: 0;
    }
}

@media (max-width: 420px) {
    .logo-text h1,
    .sticky-logo strong {
        font-size: 19px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .dark-toggle,
    .mobile-menu-toggle,
    .hamburger-btn {
        width: 36px;
        height: 36px;
    }
}

.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: #0f172a;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.hamburger-btn span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn span:nth-child(1) {
    top: 12px;
}

.hamburger-btn span:nth-child(2) {
    top: 18px;
}

.hamburger-btn span:nth-child(3) {
    top: 24px;
}

/* Hover effect */
.hamburger-btn:hover {
    background: #1e293b;
}

/* Smooth animation when active (optional future use) */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

/* Mobile only */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
}

/* =========================================================
   HOME PAGE
   ========================================================= */

.home-page {
    background: var(--bg);
    color: var(--text);
}

.top-ad {
    padding: 20px 0 5px;
}

.ad-box,
.sidebar-ad {
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
    border: 1px dashed #9ca3af;
    color: #6b7280;
    text-align: center;
    padding: 28px;
    border-radius: 10px;
    font-weight: 700;
}

.wide-ad {
    margin: 30px 0;
}

.featured-news-section {
    padding: 25px 0;
}

.featured-news {
    background: var(--white);
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-news img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.featured-content {
    padding: 30px 40px;
}

.center-text {
    text-align: center;
}

.category-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    margin-bottom: 14px;
    font-weight: 700;
}

.featured-news h1 {
    font-size: 34px;
    line-height: 1.45;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 900;
}

.featured-news p {
    font-size: 17px;
    line-height: 1.8;
    color: #4b5563;
    max-width: 850px;
    margin: 0 auto 16px;
}

.read-more {
    color: var(--primary);
    font-weight: 800;
}

.read-more:hover {
    text-decoration: underline;
}

.portal-section {
    padding-bottom: 50px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.news-section {
    background: var(--white);
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 22px;
    padding-bottom: 10px;
}

.section-heading h2 {
    font-size: 26px;
    border-left: 5px solid var(--primary);
    padding-left: 12px;
    margin: 0;
}

.section-heading a {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
}

.news-grid {
    display: grid;
    gap: 22px;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.news-card img,
.large-news-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.news-card img {
    height: 180px;
    margin-bottom: 12px;
}

.news-card span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.news-card h3 {
    font-size: 19px;
    line-height: 1.5;
    margin: 7px 0;
}

.news-card p,
.large-news-card p,
.small-news-list p {
    color: #555;
    line-height: 1.7;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;
}

.horizontal-card img {
    height: 110px;
    margin-bottom: 0;
}

.category-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 25px;
}

.large-news-card img {
    height: 280px;
}

.large-news-card h2 {
    font-size: 25px;
    line-height: 1.5;
    margin: 12px 0 8px;
}

.small-news-list article {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.small-news-list h3 {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-box {
    background: var(--white);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.sidebar-box h3 {
    font-size: 22px;
    margin-bottom: 18px;
    border-left: 5px solid var(--primary);
    padding-left: 10px;
}

.trending-list {
    list-style: none;
}

.trending-list li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.trending-list span {
    background: var(--primary);
    color: var(--white);
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-ad {
    margin-bottom: 24px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-card {
    margin-bottom: 18px;
}

.mini-card img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-card h4 {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 8px;
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.opinion-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: start;
    background: #f9fafb;
    padding: 18px;
    border-radius: 12px;
}

.opinion-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.opinion-card h3 {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.opinion-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.opinion-card strong {
    color: var(--primary);
    font-size: 14px;
}

/* =========================================================
   ARTICLE PAGE
   ========================================================= */

.article-page,
.category-page,
.search-page {
    background: var(--bg);
    padding: 35px 0 60px;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.article-main,
.category-header,
.category-news-card,
.search-header,
.search-result-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.article-main {
    padding: 35px;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.article-title {
    font-size: 42px;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 900;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.article-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
}

.image-caption {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 25px;
}

.article-content {
    font-size: 18px;
    line-height: 2;
    color: #334155;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 22px 0 12px;
    color: var(--dark);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 16px 25px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 18px;
    background: #f8fafc;
    margin: 20px 0;
    color: #334155;
}

.author-box {
    margin-top: 35px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.author-box img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.author-box p {
    color: var(--muted);
    line-height: 1.6;
}

.article-sidebar {
    position: sticky;
    top: 90px;
}

.related-card {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.related-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

.related-card h4 {
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark);
}

/* =========================================================
   CATEGORY PAGE
   ========================================================= */

.category-header {
    padding: 30px;
    margin-bottom: 28px;
    text-align: center;
}

.category-header h1 {
    font-size: 38px;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 900;
}

.category-header p {
    color: var(--muted);
    font-size: 16px;
}

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-news-card {
    overflow: hidden;
}

.category-news-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.category-news-content {
    padding: 22px;
}

.category-news-content h2 {
    font-size: 23px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--dark);
}

.category-meta {
    display: flex;
    gap: 14px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-news-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 14px;
}

.empty-message {
    background: var(--white);
    padding: 35px;
    border-radius: 14px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */

.search-header {
    padding: 35px;
    margin-bottom: 28px;
    text-align: center;
}

.search-header h1 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 22px;
    font-weight: 900;
}

.search-page-form {
    max-width: 650px;
    margin: auto;
    display: flex;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px;
}

.search-page-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 18px;
    font-size: 15px;
}

.search-page-form button {
    border: none;
    background: var(--primary);
    color: var(--white);
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.search-result-title {
    margin-bottom: 24px;
}

.search-result-title h2 {
    font-size: 26px;
    color: var(--dark);
}

.search-result-title p {
    color: var(--muted);
    margin-top: 5px;
}

.search-results-grid {
    display: grid;
    gap: 22px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    padding: 18px;
}

.search-result-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.search-result-content span {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
}

.search-result-content h3 {
    font-size: 24px;
    line-height: 1.45;
    margin: 8px 0;
    color: var(--dark);
}

.search-meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.search-result-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 45px 0;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
    margin-bottom: 14px;
}

.site-footer p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: #cbd5e1;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-social {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--dark-soft);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--dark-soft);
    text-align: center;
    padding: 16px;
    color: #94a3b8;
    position: relative;
}

.footer-admin-link {
    position: absolute;
    right: 15px;
    bottom: 12px;
    font-size: 11px;
    color: #64748b !important;
    opacity: 0.65;
}

.footer-admin-link:hover {
    opacity: 1;
    color: #94a3b8 !important;
}

/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode {
    background: #020617;
    color: #e2e8f0;
}

body.dark-mode .home-page,
body.dark-mode .article-page,
body.dark-mode .category-page,
body.dark-mode .search-page {
    background: #020617;
}

body.dark-mode .big-header,
body.dark-mode .main-header-area,
body.dark-mode .sticky-header,
body.dark-mode .featured-news,
body.dark-mode .news-section,
body.dark-mode .sidebar-box,
body.dark-mode .article-main,
body.dark-mode .category-header,
body.dark-mode .category-news-card,
body.dark-mode .search-header,
body.dark-mode .search-result-card,
body.dark-mode .mobile-menu-panel {
    background: var(--dark);
    color: #e2e8f0;
}

body.dark-mode .logo-text h1,
body.dark-mode .sticky-logo strong,
body.dark-mode .mobile-menu-header strong,
body.dark-mode .featured-news h1,
body.dark-mode .news-card h3,
body.dark-mode .large-news-card h2,
body.dark-mode .section-heading h2,
body.dark-mode .article-title,
body.dark-mode .article-content h1,
body.dark-mode .article-content h2,
body.dark-mode .article-content h3,
body.dark-mode .category-header h1,
body.dark-mode .category-news-content h2,
body.dark-mode .search-result-title h2,
body.dark-mode .search-header h1,
body.dark-mode .search-result-content h3,
body.dark-mode .related-card h4 {
    color: #f8fafc;
}

body.dark-mode .logo-text p,
body.dark-mode p,
body.dark-mode .featured-news p,
body.dark-mode .news-card p,
body.dark-mode .large-news-card p,
body.dark-mode .small-news-list p,
body.dark-mode .article-content,
body.dark-mode .category-news-content p,
body.dark-mode .search-result-content p,
body.dark-mode .author-box p {
    color: #cbd5e1;
}

body.dark-mode .header-search,
body.dark-mode .search-page-form {
    background: var(--dark-soft);
    border-color: #334155;
}

body.dark-mode .header-search input,
body.dark-mode .search-page-form input {
    color: var(--white);
}

body.dark-mode .header-search input::placeholder,
body.dark-mode .search-page-form input::placeholder {
    color: #94a3b8;
}

body.dark-mode .dark-toggle,
body.dark-mode .mobile-menu-toggle,
body.dark-mode .mobile-menu-close {
    background: #f8fafc;
    color: var(--dark);
}

body.dark-mode .sticky-nav a,
body.dark-mode .mobile-menu-links a {
    color: #cbd5e1;
    background: var(--dark-soft);
}

body.dark-mode .sticky-nav a:hover,
body.dark-mode .sticky-nav a.active,
body.dark-mode .mobile-menu-links a:hover,
body.dark-mode .mobile-menu-links a.active {
    color: var(--primary-light);
    background: #172554;
}

body.dark-mode .ad-box,
body.dark-mode .sidebar-ad,
body.dark-mode .author-box,
body.dark-mode .opinion-card,
body.dark-mode .article-content blockquote {
    background: var(--dark-soft);
    border-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .site-footer {
    background: #020617;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .portal-grid,
    .category-layout,
    .article-container,
    .three-col,
    .two-col,
    .opinion-grid {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .article-sidebar {
        position: static;
    }

    .featured-news img {
        height: 260px;
    }

    .featured-news h1 {
        font-size: 26px;
    }

    .featured-content {
        padding: 22px;
    }

    .horizontal-card {
        grid-template-columns: 1fr;
    }

    .horizontal-card img {
        width: 100%;
        height: 180px;
    }

    .category-news-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .header-main-flex {
        flex-wrap: wrap;
    }

    .header-search {
        width: 100%;
        order: 3;
    }

    .main-navbar,
    .sticky-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .sticky-content {
        height: 62px;
    }
}

@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .top-links {
        justify-content: center;
    }

    .category-news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-page-form {
        border-radius: 14px;
        flex-direction: column;
    }

    .search-page-form button {
        padding: 12px;
    }

    .search-result-card {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 30px;
    }

    .article-main {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .container {
        width: 94%;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .logo-text h1 {hea
        font-size: 27px;
    }

    .logo-text p {
        font-size: 13px;
    }

    .site-logo {
        gap: 10px;
    }

    .dark-toggle,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .sticky-logo strong {
        font-size: 19px;
    }

    .sticky-logo span {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .featured-news img {
        height: 220px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .opinion-card {
        grid-template-columns: 1fr;
    }

    .article-featured-image {
        max-height: 320px;
    }

    .footer-admin-link {
        position: static;
        display: block;
        margin-top: 8px;
    }
}
