/*
Theme Name: NaijaBlogHub
Theme URI: https://naijabloghub.com
Author: Borni Franklin
Author URI: https://naijabloghub.com/about
Description: A professional, fast, SEO-optimized WordPress theme built for NaijaBlogHub.com - Nigeria's premier blogging resource hub.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naijabloghub
Tags: blog, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --primary: #1a6b3a;
  --primary-dark: #0f4a27;
  --primary-light: #28a055;
  --accent: #f5a623;
  --accent-dark: #d4880a;
  --black: #111111;
  --dark: #1e1e1e;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --border: #e0e0e0;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text: #222222;
  --text-light: #555555;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Nunito Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-width: 1200px;
  --content-width: 760px;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.5rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2rem; }

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding: 50px 0; }

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   HEADER
=========================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 70px;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.site-logo-text span {
  color: var(--accent);
}

.site-tagline {
  font-size: 0.7rem;
  color: var(--gray);
  display: block;
  line-height: 1;
  font-family: var(--font-ui);
}

/* ===========================
   NAVIGATION
=========================== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  background: var(--primary);
  color: var(--bg-white);
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

.mobile-menu-wrap {
  display: none;
  background: var(--dark);
  padding: 20px;
}

.mobile-menu-wrap.open { display: block; }

.mobile-menu-wrap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-wrap ul li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem;
}

.mobile-menu-wrap ul li a:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-section h1 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ===========================
   TRUST BADGES
=========================== */
.trust-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.trust-bar-inner {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--gray-dark);
}

.trust-item svg { color: var(--primary); }

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  background: rgba(26,107,58,0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 540px; margin: 0 auto; }

/* ===========================
   PRODUCTS SECTION
=========================== */
.products-section {
  padding: 70px 0;
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card-body { padding: 24px; }

.product-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--black);
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-ui);
  margin-bottom: 16px;
}

.product-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: line-through;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-buy:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26,107,58,0.35);
}

/* ===========================
   BLOG SECTION
=========================== */
.blog-section { padding: 70px 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.post-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-category {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.post-category:hover { background: var(--primary-dark); color: #fff; }

.post-date {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-family: var(--font-ui);
}

.post-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-card-body h3 a {
  color: var(--black);
}

.post-card-body h3 a:hover { color: var(--primary); }

.post-excerpt {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 18px;
  flex: 1;
}

.read-more {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover { color: var(--primary-dark); gap: 8px; }

/* ===========================
   ABOUT SNIPPET (HOMEPAGE)
=========================== */
.about-snippet {
  padding: 70px 0;
  background: var(--primary-dark);
  color: #fff;
}

.about-snippet-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-snippet-inner { grid-template-columns: 1fr; gap: 30px; }
}

.about-snippet-img-wrap {
  position: relative;
}

.about-snippet-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-snippet-img-placeholder {
  width: 100%;
  height: 350px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 2px dashed rgba(255,255,255,0.3);
}

.about-snippet-content .section-label {
  background: rgba(245,166,35,0.2);
  color: var(--accent);
}

.about-snippet-content h2 { color: #fff; margin-bottom: 16px; }
.about-snippet-content p { color: rgba(255,255,255,0.82); margin-bottom: 16px; }

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

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-ui);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-ui);
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar { position: sticky; top: 90px; }

.widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--black);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--primary);
  position: relative;
}

.widget-post-list { list-style: none; padding: 0; margin: 0; }

.widget-post-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.widget-post-list li:last-child { border-bottom: none; }

.widget-post-thumb {
  width: 60px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.widget-post-thumb-placeholder {
  width: 60px;
  height: 55px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.widget-post-info a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.widget-post-info a:hover { color: var(--primary); }
.widget-post-date { font-size: 0.75rem; color: var(--gray-light); font-family: var(--font-ui); }

/* Sidebar products */
.sidebar-product-list { list-style: none; padding: 0; margin: 0; }
.sidebar-product-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-product-list li:last-child { border-bottom: none; }

.sidebar-product-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.sidebar-product-link {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.sidebar-product-link:hover { background: var(--primary-dark); color: #fff; }

/* ===========================
   SINGLE POST
=========================== */
.single-post-header {
  padding: 50px 0 30px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 16px;
  font-family: var(--font-ui);
}

.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }

.post-title { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 18px; }

.post-info-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray);
  font-family: var(--font-ui);
}

.post-info-bar strong { color: var(--dark); }

.post-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2 {
  font-size: 1.65rem;
  margin: 2rem 0 1rem;
  color: var(--black);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.post-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
.post-content h4 { font-size: 1.1rem; margin: 1.2rem 0 0.6rem; }

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem;
}

.post-content ul li, .post-content ol li {
  margin-bottom: 0.5rem;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  overflow-x: auto;
  display: block;
}

.post-content table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 700;
}

