/*
Theme Name: AAutomobiles
Theme URI: https://aautomobiles.in
Author: Amol Rajendra Pawar
Author URI: https://aautomobiles.in/about
Description: Premium lightweight automotive theme for AAutomobiles.in — India's most trusted automotive resource. Mobile-first, SEO-optimized, Core Web Vitals ready.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aautomobiles
Tags: one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, blog, news
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-dark: #0f0f23;
  --accent: #e94560;
  --accent-hover: #d63851;
  --accent-light: rgba(233, 69, 96, 0.1);
  --secondary: #0f3460;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --text-light: #a0a0a0;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #eef0f2;
  --bg-dark: #1a1a2e;
  --border-color: #e2e8f0;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --container-max: 1280px;
  --container-padding: 20px;
  --nav-height: 64px;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;
  --danger: #ef4444;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1.25em;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 32px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.primary-nav li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.primary-nav a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.938rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--accent);
  background: var(--accent-light);
}

/* Dropdown menus */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  flex-direction: column;
  z-index: 100;
}

.primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li {
  height: auto;
  width: 100%;
}

.primary-nav .sub-menu a {
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.primary-nav .sub-menu a:hover {
  background: var(--bg-light);
  color: var(--accent);
  padding-left: 20px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-btn,
.nav-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav-search-btn:hover,
.nav-menu-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-search-btn svg,
.nav-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.95);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 90%;
  max-width: 680px;
  transform: translateY(-20px);
  transition: transform var(--transition-base);
}

.search-overlay.active .search-overlay-inner {
  transform: translateY(0);
}

.search-overlay-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}

.search-overlay-form {
  position: relative;
}

.search-overlay-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1.25rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-overlay-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-overlay-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

.search-overlay-submit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
}

.search-overlay-submit svg {
  width: 24px;
  height: 24px;
}

.search-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.search-overlay-close:hover {
  color: #fff;
}

.search-overlay-close svg {
  width: 32px;
  height: 32px;
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: var(--bg-white);
  z-index: 999;
  overflow-y: auto;
  padding: 16px 0;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav ul {
  padding: 0 var(--container-padding);
}

.mobile-nav li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.063rem;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.mobile-nav .sub-menu {
  padding-left: 16px;
  display: none;
}

.mobile-nav .sub-menu a {
  font-size: 0.938rem;
  padding: 10px 0;
}

.mobile-nav li.menu-item-has-children.open > .sub-menu {
  display: block;
}

.mobile-nav-search {
  padding: 16px var(--container-padding);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-search form {
  display: flex;
  gap: 8px;
}

.mobile-nav-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  outline: none;
}

.mobile-nav-search input:focus {
  border-color: var(--accent);
}

.mobile-nav-search button {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* ============================================================
   TRENDING BAR
   ============================================================ */
.trending-bar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.trending-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.trending-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--accent);
  flex-shrink: 0;
}

.trending-label svg {
  width: 16px;
  height: 16px;
}

.trending-items {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.trending-items::-webkit-scrollbar {
  display: none;
}

.trending-item {
  white-space: nowrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.trending-item:hover {
  color: #fff;
  background: var(--accent);
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15), transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 69, 96, 0.2);
  border: 1px solid rgba(233, 69, 96, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Hero Search */
.hero-search {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 24px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-xl);
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  background: transparent;
  min-width: 0;
}

.hero-search button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.938rem;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.hero-search button:hover {
  background: var(--accent-hover);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 var(--container-padding);
  margin-top: -24px;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-pill svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.articles-grid-3 {
  grid-template-columns: 1fr;
}

.articles-grid-4 {
  grid-template-columns: 1fr;
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.article-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-gray);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.article-card-badge.featured {
  background: var(--warning);
  color: var(--primary);
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--accent);
}

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

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.813rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.article-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-meta-item svg {
  width: 14px;
  height: 14px;
}

/* Horizontal card variant */
.article-card-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.article-card-horizontal .article-card-image {
  aspect-ratio: 16 / 10;
}

/* Featured Card Large */
.featured-card-large {
  grid-column: 1;
}

.featured-card-large .article-card-image {
  aspect-ratio: 16 / 9;
}

.featured-card-large .article-card-title {
  font-size: 1.5rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header-left h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-left h2 svg {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.view-all-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.view-all-link:hover {
  gap: 8px;
}

.view-all-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   CALCULATOR / TOOL CARDS
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tool-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  color: var(--accent);
}

.tool-card-icon svg {
  width: 28px;
  height: 28px;
}

.tool-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tool-card-desc {
  font-size: 0.813rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   VEHICLE BRANDS SECTION
   ============================================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.brand-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   TRUST / FOUNDER SECTION
   ============================================================ */
.trust-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin: 0 auto 16px;
}

.trust-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.trust-content .founder-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  text-align: center;
}

.trust-content .founder-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 16px;
}

