/*
Theme Name: BunchOfWebsites Blog
Theme URI: https://bunchofwebsites.com/
Author: BunchOfWebsites
Description: Magazine-style blog theme inspired by LazyBusy design.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: bunchofwebsites-blog
Tags: blog, magazine, two-columns, right-sidebar, responsive-layout
*/

/* =====================================================
   NEWSHUB DESIGN SYSTEM v3.0 - EXACT REFERENCE MATCH
   ===================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f4f5f7; color: #1a1a2e; line-height: 1.6; }
body.dark-mode { background: #0d0d1a; color: #e0e0e0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- CSS VARIABLES ---- */
:root {
  --red: #e8372e;
  --dark: #1a1a2e;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f4f5f7;
  --border: #e5e7eb;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

/* ---- TOPBAR ---- */
.nh-topbar { background: #1a1a2e; color: #ccc; font-size: 12px; padding: 8px 0; }
.nh-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.nh-topbar-date { color: #aaa; }
.nh-topbar-links { display: flex; gap: 20px; }
.nh-topbar-links a { color: #ccc; font-size: 12px; }
.nh-topbar-links a:hover { color: #fff; }
.nh-topbar-social { display: flex; gap: 10px; }
.nh-topbar-social a { color: #ccc; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 11px; }
.nh-topbar-social a:hover { background: var(--red); color: #fff; }

/* ---- HEADER ---- */
.nh-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.dark-mode .nh-header { background: #1a1a2e; border-color: #2d2d3a; }
.nh-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; height: 64px; gap: 32px; }
.nh-logo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; flex-shrink: 0; }
.nh-logo a { color: var(--dark); }
body.dark-mode .nh-logo a { color: #fff; }
.nh-logo-hub { color: var(--red); }
.nh-logo-tagline { font-size: 11px; color: var(--gray); font-weight: 400; margin-top: 0; line-height: 1.2; }
.nh-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nh-nav a { color: #374151; font-size: 14px; font-weight: 500; padding: 4px 10px; border-radius: 4px; transition: color 0.2s; white-space: nowrap; }
.nh-nav a:hover, .nh-nav a.active { color: var(--red); }
.nh-nav a.active { border-bottom: 2px solid var(--red); }
body.dark-mode .nh-nav a { color: #d1d5db; }
.nh-header-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.nh-header-btn { background: none; border: none; cursor: pointer; color: #374151; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.nh-header-btn:hover { background: #f3f4f6; }
body.dark-mode .nh-header-btn { color: #d1d5db; }

/* ---- BREAKING NEWS TICKER ---- */
.nh-breaking-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; }
body.dark-mode .nh-breaking-bar { background: #1a1a2e; border-color: #2d2d3a; }
.nh-breaking-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 0; }
.nh-breaking-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nh-breaking-badge svg { flex-shrink: 0; }
.nh-breaking-sep { width: 1px; height: 20px; background: var(--border); margin: 0 12px; flex-shrink: 0; }
.nh-breaking-text { color: #374151; font-size: 14px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.dark-mode .nh-breaking-text { color: #d1d5db; }
.nh-breaking-time { color: var(--gray); font-size: 12px; white-space: nowrap; margin-left: 16px; flex-shrink: 0; }
.nh-breaking-arrows { display: flex; gap: 4px; margin-left: 12px; }
.nh-breaking-arrow { width: 28px; height: 28px; border: 1px solid var(--border); background: #fff; border-radius: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #374151; }
.nh-breaking-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
body.dark-mode .nh-breaking-arrow { background: #2d2d3a; border-color: #3d3d4a; color: #d1d5db; }

/* ---- PAGE WRAPPER & CONTAINER ---- */
.nh-page-wrapper { padding: 24px 0 0; }
.nh-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---- AD BANNER ---- */
.nh-ad-banner { text-align: center; margin-bottom: 24px; }
.nh-ad-label { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.nh-ad-mid { margin: 24px 0; }

/* ---- HERO ROW (Hero + Sidebar) ---- */
.nh-hero-row { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-bottom: 32px; align-items: start; }

/* ---- HERO CARD ---- */
.nh-hero-main { }
.nh-hero-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a1a2e; }
.nh-hero-img-wrap { position: relative; width: 100%; height: 460px; overflow: hidden; }
.nh-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s ease; }
.nh-hero-card:hover .nh-hero-img { transform: scale(1.03); }
.nh-hero-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%); }
.nh-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); padding: 32px 28px 24px; }
.nh-cat-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.nh-hero-title { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.nh-hero-title a { color: #fff; }
.nh-hero-title a:hover { color: #ffd0cc; }
.nh-hero-excerpt { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-hero-meta { display: flex; align-items: center; justify-content: space-between; }
.nh-hero-author { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); font-size: 13px; }
.nh-hero-author .nh-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); object-fit: cover; }
.nh-dot { color: rgba(255,255,255,0.5); margin: 0 2px; }
.nh-hero-read { color: rgba(255,255,255,0.75); font-size: 13px; display: flex; align-items: center; gap: 5px; }

/* ---- SIDEBAR ---- */
.nh-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ---- WIDGETS ---- */
.nh-widget { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--card-shadow); }
body.dark-mode .nh-widget { background: #1e1e30; }
.nh-widget-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
body.dark-mode .nh-widget-title { color: #e0e0e0; border-color: #2d2d3a; }

/* ---- TRENDING ITEMS ---- */
.nh-trending-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.nh-trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.nh-trending-item:first-of-type { padding-top: 0; }
.nh-trending-num { width: 24px; height: 24px; background: var(--red); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.nh-trending-thumb { width: 70px; height: 55px; border-radius: 4px; overflow: hidden; flex-shrink: 0; display: block; }
.nh-trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.nh-trending-info { flex: 1; min-width: 0; }
.nh-trending-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-trending-title:hover { color: var(--red); }
body.dark-mode .nh-trending-title { color: #e0e0e0; }
.nh-trending-date { font-size: 11px; color: var(--gray); margin-top: 3px; display: block; }

/* ---- CATEGORIES WIDGET ---- */
.nh-cat-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; color: var(--dark); font-size: 13px; transition: color 0.2s; }
.nh-cat-item:last-child { border-bottom: none; }
.nh-cat-item:hover { color: var(--red); }
body.dark-mode .nh-cat-item { color: #d1d5db; border-color: #2d2d3a; }
.nh-cat-name { display: flex; align-items: center; gap: 8px; }
.nh-cat-count { background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; min-width: 24px; text-align: center; }

/* ---- NEWSLETTER WIDGET ---- */
.nh-newsletter-widget { background: #1a1a2e !important; color: #fff; padding: 20px 16px !important; }
.nh-newsletter-icon { width: 44px; height: 44px; background: rgba(232,55,46,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 12px; }
.nh-newsletter-heading { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.nh-newsletter-text { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.5; }
.nh-newsletter-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.nh-newsletter-input { padding: 10px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; background: rgba(255,255,255,0.1); color: #fff; font-size: 13px; outline: none; }
.nh-newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.nh-newsletter-input:focus { border-color: var(--red); }
.nh-newsletter-btn { padding: 10px; background: var(--red); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.nh-newsletter-btn:hover { background: #c82a22; }
.nh-newsletter-note { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ---- POPULAR POSTS WIDGET ---- */
.nh-popular-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.nh-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.nh-popular-item:first-of-type { padding-top: 0; }
.nh-popular-thumb { width: 70px; height: 55px; border-radius: 4px; overflow: hidden; flex-shrink: 0; display: block; }
.nh-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-popular-info { flex: 1; min-width: 0; }
.nh-popular-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-popular-title:hover { color: var(--red); }
body.dark-mode .nh-popular-title { color: #e0e0e0; }
.nh-popular-meta { font-size: 11px; color: var(--gray); margin-top: 3px; display: block; }

/* ---- LATEST NEWS SECTION ---- */
.nh-latest-section { margin-bottom: 32px; }
.nh-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.nh-section-title { font-size: 20px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.nh-section-title::before { content: ''; display: inline-block; width: 4px; height: 22px; background: var(--red); border-radius: 2px; }
body.dark-mode .nh-section-title { color: #e0e0e0; }
.nh-view-all { font-size: 13px; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.nh-view-all:hover { text-decoration: underline; }

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

/* ---- NEWS CARD ---- */
.nh-news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.2s, box-shadow 0.2s; }
body.dark-mode .nh-news-card { background: #1e1e30; }
.nh-news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.nh-card-img-wrap { position: relative; display: block; overflow: hidden; height: 180px; background: #e5e7eb; }
.nh-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.4s; }
.nh-news-card:hover .nh-card-img { transform: scale(1.05); }
.nh-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.nh-card-badge { position: absolute; bottom: 10px; left: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.3px; display: inline-block; }
.nh-card-body { padding: 14px; }
.nh-card-title { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-card-title a { color: inherit; }
.nh-card-title a:hover { color: var(--red); }
body.dark-mode .nh-card-title { color: #e0e0e0; }
.nh-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--gray); }
.nh-card-date, .nh-card-read { display: flex; align-items: center; gap: 4px; }

/* ---- FEATURES STRIP ---- */
.nh-features-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; margin: 8px 0 0; }
body.dark-mode .nh-features-strip { background: #1a1a2e; border-color: #2d2d3a; }
.nh-features-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nh-feature-item { display: flex; align-items: center; gap: 16px; }
.nh-feature-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.nh-feature-icon.dark { background: #1a1a2e; }
.nh-feature-text h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.nh-feature-text p { font-size: 13px; color: var(--gray); }
body.dark-mode .nh-feature-text h4 { color: #e0e0e0; }

/* ---- FOOTER ---- */
.nh-footer { background: #1a1a2e; color: #ccc; padding: 48px 0 0; }
.nh-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr; gap: 32px; margin-bottom: 40px; }
.nh-footer-brand .nh-logo { font-size: 24px; margin-bottom: 12px; display: block; }
.nh-footer-brand .nh-logo a { color: #fff; }
.nh-footer-brand p { font-size: 13px; color: #9ca3af; line-height: 1.6; margin-bottom: 16px; }
.nh-footer-social { display: flex; gap: 10px; }
.nh-footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 13px; transition: background 0.2s; }
.nh-footer-social a:hover { background: var(--red); color: #fff; }
.nh-footer-col h5 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nh-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.nh-footer-col ul li a { color: #9ca3af; font-size: 13px; transition: color 0.2s; }
.nh-footer-col ul li a:hover { color: #fff; }
.nh-footer-popular-item { display: flex; gap: 10px; margin-bottom: 12px; }
.nh-footer-popular-item:last-child { margin-bottom: 0; }
.nh-footer-popular-thumb { width: 54px; height: 44px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.nh-footer-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-footer-popular-info { flex: 1; min-width: 0; }
.nh-footer-popular-title { font-size: 12px; color: #d1d5db; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-footer-popular-title:hover { color: #fff; }
.nh-footer-contact { display: flex; flex-direction: column; gap: 10px; }
.nh-footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #9ca3af; }
.nh-footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.nh-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; }
.nh-footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.nh-footer-bottom p { font-size: 13px; color: #6b7280; }
.nh-footer-bottom-links { display: flex; gap: 16px; }
.nh-footer-bottom-links a { font-size: 13px; color: #6b7280; }
.nh-footer-bottom-links a:hover { color: #fff; }

/* ---- SINGLE POST PAGE ---- */
.nh-single-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.nh-single-main { min-width: 0; }
.nh-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 8px; color: var(--gray); margin-bottom: 6px; flex-wrap: wrap; }
.nh-breadcrumb a { color: var(--gray); }
.nh-breadcrumb a:hover { color: var(--red); }
.nh-breadcrumb-sep { color: #d1d5db; }
.nh-post-cat-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.nh-post-title { font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 20px; }
body.dark-mode .nh-post-title { color: #e0e0e0; }
.nh-post-meta { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.nh-post-author-meta { display: flex; align-items: center; gap: 10px; }
.nh-post-author-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nh-post-author-meta .nh-author-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.nh-post-author-meta .nh-post-date { font-size: 13px; color: var(--gray); }
body.dark-mode .nh-post-author-meta .nh-author-name { color: #e0e0e0; }
.nh-share-row { display: flex; align-items: center; gap: 8px; }
.nh-share-label { font-size: 13px; color: var(--gray); }
.nh-share-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: opacity 0.2s; }
.nh-share-btn:hover { opacity: 0.8; }
.nh-share-btn.fb { background: #1877f2; }
.nh-share-btn.tw { background: #1da1f2; }
.nh-share-btn.li { background: #0a66c2; }
.nh-share-btn.em { background: var(--gray); }
.nh-share-btn.pr { background: #555; }
.nh-post-feat-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; max-height: 480px; object-fit: cover; }

/* ---- POST CONTENT STYLING ---- */
.nh-post-content { font-size: 16px; line-height: 1.8; color: #374151; }
body.dark-mode .nh-post-content { color: #d1d5db; }
.nh-post-content p { margin-bottom: 20px; }
.nh-post-content h2 { font-size: 24px; font-weight: 700; color: var(--dark); margin: 32px 0 16px; }
.nh-post-content h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 28px 0 14px; }
body.dark-mode .nh-post-content h2, body.dark-mode .nh-post-content h3 { color: #e0e0e0; }
.nh-post-content blockquote { background: #f9fafb; border-left: 4px solid var(--red); padding: 20px 24px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
body.dark-mode .nh-post-content blockquote { background: #1e1e30; }
.nh-post-content blockquote p { margin: 0; font-style: italic; color: #4b5563; font-size: 17px; }
body.dark-mode .nh-post-content blockquote p { color: #9ca3af; }
.nh-post-content blockquote cite { font-size: 13px; color: var(--gray); font-style: normal; margin-top: 8px; display: block; font-weight: 600; }
.nh-post-content img { border-radius: var(--radius); margin: 20px 0; max-width: 100%; height: auto; }
.nh-post-content ul, .nh-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.nh-post-content li { margin-bottom: 6px; }
.nh-post-content a { color: var(--red); text-decoration: underline; }
.nh-post-content a:hover { color: #c82a22; }

/* ---- TAGS ---- */
.nh-post-tags { display: flex; align-items: center; gap: 8px; margin: 28px 0; flex-wrap: wrap; }
.nh-tags-label { font-size: 14px; font-weight: 600; color: var(--dark); }
body.dark-mode .nh-tags-label { color: #e0e0e0; }
.nh-tag { display: inline-block; background: #f3f4f6; color: #4b5563; font-size: 12px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); transition: all 0.2s; }
.nh-tag:hover { background: var(--red); color: #fff; border-color: var(--red); }
body.dark-mode .nh-tag { background: #2d2d3a; color: #d1d5db; border-color: #3d3d4a; }

/* ---- AUTHOR BOX ---- */
.nh-author-box { background: #f9fafb; border-radius: var(--radius); padding: 24px; margin: 32px 0; border: 1px solid var(--border); display: flex; gap: 20px; align-items: flex-start; }
body.dark-mode .nh-author-box { background: #1e1e30; border-color: #2d2d3a; }
.nh-author-box-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nh-author-box-info .nh-author-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.nh-author-box-info .nh-author-box-name { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
body.dark-mode .nh-author-box-info .nh-author-box-name { color: #e0e0e0; }
.nh-author-box-info .nh-author-bio { font-size: 14px; color: #4b5563; line-height: 1.6; margin-bottom: 12px; }
body.dark-mode .nh-author-box-info .nh-author-bio { color: #9ca3af; }
.nh-author-box-social { display: flex; gap: 10px; }
.nh-author-box-social a { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; color: #374151; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all 0.2s; }
.nh-author-box-social a:hover { background: var(--red); color: #fff; }
body.dark-mode .nh-author-box-social a { background: #2d2d3a; color: #d1d5db; }

/* ---- RELATED POSTS ---- */
.nh-related-posts { margin: 32px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
body.dark-mode .nh-related-posts { border-color: #2d2d3a; }
.nh-related-header { background: #f9fafb; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
body.dark-mode .nh-related-header { background: #1e1e30; border-color: #2d2d3a; }
.nh-related-title { font-size: 16px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.nh-related-title::before { content: ''; width: 4px; height: 18px; background: var(--red); display: inline-block; border-radius: 2px; }
body.dark-mode .nh-related-title { color: #e0e0e0; }
.nh-related-view-all { font-size: 13px; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.nh-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 16px; gap: 16px; }
.nh-related-card { border-radius: 4px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); }
body.dark-mode .nh-related-card { background: #1e1e30; }
.nh-related-card-thumb { display: block; width: 100%; height: 120px; overflow: hidden; background: #e5e7eb; }
.nh-related-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.nh-related-card:hover .nh-related-card-thumb img { transform: scale(1.05); }
.nh-related-card-body { padding: 10px; }
.nh-related-card-badge { display: inline-block; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; margin-bottom: 6px; }
.nh-related-card-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.dark-mode .nh-related-card-title { color: #e0e0e0; }
.nh-related-card-meta { font-size: 11px; color: var(--gray); margin-top: 6px; }

/* ---- POST NAVIGATION ---- */
.nh-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.nh-post-nav-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all 0.2s; }
body.dark-mode .nh-post-nav-item { background: #1e1e30; border-color: #2d2d3a; }
.nh-post-nav-item:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(232,55,46,0.1); }
.nh-post-nav-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.nh-post-nav-title { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.4; }
body.dark-mode .nh-post-nav-title { color: #e0e0e0; }
.nh-post-nav-item.next { text-align: right; }
.nh-post-nav-item.next .nh-post-nav-label { justify-content: flex-end; }

/* ---- SINGLE POST SIDEBAR ---- */
.nh-single-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ---- ARCHIVE PAGE ---- */
.nh-archive-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.nh-archive-header { margin-bottom: 28px; }
.nh-archive-header h1 { font-size: 28px; font-weight: 800; color: var(--dark); }
body.dark-mode .nh-archive-header h1 { color: #e0e0e0; }
.nh-archive-header p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.nh-archive-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.nh-archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---- DARK MODE TOGGLE ---- */
body.dark-mode .nh-breaking-bar { background: #1a1a2e; }
body.dark-mode .nh-page-wrapper { background: #0d0d1a; }
body.dark-mode .nh-hero-card { background: #1e1e30; }
body.dark-mode .nh-news-card { background: #1e1e30; }
body.dark-mode .nh-features-strip { background: #1a1a2e; }
body.dark-mode .nh-widget { background: #1e1e30; }

/* ---- SEARCH BAR ---- */
.nh-search-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 9999; align-items: center; justify-content: center; }
.nh-search-overlay.active { display: flex; }
.nh-search-box { background: #fff; border-radius: var(--radius); padding: 48px 24px 24px; width: 90%; max-width: 540px; position: relative; }
body.dark-mode .nh-search-box { background: #1e1e30; }
.nh-search-form { display: flex; gap: 8px; }
.nh-search-input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: 4px; font-size: 16px; outline: none; }
.nh-search-input:focus { border-color: var(--red); }
.nh-search-submit { background: var(--red); color: #fff; border: none; padding: 12px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; }
.nh-search-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: #1a1a2e; font-size: 28px; line-height: 1; font-weight: 400; cursor: pointer; border-radius: 50%; transition: background .15s, color .15s; padding: 0; z-index: 2; }
.nh-search-close:hover { background: #f3f4f6; color: #e8372e; }
body.dark-mode .nh-search-close { color: #fff; }
body.dark-mode .nh-search-close:hover { background: rgba(255,255,255,0.1); }

/* ---- MOBILE NAV ---- */
.nh-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: #374151; }
@media (max-width: 768px) { .nh-mobile-toggle { display: flex; } }
.nh-mobile-menu { display: none; }
.nh-mobile-menu.open { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .nh-hero-row { grid-template-columns: 1fr 280px; }
  .nh-footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .nh-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nh-hero-row { grid-template-columns: 1fr; }
  .nh-news-grid { grid-template-columns: repeat(2, 1fr); }
  .nh-single-wrapper { grid-template-columns: 1fr; }
  .nh-archive-layout { grid-template-columns: 1fr; }
  .nh-footer-inner { grid-template-columns: 1fr 1fr; }
  .nh-hero-img-wrap { height: 320px; }
  .nh-post-nav { grid-template-columns: 1fr; }
  .nh-features-inner { grid-template-columns: 1fr; }
  .nh-topbar { display: none; }
  .nh-nav { display: none; }
  .nh-mobile-toggle { display: flex; }
}
@media (max-width: 480px) {
  .nh-news-grid { grid-template-columns: 1fr; }
  .nh-footer-inner { grid-template-columns: 1fr; }
  .nh-hero-img-wrap { height: 260px; }
}
