/*
Theme Name: To Be A Muslim Bold
Theme URI: https://tobeamuslim.com
Description: A modern, bold dark theme for To Be A Muslim — featuring gold accents, beautiful typography, and a premium reading experience for Islamic content.
Author: Dr. Perry Brimah
Author URI: https://tobeamuslim.com
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: tobeamuslim-bold
Tags: dark, modern, blog, education, custom-menu, custom-logo, featured-images
*/

/* ═══════════════════════════════════════════
   CSS RESET & VARIABLES
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #222233;
  --text-primary: #f0ede6;
  --text-secondary: #a8a4a0;
  --text-muted: #6b6866;
  --accent-gold: #c8a84e;
  --accent-gold-light: #e0c872;
  --accent-emerald: #2dd4a8;
  --accent-blue: #4a9eff;
  --border-subtle: rgba(200, 168, 78, 0.12);
  --border-glow: rgba(200, 168, 78, 0.3);
  --gradient-gold: linear-gradient(135deg, #c8a84e, #e0c872);
  --gradient-hero: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,0.8) 60%, #0a0a0f 100%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(200,168,78,0.08);
  --max-width: 1280px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-gold); color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(200,168,78,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,168,78,0.35); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-glow);
}
.btn-secondary:hover { background: rgba(200,168,78,0.08); border-color: var(--accent-gold); }
.btn-small { padding: 8px 20px; font-size: 0.85rem; border-radius: 8px; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.site-nav.scrolled { background: rgba(10, 10, 15, 0.95); }

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

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: auto; filter: brightness(1.1); }
.nav-logo .site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

/* WordPress menu styling */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu li { position: relative; }
.nav-menu li a {
  display: block; padding: 8px 16px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--text-primary);
  background: rgba(200,168,78,0.08);
}
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a { color: var(--accent-gold); }

/* Last menu item styled as CTA */
.nav-menu li:last-child a {
  background: var(--gradient-gold); color: #0a0a0f;
  padding: 8px 20px; border-radius: 20px; font-weight: 600;
}
.nav-menu li:last-child a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(200,168,78,0.3);
}

/* Sub-menus */
.nav-menu li ul.sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px; min-width: 200px;
  box-shadow: var(--shadow-card);
  z-index: 200;
}
.nav-menu li:hover > ul.sub-menu { display: block; }
.nav-menu li ul.sub-menu li a {
  padding: 10px 16px; border-radius: 6px;
  font-size: 0.85rem; white-space: nowrap;
}

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 101;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO SECTION (front page)
   ═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,168,78,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45,212,168,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(74,158,255,0.04) 0%, transparent 40%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23c8a84e' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 820px; text-align: center;
}
.hero-bismillah {
  font-family: 'Amiri', serif;
  font-size: 2rem; color: var(--accent-gold);
  opacity: 0.7; margin-bottom: 24px;
  letter-spacing: 2px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold-light) 50%, var(--text-primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ═══════════════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════════════ */
.section-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-gold); letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary); text-align: center;
  max-width: 600px; margin: 0 auto 60px;
  font-size: 1.05rem;
}
.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════════
   FOUR KEYS SECTION
   ═══════════════════════════════════════════ */
.four-keys { padding: 100px 0; }
.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.key-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.key-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.key-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3; line-height: 1; margin-bottom: 12px;
}
.key-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 12px;
}
.key-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ═══════════════════════════════════════════
   QURAN VERSE BANNER
   ═══════════════════════════════════════════ */
.verse-banner {
  padding: 80px 0; text-align: center;
}
.verse-arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--accent-gold);
  margin-bottom: 20px;
  line-height: 1.8; direction: rtl;
}
.verse-translation {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-style: italic;
  color: var(--text-secondary);
  max-width: 700px; margin: 0 auto 12px;
  line-height: 1.7;
}
.verse-ref { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════
   PILLARS SECTION
   ═══════════════════════════════════════════ */
.pillars { padding: 100px 0; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pillar-card {
  position: relative; display: block;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-gold);
  opacity: 0; transition: var(--transition);
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.pillar-card:hover::before { opacity: 1; }
.pillar-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,168,78,0.08);
  border-radius: 14px; font-size: 1.6rem;
}
.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 8px;
}
.pillar-card p { font-size: 0.9rem; color: var(--text-secondary); }
.pillar-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.85rem;
  color: var(--accent-gold); font-weight: 500;
}
.pillar-card:hover .pillar-link { gap: 10px; }