.trust-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.newsletter-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 6px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.938rem;
  outline: none;
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.813rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Article Header */
.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 16px;
  height: 16px;
}

.article-meta-item.updated {
  color: var(--warning);
  font-weight: 600;
}

/* Featured Image */
.article-featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-featured-image figcaption {
  font-size: 0.813rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0 0;
  font-style: italic;
}

/* Table of Contents */
.article-toc {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.article-toc-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.article-toc-title svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.article-toc-title.active svg {
  transform: rotate(180deg);
}

.article-toc-list {
  padding-left: 0;
}

.article-toc-list li {
  margin-bottom: 6px;
}

.article-toc-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.938rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.article-toc-list a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.article-toc-list .toc-h3 {
  padding-left: 24px;
  font-size: 0.875rem;
}

/* Article Content */
.article-content {
  font-size: 1.063rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: 80px;
  color: var(--primary);
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}

.article-content h4 {
  font-size: 1.063rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5em;
  padding-left: 24px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.article-content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(233, 69, 96, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.article-content a:hover {
  text-decoration-color: var(--accent);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.938rem;
}

.article-content table th,
.article-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-content table th {
  background: var(--bg-light);
  font-weight: 700;
}

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

.article-content pre {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content code {
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.article-content pre code {
  background: transparent;
  padding: 0;
}

/* Key Takeaways Box */
.takeaways-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}

.takeaways-box-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.takeaways-box-title svg {
  width: 22px;
  height: 22px;
  color: var(--warning);
}

.takeaways-list {
  padding-left: 0;
  list-style: none;
}

.takeaways-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #78350f;
  font-size: 0.938rem;
  line-height: 1.6;
}

.takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

/* Pros & Cons */
.pros-cons-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

.pros-box,
.cons-box {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.pros-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.cons-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
}

.pros-box h3,
.cons-box h3 {
  font-size: 1.063rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-box h3 {
  color: #166534;
}

.cons-box h3 {
  color: #991b1b;
}

.pros-box ul,
.cons-box ul {
  list-style: none;
  padding-left: 0;
}

.pros-box li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  margin-right: 10px;
}

.cons-box li::before {
  content: '✗';
  color: var(--danger);
  font-weight: 700;
  margin-right: 10px;
}

.pros-box li,
.cons-box li {
  padding: 6px 0;
  font-size: 0.938rem;
}

/* FAQ Accordion */
.faq-section {
  margin: 40px 0;
}

.faq-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-section-title svg {
  color: var(--accent);
}

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

.faq-item.active {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-white);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  gap: 12px;
  width: 100%;
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.938rem;
}

/* Sources Section */
.sources-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}

.sources-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sources-box ol {
  list-style: decimal;
  padding-left: 24px;
}

.sources-box li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.sources-box li a {
  color: var(--accent);
  word-break: break-all;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.author-box-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.author-box-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.author-box-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.938rem;
  margin-bottom: 4px;
}

.author-box-location {
  color: var(--text-muted);
  font-size: 0.813rem;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.author-box-bio {
  color: var(--text-secondary);
  font-size: 0.938rem;
  line-height: 1.7;
  max-width: 560px;
}

.author-box-social {
  display: flex;
  gap: 12px;
}

.author-box-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.author-box-social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  margin: 40px 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.post-nav-link {
  padding: 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.post-nav-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.post-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.comment-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.comment-meta {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.comment-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.copy-link { background: var(--text-secondary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  margin-bottom: 32px;
}

.sidebar-widget-title {
  font-size: 1.063rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.sidebar-about {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.sidebar-about-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin: 0 auto 12px;
}

.sidebar-about-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.sidebar-about-role {
  font-size: 0.813rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.sidebar-about p {
  font-size: 0.813rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Popular posts widget */
.popular-posts-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.popular-posts-list li:last-child {
  border-bottom: none;
}

.popular-posts-thumb {
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.popular-posts-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-posts-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Category list widget */
.sidebar-categories li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.938rem;
  transition: color var(--transition-fast);
}

.sidebar-categories a:hover {
  color: var(--accent);
}

.sidebar-categories .count {
  font-size: 0.75rem;
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

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

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

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

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

.footer-bottom {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a {
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

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

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-numbers.dots {
  background: transparent;
  border: none;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.search-results-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.search-results-count {
  color: var(--text-muted);
  font-size: 0.938rem;
  margin-top: 4px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}

.error-404-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--bg-gray);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.error-404-message {
  color: var(--text-secondary);
  font-size: 1.063rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-search {
  max-width: 480px;
  margin: 0 auto 32px;
  display: flex;
  gap: 0;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px;
}

.error-404-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.error-404-search button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.error-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.error-404-links a {
  padding: 10px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.error-404-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGES
   ============================================================ */
.archive-header {
  padding: 40px 0;
  text-align: center;
  background: var(--bg-light);
  margin-bottom: 40px;
}

.archive-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.archive-header .archive-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.archive-header .post-count {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content {
  padding: 40px 0;
}

.page-content .article-content {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================
   WIDGET STYLES
   ============================================================ */
.widget {
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.063rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* ============================================================
   RESPONSIVE — Tablet (768px)
   ============================================================ */
@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .trust-grid {
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .trust-content h2,
  .trust-content .founder-name,
  .trust-content .founder-title,
  .trust-content p {
    text-align: left;
  }

  .trust-badges {
    justify-content: flex-start;
  }

  .pros-cons-box {
    grid-template-columns: 1fr 1fr;
  }

  .author-box {
    flex-direction: row;
    text-align: left;
  }

  .author-box-image {
    width: 100px;
    height: 100px;
    margin: 0;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .hamburger {
    display: none;
  }

  .primary-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .articles-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .brands-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  .hero-section {
    padding: 100px 0;
  }

  .article-title {
    font-size: 2.5rem;
  }

  .article-content h2 {
    font-size: 1.75rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .primary-nav {
    display: none;
  }

  .hero-section {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-value {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.25rem;
    margin-top: 28px;
  }

  .article-content h3 {
    font-size: 1.125rem;
  }

  .hero-search {
    flex-direction: column;
    padding: 4px;
  }

  .hero-search input {
    width: 100%;
  }

  .hero-search button {
    width: 100%;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    padding: 4px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .error-404-code {
    font-size: 5rem;
  }

  .trending-items {
    gap: 6px;
  }
}

/* ============================================================
   RESPONSIVE — Small mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .category-pills {
    gap: 6px;
  }

  .category-pill {
    padding: 8px 14px;
    font-size: 0.813rem;
  }

  .article-card-body {
    padding: 16px;
  }

  .article-card-title {
    font-size: 1rem;
  }

  .brand-card {
    padding: 12px;
    font-size: 0.813rem;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .share-buttons {
    justify-content: center;
  }

  .share-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .share-btn span {
    display: none;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .trending-bar,
  .reading-progress-bar,
  .back-to-top,
  .search-overlay,
  .mobile-nav,
  .nav-actions,
  .share-buttons,
  .related-posts,
  .comments-section,
  .post-navigation,
  .sidebar-widget,
  .newsletter-section,
  .category-pills,
  .article-toc {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  .article-content a {
    color: #000;
    text-decoration: underline;
  }

  .article-content a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  .article-content {
    max-width: 100%;
  }

  .article-featured-image img {
    max-height: 300px;
    object-fit: cover;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  blockquote {
    page-break-inside: avoid;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.visually-hidden {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Lazy load fade-in */
.lazy-image {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Screen reader only for mobile nav toggle */
.nav-menu-toggle .hamburger-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* WordPress alignment classes */
.alignleft {
  float: left;
  margin: 0 16px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 16px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.813rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

.gallery {
  display: grid;
  gap: 8px;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Gutenberg Block Styles */
.wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.wp-block-button__link:hover {
  background: var(--accent-hover);
  color: #fff;
}

.wp-block-quote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}

.wp-block-table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
}

.wp-block-table th {
  background: var(--bg-light);
}

/* Hindi text support */
[lang="hi"],
.hindi-text {
  font-family: var(--font-hindi), var(--font-primary);
}
