/*
Theme Name: Facts & Guides
Theme URI: https://factsandguides.com
Author: Facts & Guides Team
Author URI: https://factsandguides.com
Description: A clean, minimal, publication-grade WordPress theme for factsandguides.com. Optimized for multi-niche blogging with full Elementor compatibility. Built for performance, SEO, and reader engagement.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: factsandguides
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #292524; color: #fafaf9; }

:root {
  --fg-dark: #1c1917;
  --fg-dark-2: #292524;
  --fg-dark-3: #3f3f46;
  --fg-gray: #78716c;
  --fg-muted: #a8a29e;
  --fg-border: #e7e5e4;
  --fg-light: #f5f5f4;
  --fg-bg: #fafaf9;
  --fg-white: #ffffff;
  --fg-amber: #f59e0b;
  --fg-serif: 'Source Serif 4', Georgia, serif;
  --fg-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fg-max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--fg-serif);
  background: var(--fg-bg);
  color: var(--fg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fg-serif);
  font-weight: 800;
  line-height: 1.3;
  color: var(--fg-dark);
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { font-family: var(--fg-sans); font-size: 14px; line-height: 1.7; color: var(--fg-gray); }

.sans { font-family: var(--fg-sans); }
.serif { font-family: var(--fg-serif); }

/* ===== LAYOUT ===== */
.fg-container { max-width: var(--fg-max-width); margin: 0 auto; padding: 0 20px; }
.fg-grid { display: grid; gap: 32px; }
.fg-grid-2col { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
.fg-grid-3col { grid-template-columns: repeat(3, 1fr); }
.fg-grid-4col { grid-template-columns: repeat(4, 1fr); }
.fg-flex { display: flex; align-items: center; }
.fg-flex-between { justify-content: space-between; }
.fg-gap-sm { gap: 8px; }
.fg-gap-md { gap: 14px; }
.fg-gap-lg { gap: 24px; }

/* ===== HEADER ===== */
.fg-header {
  background: var(--fg-white);
  border-bottom: 1px solid var(--fg-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.fg-header-inner {
  max-width: var(--fg-max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fg-logo { display: flex; align-items: center; gap: 14px; }
.fg-logo-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--fg-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fg-logo-wordmark {
  font-family: var(--fg-serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--fg-dark);
}
.fg-logo-wordmark .amp { color: var(--fg-muted); }
.fg-logo-tagline {
  font-family: var(--fg-sans);
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.3;
}
.fg-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--fg-sans);
  list-style: none;
  margin: 0;
  padding: 0;
}
.fg-nav ul, .fg-nav li { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.fg-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-gray);
}
.fg-nav a:hover, .fg-nav a.active { color: var(--fg-dark); font-weight: 700; }
.fg-nav .partner-link { color: var(--fg-amber); font-weight: 600; }
.fg-nav-divider { width: 1px; height: 18px; background: var(--fg-border); }

/* WordPress widget resets and theme styling */
.widget { overflow: hidden; word-wrap: break-word; overflow-wrap: break-word; }
.widget ul, .widget ol { list-style: none; padding: 0; margin: 0; }

/* Search widget */
.widget_search { padding: 16px; border-radius: 10px; background: var(--fg-white); border: 1px solid var(--fg-border); margin-bottom: 16px; }
.widget_search .search-form { display: flex; gap: 6px; }
.widget_search .search-field {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 8px; border: 1.5px solid var(--fg-border);
  font-family: var(--fg-sans); font-size: 13px; color: var(--fg-dark); outline: none;
  background: var(--fg-light); transition: border-color 0.15s;
}
.widget_search .search-field:focus { border-color: var(--fg-dark); background: var(--fg-white); }
.widget_search .search-submit {
  padding: 11px 18px; border-radius: 8px; border: none; background: var(--fg-dark);
  color: var(--fg-light); font-family: var(--fg-sans); font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
}
.widget_search .search-submit:hover { opacity: 0.85; }
html.fg-dark .widget_search { background: #292524; border-color: #3f3f46; }
html.fg-dark .widget_search .search-field { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .widget_search .search-submit { background: #fafaf9; color: #1c1917; }

/* Recent posts widget */
.widget_recent_entries { padding: 16px; border-radius: 10px; background: var(--fg-white); border: 1px solid var(--fg-border); margin-bottom: 16px; }
.widget_recent_entries ul li {
  padding: 10px 0; border-bottom: 1px solid var(--fg-border);
  font-family: var(--fg-sans); font-size: 13px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis;
}
.widget_recent_entries ul li:last-child { border-bottom: none; }
.widget_recent_entries ul li a {
  color: var(--fg-dark); font-weight: 600; display: block;
  overflow: hidden; text-overflow: ellipsis;
}
.widget_recent_entries ul li a:hover { color: var(--fg-amber); }
.widget_recent_entries ul li .post-date {
  display: block; font-size: 11px; color: var(--fg-muted); margin-top: 2px;
}
html.fg-dark .widget_recent_entries { background: #292524; border-color: #3f3f46; }
html.fg-dark .widget_recent_entries ul li { border-color: #3f3f46; }
html.fg-dark .widget_recent_entries ul li a { color: #fafaf9; }

/* Generic widget styling */
.widget h2, .widget-title {
  font-family: var(--fg-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--fg-muted);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--fg-border);
}
html.fg-dark .widget h2, html.fg-dark .widget-title { border-color: #3f3f46; }

/* Category widget in sidebar */
.widget_categories ul li {
  padding: 6px 0; font-family: var(--fg-sans); font-size: 13px;
  border-bottom: 1px solid var(--fg-border);
}
.widget_categories ul li:last-child { border-bottom: none; }
.widget_categories ul li a { color: var(--fg-dark); font-weight: 500; }
.widget_categories ul li a:hover { color: var(--fg-amber); }
html.fg-dark .widget_categories ul li { border-color: #3f3f46; }
html.fg-dark .widget_categories ul li a { color: #fafaf9; }

/* Sidebar container overflow protection */
.fg-sidebar { min-width: 0; overflow: hidden; }
.fg-sidebar-card { overflow: hidden; word-wrap: break-word; overflow-wrap: break-word; }

/* Keep logo unchanged in dark mode */
html.fg-dark .fg-logo-icon { background: var(--fg-dark); }
html.fg-dark .fg-logo-icon svg { filter: none; }

/* ===== HERO SLIDER ===== */
.fg-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  
  background: linear-gradient(135deg, #1c1917, #292524 60%, #3f3f46);
}
.fg-slider-track { position: relative; min-height: 280px; }
.fg-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 24px;
  align-items: center;
  padding: 36px 36px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.fg-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.fg-slide-content { z-index: 2; }
.fg-slide-content h1 { color: #fafaf9; font-size: 24px; line-height: 1.3; margin: 0; }
.fg-slide-content h1 a { color: #fafaf9; }
.fg-slide-content h1 a:hover { color: #f59e0b; }
.fg-slide-image {
  width: 100%; height: 200px;
  border-radius: 10px;
  overflow: hidden;
}
.fg-slide-image img { width: 100%; height: 100%; object-fit: cover; }
.fg-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 20px;
  position: relative;
  z-index: 3;
}
.fg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #57534e;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.fg-dot.active { background: #fafaf9; width: 24px; border-radius: 4px; }

/* ===== BREADCRUMBS (SEO) ===== */
.fg-breadcrumbs {
  font-family: var(--fg-sans);
  font-size: 12px;
  color: var(--fg-muted);
  padding: 12px 0;
}
.fg-breadcrumbs a { color: var(--fg-gray); }
.fg-breadcrumbs a:hover { color: var(--fg-dark); }
.fg-breadcrumbs .separator { margin: 0 6px; color: var(--fg-border); }

/* ===== TABLE OF CONTENTS (SEO) ===== */
.fg-toc {
  background: var(--fg-white);
  border: 1px solid var(--fg-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0 28px;
}
.fg-toc-title {
  font-family: var(--fg-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.fg-toc ol {
  list-style: decimal;
  padding-left: 18px;
  font-family: var(--fg-sans);
  font-size: 13px;
  line-height: 2;
  color: var(--fg-gray);
}
.fg-toc ol a { color: var(--fg-gray); }
.fg-toc ol a:hover { color: var(--fg-dark); }

/* ===== PILLS & BADGES ===== */
.fg-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--fg-sans);
}

/* ===== CATEGORY TABS ===== */
.fg-categories {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}
.fg-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  flex: 1;
  border-radius: 10px;
  font-family: var(--fg-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--fg-border);
  background: var(--fg-white);
  transition: all 0.15s;
  text-decoration: none;
  color: var(--fg-dark);
}
.fg-category-tab:hover {
  border-color: var(--fg-dark);
  background: var(--fg-dark);
  color: var(--fg-bg);
}

/* ===== POST CARDS ===== */
.fg-post-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fg-light);
  cursor: pointer;
  transition: opacity 0.15s;
}
.fg-post-card:hover { opacity: 0.85; }
.fg-post-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.fg-post-card h3 { font-size: 15px; font-weight: 700; line-height: 1.35; }
.fg-post-meta { font-family: var(--fg-sans); font-size: 10px; color: var(--fg-muted); }

/* ===== TABS ===== */
.fg-tabs { display: flex; border-bottom: 1.5px solid var(--fg-border); margin-bottom: 4px; }
.fg-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-family: var(--fg-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
}
.fg-tab.active { font-weight: 700; color: var(--fg-dark); border-bottom-color: var(--fg-dark); }

/* ===== SIDEBAR ===== */
.fg-sidebar { display: flex; flex-direction: column; gap: 20px; }
.fg-sidebar-card { padding: 16px; border-radius: 10px; background: var(--fg-white); border: 1px solid var(--fg-border); }
.fg-trending-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--fg-light); }
.fg-trending-item:last-child { border-bottom: none; }
.fg-trending-num { font-size: 22px; font-weight: 800; color: var(--fg-border); line-height: 1; min-width: 28px; }
.fg-trending-title { font-family: var(--fg-sans); font-size: 12px; font-weight: 600; line-height: 1.35; }

/* ===== GUIDE CARDS ===== */
.fg-guide-card {
  background: var(--fg-white);
  border-radius: 10px;
  padding: 18px 16px;
  border: 1px solid var(--fg-border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fg-guide-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.fg-guide-card h3 { font-size: 13.5px; font-weight: 700; line-height: 1.4; }

/* ===== FACTS SECTION ===== */
.fg-fact-card {
  padding: 18px;
  border-radius: 10px;
  background: var(--fg-bg);
  text-align: center;
}
.fg-fact-card p { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--fg-dark); }

/* ===== AD PLACEHOLDER ===== */
.fg-ad-placeholder {
  background: var(--fg-light);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--fg-border);
}

/* ===== BUTTONS ===== */
.fg-btn {
  display: inline-block;
  font-family: var(--fg-sans);
  font-weight: 600;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.fg-btn:hover { transform: translateY(-1px); }
.fg-btn-primary { background: var(--fg-dark); color: var(--fg-bg); padding: 9px 20px; font-size: 12.5px; }
.fg-btn-white { background: var(--fg-bg); color: var(--fg-dark); padding: 9px 20px; font-size: 12.5px; }
.fg-btn-outline { background: transparent; color: var(--fg-gray); border: 1.5px solid var(--fg-border); padding: 8px 20px; font-size: 12px; }
.fg-btn-amber { background: var(--fg-amber); color: var(--fg-dark); padding: 12px 24px; font-size: 14px; }

/* ===== SECTION LABELS ===== */
.fg-label {
  font-family: var(--fg-sans);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 700;
}

/* ===== NEWSLETTER ===== */
.fg-newsletter-inline { display: flex; gap: 6px; }
.fg-newsletter-inline input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--fg-border);
  font-family: var(--fg-sans);
  font-size: 12px;
  color: var(--fg-dark);
}
.fg-newsletter-inline input:focus { outline: none; border-color: var(--fg-dark); }
.fg-newsletter-inline button {
  background: var(--fg-dark);
  color: var(--fg-bg);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--fg-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.fg-footer { background: var(--fg-dark); margin-top: 40px; }
.fg-footer-inner { max-width: var(--fg-max-width); margin: 0 auto; padding: 36px 20px 20px; }
.fg-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.fg-footer h4 {
  font-family: var(--fg-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-bg);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.fg-footer a, .fg-footer p {
  font-family: var(--fg-sans);
  font-size: 12px;
  color: #57534e;
  display: block;
  margin-bottom: 8px;
}
.fg-footer a:hover { color: var(--fg-muted); }
.fg-footer-social {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fg-footer-social a {
  font-size: 11px;
  color: var(--fg-gray);
  display: inline;
  margin-bottom: 0;
}
.fg-footer-bottom {
  border-top: 1px solid var(--fg-dark-2);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--fg-sans);
  font-size: 11px;
  color: var(--fg-dark-3);
}

/* ===== FORM ELEMENTS ===== */
.fg-input, .fg-textarea, .fg-select {
  font-family: var(--fg-sans);
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--fg-border);
  font-size: 14px;
  color: var(--fg-dark);
  background: var(--fg-white);
  transition: border-color 0.2s;
}
.fg-input:focus, .fg-textarea:focus, .fg-select:focus { outline: none; border-color: var(--fg-dark); }

/* ===== PARTNER PAGE (formerly Advertise) ===== */
.fg-partner-hero {
  background: linear-gradient(135deg, #1c1917, #292524 60%, #3f3f46);
  border-radius: 14px;
  padding: 44px 36px;
  text-align: center;
  margin-top: 24px;
}
.fg-partner-card {
  border: 1px solid var(--fg-border);
  border-radius: 14px;
  background: var(--fg-white);
  padding: 24px;
  transition: all 0.2s;
}
.fg-partner-card:hover { border-color: #d6d3d1; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }

/* ===== SINGLE POST ===== */
.fg-single-content { max-width: 720px; margin: 0 auto; }
.fg-single-content h1 { font-size: 32px; line-height: 1.25; margin-bottom: 12px; }
.fg-single-content .entry-content p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.fg-single-content .entry-content h2 { font-size: 22px; margin: 32px 0 12px; }
.fg-single-content .entry-content h3 { font-size: 18px; margin: 24px 0 10px; }
.fg-single-content .entry-content ul, .fg-single-content .entry-content ol {
  font-family: var(--fg-sans);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 20px 24px;
  color: var(--fg-gray);
}
.fg-single-content .entry-content img { border-radius: 10px; margin: 20px 0; }
.fg-single-content .entry-content blockquote {
  border-left: 3px solid var(--fg-amber);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--fg-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* ===== AUTHOR BIO (SEO - E-E-A-T) ===== */
.fg-author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--fg-white);
  border: 1px solid var(--fg-border);
  border-radius: 10px;
  margin-top: 28px;
}
.fg-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--fg-light);
  flex-shrink: 0;
  overflow: hidden;
}
.fg-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fg-author-name { font-family: var(--fg-sans); font-size: 14px; font-weight: 700; }
.fg-author-bio { font-family: var(--fg-sans); font-size: 13px; color: var(--fg-gray); line-height: 1.6; margin-top: 4px; }

/* ===== LAST UPDATED BADGE (SEO) ===== */
.fg-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--fg-sans);
  font-size: 11px;
  color: var(--fg-gray);
  background: var(--fg-light);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fg-slide { grid-template-columns: 1fr; padding: 28px 24px; }
  .fg-slide-image { display: none; }
  .fg-slide-content h1 { font-size: 20px; }
  .fg-slider-track { min-height: 220px; }
  .fg-grid-2col { grid-template-columns: 1fr; }
  .fg-grid-4col { grid-template-columns: repeat(2, 1fr); }
  .fg-grid-3col { grid-template-columns: 1fr; }
  .fg-categories { flex-wrap: wrap; }
  .fg-category-tab { flex: none; padding: 8px 14px; }
  .fg-footer-grid { grid-template-columns: 1fr 1fr; }
  .fg-header-inner { flex-direction: column; gap: 10px; }
  .fg-nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  h1 { font-size: 22px; }
  .fg-author-box { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .fg-grid-4col { grid-template-columns: 1fr; }
  .fg-footer-grid { grid-template-columns: 1fr; }
  .fg-categories { gap: 6px; }
}

/* ===== ELEMENTOR OVERRIDES ===== */
.elementor-page .fg-header { position: sticky; top: 0; z-index: 100; }
.elementor-page .entry-content { font-family: var(--fg-sans); }

/* ===== WORDPRESS CORE OVERRIDES ===== */
.wp-block-image img { border-radius: 10px; }
.wp-block-quote { border-left-color: var(--fg-amber); }
.wp-block-separator { border-color: var(--fg-border); }
.alignwide { max-width: var(--fg-max-width); }
.alignfull { max-width: 100%; }

/* ===== CATEGORY COLORS ===== */
.cat-technology { --cat-color: #6366f1; }
.cat-health { --cat-color: #10b981; }
.cat-finance { --cat-color: #f59e0b; }
.cat-travel { --cat-color: #06b6d4; }
.cat-education { --cat-color: #8b5cf6; }
.cat-lifestyle { --cat-color: #ec4899; }
.cat-food { --cat-color: #ef4444; }
.cat-entertainment { --cat-color: #f97316; }

/* ===== READING PROGRESS BAR ===== */
.fg-progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}
.fg-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fg-amber), #f97316);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===== SHARE BUTTONS ===== */
.fg-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--fg-border);
  border-bottom: 1px solid var(--fg-border);
  margin: 24px 0;
}
.fg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: var(--fg-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--fg-border);
  background: var(--fg-white);
  color: var(--fg-gray);
  transition: all 0.15s;
  text-decoration: none;
}
.fg-share-btn:hover { border-color: var(--fg-dark); color: var(--fg-dark); }
.fg-share-btn.whatsapp:hover { border-color: #25d366; color: #25d366; }
.fg-share-btn.twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.fg-share-btn.facebook:hover { border-color: #1877f2; color: #1877f2; }
.fg-share-btn.telegram:hover { border-color: #0088cc; color: #0088cc; }
.fg-share-btn.linkedin:hover { border-color: #0a66c2; color: #0a66c2; }

/* ===== PDF DOWNLOAD & ACTIONS BAR ===== */
.fg-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.fg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--fg-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--fg-border);
  background: var(--fg-white);
  color: var(--fg-dark);
  transition: all 0.15s;
}
.fg-action-btn:hover { border-color: var(--fg-dark); background: var(--fg-dark); color: var(--fg-bg); }
.fg-action-btn.bookmarked { background: var(--fg-amber); border-color: var(--fg-amber); color: var(--fg-dark); }
.fg-action-btn.pdf-btn { background: var(--fg-dark); color: var(--fg-bg); border-color: var(--fg-dark); }
.fg-action-btn.pdf-btn:hover { background: var(--fg-dark-2); }

/* ===== FEEDBACK WIDGET ===== */
.fg-feedback-widget {
  padding: 20px;
  background: var(--fg-light);
  border-radius: 10px;
  text-align: center;
  margin-top: 28px;
}
.fg-feedback-widget .fg-feedback-title {
  font-family: var(--fg-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.fg-feedback-btns { display: flex; justify-content: center; gap: 12px; }
.fg-feedback-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--fg-border);
  background: var(--fg-white);
  font-family: var(--fg-sans);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.fg-feedback-btn:hover { border-color: var(--fg-dark); transform: scale(1.1); }
.fg-feedback-btn.active { border-color: var(--fg-amber); background: #fef3c7; transform: scale(1.1); }
.fg-feedback-msg {
  display: none;
  margin-top: 10px;
  font-family: var(--fg-sans);
  font-size: 12px;
  color: var(--fg-gray);
}

/* ===== STICKY MOBILE BAR ===== */
.fg-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--fg-white);
  border-top: 1px solid var(--fg-border);
  padding: 8px 16px;
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.fg-sticky-bar.visible { transform: translateY(0); }
.fg-sticky-bar.hidden { transform: translateY(100%); }
.fg-sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  font-family: var(--fg-sans);
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-gray);
  cursor: pointer;
  padding: 4px 8px;
}
.fg-sticky-btn span { font-size: 18px; }
.fg-sticky-btn.bookmarked { color: var(--fg-amber); }

@media (max-width: 768px) {
  .fg-sticky-bar { display: flex; }
  body { padding-bottom: 60px; }
}

/* ===== RELATED POSTS SLIDER ===== */
.fg-related-slider-wrap {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
}
.fg-related-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 12px;
}
.fg-related-slider::-webkit-scrollbar { display: none; }
.fg-related-slider .fg-related-card {
  flex: 0 0 240px;
  background: var(--fg-white);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--fg-border);
  transition: transform 0.15s;
  text-decoration: none;
  color: inherit;
}
.fg-related-slider .fg-related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.fg-related-slider .fg-related-card h4 { font-size: 13px; font-weight: 700; line-height: 1.35; margin-top: 6px; }
.fg-related-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fg-white);
  border: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.fg-related-nav:hover { background: var(--fg-dark); color: var(--fg-bg); border-color: var(--fg-dark); }
.fg-related-prev { left: 0; }
.fg-related-next { right: 0; }

/* ===== DARK MODE TOGGLE ===== */
.fg-dark-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--fg-border);
  background: var(--fg-white);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.fg-dark-toggle:hover { border-color: var(--fg-dark); }

/* ===== LOGIN/REGISTER MODAL ===== */
.fg-login-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fg-login-modal.active { display: flex; }
.fg-login-box {
  background: var(--fg-white);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  position: relative;
}
.fg-login-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--fg-muted);
}
.fg-login-box h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.fg-login-box .fg-input { margin-bottom: 12px; }
.fg-login-box .fg-btn { width: 100%; padding: 12px; font-size: 14px; }
.fg-login-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--fg-sans);
  font-size: 13px;
  color: var(--fg-gray);
  cursor: pointer;
}
.fg-login-link:hover { color: var(--fg-dark); }
.fg-login-msg {
  display: none;
  font-family: var(--fg-sans);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

/* ===== READING LIST PAGE ===== */
.fg-reading-list { padding: 20px 0; }
.fg-reading-list-empty {
  text-align: center;
  padding: 40px;
  font-family: var(--fg-sans);
  color: var(--fg-muted);
}

/* ===== DARK MODE ===== */
html.fg-dark {
  --fg-dark: #fafaf9;
  --fg-dark-2: #e7e5e4;
  --fg-dark-3: #d6d3d1;
  --fg-gray: #a8a29e;
  --fg-muted: #78716c;
  --fg-border: #3f3f46;
  --fg-light: #292524;
  --fg-bg: #1c1917;
  --fg-white: #292524;
}
html.fg-dark body { background: #1c1917; color: #fafaf9; }
html.fg-dark .fg-header { background: #292524; border-bottom-color: #3f3f46; }
html.fg-dark .fg-footer { background: #0f0f0f; }
html.fg-dark .fg-footer-bottom { border-top-color: #1c1917; }
html.fg-dark .fg-slide-content h1 a { color: #fafaf9; }
html.fg-dark .fg-post-card h3 a { color: #fafaf9; }
html.fg-dark .fg-guide-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-sidebar-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-share-btn { background: #292524; border-color: #3f3f46; color: #a8a29e; }
html.fg-dark .fg-action-btn { background: #292524; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-feedback-widget { background: #292524; }
html.fg-dark .fg-feedback-btn { background: #1c1917; border-color: #3f3f46; }
html.fg-dark .fg-dark-toggle { background: #3f3f46; border-color: #57534e; }
html.fg-dark .fg-sticky-bar { background: #292524; border-top-color: #3f3f46; }
html.fg-dark .fg-login-box { background: #292524; }
html.fg-dark .fg-input, html.fg-dark .fg-textarea { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-single-content .entry-content p { color: #a8a29e; }
html.fg-dark .fg-single-content .entry-content h2,
html.fg-dark .fg-single-content .entry-content h3 { color: #fafaf9; }
html.fg-dark .fg-author-box { background: #1c1917; border-color: #3f3f46; }
html.fg-dark .fg-toc { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-related-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-partner-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-related-nav { background: #292524; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark h1, html.fg-dark h2, html.fg-dark h3 { color: #fafaf9; }

/* ===== PRINT STYLESHEET ===== */
@media print {
  .fg-header, .fg-footer, .fg-nav, .fg-sidebar, .fg-sticky-bar, .fg-share-bar,
  .fg-actions-bar, .fg-feedback-widget, .fg-related-slider-wrap, .fg-progress-bar-wrap,
  .fg-ad-placeholder, .fg-newsletter-box, .fg-dark-toggle, .fg-login-modal,
  .fg-categories, .fg-slider, .fg-tabs, #fgStickyBar, .fg-toc { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .fg-container { max-width: 100%; padding: 0; }
  .fg-single-content { max-width: 100%; }
  .fg-single-content h1 { font-size: 22pt; margin-bottom: 8pt; }
  .fg-single-content .entry-content p { font-size: 11pt; line-height: 1.6; color: #333 !important; }
  .fg-single-content .entry-content h2 { font-size: 16pt; margin-top: 18pt; }
  .fg-single-content .entry-content h3 { font-size: 13pt; }
  a { color: #000 !important; text-decoration: none; }
  img { max-width: 100% !important; }

  /* Print branding */
  .fg-single-content::before {
    content: "factsandguides.com";
    display: block;
    font-family: sans-serif;
    font-size: 9pt;
    color: #999;
    border-bottom: 1pt solid #f59e0b;
    padding-bottom: 6pt;
    margin-bottom: 12pt;
  }
  .fg-single-content::after {
    content: "© factsandguides.com — Downloaded for personal use";
    display: block;
    font-family: sans-serif;
    font-size: 8pt;
    color: #999;
    border-top: 1pt solid #f59e0b;
    padding-top: 6pt;
    margin-top: 18pt;
  }
  .fg-author-box { border: 1px solid #ddd !important; background: #f9f9f9 !important; }
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .fg-single-content h1 { font-size: 22px; }
  .fg-single-content .entry-content p { font-size: 15px; }
  .fg-single-content .entry-content h2 { font-size: 19px; }
  .fg-single-content .entry-content h3 { font-size: 16px; }
  .fg-share-bar { gap: 6px; }
  .fg-share-btn { padding: 6px 10px; font-size: 11px; }
  .fg-actions-bar { gap: 6px; }
  .fg-action-btn { padding: 7px 12px; font-size: 11px; }
  .fg-author-box { flex-direction: column; text-align: center; }
  .fg-feedback-btns { gap: 8px; }
  .fg-feedback-btn { padding: 8px 20px; }
  .fg-related-slider .fg-related-card { flex: 0 0 200px; padding: 12px; }
  .fg-toc { margin: 16px 0 20px; padding: 14px 16px; }
  .fg-login-box { padding: 24px 20px; margin: 0 10px; }
}

@media (max-width: 480px) {
  .fg-single-content h1 { font-size: 20px; }
  .fg-share-bar { justify-content: center; }
  .fg-actions-bar { justify-content: center; }
  .fg-slide-content h1 { font-size: 18px; }
  .fg-slider { min-height: 200px; }
  .fg-category-tab { font-size: 11px; padding: 8px 10px; }
  .fg-grid-4col { grid-template-columns: 1fr 1fr; }
}

/* ===== TRUST BAR ===== */
.fg-trust-bar {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 14px 20px; margin-top: 20px; border-radius: 10px;
  background: var(--fg-light); border: 1px solid var(--fg-border);
  font-family: var(--fg-sans); font-size: 12px; color: var(--fg-gray); font-weight: 500;
}
html.fg-dark .fg-trust-bar { background: #292524; border-color: #3f3f46; }

/* ===== CATEGORY SHOWCASE GRID ===== */
.fg-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fg-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 10px; border-radius: 10px; border: 1.5px solid var(--fg-border);
  background: var(--fg-white); text-decoration: none; transition: all 0.15s; text-align: center;
}
.fg-cat-card:hover { border-color: var(--fg-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.fg-cat-name { font-family: var(--fg-sans); font-size: 13px; font-weight: 600; }
.fg-cat-count { font-family: var(--fg-sans); font-size: 10px; color: var(--fg-muted); }
html.fg-dark .fg-cat-card { background: #292524; border-color: #3f3f46; }

/* ===== START HERE ===== */
.fg-start-here { background: var(--fg-light); border-radius: 14px; padding: 24px 20px; }
html.fg-dark .fg-start-here { background: #292524; }

/* ===== GUIDE GRID ===== */
.fg-guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ===== NEWSLETTER BANNER ===== */
.fg-newsletter-banner {
  background: linear-gradient(135deg, #1c1917, #292524 60%, #3f3f46);
  border-radius: 14px; padding: 28px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

/* ===== FACTS GRID ===== */
.fg-facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fg-fact-card {
  padding: 18px; border-radius: 10px; background: var(--fg-light); text-align: center;
  font-family: var(--fg-sans); font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--fg-dark);
}
.fg-fact-card span { font-size: 10px; color: var(--fg-muted); font-weight: 500; }
html.fg-dark .fg-fact-card { background: #292524; color: #fafaf9; }

/* ===== FAQ ===== */
.fg-faq-list { border: 1px solid var(--fg-border); border-radius: 12px; overflow: hidden; }
.fg-faq-item { border-bottom: 1px solid var(--fg-border); }
.fg-faq-item:last-child { border-bottom: none; }
.fg-faq-question {
  padding: 14px 18px; cursor: pointer; font-family: var(--fg-sans); font-size: 14px;
  font-weight: 600; color: var(--fg-dark); list-style: none; display: flex; align-items: center; gap: 8px;
}
.fg-faq-question::-webkit-details-marker { display: none; }
.fg-faq-question::before { content: '+'; font-size: 18px; color: var(--fg-muted); min-width: 18px; text-align: center; transition: transform 0.2s; }
details[open] .fg-faq-question::before { content: '\2212'; }
.fg-faq-answer {
  padding: 0 18px 14px 44px; font-family: var(--fg-sans); font-size: 13px;
  color: var(--fg-gray); line-height: 1.7;
}
html.fg-dark .fg-faq-list { border-color: #3f3f46; }
html.fg-dark .fg-faq-item { border-color: #3f3f46; }
html.fg-dark .fg-faq-question { color: #fafaf9; }

/* ===== TRUST SECTION ===== */
.fg-trust-section { background: var(--fg-light); border-radius: 14px; padding: 24px 20px; }
.fg-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fg-trust-card { text-align: center; }
.fg-trust-card h3 { font-family: var(--fg-sans); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.fg-trust-card p { font-family: var(--fg-sans); font-size: 12px; color: var(--fg-gray); line-height: 1.6; }
html.fg-dark .fg-trust-section { background: #292524; }

/* ===== AD SPOTS ===== */
.fg-ad-spot { text-align: center; min-height: 0; }
.fg-ad-spot:empty { display: none; }

/* ===== COOKIE CONSENT ===== */
.fg-cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1c1917; color: #fafaf9; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--fg-sans); font-size: 13px; box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.fg-cookie-bar a { color: #f59e0b; }
.fg-cookie-accept {
  padding: 8px 20px; border-radius: 6px; border: none; background: #f59e0b; color: #1c1917;
  font-family: var(--fg-sans); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}

/* ===== SEARCH OVERLAY ===== */
.fg-search-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 10000; align-items: flex-start; justify-content: center; padding-top: 120px;
}
.fg-search-overlay.active { display: flex; }
.fg-search-box { background: var(--fg-white); border-radius: 14px; padding: 24px; width: 100%; max-width: 560px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.fg-search-box input { width: 100%; padding: 14px 18px; border-radius: 10px; border: 2px solid var(--fg-border); font-family: var(--fg-sans); font-size: 16px; outline: none; }
.fg-search-box input:focus { border-color: var(--fg-dark); }
html.fg-dark .fg-search-box { background: #292524; }
html.fg-dark .fg-search-box input { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }

/* ===== RESPONSIVE: NEW SECTIONS ===== */
@media (max-width: 768px) {
  .fg-category-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-guide-grid { grid-template-columns: 1fr 1fr; }
  .fg-facts-grid { grid-template-columns: 1fr; }
  .fg-trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .fg-trust-bar { gap: 12px; font-size: 11px; }
  .fg-newsletter-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .fg-category-grid { grid-template-columns: 1fr 1fr; }
  .fg-guide-grid { grid-template-columns: 1fr; }
}


/* ===== HORIZONTAL SCROLL SLIDERS ===== */
.fg-hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0; }
.fg-hscroll::-webkit-scrollbar { display: none; }
.fg-hscroll .fg-guide-card { flex: 0 0 240px; }
.fg-nav-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--fg-white); border: 1px solid var(--fg-border); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: all 0.15s; }
.fg-nav-btn:hover { background: var(--fg-dark); color: var(--fg-light); border-color: var(--fg-dark); }
html.fg-dark .fg-nav-btn { background: #292524; border-color: #3f3f46; color: #fafaf9; }

/* ===== TAB SCROLL (show 5, scroll 10) ===== */
.fg-tab-scroll { max-height: 390px; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: y mandatory; scrollbar-width: none; }
.fg-tab-scroll::-webkit-scrollbar { display: none; }
.fg-tab-scroll .fg-post-card { scroll-snap-align: start; }

/* ===== TRENDING SCROLL ===== */
.fg-trending-scroll { max-height: 250px; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none; }
.fg-trending-scroll::-webkit-scrollbar { display: none; }

/* ===== FACT CARDS ===== */
.fg-hscroll .fg-fact-card { flex: 0 0 220px; padding: 18px; border-radius: 10px; background: var(--fg-light); text-align: center; font-family: var(--fg-sans); font-size: 13px; font-weight: 600; line-height: 1.5; }
.fg-hscroll .fg-fact-card span { font-size: 10px; color: var(--fg-muted); font-weight: 500; display: block; margin-top: 6px; }
html.fg-dark .fg-hscroll .fg-fact-card { background: #292524; color: #fafaf9; }

/* ===== FAQ (arrow, no default markers) ===== */
details.fg-faq-item { counter-reset: none; }
details.fg-faq-item > summary { list-style: none; list-style-type: none; }
details.fg-faq-item > summary::-webkit-details-marker { display: none !important; }
details.fg-faq-item > summary::marker { display: none !important; content: "" !important; font-size: 0 !important; }
.fg-faq-question { padding: 14px 18px; cursor: pointer; font-family: var(--fg-sans); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; list-style: none; }



/* ===== STICKY SIDEBAR ===== */
.fg-sidebar { position: sticky; top: 80px; }

/* ===== BACK TO TOP ===== */
.fg-back-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--fg-dark); color: var(--fg-light); border: none; font-size: 18px; cursor: pointer; display: none; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
html.fg-dark .fg-back-top { background: var(--fg-light); color: var(--fg-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fg-category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .fg-guide-grid { grid-template-columns: 1fr 1fr; }
  .fg-trust-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .fg-category-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-guide-grid { grid-template-columns: 1fr; }
  .fg-hscroll .fg-guide-card { flex: 0 0 180px; }
  .fg-faq-question { font-size: 13px; padding: 12px 14px; }
}
@media (max-width: 360px) {
  .fg-category-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .fg-cat-card { padding: 10px 6px; }
  .fg-cat-name { font-size: 11px; }
}

/* ===== HORIZONTAL SLIDER (Start Here + Quick Facts) ===== */
.fg-h-slider { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 0; scroll-snap-type: x mandatory; }
.fg-h-slider::-webkit-scrollbar { display: none; }
.fg-h-slider .fg-guide-card { flex: 0 0 calc(25% - 9px); scroll-snap-align: start; min-width: 200px; }
.fg-h-slider .fg-fact-card { flex: 0 0 calc(25% - 9px); min-width: 180px; scroll-snap-align: start; }
.fg-nav-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--fg-white); border: 1px solid var(--fg-border); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: all 0.15s; }
.fg-nav-btn:hover { background: var(--fg-dark); color: var(--fg-light); border-color: var(--fg-dark); }

/* ===== TAB SCROLL (5 visible, auto-scrolls 10) ===== */
.fg-tab-scroll { max-height: 400px; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: y mandatory; padding-right: 4px; }
.fg-tab-scroll::-webkit-scrollbar { display: none; }
.fg-tab-scroll .fg-post-card { scroll-snap-align: start; }

/* ===== TRENDING SCROLL ===== */
.fg-trending-scroll { max-height: 250px; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; }
.fg-trending-scroll::-webkit-scrollbar { display: none; }

/* ===== SEARCH INPUT ===== */
.fg-search-input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--fg-border); font-family: var(--fg-sans); font-size: 13px; color: var(--fg-dark); outline: none; background: var(--fg-light); }
.fg-search-input:focus { border-color: var(--fg-dark); background: var(--fg-white); }
.fg-btn-sm { padding: 10px 16px; border-radius: 8px; border: none; background: var(--fg-dark); color: var(--fg-light); font-family: var(--fg-sans); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* ===== FAQ (arrow, no numbers) ===== */
.fg-faq-list { border: 1px solid var(--fg-border); border-radius: 12px; overflow: hidden; }
.fg-faq-item { border-bottom: 1px solid var(--fg-border); }
.fg-faq-item:last-child { border-bottom: none; }
.fg-faq-item > summary { list-style: none; list-style-type: none; counter-increment: none; }
.fg-faq-item > summary::-webkit-details-marker { display: none !important; }
.fg-faq-item > summary::marker { display: none !important; content: "" !important; font-size: 0 !important; }
.fg-faq-question { padding: 14px 18px; cursor: pointer; font-family: var(--fg-sans); font-size: 14px; font-weight: 600; color: var(--fg-dark); list-style: none; }
.fg-faq-arrow { color: var(--fg-muted); font-size: 11px; flex-shrink: 0; transition: transform 0.25s ease; }

.fg-faq-answer { padding: 0 18px 14px 40px; font-family: var(--fg-sans); font-size: 13px; color: var(--fg-gray); line-height: 1.7; }

/* ===== TRUST SECTION ===== */
.fg-trust-section { background: var(--fg-light); border-radius: 14px; padding: 20px 18px; }
.fg-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fg-trust-card { text-align: center; }
.fg-trust-card h3 { font-family: var(--fg-sans); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.fg-trust-card p { font-family: var(--fg-sans); font-size: 12px; color: var(--fg-gray); line-height: 1.6; }

/* ===== START HERE ===== */
.fg-start-here { background: var(--fg-light); border-radius: 14px; padding: 24px 20px; }

/* ===== FACT CARD ===== */
.fg-fact-card { padding: 18px; border-radius: 10px; background: var(--fg-light); text-align: center; font-family: var(--fg-sans); font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--fg-dark); }
.fg-fact-card span { font-size: 10px; color: var(--fg-muted); font-weight: 500; display: block; margin-top: 6px; }

/* ===== PULSE ANIMATION ===== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== BACK TO TOP ===== */
.fg-back-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--fg-dark); color: var(--fg-light); border: none; font-size: 18px; cursor: pointer; display: none; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ===== DARK MODE ADDITIONS ===== */
html.fg-dark .fg-start-here { background: #292524; }
html.fg-dark .fg-fact-card { background: #292524; color: #fafaf9; }
html.fg-dark .fg-faq-list { border-color: #3f3f46; }
html.fg-dark .fg-faq-item { border-color: #3f3f46; }
html.fg-dark .fg-faq-question { color: #fafaf9; }
html.fg-dark .fg-trust-section { background: #292524; }
html.fg-dark .fg-nav-btn { background: #292524; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-search-input { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fg-trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .fg-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fg-category-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-guide-grid { grid-template-columns: 1fr; }
  .fg-start-here { padding: 18px 14px; }
  .fg-faq-question { font-size: 13px; padding: 12px 14px; }
  .fg-trust-section { padding: 16px 14px; }
}

/* Sidebar widget fixes */
.fg-sidebar .fg-sidebar-card { font-family: var(--fg-sans); }
.fg-sidebar .fg-label { font-size: 10px; }
.fg-sidebar .fg-trending-title { font-size: 12px; font-weight: 600; line-height: 1.35; }
.fg-sidebar .fg-trending-num { font-size: 18px; }
.fg-sidebar .fg-trending-item { padding: 8px 0; border-bottom: 1px solid var(--fg-border); }
.fg-sidebar .fg-trending-item:last-child { border-bottom: none; }
.fg-sidebar .fg-search-input { font-size: 12px; padding: 9px 12px; }
.fg-sidebar .fg-btn-sm { font-size: 11px; padding: 9px 14px; }

/* Default WordPress widget styling overrides */
.fg-sidebar .widget { font-family: var(--fg-sans); overflow: hidden; word-wrap: break-word; }
.fg-sidebar .widget h2, .fg-sidebar .widget-title {
  font-family: var(--fg-sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--fg-muted);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--fg-border);
}
.fg-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.fg-sidebar .widget ul li {
  padding: 8px 0; border-bottom: 1px solid var(--fg-border);
  font-size: 12px; line-height: 1.5;
}
.fg-sidebar .widget ul li:last-child { border-bottom: none; }
.fg-sidebar .widget ul li a { color: var(--fg-dark); font-weight: 500; font-size: 12px; }
.fg-sidebar .widget ul li a:hover { color: var(--fg-amber); }
.fg-sidebar .widget_search .search-form { display: flex; gap: 6px; }
.fg-sidebar .widget_search .search-field {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid var(--fg-border); font-family: var(--fg-sans);
  font-size: 12px; outline: none; background: var(--fg-light);
}
.fg-sidebar .widget_search .search-submit {
  padding: 9px 14px; border-radius: 8px; border: none;
  background: var(--fg-dark); color: var(--fg-light);
  font-family: var(--fg-sans); font-size: 11px; font-weight: 600; cursor: pointer;
}
html.fg-dark .fg-sidebar .widget ul li { border-color: #3f3f46; }
html.fg-dark .fg-sidebar .widget ul li a { color: #fafaf9; }
html.fg-dark .fg-sidebar .widget h2, html.fg-dark .fg-sidebar .widget-title { border-color: #3f3f46; }
html.fg-dark .fg-sidebar .widget_search .search-field { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }



/* Trust bar even spacing fix */
.fg-container > div[style*="display:flex"][style*="justify-content:center"] {
  justify-content: space-evenly !important; padding: 14px 8px !important;
}

/* Comments section redesign */
.comments-area { font-family: var(--fg-sans); }
.comments-area .comments-title {
  font-family: var(--fg-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--fg-muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--fg-border); margin-bottom: 20px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment {
  padding: 18px 0; border-bottom: 1px solid var(--fg-border);
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; width: 36px; height: 36px; }
.comment-author .fn { font-family: var(--fg-sans); font-weight: 700; font-size: 13px; }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--fg-sans); font-size: 11px; color: var(--fg-muted); margin-bottom: 8px; }
.comment-metadata a { color: var(--fg-muted); }
.comment-content { font-family: var(--fg-sans); font-size: 14px; line-height: 1.7; color: var(--fg-gray); }
.comment-content p { margin-bottom: 8px; }
.reply a {
  font-family: var(--fg-sans); font-size: 11px; font-weight: 600;
  color: var(--fg-amber); text-transform: uppercase; letter-spacing: 0.5px;
}
.comment-respond { margin-top: 28px; }
.comment-reply-title {
  font-family: var(--fg-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--fg-muted);
  margin-bottom: 16px;
}
.comment-reply-title small a { font-size: 11px; color: var(--fg-amber); margin-left: 8px; }
.comment-form label {
  font-family: var(--fg-sans); font-size: 12px; font-weight: 600;
  color: var(--fg-dark); display: block; margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid var(--fg-border); font-family: var(--fg-sans);
  font-size: 13px; color: var(--fg-dark); outline: none;
  background: var(--fg-white); margin-bottom: 12px; box-sizing: border-box;
  transition: border-color 0.15s;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--fg-dark);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--fg-dark); color: var(--fg-light); border: none;
  padding: 12px 28px; border-radius: 8px; font-family: var(--fg-sans);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s;
}
.comment-form .submit:hover { opacity: 0.85; }
.comment-form .comment-notes, .comment-form .logged-in-as {
  font-family: var(--fg-sans); font-size: 12px; color: var(--fg-muted); margin-bottom: 14px;
}
html.fg-dark .comment-form input, html.fg-dark .comment-form textarea {
  background: #292524; border-color: #3f3f46; color: #fafaf9;
}
html.fg-dark .comment-list .comment { border-color: #3f3f46; }
html.fg-dark .comment-content { color: #a8a29e; }

/* ===== CONTENT BLOCKS (tip/warning/info/success) ===== */
.fg-block { display: flex; gap: 12px; padding: 16px 18px; border-radius: 10px; margin: 20px 0; font-family: var(--fg-sans); font-size: 14px; line-height: 1.7; }
.fg-block-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.fg-block-tip { background: #fef9c3; border-left: 3px solid #f59e0b; }
.fg-block-warning { background: #fee2e2; border-left: 3px solid #ef4444; }
.fg-block-info { background: #dbeafe; border-left: 3px solid #3b82f6; }
.fg-block-success { background: #dcfce7; border-left: 3px solid #10b981; }
html.fg-dark .fg-block-tip { background: #422006; }
html.fg-dark .fg-block-warning { background: #450a0a; }
html.fg-dark .fg-block-info { background: #172554; }
html.fg-dark .fg-block-success { background: #052e16; }

/* ===== PROS & CONS ===== */
.fg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--fg-border); border-radius: 10px; overflow: hidden; margin: 20px 0; font-family: var(--fg-sans); }
.fg-pros { border-right: 1px solid var(--fg-border); }
.fg-proscons-title { padding: 12px 16px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--fg-border); }
.fg-proscons-item { padding: 8px 16px; font-size: 13px; border-bottom: 1px solid var(--fg-border); }
.fg-proscons-item:last-child { border-bottom: none; }
.fg-pro-item { color: #10b981; }
.fg-con-item { color: #ef4444; }
@media (max-width: 480px) { .fg-proscons { grid-template-columns: 1fr; } .fg-pros { border-right: none; border-bottom: 1px solid var(--fg-border); } }

/* ===== KEY TAKEAWAYS ===== */
.fg-takeaways { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #f59e0b; border-radius: 10px; padding: 18px 20px; margin: 20px 0; font-family: var(--fg-sans); }
.fg-takeaways-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.fg-takeaways ul { padding-left: 18px; margin: 0; }
.fg-takeaways li { font-size: 13px; line-height: 1.7; margin-bottom: 4px; color: #78716c; }
html.fg-dark .fg-takeaways { background: linear-gradient(135deg, #422006, #451a03); }

/* ===== STAR RATING ===== */
.fg-rating-box { padding: 20px; border-radius: 10px; border: 1px solid var(--fg-border); text-align: center; margin: 20px 0; font-family: var(--fg-sans); }
.fg-rating-score { margin-top: 6px; font-family: var(--fg-sans); }

/* ===== COMPARISON TABLE ===== */
.fg-compare-table { overflow-x: auto; margin: 20px 0; }
.fg-compare-table table { width: 100%; border-collapse: collapse; font-family: var(--fg-sans); font-size: 13px; }
.fg-compare-table th { background: var(--fg-dark); color: var(--fg-light); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.fg-compare-table td { padding: 10px 16px; border-bottom: 1px solid var(--fg-border); }
.fg-compare-table tr:hover { background: rgba(245, 158, 11, 0.04); }
.fg-compare-table .check { color: #10b981; font-weight: 700; }
.fg-compare-table .cross { color: #ef4444; font-weight: 700; }
.fg-compare-table .winner { background: rgba(16, 185, 129, 0.06); }

/* ===== PREVIOUS / NEXT NAVIGATION ===== */
.fg-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--fg-border); margin-bottom: 20px; }
.fg-prev-post, .fg-next-post { padding: 16px; border-radius: 10px; border: 1px solid var(--fg-border); transition: border-color 0.15s; }
.fg-prev-post:hover, .fg-next-post:hover { border-color: var(--fg-dark); }
.fg-next-post { text-align: right; }
.fg-pn-label { font-family: var(--fg-sans); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--fg-muted); display: block; margin-bottom: 6px; }
.fg-pn-title { font-family: var(--fg-sans); font-size: 14px; font-weight: 600; color: var(--fg-dark); line-height: 1.4; }
.fg-pn-title:hover { color: var(--fg-amber); }
@media (max-width: 480px) { .fg-prev-next { grid-template-columns: 1fr; } .fg-next-post { text-align: left; } }

/* ===== TIME REMAINING ===== */
.fg-time-left { font-weight: 500; color: #f59e0b; }

/* ===== LISTEN BUTTON ACTIVE STATE ===== */
.fg-listen-active { background: #10b981 !important; color: #fff !important; }

/* ===== SECTION PROGRESS DOTS ===== */
.fg-progress-dots { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.fg-progress-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-border); transition: all 0.2s; cursor: pointer; border: none; padding: 0; }
.fg-progress-dot.active { background: var(--fg-amber); width: 10px; height: 10px; }
@media (max-width: 768px) { .fg-progress-dots { display: none; } }

/* ===== BACK TO CONTENTS BUTTON ===== */
.fg-back-toc { position: fixed; left: 16px; bottom: 80px; padding: 8px 14px; border-radius: 8px; background: var(--fg-dark); color: var(--fg-light); border: none; font-family: var(--fg-sans); font-size: 12px; font-weight: 600; cursor: pointer; z-index: 90; box-shadow: 0 2px 8px rgba(0,0,0,0.15); opacity: 0.8; }
.fg-back-toc:hover { opacity: 1; }
@media (max-width: 768px) { .fg-back-toc { left: 10px; bottom: 70px; font-size: 11px; padding: 6px 10px; } }

/* ===== AUTO INTERNAL LINK ===== */
.fg-auto-link { color: var(--fg-amber); border-bottom: 1px dashed var(--fg-amber); }
.fg-auto-link:hover { color: var(--fg-dark); }

/* ===== STICKY TOC ===== */
.fg-toc-wrap.sticky { position: fixed; top: 80px; left: 16px; width: 200px; max-height: calc(100vh - 160px); overflow-y: auto; z-index: 89; background: var(--fg-white); border-radius: 10px; border: 1px solid var(--fg-border); padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); scrollbar-width: thin; }
.fg-toc-wrap.sticky .fg-toc-item.active { color: var(--fg-amber); font-weight: 700; }
@media (max-width: 1200px) { .fg-toc-wrap.sticky { display: none; } }

/* Trending sidebar fix */
.fg-trending-item { display: flex; gap: 10px; align-items: flex-start; }
.fg-trending-title { display: block; margin-bottom: 2px; }
.fg-trending-item .fg-post-meta { display: block; font-size: 10px; }


  .fg-slide-title { font-size: 16px; }
  .fg-slide-excerpt { font-size: 12px; }
}



/* Tab panel */
.fg-tab-panel { }


/* ===== COMPREHENSIVE DARK MODE ===== */
html.fg-dark {
  --fg-dark: #fafaf9;
  --fg-light: #292524;
  --fg-white: #1c1917;
  --fg-border: #3f3f46;
  --fg-gray: #a8a29e;
  --fg-muted: #78716c;
}
html.fg-dark body { background: #1c1917; color: #fafaf9; }
html.fg-dark .fg-header { background: #292524; border-bottom-color: #3f3f46; }

/* Logo — keep EXACTLY as-is in dark mode */
html.fg-dark .fg-logo-icon { background: #1c1917 !important; }
html.fg-dark .fg-logo-icon svg { filter: none !important; }
html.fg-dark .fg-logo-text { color: #fafaf9; }
html.fg-dark .fg-logo-tag { color: #78716c; }

/* Navigation */
html.fg-dark .fg-nav a { color: #78716c; }
html.fg-dark .fg-nav a:hover, html.fg-dark .fg-nav a.active { color: #fafaf9; }
html.fg-dark .fg-nav .partner-link { color: #f59e0b; }
html.fg-dark .fg-nav-divider { background: #3f3f46; }

/* Buttons */
html.fg-dark .fg-btn-icon { background: #3f3f46; border-color: #57534e; color: #fafaf9; }
html.fg-dark .fg-dm-toggle { background: #3f3f46; border-color: #57534e; }
html.fg-dark .login-btn { background: #3f3f46; border-color: #57534e; color: #fafaf9; }
html.fg-dark .fg-btn-outline { border-color: #3f3f46; color: #a8a29e; }
html.fg-dark .fg-btn-outline:hover { border-color: #fafaf9; color: #fafaf9; }

/* Slider */
html.fg-dark .fg-slide-inner { background: linear-gradient(135deg, #292524 0%, #3f3f46 50%, #292524 100%); }

/* Category cards */
html.fg-dark .fg-cat-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-cat-card:hover { border-color: #78716c; }
html.fg-dark .fg-cat-count { color: #78716c; }

/* Guide cards */
html.fg-dark .fg-guide-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-guide-card h3 { color: #fafaf9; }
html.fg-dark .fg-guide-card:hover { border-color: #f59e0b; }

/* Post cards */
html.fg-dark .fg-post-card { border-bottom-color: #3f3f46; }
html.fg-dark .fg-post-card h3 a { color: #fafaf9; }
html.fg-dark .fg-post-card:hover { background: rgba(63,63,70,0.15); }

/* Tabs */
html.fg-dark .fg-tabs { border-bottom-color: #3f3f46; }
html.fg-dark .fg-tab { color: #78716c; }
html.fg-dark .fg-tab.active { color: #fafaf9; border-bottom-color: #fafaf9; }

/* Sidebar */
html.fg-dark .fg-sidebar-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-trending-item { border-bottom-color: #3f3f46; }
html.fg-dark .fg-trending-title { color: #fafaf9; }
html.fg-dark .fg-trending-num { color: #3f3f46; }

/* Search input */
html.fg-dark .fg-search-input { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-btn-sm { background: #fafaf9; color: #1c1917; }

/* Quick Facts */
html.fg-dark .fg-fact-card { background: #292524; color: #fafaf9; }
html.fg-dark .fg-nav-btn { background: #292524; border-color: #3f3f46; color: #fafaf9; }

/* FAQ */
html.fg-dark .fg-faq-list { border-color: #3f3f46; }
html.fg-dark .fg-faq-item { border-color: #3f3f46; }
html.fg-dark .fg-faq-question { color: #fafaf9; }
html.fg-dark .fg-faq-question::before { color: #78716c; }
html.fg-dark .fg-faq-answer { color: #a8a29e; }

/* Trust section */
html.fg-dark .fg-trust-section { background: #292524; }
html.fg-dark .fg-trust-card h3 { color: #fafaf9; }

/* Start Here */
html.fg-dark .fg-start-here { background: #292524; }

/* Content blocks */
html.fg-dark .fg-block-tip { background: #422006; border-color: #92400e; }
html.fg-dark .fg-block-warning { background: #450a0a; border-color: #991b1b; }
html.fg-dark .fg-block-info { background: #172554; border-color: #1e40af; }
html.fg-dark .fg-block-success { background: #052e16; border-color: #166534; }

/* Pros/Cons */
html.fg-dark .fg-proscons { border-color: #3f3f46; }
html.fg-dark .fg-pros { border-color: #3f3f46; }
html.fg-dark .fg-proscons-title { border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-proscons-item { border-color: #3f3f46; }

/* Takeaways */
html.fg-dark .fg-takeaways { background: linear-gradient(135deg, #422006, #451a03); border-color: #92400e; }
html.fg-dark .fg-takeaways-title { color: #fafaf9; }

/* Rating */
html.fg-dark .fg-rating-box { border-color: #3f3f46; background: #292524; }

/* Comparison table */
html.fg-dark .fg-compare-table td { border-color: #3f3f46; color: #a8a29e; }
html.fg-dark .fg-compare-table th { background: #292524; }

/* Previous/Next */
html.fg-dark .fg-prev-post, html.fg-dark .fg-next-post { border-color: #3f3f46; }
html.fg-dark .fg-prev-post:hover, html.fg-dark .fg-next-post:hover { border-color: #78716c; }
html.fg-dark .fg-pn-title { color: #fafaf9; }

/* Progress dots */
html.fg-dark .fg-progress-dot { background: #3f3f46; }
html.fg-dark .fg-progress-dot.active { background: #f59e0b; }

/* Back to contents */
html.fg-dark .fg-back-toc { background: #fafaf9; color: #1c1917; }
html.fg-dark #backToTop { background: #fafaf9; color: #1c1917; }

/* Comments */
html.fg-dark .comment-form input, html.fg-dark .comment-form textarea { background: #292524; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .comment-form .submit { background: #fafaf9; color: #1c1917; }
html.fg-dark .comment-list .comment { border-color: #3f3f46; }
html.fg-dark .comment-content { color: #a8a29e; }
html.fg-dark .comment-author .fn { color: #fafaf9; }

/* Widgets */
html.fg-dark .widget_search { background: #292524; border-color: #3f3f46; }
html.fg-dark .widget_search .search-field { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .widget_recent_entries { background: #292524; border-color: #3f3f46; }
html.fg-dark .widget_recent_entries ul li { border-color: #3f3f46; }
html.fg-dark .widget_recent_entries ul li a { color: #fafaf9; }
html.fg-dark .widget h2, html.fg-dark .widget-title { border-color: #3f3f46; }
html.fg-dark .widget_categories ul li { border-color: #3f3f46; }
html.fg-dark .widget_categories ul li a { color: #fafaf9; }

/* Search overlay */
html.fg-dark .fg-search-box { background: #292524; }
html.fg-dark .fg-search-box input { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }

/* Cookie bar */
html.fg-dark .fg-cookie-bar { background: #292524; }

/* Archive/Blog pages */
html.fg-dark .fg-label { color: #78716c; }

/* Auto internal link */
html.fg-dark .fg-auto-link { color: #f59e0b; border-color: #f59e0b; }

/* Sticky TOC */
html.fg-dark .fg-toc-wrap.sticky { background: #292524; border-color: #3f3f46; }

/* ===== SLIDER ===== */
.fg-slider { position: relative; }
.fg-slide { display: none; border-radius: 14px; }
.fg-slide.active { display: block; }
.fg-dots { display: flex; gap: 6px; }
.fg-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.3); cursor: pointer; border: none; padding: 0; transition: all 0.25s; }
.fg-dot.active { background: #ffffff; width: 24px; }
.fg-dot:hover { background: rgba(255,255,255,0.6); }
@media (max-width: 768px) {
  .fg-slide { padding: 22px 20px !important; }
  .fg-slide h2 { font-size: 18px !important; max-width: 100% !important; }
  .fg-slide p { max-width: 100% !important; }
}
@media (max-width: 480px) {
  .fg-slide { padding: 18px 16px !important; }
  .fg-slide h2 { font-size: 16px !important; }
}


/* ===== COMPREHENSIVE MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
  /* Grid collapses to single column */
  .fg-grid-2col { grid-template-columns: 1fr !important; gap: 20px !important; }
  
  /* Sidebar below main content */
  .fg-sidebar { position: static !important; }
  
  /* Header */
  .fg-header-inner { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .fg-nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .fg-nav a { font-size: 12px; }
  
  /* Slider compact */
  .fg-slide { padding: 22px 18px !important; }
  .fg-slide h2 { font-size: 18px !important; max-width: 100% !important; }
  .fg-slide p { max-width: 100% !important; font-size: 12px !important; }
  
  /* Trust bar wraps */
  .fg-trust-v3, div[style*="space-evenly"] { flex-wrap: wrap !important; gap: 12px !important; justify-content: center !important; padding: 14px 12px !important; }
  div[style*="space-evenly"] > div[style*="width:1px"] { display: none !important; }
  
  /* Category grid */
  .fg-category-grid { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Guide grid */
  .fg-guide-grid { grid-template-columns: 1fr 1fr !important; }
  
  /* Trust grid */
  .fg-trust-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  
  /* Facts grid */
  .fg-facts-grid { grid-template-columns: 1fr !important; }
  
  /* Footer */
  .fg-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  
  /* Newsletter banner */
  .nl-banner, div[style*="linear-gradient"][style*="flex-wrap:nowrap"] { flex-wrap: wrap !important; }
  
  /* Post card */
  .fg-post-card { grid-template-columns: 44px 1fr !important; gap: 10px !important; }
  .fg-post-thumb { width: 44px !important; height: 44px !important; }
  
  /* Actions bar */
  .fg-actions-bar { flex-wrap: wrap; gap: 6px; }
  .fg-action-btn { font-size: 11px; padding: 6px 10px; }
  
  /* Share bar */
  .fg-share-bar { flex-wrap: wrap; }
  
  /* Article content */
  .entry-content { font-size: 16px; line-height: 1.8; }
  .entry-content h2 { font-size: 20px; }
  .entry-content h3 { font-size: 17px; }
  
  /* Prev/Next */
  .fg-prev-next { grid-template-columns: 1fr !important; }
  .fg-next-post { text-align: left !important; }
  
  /* FAQ */
  .fg-faq-question { font-size: 13px; padding: 12px 14px; }
  .fg-faq-answer { padding: 0 14px 12px 30px; font-size: 12px; }
  
  /* Breadcrumbs */
  .fg-breadcrumbs { font-size: 11px; }
  
  /* Author bio */
  .fg-author-box { flex-direction: column; text-align: center; }
  
  /* Related posts */
  .fg-related-slider { gap: 10px; }
  
  /* Hide on mobile */
  .fg-progress-dots { display: none !important; }
  .fg-toc-wrap.sticky { display: none !important; }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .fg-container { padding: 0 12px !important; }
  .fg-category-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .fg-cat-card { padding: 10px 6px !important; }
  .fg-guide-grid { grid-template-columns: 1fr !important; }
  .fg-slide h2 { font-size: 16px !important; }
  .fg-footer-grid { grid-template-columns: 1fr !important; }
  .fg-start-here { padding: 16px 12px !important; }
  .fg-trust-section { padding: 16px 12px !important; }
  .fg-sidebar-card { padding: 12px !important; }
  
  /* Mobile sticky bottom bar for articles */
  .fg-actions-bar { position: sticky; bottom: 0; z-index: 50; background: var(--fg-white); border-top: 1px solid var(--fg-border); padding: 8px 12px; margin: 0 -12px; }
  html.fg-dark .fg-actions-bar { background: #1c1917; border-top-color: #3f3f46; }
}

@media (max-width: 360px) {
  .fg-nav a { font-size: 10px; }
  .fg-slide h2 { font-size: 15px !important; }
  .fg-cat-name { font-size: 11px !important; }
}



/* ===== HIDE EMPTY AD SPOTS ===== */
.fg-ad-spot:empty { display: none !important; margin: 0 !important; padding: 0 !important; }
.fg-ad-widget:empty { display: none !important; }

/* ===== STICKY HEADER ===== */
.fg-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: var(--fg-white);
  border-bottom: 1px solid var(--fg-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
/* Adjust for WordPress admin bar when logged in */
.admin-bar .fg-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .fg-header { top: 46px; }
}
html.fg-dark .fg-header {
  background: #292524;
  border-bottom-color: #3f3f46;
}

/* ===== RELATED POSTS — 3 EXACT CARDS ===== */
.fg-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px;
}
.fg-related-card {
  background: var(--fg-white); border: 1px solid var(--fg-border); border-radius: 12px;
  padding: 14px; transition: border-color 0.15s; cursor: pointer;
}
.fg-related-card:hover { border-color: var(--fg-amber); }
.fg-related-card h3 {
  font-family: var(--fg-sans); font-size: 13px; font-weight: 700;
  color: var(--fg-dark); line-height: 1.4; margin: 8px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fg-related-card .fg-post-meta { font-size: 11px; }
html.fg-dark .fg-related-card { background: #292524; border-color: #3f3f46; }
html.fg-dark .fg-related-card:hover { border-color: #f59e0b; }
@media (max-width: 768px) { .fg-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fg-related-grid { grid-template-columns: 1fr; } }

/* ===== SIDEBAR COMPLETE REDESIGN ===== */
.fg-sidebar {
  display: flex; flex-direction: column; gap: 16px;
  font-family: var(--fg-sans);
}
.fg-sidebar-card, .fg-sidebar .widget {
  background: var(--fg-white); border: 1px solid var(--fg-border);
  border-radius: 12px; padding: 18px; overflow: hidden;
}

/* Widget titles — all matching */
.fg-sidebar .widget-title, .fg-sidebar .widget h2, .fg-sidebar .card-title {
  font-family: var(--fg-sans) !important; font-size: 10px !important;
  font-weight: 700 !important; text-transform: uppercase !important;
  letter-spacing: 2px !important; color: var(--fg-muted) !important;
  padding-bottom: 10px !important; margin-bottom: 14px !important;
  border-bottom: 1px solid var(--fg-border) !important;
  line-height: 1.4 !important;
}

/* Recent Posts widget */
.fg-sidebar .widget_recent_entries ul {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.fg-sidebar .widget_recent_entries ul li {
  padding: 10px 0 !important; border-bottom: 1px solid var(--fg-border) !important;
  display: flex !important; align-items: center !important; gap: 10px !important;
  font-size: 13px !important; line-height: 1.45 !important;
}
.fg-sidebar .widget_recent_entries ul li:last-child { border-bottom: none !important; }
.fg-sidebar .widget_recent_entries ul li::before {
  content: ''; display: inline-block; width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%; background: var(--fg-amber); flex-shrink: 0;
}
.fg-sidebar .widget_recent_entries ul li a {
  color: var(--fg-dark) !important; font-weight: 500 !important;
  font-family: var(--fg-sans) !important; font-size: 12.5px !important;
  line-height: 1.45 !important; text-decoration: none !important;
}
.fg-sidebar .widget_recent_entries ul li a:hover { color: var(--fg-amber) !important; }

/* Recent Comments widget */
.fg-sidebar .widget_recent_comments ul {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.fg-sidebar .widget_recent_comments ul li {
  padding: 10px 0 !important; border-bottom: 1px solid var(--fg-border) !important;
  font-size: 12px !important; color: var(--fg-gray) !important;
  line-height: 1.5 !important; font-family: var(--fg-sans) !important;
}
.fg-sidebar .widget_recent_comments ul li:last-child { border-bottom: none !important; }
.fg-sidebar .widget_recent_comments ul li a {
  color: var(--fg-dark) !important; font-weight: 600 !important; font-size: 12px !important;
}
.fg-sidebar .widget_recent_comments ul li a:hover { color: var(--fg-amber) !important; }

/* Categories widget */
.fg-sidebar .widget_categories ul {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.fg-sidebar .widget_categories ul li {
  padding: 8px 0 !important; border-bottom: 1px solid var(--fg-border) !important;
  font-family: var(--fg-sans) !important; font-size: 12.5px !important;
}
.fg-sidebar .widget_categories ul li:last-child { border-bottom: none !important; }
.fg-sidebar .widget_categories ul li a {
  color: var(--fg-dark) !important; font-weight: 500 !important;
  display: flex !important; justify-content: space-between !important;
}
.fg-sidebar .widget_categories ul li a:hover { color: var(--fg-amber) !important; }

/* Search widget */
.fg-sidebar .widget_search {
  background: var(--fg-white) !important; border: 1px solid var(--fg-border) !important;
  border-radius: 12px !important; padding: 18px !important;
}
.fg-sidebar .widget_search .search-form,
.fg-sidebar .widget_search form {
  display: flex !important; gap: 6px !important;
}
.fg-sidebar .widget_search input[type="search"],
.fg-sidebar .widget_search .search-field {
  flex: 1 !important; min-width: 0 !important; padding: 10px 12px !important;
  border-radius: 8px !important; border: 1.5px solid var(--fg-border) !important;
  font-family: var(--fg-sans) !important; font-size: 12px !important;
  outline: none !important; background: var(--fg-light) !important;
  color: var(--fg-dark) !important;
}
.fg-sidebar .widget_search input[type="submit"],
.fg-sidebar .widget_search .search-submit {
  padding: 10px 16px !important; border-radius: 8px !important; border: none !important;
  background: var(--fg-dark) !important; color: var(--fg-light) !important;
  font-family: var(--fg-sans) !important; font-size: 11px !important;
  font-weight: 600 !important; cursor: pointer !important;
}

/* Newsletter in sidebar */
.fg-sidebar .nl-row {
  display: flex; gap: 6px;
}
.fg-sidebar .nl-row input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid var(--fg-border); font-family: var(--fg-sans);
  font-size: 12px; outline: none; background: var(--fg-light);
}
.fg-sidebar .nl-row button {
  padding: 9px 14px; border-radius: 8px; border: none;
  background: var(--fg-amber); color: #1c1917;
  font-family: var(--fg-sans); font-size: 11px; font-weight: 700; cursor: pointer;
}

/* Trending in sidebar */
.fg-trending-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--fg-border);
}
.fg-trending-item:last-child { border-bottom: none; }
.fg-trending-num {
  font-family: var(--fg-sans); font-size: 20px; font-weight: 800;
  color: var(--fg-border); min-width: 28px; line-height: 1;
}
.fg-trending-title {
  font-family: var(--fg-sans); font-size: 12.5px; font-weight: 600;
  color: var(--fg-dark); line-height: 1.4; display: block;
}
.fg-trending-title:hover { color: var(--fg-amber); }

/* Dark mode sidebar */
html.fg-dark .fg-sidebar-card, html.fg-dark .fg-sidebar .widget {
  background: #292524 !important; border-color: #3f3f46 !important;
}
html.fg-dark .fg-sidebar .widget-title, html.fg-dark .fg-sidebar .widget h2 {
  border-color: #3f3f46 !important;
}
html.fg-dark .fg-sidebar .widget_recent_entries ul li { border-color: #3f3f46 !important; }
html.fg-dark .fg-sidebar .widget_recent_entries ul li a { color: #fafaf9 !important; }
html.fg-dark .fg-sidebar .widget_recent_comments ul li { border-color: #3f3f46 !important; }
html.fg-dark .fg-sidebar .widget_recent_comments ul li a { color: #fafaf9 !important; }
html.fg-dark .fg-sidebar .widget_categories ul li { border-color: #3f3f46 !important; }
html.fg-dark .fg-sidebar .widget_categories ul li a { color: #fafaf9 !important; }
html.fg-dark .fg-sidebar .widget_search input { background: #1c1917 !important; border-color: #3f3f46 !important; color: #fafaf9 !important; }
html.fg-dark .fg-sidebar .nl-row input { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-trending-item { border-color: #3f3f46; }
html.fg-dark .fg-trending-title { color: #fafaf9; }
html.fg-dark .fg-trending-num { color: #3f3f46; }

/* ===== TAB SCROLL — 5 visible posts ===== */
.fg-tab-scroll {
  max-height: 440px !important;
  overflow-y: hidden !important;
  scroll-snap-type: y mandatory !important;
}
.fg-tab-scroll .fg-post-card {
  scroll-snap-align: start !important;
}

/* ===== EMPTY SPACE FIXES ===== */
.fg-ad-spot:empty { display: none !important; margin: 0 !important; padding: 0 !important; height: 0 !important; }
.fg-ad-widget:empty { display: none !important; }

/* ===== AUTHOR BIO + RELATED POSTS SPACING ===== */
.fg-author-box { margin-bottom: 0; }
.fg-related-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fg-border); }

/* ===== HOMEPAGE SIDEBAR SEARCH FIX ===== */
.fg-sidebar-card form { display: flex; gap: 6px; }
.fg-sidebar-card form input[type="search"] {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--fg-border); font-family: var(--fg-sans);
  font-size: 12px; outline: none; background: var(--fg-light);
}

/* ===== NEWSLETTER ROW IN SIDEBAR ===== */
.nl-row { display: flex; gap: 6px; }
.nl-row input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid var(--fg-border); font-family: var(--fg-sans);
  font-size: 12px; outline: none; background: var(--fg-light);
}
.nl-row button {
  padding: 9px 14px; border-radius: 8px; border: none;
  background: var(--fg-amber); color: #1c1917;
  font-family: var(--fg-sans); font-size: 11px; font-weight: 700; cursor: pointer;
}

/* Dark mode sidebar */
html.fg-dark .nl-row input { background: #1c1917; border-color: #3f3f46; color: #fafaf9; }
html.fg-dark .fg-sidebar-card form input { background: #1c1917 !important; border-color: #3f3f46 !important; color: #fafaf9 !important; }

/* ===== GRID + AD ALIGNMENT FIX ===== */
.fg-grid-2col { align-items: start !important; }
.fg-ad-spot { border-radius: 8px; overflow: hidden; }
.fg-ad-spot:empty { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }

/* Remove gap between grid end and next section */
.fg-grid-2col + div, .fg-grid-2col + section { margin-top: 24px; }

/* ===== AUTHOR BIO → RELATED POSTS SPACING ===== */
.fg-author-box { margin-bottom: 32px !important; }

/* ===== THREADED COMMENTS REDESIGN ===== */
.comment-list { list-style: none !important; padding: 0 !important; margin: 0 !important; counter-reset: none !important; }
.comment-list li { list-style: none !important; }
.comment-list li::before { display: none !important; content: none !important; }
.comment-list li::marker { display: none !important; content: "" !important; font-size: 0 !important; }
.comment-list > .comment { padding: 18px 0; border-bottom: 1px solid var(--fg-border); }
.comment-list > .comment:last-child { border-bottom: none; }

/* Comment body */
.comment-body { position: relative; }
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author img { border-radius: 50% !important; width: 36px !important; height: 36px !important; }
.comment-author .fn { font-family: var(--fg-sans); font-weight: 700; font-size: 13px; color: var(--fg-dark); }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--fg-sans); font-size: 11px; color: var(--fg-muted); margin-bottom: 8px; margin-left: 46px; }
.comment-metadata a { color: var(--fg-muted); text-decoration: none; }
.comment-content { margin-left: 46px; font-family: var(--fg-sans); font-size: 14px; line-height: 1.7; color: var(--fg-gray); }
.comment-content p { margin-bottom: 6px; }

/* Reply link */
.reply { margin-left: 46px; margin-top: 6px; }
.reply a { font-family: var(--fg-sans); font-size: 11px; font-weight: 700; color: var(--fg-amber) !important; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; }
.reply a:hover { opacity: 0.7; }

/* Threaded replies — indented with left border */
.comment-list .children {
  list-style: none !important; padding: 0 0 0 24px !important;
  margin: 12px 0 0 22px !important; border-left: 2px solid var(--fg-border);
}
.comment-list .children .comment {
  padding: 14px 0 14px 0; border-bottom: none;
}
.comment-list .children .comment-author img { width: 28px !important; height: 28px !important; }
.comment-list .children .comment-author .fn { font-size: 12px; }
.comment-list .children .comment-metadata { margin-left: 38px; font-size: 10px; }
.comment-list .children .comment-content { margin-left: 38px; font-size: 13px; }
.comment-list .children .reply { margin-left: 38px; }

/* Deep nested — collapse after 2 levels */
.comment-list .children .children {
  padding-left: 16px !important; margin-left: 14px !important;
}
.comment-list .children .children .children {
  display: none;
}
.comment-list .children .children .children + .fg-show-replies {
  display: block;
}

/* Comment form */
.comment-respond { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fg-border); }
.comment-reply-title {
  font-family: var(--fg-sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--fg-muted);
  margin-bottom: 16px;
}
.comment-reply-title small { margin-left: 8px; }
.comment-reply-title small a { color: var(--fg-amber); font-size: 10px; }
.comment-form label {
  font-family: var(--fg-sans); font-size: 12px; font-weight: 600;
  color: var(--fg-dark); display: block; margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid var(--fg-border); font-family: var(--fg-sans);
  font-size: 13px; color: var(--fg-dark); outline: none;
  background: var(--fg-white); margin-bottom: 12px; box-sizing: border-box;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--fg-amber); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form .submit {
  background: var(--fg-dark); color: var(--fg-light); border: none;
  padding: 12px 28px; border-radius: 8px; font-family: var(--fg-sans);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.comment-form .submit:hover { opacity: 0.85; }
.comment-form .comment-notes, .comment-form .logged-in-as {
  font-family: var(--fg-sans); font-size: 12px; color: var(--fg-muted); margin-bottom: 14px;
}
.comment-form .logged-in-as a { color: var(--fg-amber); }

/* Dark mode comments */
html.fg-dark .comment-list > .comment { border-color: #3f3f46; }
html.fg-dark .comment-list .children { border-color: #3f3f46; }
html.fg-dark .comment-author .fn { color: #fafaf9; }
html.fg-dark .comment-content { color: #a8a29e; }
html.fg-dark .comment-respond { border-color: #3f3f46; }
html.fg-dark .comment-form input, html.fg-dark .comment-form textarea {
  background: #292524; border-color: #3f3f46; color: #fafaf9;
}
html.fg-dark .comment-form input:focus, html.fg-dark .comment-form textarea:focus { border-color: #f59e0b; }
html.fg-dark .comment-form .submit { background: #fafaf9; color: #1c1917; }

/* ===== REPLIES — NAME + TEXT ONLY ===== */
.comment-list .children .comment-metadata { display: none !important; }
.comment-list .children .reply { display: none !important; }
.comment-list .children .comment-author .fn { font-size: 12px; font-weight: 700; }
.comment-list .children .comment-content { margin-left: 38px; font-size: 13px; margin-top: 2px; }
.comment-list .children .comment-body { padding: 8px 0; }

/* ===== AUTO-WRAP REPLIES — Show 2, hide rest ===== */
.comment-list .children .comment:nth-child(n+3) { display: none; }
.comment-list .children .comment:nth-child(n+3).fg-show { display: block; }
.fg-view-more-replies {
  display: none; margin: 8px 0 4px 24px; padding: 6px 14px;
  background: none; border: 1px solid var(--fg-border); border-radius: 6px;
  font-family: var(--fg-sans); font-size: 11px; font-weight: 600;
  color: var(--fg-amber); cursor: pointer;
}
.fg-view-more-replies:hover { background: rgba(245,158,11,0.06); }
html.fg-dark .fg-view-more-replies { border-color: #3f3f46; }

/* ===== HIDE URL FIELD IN COMMENT FORM ===== */
.comment-form-url { display: none !important; }

/* ===== SHARE BUTTONS — ONE LINE ===== */
.fg-share-buttons { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; overflow-x: auto !important; scrollbar-width: none !important; }
.fg-share-buttons::-webkit-scrollbar { display: none; }
.fg-share-buttons a, .fg-share-buttons button { flex-shrink: 0 !important; white-space: nowrap !important; font-size: 12px !important; padding: 7px 12px !important; }

/* ===== DISABLE COMMENT REPLIES — flat comments only ===== */
.comment-list .reply { display: none !important; }
.comment-list .children { display: none !important; }
.comment-list li { list-style: none !important; }
.comment-list li::before, .comment-list li::marker { display: none !important; content: "" !important; font-size: 0 !important; }
.comment-list > li { counter-increment: none !important; }
ol.comment-list { list-style: none !important; counter-reset: none !important; padding: 0 !important; }

/* ===== AD BLOCK SPACING FIX ===== */
.fg-ad-spot { margin-bottom: 0 !important; }
.fg-ad-spot:empty { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; line-height: 0 !important; font-size: 0 !important; border: none !important; }
.fg-ad-widget:empty { display: none !important; height: 0 !important; }
.fg-grid-2col { margin-bottom: 0 !important; }

/* ===== SHARE BAR — SINGLE LINE FIX ===== */
.fg-share-bar { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; align-items: center !important; overflow-x: auto !important; scrollbar-width: none !important; -webkit-overflow-scrolling: touch; }
.fg-share-bar::-webkit-scrollbar { display: none; }
.fg-share-btn { flex-shrink: 0 !important; white-space: nowrap !important; padding: 6px 12px !important; font-size: 12px !important; border-radius: 6px !important; border: 1px solid var(--fg-border) !important; background: var(--fg-white) !important; color: var(--fg-dark) !important; font-family: var(--fg-sans) !important; display: inline-flex !important; align-items: center !important; gap: 4px !important; text-decoration: none !important; }

/* ===== COMMENTS — KILL ALL NUMBERS AND REPLIES ===== */
ol.comment-list, .comment-list, #comments ol, #comments ul { list-style-type: none !important; list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; counter-reset: none !important; }
ol.comment-list > li, .comment-list > li, .comment-list li.comment { list-style-type: none !important; list-style: none !important; }
ol.comment-list > li::before, .comment-list > li::before, .comment-list li::before { display: none !important; content: none !important; }
ol.comment-list > li::marker, .comment-list > li::marker, .comment-list li::marker { content: "" !important; font-size: 0 !important; display: none !important; color: transparent !important; }
.comment .reply, .comment-list .reply, #comments .reply { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
.comment-list .children, #comments .children { display: none !important; }

/* ===== AD BLOCK EMPTY SPACE — NUCLEAR FIX ===== */
.fg-grid-2col { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.fg-ad-spot:empty, .fg-ad-widget:empty { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; line-height: 0 !important; min-height: 0 !important; }
.fg-ad-spot + .fg-ad-spot:empty { display: none !important; }

/* ===== HOMEPAGE SECTION GAPS — ZERO EMPTY SPACE ===== */
.fg-container > .fg-grid-2col { margin-bottom: 0 !important; }
.fg-container > .fg-grid-2col + * { margin-top: 20px !important; }
.fg-container > .fg-grid-2col + .fg-ad-spot:empty + * { margin-top: 20px !important; }
section + section, div[style*="margin-top:24px"] { clear: both; }

/* Share buttons compact fit */
.fg-share-bar span, .fg-share-bar .fg-share-label { font-size: 10px !important; margin-right: 2px !important; }
.fg-share-btn { padding: 6px 10px !important; font-size: 11px !important; gap: 3px !important; }

/* Exact 5 posts — hard clip */
.fg-tab-scroll { overflow: hidden !important; }
.fg-tab-panel { overflow: hidden !important; }

/* Newsletter + ads alignment */
.fg-sidebar-card:last-child { margin-bottom: 0 !important; }
.fg-sidebar .fg-ad-spot { margin-bottom: 0 !important; }

/* ===== PRINT — ARTICLE CONTENT ONLY ===== */
@media print {
  /* Hide everything except article content */
  .fg-header, .fg-footer, .fg-cookie-bar, .fg-back-toc, .fg-progress-dots,
  #backToTop, .fg-ad-spot, .fg-ad-widget, [data-slot],
  .fg-sidebar, aside, .fg-share-bar, .fg-feedback-widget,
  .fg-actions-bar, .fg-related-grid-wrap, .fg-related-grid,
  .fg-prev-next, .fg-author-box, #comments, .comment-respond,
  .fg-toc-wrap, nav.fg-breadcrumbs, #wpadminbar,
  .fg-progress-wrap, .fg-search-overlay, .fg-cookie-bar { display: none !important; }
  
  /* Clean print layout */
  body { background: #fff !important; color: #000 !important; font-size: 12pt !important; }
  .fg-container { max-width: 100% !important; padding: 0 !important; }
  main { padding: 0 !important; }
  .entry-content { font-size: 12pt !important; line-height: 1.6 !important; }
  .entry-content h2 { font-size: 16pt !important; margin-top: 20pt !important; }
  .entry-content h3 { font-size: 14pt !important; }
  h1 { font-size: 18pt !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .fg-pill { border: 1px solid #000 !important; }
}

/* Nuclear empty space fix */
.fg-ad-spot:empty, .fg-ad-spot:blank { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
.fg-ad-widget:empty, .fg-ad-widget:blank { display: none !important; height: 0 !important; }
.fg-ad-spot:not(:has(*)) { display: none !important; height: 0 !important; margin: 0 !important; }

/* Sidebar scrolls with content */
.fg-sidebar { position: sticky !important; top: 80px !important; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.fg-sidebar::-webkit-scrollbar { width: 3px; }
.fg-sidebar::-webkit-scrollbar-thumb { background: var(--fg-border); border-radius: 3px; }
.admin-bar .fg-sidebar { top: 112px !important; max-height: calc(100vh - 132px); }

/* Independent Pros/Cons boxes */
.fg-proscons-single { border: 1px solid var(--fg-border); border-radius: 10px; overflow: hidden; margin: 10px 0; font-family: var(--fg-sans); }
.fg-pros-box { border-left: 3px solid #10b981; }
.fg-cons-box { border-left: 3px solid #ef4444; }
.fg-pros-box + .fg-cons-box { margin-top: 0; border-top: none; border-radius: 0 0 10px 10px; }
html.fg-dark .fg-proscons-single { border-color: #3f3f46; }

/* CAPTCHA + Submit spacing */
.comment-form-captcha { margin-bottom: 16px !important; }
.comment-form .submit { margin-top: 12px !important; }
p.comment-form-captcha + p.form-submit { margin-top: 16px; }

/* Blog Category Tabs */
.fg-cat-tabs::-webkit-scrollbar { display: none; }
.fg-cat-tab {
  padding: 7px 16px; border-radius: 20px; border: 1px solid var(--fg-border);
  background: var(--fg-white); font-family: var(--fg-sans); font-size: 12px;
  font-weight: 500; color: var(--fg-gray); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.fg-cat-tab:hover { border-color: var(--fg-dark); color: var(--fg-dark); }
.fg-cat-tab.active { background: var(--fg-dark); color: var(--fg-light); border-color: var(--fg-dark); }
html.fg-dark .fg-cat-tab { background: #292524; border-color: #3f3f46; color: #a8a29e; }
html.fg-dark .fg-cat-tab:hover { border-color: #fafaf9; color: #fafaf9; }
html.fg-dark .fg-cat-tab.active { background: #fafaf9; color: #1c1917; }

/* CAPTCHA spacing fix */
.comment-form-captcha { margin-bottom: 20px !important; }
.comment-form-captcha input[type="number"] { margin-top: 6px !important; }
.form-submit { margin-top: 16px !important; }
.form-submit .submit { margin-top: 0 !important; }