/* ═══════════════════════════════════════════
   ARTICLE CARDS (grid)
   ═══════════════════════════════════════════ */
.articles-section { padding: 100px 0; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.article-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-card); }
.article-thumb {
  height: 200px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-thumb .thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(200,168,78,0.15), rgba(45,212,168,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: 0.6;
}
.article-category-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(200,168,78,0.15);
  backdrop-filter: blur(10px);
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase; letter-spacing: 1px;
}
.article-body { padding: 24px; }
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600;
  margin-bottom: 10px; line-height: 1.4;
}
.article-card:hover .article-body h3 { color: var(--accent-gold-light); }
.article-body .excerpt {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}
.read-more {
  color: var(--accent-gold); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.article-card:hover .read-more { gap: 8px; }
.view-all-wrap { text-align: center; margin-top: 48px; }

/* ═══════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════ */
.categories-section { padding: 100px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  display: block; padding: 28px 20px; text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.cat-card:hover { border-color: var(--accent-gold); background: var(--bg-card-hover); transform: translateY(-2px); }
.cat-icon { font-size: 2rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cat-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   SINGLE ARTICLE
   ═══════════════════════════════════════════ */
.article-hero-single {
  padding: 120px 24px 60px;
  max-width: 800px; margin: 0 auto;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--accent-gold); }
.breadcrumb a:hover { text-decoration: underline; }
.article-cat-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(200,168,78,0.1);
  border: 1px solid rgba(200,168,78,0.2);
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.article-hero-single h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 20px;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-meta-bar .author { color: var(--text-secondary); font-weight: 500; }

/* Article body content */
.article-content {
  max-width: 720px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.article-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 600;
  margin: 36px 0 12px;
}
.article-content h4 {
  font-size: 1.1rem; font-weight: 600;
  margin: 28px 0 10px;
}
.article-content p {
  color: var(--text-secondary);
  font-size: 1.05rem; line-height: 1.9;
  margin-bottom: 20px;
}
.article-content a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover { color: var(--accent-gold-light); }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content em { font-style: italic; }
.article-content blockquote {
  position: relative;
  margin: 32px 0;
  padding: 24px 28px 24px 32px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.1rem;
  color: var(--text-primary); margin-bottom: 0;
}
.article-content blockquote cite {
  display: block; margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-style: normal;
  color: var(--accent-gold);
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
  color: var(--text-secondary);
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 10px;
  font-size: 1.05rem; line-height: 1.7;
}
.article-content img {
  border-radius: var(--radius-md);
  margin: 32px auto;
  border: 1px solid var(--border-subtle);
}
.article-content iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 32px auto; display: block;
}
.article-content .wp-block-embed { margin: 32px 0; }
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
}
.article-content table th,
.article-content table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 0.95rem;
}
.article-content table th {
  color: var(--accent-gold); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 1px;
}

