/*
Theme Name: SocialCrisp
Theme URI: https://socialcrisp.com
Author: SocialCrisp
Author URI: https://socialcrisp.com
Description: A premium dark and golden yellow blogging theme for SocialCrisp.com — bold, editorial, SEO-ready.
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: socialcrisp
Tags: blog, dark, yellow, magazine, editorial, seo
*/

/* =========================================
   CSS VARIABLES
========================================= */
:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --bg-card: #1E1E1E;
  --accent: #FFD700;
  --accent-hover: #F5C518;
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --text-muted: #666666;
  --border: #2A2A2A;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
  --font-accent: 'Montserrat', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

p { margin-bottom: 1.2rem; color: var(--text-secondary); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   UTILITY CLASSES
========================================= */
.accent { color: var(--accent); }
.bg-card { background: var(--bg-card); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 16px 0 32px;
}

/* =========================================
   CATEGORY BADGE
========================================= */
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* =========================================
   HEADER
========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,15,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--accent); }
.site-logo:hover { color: var(--text-primary); }

/* Primary Navigation */
#primary-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

#primary-menu li a {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: var(--accent);
  background: rgba(255,215,0,0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: color var(--transition);
  font-size: 18px;
  line-height: 1;
}
.search-toggle:hover { color: var(--accent); }

/* Search Overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.search-overlay.active { display: flex; }

.search-overlay form {
  width: 100%;
  max-width: 600px;
  padding: 24px;
}

.search-overlay input[type="search"] {
  width: 100%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  padding: 18px 24px;
  border-radius: var(--radius);
  outline: none;
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  cursor: pointer;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* =========================================
   READING PROGRESS BAR
========================================= */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 800px;
}

.hero-content .cat-badge { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-excerpt {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  font-family: var(--font-accent);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.hero-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

/* =========================================
   POST CARDS
========================================= */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(255,215,0,0.1);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img { transform: scale(1.04); }

.post-card-img-wrap { overflow: hidden; }

.post-card-body { padding: 20px; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
  font-family: var(--font-accent);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.post-card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}
.post-card-title a { color: var(--text-primary); }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more::after { content: '→'; transition: transform var(--transition); }
.read-more:hover::after { transform: translateX(4px); }

/* =========================================
   POSTS GRID SECTION
========================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* =========================================
   TRENDING STRIP
========================================= */
.trending-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trending-inner::-webkit-scrollbar { display: none; }

.trending-label {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-right: 32px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  max-width: 280px;
}

.trending-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.35;
}
.trending-title a { color: var(--text-primary); }
.trending-title a:hover { color: var(--accent); }

/* =========================================
   CATEGORIES SECTION
========================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.category-card:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.category-card:hover .cat-icon,
.category-card:hover .cat-name { color: #000; }

.cat-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
  transition: color var(--transition);
}

.cat-name {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
}

/* =========================================
   NEWSLETTER SECTION
========================================= */
.newsletter-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,215,0,0.04);
  pointer-events: none;
}

.newsletter-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.newsletter-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

/* =========================================
   SIDEBAR
========================================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.sidebar { position: sticky; top: 90px; }

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

.widget-title {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.widget ul { list-style: none; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-secondary); }
.widget ul li a:hover { color: var(--accent); }

/* Search Widget */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input[type="search"] {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form button {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

/* =========================================
   SINGLE POST
========================================= */
.post-hero {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.post-header { margin-bottom: 32px; }

.post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 16px 0;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.post-meta .author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.author-name {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.post-date, .reading-time {
  font-family: var(--font-accent);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Post Content */
.post-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--text-primary); }
.post-content h3 { font-size: 1.4rem; margin: 2rem 0 0.8rem; color: var(--text-primary); }
.post-content p { margin-bottom: 1.4rem; }

.post-content a { color: var(--accent); border-bottom: 1px solid rgba(255,215,0,0.3); }
.post-content a:hover { border-bottom-color: var(--accent); }

.post-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 20px 28px;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
}

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

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

.post-content code {
  background: var(--bg-secondary);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* TOC */
.toc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2rem 0;
}

.toc-box h4 {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.toc-box ol {
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.social-share span {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,215,0,0.06); }

/* Author Bio Box */
.author-bio {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 2.5rem 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

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

.author-bio-name {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.author-bio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Related Posts */
.related-posts { margin: 3rem 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }

/* =========================================
   COMMENTS
========================================= */
.comments-section { margin: 3rem 0; }

.comment-list { list-style: none; }

.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.comment-author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.comment-text { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 13px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 130px; resize: vertical; }

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

.page-numbers {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* =========================================
   ABOUT PAGE
========================================= */
.about-hero {
  text-align: center;
  padding: 80px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.about-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }
.about-hero p { font-size: 1.1rem; color: var(--text-muted); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 16px;
}

.team-name { font-size: 1.1rem; margin-bottom: 4px; }
.team-role {
  font-family: var(--font-accent);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 60px 0;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,215,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-secondary); }
.faq-question.active { color: var(--accent); }

.faq-arrow { transition: transform var(--transition); font-size: 18px; }
.faq-question.active .faq-arrow { transform: rotate(45deg); }

.faq-answer {
  background: var(--bg-secondary);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 300px; padding: 18px 24px; }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* =========================================
   404 PAGE
========================================= */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 .big-number {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -40px;
  position: relative;
  z-index: 0;
}

.page-404 h1 { position: relative; z-index: 1; font-size: 2rem; margin-bottom: 16px; }
.page-404 p { color: var(--text-muted); margin-bottom: 32px; }

/* =========================================
   FOOTER
========================================= */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}

.footer-brand .site-logo {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.footer-widget-title {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  font-weight: 700;
  line-height: 1;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(255,215,0,0.4); }

/* =========================================
   SECTION SPACING
========================================= */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  #primary-menu, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    padding: 12px;
  }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
  }
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { min-height: 70vh; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

/* WP Alignment Classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Screen reader */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
