/*
Theme Name: Nagorik Kantha Online News Portal
Theme URI: https://example.com/nagorik-kantha
Author: Nagorik Kantha Digital Team
Description: A complete, customizable Online News Portal WordPress Theme for Nagorik Kantha with 12-item header menu, 25 news categories on homepage, 8 customizable banner ad slots, editable featured/hero section, custom header & footer logos, office contact details, and Google Play Store app download option.
Version: 1.0.0
Text Domain: nagorik-kantha
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --nk-primary: #8b0000;
    --nk-dark: #111827;
    --nk-accent: #d97706;
    --nk-bg: #f3f4f6;
    --nk-card: #ffffff;
    --nk-text: #111827;
    --nk-muted: #4b5563;
    --nk-border: #d1d5db;
}

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

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--nk-bg);
    color: var(--nk-text);
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
    color: var(--nk-primary);
}

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

/* Topbar */
.nk-topbar {
    background: var(--nk-dark);
    color: #f9fafb;
    font-size: 13.5px;
    padding: 7px 0;
    border-bottom: 2px solid var(--nk-accent);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Header & 12-Item Menu */
.nk-header {
    background: var(--nk-card);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nk-header-main {
    padding: 12px 0;
}

.nk-logo img {
    max-height: 70px;
    width: auto;
}

.nk-brand-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--nk-primary);
    line-height: 1.15;
}

.nk-brand-tagline {
    display: block;
    font-size: 12.5px;
    color: var(--nk-muted);
    font-weight: 600;
}

.nk-nav-bar {
    background: var(--nk-primary);
    color: #fff;
}

.nk-nav-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}

.nk-nav-bar ul li a {
    display: block;
    padding: 10px 11px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
}

.nk-nav-bar ul li a:hover {
    background: var(--nk-dark);
    color: #fde68a;
}

/* Editable Featured / Lead Highlight */
.nk-featured-strip {
    background: #fff;
    border-left: 5px solid var(--nk-primary);
    border-top: 1px solid var(--nk-border);
    border-right: 1px solid var(--nk-border);
    border-bottom: 1px solid var(--nk-border);
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 6px;
}

.nk-featured-badge {
    background: var(--nk-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 8px;
}

/* 8 Banner Ad Slots */
.nk-ad-slot {
    margin: 22px 0;
    text-align: center;
    background: #e5e7eb;
    border: 1px dashed #9ca3af;
    border-radius: 6px;
    padding: 10px;
}

.nk-ad-slot img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
}

.nk-ad-label {
    font-size: 11px;
    color: var(--nk-muted);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Sections */
.nk-cat-section {
    background: var(--nk-card);
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nk-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--nk-bg);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.nk-cat-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--nk-dark);
    padding-left: 12px;
    border-left: 4px solid var(--nk-primary);
}

.nk-more-btn {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--nk-primary);
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 4px;
}

.nk-more-btn:hover {
    background: var(--nk-primary);
    color: #fff;
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.nk-post-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nk-post-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.nk-post-body {
    padding: 13px;
    flex: 1;
}

.nk-post-card h3 {
    font-size: 16.5px;
    line-height: 1.4;
    margin-bottom: 6px;
    font-weight: 700;
}

.nk-post-card p {
    font-size: 13.5px;
    color: var(--nk-muted);
    margin-bottom: 8px;
}

.nk-post-meta {
    font-size: 12px;
    color: #6b7280;
}

.nk-empty-box {
    grid-column: 1 / -1;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--nk-muted);
    text-align: center;
}

/* Single & Archive */
.nk-single-box {
    background: #fff;
    border: 1px solid var(--nk-border);
    border-radius: 8px;
    padding: 28px;
    margin: 24px 0;
}

/* Footer */
.nk-footer {
    background: var(--nk-dark);
    color: #d1d5db;
    padding: 46px 0 20px;
    margin-top: 35px;
    border-top: 4px solid var(--nk-primary);
}

.nk-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr 1fr;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1f2937;
}

.nk-footer h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 6px;
}

.nk-contact-list {
    list-style: none;
    font-size: 14.5px;
}

.nk-contact-list li {
    margin-bottom: 8px;
}

.nk-playstore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1f2937;
    color: #fff;
    border: 1px solid #4b5563;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
}

.nk-playstore-link:hover {
    background: var(--nk-accent);
    color: #111827;
    border-color: var(--nk-accent);
}

.nk-footer-menu {
    padding: 16px 0;
    border-bottom: 1px solid #1f2937;
    text-align: center;
}

.nk-footer-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.nk-footer-menu ul li a:hover {
    color: #fde68a;
}

.nk-copyright {
    text-align: center;
    padding-top: 16px;
    font-size: 13.5px;
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3, .nk-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid-4, .grid-2 {
        grid-template-columns: 1fr;
    }
}