/* Share bar */
.share-section {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px 48px;
  border-bottom: 1px solid var(--border-subtle);
}
.share-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.share-bar span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.share-btn {
  padding: 8px 16px; border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.share-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* Related articles */
.related-section {
  max-width: 800px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.related-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  display: block; padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.related-card:hover { border-color: var(--border-glow); }
.related-card .cat {
  font-size: 0.7rem; color: var(--accent-gold);
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 600; margin-bottom: 8px; display: block;
}
.related-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }

/* ═══════════════════════════════════════════
   PAGE TEMPLATE
   ═══════════════════════════════════════════ */
.page-hero {
  padding: 120px 24px 40px;
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800; margin-bottom: 16px;
}
.page-hero p {
  color: var(--text-secondary); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto;
}
.page-content {
  max-width: 800px; margin: 0 auto;
  padding: 40px 24px 80px;
}
/* Reuse article-content styles for page body */
.page-content h2,
.page-content h3,
.page-content h4,
.page-content p,
.page-content ul,
.page-content ol,
.page-content li,
.page-content a,
.page-content blockquote,
.page-content img,
.page-content table,
.page-content th,
.page-content td {
  /* Inherits from .article-content via shared class or duplicate rules */
}

/* ═══════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
   ═══════════════════════════════════════════ */
.archive-header {
  padding: 120px 24px 40px;
  text-align: center;
}
.archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}
.archive-header .archive-desc {
  color: var(--text-secondary); font-size: 1.05rem;
  max-width: 600px; margin: 16px auto 0;
}
.archive-grid {
  max-width: var(--max-width); margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 48px 0;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
}
.pagination a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.pagination .current {
  background: var(--gradient-gold); color: #0a0a0f;
  border-color: transparent; font-weight: 700;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter-section { padding: 100px 0; text-align: center; }
.newsletter-box {
  max-width: 560px; margin: 0 auto;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.newsletter-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; margin-bottom: 12px;
}
.newsletter-box p { color: var(--text-secondary); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 14px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem; font-family: inherit; outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent-gold); }
.newsletter-form button {
  padding: 14px 28px;
  background: var(--gradient-gold); color: #0a0a0f;
  border: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.newsletter-form button:hover { transform: scale(1.03); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand img { height: 60px; margin-bottom: 16px; filter: brightness(1.1); }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent-gold); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li a {
  display: block; padding: 6px 0;
  color: var(--text-secondary); font-size: 0.9rem;
}
.footer-col ul li a:hover { color: var(--text-primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 0.9rem;
}
.footer-social a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ═══════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════ */
.search-form {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto;
}
.search-form input[type="search"] {
  flex: 1; padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem;
  font-family: inherit; outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--accent-gold); }
.search-form button {
  padding: 12px 24px;
  background: var(--gradient-gold); color: #0a0a0f;
  border: none; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; font-family: inherit;
}

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */
.error-404 {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px;
}
.error-404 h1 {
  font-family: 'Playfair Display', serif;
  font-size: 6rem; font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-404 p { color: var(--text-secondary); font-size: 1.2rem; margin: 16px 0 32px; }

/* ═══════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════ */
.comments-area {
  max-width: 720px; margin: 0 auto;
  padding: 48px 24px;
}
.comments-area h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin-bottom: 24px;
}
.comment-list { list-style: none; }
.comment-list li {
  padding: 20px; margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.comment-list li .comment-author { font-weight: 600; margin-bottom: 4px; }
.comment-list li .comment-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.comment-list li .comment-content p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

.comment-respond { margin-top: 40px; }
.comment-respond h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 20px; }
.comment-respond input,
.comment-respond textarea {
  width: 100%; padding: 12px 16px; margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem;
  font-family: inherit; outline: none;
}
.comment-respond input:focus,
.comment-respond textarea:focus { border-color: var(--accent-gold); }
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond input[type="submit"] {
  width: auto;
  background: var(--gradient-gold); color: #0a0a0f;
  border: none; font-weight: 600;
  cursor: pointer; padding: 12px 28px;
}

/* ═══════════════════════════════════════════
   WP SPECIFIC OVERRIDES
   ═══════════════════════════════════════════ */
.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.wp-block-embed { margin: 32px 0; }
.wp-block-quote { /* uses blockquote styles above */ }
.aligncenter { text-align: center; margin: 24px auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Admin bar adjustment */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu-wrap { display: none; }
  .nav-toggle { display: block; }
  .nav-menu-wrap.open {
    display: block; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    padding: 20px; border-bottom: 1px solid var(--border-subtle);
  }
  .nav-menu-wrap.open .nav-menu {
    flex-direction: column; gap: 4px;
  }
  .articles-grid { grid-template-columns: 1fr; }
  .keys-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; }
  .share-bar { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
</style>