.post-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.post-content table tr:nth-child(even) td {
  background: var(--bg-light);
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(26,107,58,0.05);
  padding: 16px 20px;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-dark);
}

.post-content .highlight-box {
  background: rgba(245,166,35,0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5rem 0;
}

.post-content .highlight-box strong {
  color: var(--accent-dark);
}

/* Tags */
.post-tags { margin: 30px 0; }
.post-tags a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 4px;
  font-family: var(--font-ui);
}

.post-tags a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===========================
   AUTHOR BOX
=========================== */
.author-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  color: #fff;
}

@media (max-width: 600px) {
  .author-box { flex-direction: column; }
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  object-fit: cover;
}

.author-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.author-info h4 {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
  margin-bottom: 4px;
}

.author-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.author-info p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 0; }

/* ===========================
   SEO META BOX (Admin)
=========================== */
/* Handled in plugin CSS */

/* ===========================
   PAGES
=========================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.page-header h1 { color: #fff; }
.page-header p { color: rgba(255,255,255,0.82); margin-top: 10px; }

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.page-content h3 { margin: 1.5rem 0 0.75rem; }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-family: var(--font-ui);
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,58,0.1);
}

.form-group textarea { height: 140px; resize: vertical; }

.form-success {
  background: rgba(26,107,58,0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--primary-dark);
  font-weight: 600;
  display: none;
  margin-bottom: 20px;
}

.form-error {
  background: rgba(220,53,69,0.1);
  border: 1px solid #dc3545;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #dc3545;
  font-weight: 600;
  display: none;
  margin-bottom: 20px;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding-top: 60px;
}

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

.footer-brand .site-logo-text { font-size: 1.6rem; }

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-ui);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  color: var(--dark);
  transition: all var(--transition);
}

.pagination a:hover, .pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===========================
   UTILITIES
=========================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.section-padding { padding: 70px 0; }

.alert-box {
  background: rgba(245,166,35,0.1);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero-section { padding: 50px 20px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ===========================
   READING PROGRESS BAR
=========================== */
#nbh-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(245,166,35,0.5);
}

/* ===========================
   COOKIE CONSENT BANNER
=========================== */
#nbh-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #fff;
    z-index: 9998;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUpCookie 0.4s ease;
}

@keyframes slideUpCookie {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.cookie-text p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.6;
}

.cookie-text p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    padding: 9px 22px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255,255,255,0.65);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 9px 18px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.cookie-btn-decline:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; }
    .cookie-actions { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}

/* ===========================
   FOOTER MENU
=========================== */
.footer-nav-menu {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0 10px;
    margin-top: 10px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    justify-content: center;
}

.footer-nav-list li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    font-family: var(--font-ui);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all var(--transition);
}

.footer-nav-list li a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.06);
}

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

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===========================
   FAQ PAGE STYLES
=========================== */
.faq-page-wrap { max-width: 820px; margin: 0 auto; padding: 50px 20px; }

.faq-intro {
    text-align: center;
    margin-bottom: 50px;
}

.faq-intro h1 { margin-bottom: 12px; }
.faq-intro p { color: var(--text-light); font-size: 1.05rem; }

.faq-schema-notice {
    background: rgba(26,107,58,0.07);
    border: 1px solid rgba(26,107,58,0.2);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-ui);
}

.faq-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
}

.faq-tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid var(--border);
    background: var(--bg-white);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all var(--transition);
}

.faq-tab.active,
.faq-tab:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.faq-section { margin-bottom: 40px; }

.faq-section-title {
    font-size: 1.1rem;
    font-family: var(--font-ui);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-item.open { box-shadow: var(--shadow-sm); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--dark);
    background: var(--bg-white);
    user-select: none;
    gap: 12px;
    line-height: 1.4;
    transition: background var(--transition);
}

.faq-item.open .faq-question {
    background: var(--primary);
    color: #fff;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: all var(--transition);
    color: var(--primary);
}

.faq-item.open .faq-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s ease;
    background: var(--bg-light);
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.75;
}

.faq-answer-inner p:last-child { margin-bottom: 0; }
