/*
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; }
}

/* ---- TABLE OF CONTENTS (PILL DESIGN) ---- */
.nh-toc { background: #fff7f0; border: 0; border-radius: 12px; padding: 22px 18px 18px; margin: 0 0 28px 0; }
.nh-toc-heading { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.nh-toc-title { font-weight: 800; font-size: 24px; color: #1f1b3a; letter-spacing: 0.2px; white-space: nowrap; }
.nh-toc-deco { position: relative; flex: 1; max-width: 180px; height: 2px; background-image: linear-gradient(to right, #f26b2a 50%, transparent 50%); background-size: 10px 2px; background-repeat: repeat-x; }
.nh-toc-deco::before, .nh-toc-deco::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; background: #f26b2a; border-radius: 50%; transform: translateY(-50%); }
.nh-toc-deco-left::before { left: 0; }
.nh-toc-deco-left::after { right: 0; }
.nh-toc-deco-right::before { left: 0; }
.nh-toc-deco-right::after { right: 0; }
.nh-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nh-toc-list li { margin: 0; padding: 0; list-style: none; }
.nh-toc-list li::before, .nh-toc-list li::marker { content: none; }
.nh-toc-link, .nh-toc-link:link, .nh-toc-link:visited, .nh-toc-link:hover, .nh-toc-link:active, .nh-toc-link:focus { text-decoration: none !important; border-bottom: 0 !important; box-shadow: 0 2px 6px rgba(108,43,217,0.18); outline: none; }
.nh-toc-link, .nh-toc-link * { text-decoration: none !important; border-bottom: 0 !important; }
.nh-toc-link { display: flex; align-items: center; gap: 0; min-height: 56px; padding: 0 22px 0 0; border-radius: 999px; background: linear-gradient(90deg, #c13d6a 0%, #a23a8a 50%, #6c2bd9 100%); color: #fff !important; font-weight: 700; font-size: 17px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background-position .4s ease; background-size: 200% 100%; background-position: 0% 50%; }
.nh-toc-link:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 8px 20px rgba(108,43,217,0.35), 0 0 0 2px rgba(242,107,42,0.35); filter: brightness(1.08) saturate(1.1); background-position: 100% 50%; }
.nh-toc-link:focus-visible { box-shadow: 0 0 0 3px rgba(242,107,42,0.55), 0 4px 12px rgba(108,43,217,0.28); }
.nh-toc-play { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.18); border-radius: 999px 0 0 999px; transition: background .25s ease, transform .25s ease; }
.nh-toc-link:hover .nh-toc-play { background: rgba(0,0,0,0.28); transform: scale(1.05); }
.nh-toc-play svg { display: block; transition: transform .25s ease; }
.nh-toc-link:hover .nh-toc-play svg { transform: scale(1.15); }
.nh-toc-text { flex: 1; text-align: center; text-transform: uppercase; padding: 0 12px; color: #fff !important; letter-spacing: 0.3px; text-decoration: none !important; border-bottom: 0 !important; background-image: none !important; }
.nh-toc-arrow { flex: 0 0 auto; font-size: 22px; color: #fff; opacity: .9; line-height: 1; transition: transform .25s ease, opacity .25s ease; }
.nh-toc-link:hover .nh-toc-arrow { transform: translateX(6px); opacity: 1; }
.nh-toc-sub .nh-toc-link { min-height: 48px; font-size: 15px; }
.nh-toc-sub .nh-toc-play { flex-basis: 48px; height: 48px; }
.nh-post-content h2, .nh-post-content h3 { scroll-margin-top: 80px; }
@media (max-width: 600px) {
  .nh-toc-title { font-size: 20px; }
  .nh-toc-deco { max-width: 60px; }
  .nh-toc-link { font-size: 15px; min-height: 50px; }
  .nh-toc-play { flex-basis: 50px; height: 50px; }
}

/* ---- FIX: remove underlines + title color + nav links + card badge position ---- */
.nh-card-title, .nh-card-title a, .nh-card-title a:link, .nh-card-title a:visited, .nh-card-title a:hover, .nh-card-title a:active { text-decoration: none !important; border-bottom: 0 !important; background-image: none !important; color: #1a1a2e !important; }
.nh-card-title a:hover { color: #c13d6a !important; }
.rp-post-title, .rp-post-title a, .rp-post-title a:link, .rp-post-title a:visited, .rp-post-title a:hover, .rp-post-title a:active { text-decoration: none !important; border-bottom: 0 !important; background-image: none !important; color: #1a1a2e !important; }
.rp-post-title a:hover { color: #c13d6a !important; }
.nh-post-nav a, .nh-post-nav a:link, .nh-post-nav a:visited, .nh-post-nav a:hover, .nh-post-nav a:active { text-decoration: none !important; border-bottom: 0 !important; background-image: none !important; color: #1a1a2e !important; }
.nh-post-nav a:hover { color: #c13d6a !important; }
.nh-post-nav-label { color: #6b7280 !important; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.nh-card-badge { top: 10px !important; left: 10px !important; right: auto !important; bottom: auto !important; padding: 3px 10px !important; font-size: 11px !important; line-height: 1.4 !important; border-radius: 4px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.nh-card-img-wrap { position: relative; }
.nh-card-img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ---- FIX: rp-cat badge position so it does not cover image title ---- */
.rp-thumb { position: relative; }
.rp-cat { position: absolute !important; top: 10px !important; left: 10px !important; right: auto !important; bottom: auto !important; padding: 3px 10px !important; font-size: 11px !important; line-height: 1.4 !important; border-radius: 4px !important; background: #e8372e !important; color: #fff !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.3px; text-decoration: none !important; box-shadow: 0 1px 3px rgba(0,0,0,0.25); z-index: 3; }
.rp-cat:hover { background: #c12d24 !important; color: #fff !important; }

/* ---- FIX: nh-card-badge size & position (high specificity) ---- */
.nh-news-card .nh-card-img-wrap .nh-card-badge, .nh-card-img-wrap .nh-card-badge, span.nh-card-badge, a.nh-card-badge { position: absolute !important; top: 10px !important; left: 10px !important; right: auto !important; bottom: auto !important; width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; min-width: 0 !important; min-height: 0 !important; padding: 4px 10px !important; font-size: 11px !important; line-height: 1.4 !important; border-radius: 4px !important; display: inline-block !important; background: #e8372e !important; color: #fff !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.3px !important; text-decoration: none !important; box-shadow: 0 1px 3px rgba(0,0,0,0.25); z-index: 3 !important; white-space: nowrap !important; }


/* BH-REVIEW-CSS START (external CSS for .bh-* review posts) */
.bh{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1f2a37;line-height:1.7;max-width:860px;margin:0 auto;font-size:16.5px}
.bh *{box-sizing:border-box}
.bh h2{font-size:25px;font-weight:800;color:#0a2540;margin:34px 0 12px;border-left:5px solid #1d6fb8;padding-left:12px}
.bh h3{font-size:19px;font-weight:700;color:#0a2540;margin:20px 0 8px}
.bh p{margin:0 0 14px}
.bh a{color:#1565c0;font-weight:600;text-decoration:none}.bh a:hover{text-decoration:underline}
.bh-hero{background:linear-gradient(135deg,#0a2540,#1d6fb8);color:#fff;border-radius:16px;padding:34px 30px;margin:0 0 24px;box-shadow:0 12px 30px rgba(10,37,64,.25)}
.bh-hero .eyebrow{display:inline-block;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:5px 14px;border-radius:30px;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.bh-hero h1{color:#fff!important;font-size:30px;line-height:1.25;font-weight:900;margin:14px 0 10px}
.bh-hero p{color:#dce9f7;font-size:16px;margin:0 0 16px;max-width:640px}
.bh-rate{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.bh-rate .score{font-size:34px;font-weight:900;color:#ffd21e;line-height:1}
.bh-rate .stars{color:#ffd21e;font-size:20px;letter-spacing:2px}
.bh-rate .sub{font-size:13px;color:#bcd4ee}
.bh-btn{display:inline-block;background:#ffd21e;color:#0a2540!important;font-weight:800;padding:14px 30px;border-radius:10px;text-decoration:none!important;box-shadow:0 6px 16px rgba(0,0,0,.2);font-size:16px}
.bh-btn.ghost{background:transparent;color:#fff!important;border:2px solid rgba(255,255,255,.6);margin-left:8px}
.bh-tldr{background:#f3f8fe;border:1px solid #cfe2f7;border-left:5px solid #1d6fb8;border-radius:12px;padding:18px 20px;margin:0 0 22px}
.bh-tldr b{color:#0a2540}
.bh-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:14px 0}
@media(max-width:600px){.bh-grid{grid-template-columns:1fr}.bh-proscons{grid-template-columns:1fr!important}.bh-rate .score{font-size:28px}}
.bh-feat{background:#fff;border:1px solid #e5ebf2;border-radius:12px;padding:16px 18px;box-shadow:0 1px 4px rgba(10,37,64,.05)}
.bh-feat .ic{font-size:24px}
.bh-feat b{display:block;color:#0a2540;margin:6px 0 3px;font-size:15px}
.bh-feat span{font-size:14px;color:#566}
.bh-table{width:100%;border-collapse:collapse;margin:14px 0;border-radius:10px;overflow:hidden;box-shadow:0 1px 6px rgba(10,37,64,.08)}
.bh-table th{background:#0a2540;color:#fff;padding:12px 14px;text-align:left;font-size:14px}
.bh-table td{padding:11px 14px;border-bottom:1px solid #eef2f7;font-size:14.5px}
.bh-table tr:nth-child(even) td{background:#f7fafd}
.bh-table .pop{color:#1565c0;font-weight:700}
.bh-proscons{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0}
.bh-box{border-radius:12px;padding:18px 20px}
.bh-box.pro{background:#eafaf0;border:1px solid #bfe8cd}
.bh-box.con{background:#fdeeee;border:1px solid #f3c9c9}
.bh-box h3{margin-top:0}
.bh-box.pro h3{color:#15803d}.bh-box.con h3{color:#b42318}
.bh-box ul{margin:0;padding-left:20px}.bh-box li{margin-bottom:7px;font-size:14.5px}
.bh-steps{counter-reset:s;list-style:none;padding:0;margin:14px 0}
.bh-steps li{counter-increment:s;position:relative;padding:6px 0 14px 46px;border-left:2px solid #d6e4f5;margin-left:16px}
.bh-steps li:last-child{border-left-color:transparent}
.bh-steps li::before{content:counter(s);position:absolute;left:-16px;top:0;width:32px;height:32px;background:#1d6fb8;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.bh-steps b{display:block;color:#0a2540}
.bh-faq details{border:1px solid #e5ebf2;border-radius:10px;margin-bottom:10px;padding:0 16px;background:#fff}
.bh-faq summary{cursor:pointer;font-weight:700;color:#0a2540;padding:14px 0;list-style:none}
.bh-faq summary::-webkit-details-marker{display:none}
.bh-faq summary::after{content:"+";float:right;color:#1d6fb8;font-weight:800}
.bh-faq details[open] summary::after{content:"\2013"}
.bh-faq details p{margin:0 0 14px;color:#445}
.bh-cta{background:linear-gradient(135deg,#0a2540,#1d6fb8);border-radius:14px;padding:30px 26px;text-align:center;color:#fff;margin:26px 0}
.bh-cta h3{color:#ffd21e;font-size:22px;margin:0 0 8px}
.bh-cta p{color:#dce9f7;margin:0 0 16px}
.bh-disc{font-size:13px;color:#6b7785;background:#f4f6f9;border-radius:10px;padding:14px 16px;margin-top:24px;border:1px solid #e5ebf2}
.bh-verdict{background:#fffaf0;border:1px solid #f5deb0;border-left:5px solid #ffb300;border-radius:12px;padding:18px 20px;margin:16px 0}
.bh-fine{font-size:13.5px;color:#6b7785}
.bh-m0{margin:0}

/* BH responsive + contrast fixes */
.bh-hero h2{color:#fff!important;font-size:30px;line-height:1.25;font-weight:900;margin:14px 0 10px;border-left:0!important;padding-left:0!important}
.bh>.bh-rate{background:#f3f8fe;border:1px solid #cfe2f7;border-radius:12px;padding:14px 18px;margin:8px 0 14px}
.bh>.bh-rate .score{color:#0a2540}
.bh>.bh-rate .stars{color:#f59e0b}
.bh>.bh-rate .sub{color:#41506a}
.bh-table{table-layout:fixed}
.bh-table td,.bh-table th{word-break:break-word}
.bh-btn{max-width:100%}
@media(max-width:600px){
 .bh{font-size:16px}
 .bh-hero{padding:24px 18px}
 .bh-hero h2{font-size:23px}
 .bh-hero p{font-size:15px}
 .bh-hero .bh-btn{margin:6px 6px 0 0;padding:12px 20px;font-size:15px;text-align:center}
 .bh-hero .bh-btn.ghost{margin-left:0}
 .bh h2{font-size:21px}
 .bh-table th,.bh-table td{padding:9px 9px;font-size:13px}
 .bh-cta{padding:24px 18px}
 .bh-cta h3{font-size:20px}
}

/* BH-REVIEW-CSS END */


/* BH hide featured hero on post 12 (keep image for thumbnail/OG) */
.single .nh-post-featured-img{display:none!important}
