/*
Theme Name: Algerie Focus News
Theme URI: https://algeriefocus.com/
Author: Algerie Focus
Author URI: https://algeriefocus.com/
Description: A modern, fast, SEO-friendly WordPress news theme for Algerie Focus News. Built from scratch with clean PHP, semantic HTML5, and vanilla JS. Inspired by professional North African media editorial design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: algeriefocus
Tags: news, magazine, blog, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, right-sidebar, rtl-language-support, translation-ready, two-columns, wide-blocks
*/

/* ============================================================
   TABLE OF CONTENTS
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base
   3. Typography
   4. Utilities
   5. Layout & Grid
   6. Header
   7. Top Bar
   8. Navigation
   9. Breaking News Ticker
   10. Hero Section
   11. Featured Posts Grid
   12. Category Sections
   13. Article Cards
   14. Latest News
   15. Sidebar
   16. Single Post
   17. Author Box
   18. Related Posts
   19. Archive & Search
   20. Footer
   21. Widgets
   22. Forms & Newsletter
   23. Ad Zones
   24. Dark Mode
   25. Responsive
   26. RTL Support
   27. WordPress Core Classes
   28. Accessibility
============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Brand Colors - Algerie Focus News */
  --af-primary: #C1121F;          /* red — main brand accent */
  --af-primary-dark: #9B0E18;
  --af-primary-light: #e84352;
  --af-secondary: #1a1a2e;        /* deep navy for nav */
  --af-secondary-light: #252547;
  --af-accent: #F77F00;           /* orange highlight */
  --af-accent-light: #ffa040;

  /* Neutral Palette */
  --af-black: #111111;
  --af-dark: #1e1e1e;
  --af-gray-900: #212121;
  --af-gray-800: #333333;
  --af-gray-700: #4a4a4a;
  --af-gray-600: #666666;
  --af-gray-500: #888888;
  --af-gray-400: #aaaaaa;
  --af-gray-300: #cccccc;
  --af-gray-200: #e5e5e5;
  --af-gray-100: #f5f5f5;
  --af-gray-50: #fafafa;
  --af-white: #ffffff;

  /* Background */
  --af-bg-main: #f4f4f4;
  --af-bg-card: #ffffff;
  --af-bg-dark: #111827;
  --af-bg-dark-card: #1f2937;

  /* Typography */
  --af-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --af-font-heading: 'Source Serif 4', 'Georgia', serif;
  --af-font-mono: 'JetBrains Mono', monospace;

  /* Font Sizes (fluid) */
  --af-text-xs: 0.75rem;    /* 12px */
  --af-text-sm: 0.8125rem;  /* 13px */
  --af-text-base: 0.9375rem; /* 15px */
  --af-text-md: 1rem;        /* 16px */
  --af-text-lg: 1.125rem;    /* 18px */
  --af-text-xl: 1.25rem;     /* 20px */
  --af-text-2xl: 1.5rem;     /* 24px */
  --af-text-3xl: 1.875rem;   /* 30px */
  --af-text-4xl: 2.25rem;    /* 36px */
  --af-text-5xl: 3rem;       /* 48px */

  /* Line Heights */
  --af-leading-tight: 1.25;
  --af-leading-snug: 1.375;
  --af-leading-normal: 1.6;
  --af-leading-relaxed: 1.75;

  /* Spacing */
  --af-space-1: 0.25rem;
  --af-space-2: 0.5rem;
  --af-space-3: 0.75rem;
  --af-space-4: 1rem;
  --af-space-5: 1.25rem;
  --af-space-6: 1.5rem;
  --af-space-8: 2rem;
  --af-space-10: 2.5rem;
  --af-space-12: 3rem;
  --af-space-16: 4rem;
  --af-space-20: 5rem;

  /* Border Radius */
  --af-radius-sm: 3px;
  --af-radius: 6px;
  --af-radius-md: 8px;
  --af-radius-lg: 12px;
  --af-radius-xl: 16px;
  --af-radius-full: 9999px;

  /* Shadows */
  --af-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --af-shadow: 0 2px 8px rgba(0,0,0,0.10);
  --af-shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --af-shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --af-shadow-xl: 0 16px 48px rgba(0,0,0,0.18);

  /* Transitions */
  --af-transition-fast: 150ms ease;
  --af-transition: 250ms ease;
  --af-transition-slow: 400ms ease;

  /* Container widths */
  --af-container-sm: 640px;
  --af-container-md: 768px;
  --af-container-lg: 1024px;
  --af-container-xl: 1280px;
  --af-container-2xl: 1440px;

  /* Z-index layers */
  --af-z-base: 1;
  --af-z-dropdown: 100;
  --af-z-sticky: 200;
  --af-z-fixed: 300;
  --af-z-modal: 400;
  --af-z-tooltip: 500;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--af-font-sans);
  font-size: var(--af-text-base);
  line-height: var(--af-leading-normal);
  color: var(--af-gray-800);
  background-color: var(--af-bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   3. TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--af-font-heading);
  font-weight: 700;
  line-height: var(--af-leading-tight);
  color: var(--af-gray-900);
}

h1 { font-size: var(--af-text-4xl); }
h2 { font-size: var(--af-text-3xl); }
h3 { font-size: var(--af-text-2xl); }
h4 { font-size: var(--af-text-xl); }
h5 { font-size: var(--af-text-lg); }
h6 { font-size: var(--af-text-md); }

p { margin-bottom: var(--af-space-4); }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--af-primary);
  padding: var(--af-space-4) var(--af-space-6);
  margin: var(--af-space-6) 0;
  background: var(--af-gray-50);
  font-size: var(--af-text-lg);
  font-style: italic;
  color: var(--af-gray-700);
  border-radius: 0 var(--af-radius) var(--af-radius) 0;
}

blockquote cite {
  display: block;
  margin-top: var(--af-space-2);
  font-size: var(--af-text-sm);
  color: var(--af-gray-500);
  font-style: normal;
}

pre {
  background: var(--af-gray-900);
  color: var(--af-gray-100);
  padding: var(--af-space-4);
  border-radius: var(--af-radius);
  overflow-x: auto;
  font-size: var(--af-text-sm);
  margin-bottom: var(--af-space-4);
}

code {
  font-family: var(--af-font-mono);
  font-size: 0.9em;
  background: var(--af-gray-100);
  padding: 2px 6px;
  border-radius: var(--af-radius-sm);
  color: var(--af-primary);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--af-gray-200);
  margin: var(--af-space-8) 0;
}

/* ============================================================
   4. UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--af-container-xl);
  margin-inline: auto;
  padding-inline: var(--af-space-4);
}

.container-narrow {
  max-width: var(--af-container-lg);
  margin-inline: auto;
  padding-inline: var(--af-space-4);
}

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

.text-primary { color: var(--af-primary); }
.text-accent  { color: var(--af-accent); }
.text-muted   { color: var(--af-gray-500); }
.text-dark    { color: var(--af-gray-900); }
.text-white   { color: var(--af-white); }

.bg-primary { background-color: var(--af-primary); }
.bg-dark    { background-color: var(--af-secondary); }
.bg-white   { background-color: var(--af-white); }
.bg-gray    { background-color: var(--af-gray-100); }

.font-heading { font-family: var(--af-font-heading); }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

.uppercase    { text-transform: uppercase; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.d-flex       { display: flex; }
.d-grid       { display: grid; }
.d-none       { display: none; }
.d-block      { display: block; }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2   { gap: var(--af-space-2); }
.flex-gap-4   { gap: var(--af-space-4); }
.flex-gap-6   { gap: var(--af-space-6); }
.flex-wrap    { flex-wrap: wrap; }

.mt-4  { margin-top: var(--af-space-4); }
.mt-6  { margin-top: var(--af-space-6); }
.mt-8  { margin-top: var(--af-space-8); }
.mb-4  { margin-bottom: var(--af-space-4); }
.mb-6  { margin-bottom: var(--af-space-6); }
.mb-8  { margin-bottom: var(--af-space-8); }
.py-8  { padding-block: var(--af-space-8); }
.py-12 { padding-block: var(--af-space-12); }

/* Image cover utility */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Card hover — scale img on any ancestor hover */
.card-hover-img .hero-img,
.card-hover-img .card-img {
  overflow: hidden;
}

.card-hover-img:hover .hero-img img,
.card-hover-img:hover .card-img img {
  transform: scale(1.04);
}

.img-ratio-16-9  { aspect-ratio: 16/9; overflow: hidden; }
.img-ratio-4-3   { aspect-ratio: 4/3; overflow: hidden; }
.img-ratio-3-2   { aspect-ratio: 3/2; overflow: hidden; }
.img-ratio-square { aspect-ratio: 1/1; overflow: hidden; }

.img-ratio-16-9 img,
.img-ratio-4-3 img,
.img-ratio-3-2 img,
.img-ratio-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
}

/* Category badge */
.cat-badge {
  display: inline-block;
  font-size: var(--af-text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--af-radius-sm);
  background: var(--af-primary);
  color: var(--af-white);
  line-height: 1.6;
  transition: background var(--af-transition-fast);
}

.cat-badge:hover { background: var(--af-primary-dark); color: var(--af-white); }
.cat-badge.accent { background: var(--af-accent); }
.cat-badge.dark   { background: var(--af-secondary); }
.cat-badge.outline {
  background: transparent;
  color: var(--af-primary);
  border: 1px solid var(--af-primary);
}
.cat-badge.outline:hover { background: var(--af-primary); color: var(--af-white); }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--af-space-4);
  margin-bottom: var(--af-space-6);
  padding-bottom: var(--af-space-3);
  border-bottom: 2px solid var(--af-gray-200);
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 60px;
  background: var(--af-primary);
}

.section-title {
  font-size: var(--af-text-xl);
  font-weight: 800;
  color: var(--af-gray-900);
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
}

.section-title-accent {
  color: var(--af-primary);
}

.section-view-all {
  margin-left: auto;
  font-size: var(--af-text-sm);
  font-weight: 600;
  color: var(--af-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--af-transition-fast);
}

.section-view-all:hover { gap: 8px; }
.section-view-all svg { width: 14px; height: 14px; }

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--af-space-3);
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
}

.post-meta a { color: var(--af-gray-500); }
.post-meta a:hover { color: var(--af-primary); }

.post-meta .meta-sep { color: var(--af-gray-300); }

.post-meta svg {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
}

/* Reading time */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Hover effects on cards */
.card-hover-img img {
  transition: transform var(--af-transition-slow);
}
.card-hover-img:hover img {
  transform: scale(1.04);
}

.hover-primary:hover { color: var(--af-primary) !important; }
.hover-underline:hover { text-decoration: underline; }

/* Btn styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--af-space-2);
  padding: var(--af-space-2) var(--af-space-5);
  border-radius: var(--af-radius);
  font-size: var(--af-text-sm);
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--af-transition-fast);
  border: 2px solid transparent;
}

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

.btn-outline-primary {
  background: transparent;
  color: var(--af-primary);
  border-color: var(--af-primary);
}
.btn-outline-primary:hover { background: var(--af-primary); color: var(--af-white); }

.btn-dark {
  background: var(--af-secondary);
  color: var(--af-white);
}
.btn-dark:hover { background: var(--af-secondary-light); color: var(--af-white); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--af-space-2);
  margin-top: var(--af-space-10);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--af-radius);
  font-size: var(--af-text-sm);
  font-weight: 600;
  color: var(--af-gray-700);
  background: var(--af-white);
  border: 1px solid var(--af-gray-200);
  transition: all var(--af-transition-fast);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--af-primary);
  color: var(--af-white);
  border-color: var(--af-primary);
}

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

/* ============================================================
   5. LAYOUT & GRID
============================================================ */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-block: var(--af-space-8);
}

/* Main content + sidebar layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--af-space-8);
  align-items: start;
}

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

.sticky-sidebar {
  position: sticky;
  top: 80px;
}

/* News grid layouts */
.news-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--af-space-6);
}

.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-6);
}

.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--af-space-6);
}

/* ============================================================
   6. HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--af-z-fixed);
  background: var(--af-white);
  box-shadow: var(--af-shadow);
}

/* ============================================================
   7. TOP BAR
============================================================ */
.top-bar {
  background: var(--af-secondary);
  color: var(--af-gray-300);
  font-size: var(--af-text-xs);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--af-space-4);
}

.top-bar-date {
  display: flex;
  align-items: center;
  gap: var(--af-space-2);
  color: var(--af-gray-400);
}

.top-bar-date svg { width: 13px; height: 13px; }

.top-bar-social {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.top-bar-social a {
  color: var(--af-gray-400);
  transition: color var(--af-transition-fast);
  display: flex;
  align-items: center;
}

.top-bar-social a:hover { color: var(--af-white); }
.top-bar-social svg { width: 14px; height: 14px; }

.top-bar-links {
  display: flex;
  align-items: center;
  gap: var(--af-space-4);
}

.top-bar-links a {
  color: var(--af-gray-400);
  transition: color var(--af-transition-fast);
  font-weight: 500;
}

.top-bar-links a:hover { color: var(--af-white); }

/* ============================================================
   LOGO BAR
============================================================ */
.logo-bar {
  background: var(--af-white);
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-200);
}

.logo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--af-space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.logo-text {
  font-family: var(--af-font-heading);
  font-size: var(--af-text-3xl);
  font-weight: 800;
  color: var(--af-secondary);
  letter-spacing: -0.03em;
}

.logo-text span { color: var(--af-primary); }

/* Header ad zone */
.header-ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 728px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  flex-shrink: 0;
}

.header-search-toggle,
.header-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--af-radius);
  color: var(--af-gray-600);
  border: 1px solid var(--af-gray-200);
  background: var(--af-white);
  transition: all var(--af-transition-fast);
}

.header-search-toggle:hover,
.header-dark-toggle:hover {
  background: var(--af-primary);
  color: var(--af-white);
  border-color: var(--af-primary);
}

.header-search-toggle svg,
.header-dark-toggle svg { width: 16px; height: 16px; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--af-z-modal);
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--af-transition);
}

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

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--af-space-4);
}

.search-overlay form {
  display: flex;
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
}

.search-overlay input[type="search"] {
  flex: 1;
  padding: var(--af-space-4) var(--af-space-5);
  font-size: var(--af-text-lg);
  border: none;
  outline: none;
  background: transparent;
}

.search-overlay button[type="submit"] {
  padding: var(--af-space-4) var(--af-space-5);
  background: var(--af-primary);
  color: var(--af-white);
  display: flex;
  align-items: center;
  gap: var(--af-space-2);
  font-weight: 600;
  font-size: var(--af-text-base);
}

.search-overlay-close {
  position: absolute;
  top: var(--af-space-6);
  right: var(--af-space-6);
  color: var(--af-white);
  font-size: var(--af-text-2xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   8. NAVIGATION
============================================================ */
.main-nav {
  background: var(--af-secondary);
  position: relative;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: stretch;
}

/* Position relative needed on each li so sub-menu anchors to parent item */
.nav-menu > .menu-item {
  position: relative;
}

.nav-menu > .menu-item > a {
  display: flex;
  align-items: center;
  padding: var(--af-space-3) var(--af-space-4);
  font-size: var(--af-text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all var(--af-transition-fast);
  border-bottom: 3px solid transparent;
  position: relative;
}

.nav-menu > .menu-item > a:hover,
.nav-menu > .menu-item.current-menu-item > a,
.nav-menu > .menu-item.current-menu-ancestor > a {
  color: var(--af-white);
  border-bottom-color: var(--af-primary);
  background: rgba(255,255,255,0.06);
}

.nav-menu > .menu-item.menu-item-has-children > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: var(--af-space-2);
  margin-top: 2px;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--af-white);
  border-top: 3px solid var(--af-primary);
  box-shadow: var(--af-shadow-lg);
  border-radius: 0 0 var(--af-radius) var(--af-radius);
  z-index: var(--af-z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--af-transition);
}

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

.nav-menu .sub-menu .menu-item a {
  display: block;
  padding: var(--af-space-2) var(--af-space-4);
  font-size: var(--af-text-sm);
  color: var(--af-gray-700);
  border-bottom: 1px solid var(--af-gray-100);
  transition: all var(--af-transition-fast);
}

.nav-menu .sub-menu .menu-item:last-child a { border-bottom: none; }
.nav-menu .sub-menu .menu-item a:hover { color: var(--af-primary); padding-left: var(--af-space-5); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: var(--af-space-2);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--af-white);
  border-radius: 2px;
  transition: all var(--af-transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav search */
.nav-search-form {
  display: flex;
  align-items: center;
}

.nav-search-form input {
  padding: var(--af-space-2) var(--af-space-3);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--af-radius) 0 0 var(--af-radius);
  color: var(--af-white);
  font-size: var(--af-text-sm);
  outline: none;
  width: 0;
  opacity: 0;
  transition: all var(--af-transition);
}

.nav-search-form input::placeholder { color: rgba(255,255,255,0.5); }

.nav-search-form:focus-within input {
  width: 180px;
  opacity: 1;
}

.nav-search-form button {
  padding: var(--af-space-2) var(--af-space-3);
  background: var(--af-primary);
  color: var(--af-white);
  border-radius: 0 var(--af-radius) var(--af-radius) 0;
  display: flex;
  align-items: center;
  font-size: var(--af-text-sm);
}

/* ============================================================
   9. BREAKING NEWS TICKER
============================================================ */
.breaking-news-ticker {
  background: var(--af-primary);
  color: var(--af-white);
  font-size: var(--af-text-sm);
  overflow: hidden;
}

.breaking-news-inner {
  display: flex;
  align-items: stretch;
  height: 36px;
}

.breaking-label {
  display: flex;
  align-items: center;
  padding: 0 var(--af-space-4);
  background: var(--af-primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--af-text-xs);
  white-space: nowrap;
  flex-shrink: 0;
  gap: var(--af-space-2);
}

.breaking-label::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--af-white);
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.breaking-ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.breaking-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  gap: var(--af-space-10);
}

.breaking-ticker-track:hover { animation-play-state: paused; }

.breaking-ticker-track a {
  color: rgba(255,255,255,0.92);
  transition: color var(--af-transition-fast);
}

.breaking-ticker-track a:hover { color: var(--af-white); text-decoration: underline; }

.breaking-ticker-sep {
  color: rgba(255,255,255,0.4);
  margin: 0 var(--af-space-3);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   10. HERO SECTION
============================================================ */
.hero-section {
  background: var(--af-white);
  padding-block: var(--af-space-6);
  border-bottom: 1px solid var(--af-gray-200);
}

/* Primary featured story - full width hero */
.hero-main {
  position: relative;
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  margin-bottom: var(--af-space-6);
  background: var(--af-gray-900);
}

.hero-main .hero-img {
  aspect-ratio: 21/9;
  overflow: hidden;
}

.hero-main .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
}

.hero-main:hover .hero-img img { transform: scale(1.03); }

.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.50) 40%,
    rgba(0,0,0,0.10) 70%,
    transparent 100%
  );
}

.hero-main .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--af-space-8);
}

.hero-main .hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--af-white);
  line-height: var(--af-leading-tight);
  margin: var(--af-space-2) 0 var(--af-space-3);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-main .hero-title a { color: var(--af-white); }
.hero-main .hero-title a:hover { text-decoration: underline; }

.hero-main .hero-excerpt {
  color: rgba(255,255,255,0.80);
  font-size: var(--af-text-base);
  max-width: 70ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main .hero-meta {
  display: flex;
  align-items: center;
  gap: var(--af-space-4);
  color: rgba(255,255,255,0.65);
  font-size: var(--af-text-sm);
  margin-top: var(--af-space-3);
}

.hero-main .hero-meta a { color: rgba(255,255,255,0.65); }
.hero-main .hero-meta a:hover { color: var(--af-white); }

/* Secondary hero grid: 2 stories */
.hero-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--af-space-4);
}

.hero-secondary-card {
  position: relative;
  border-radius: var(--af-radius-md);
  overflow: hidden;
  background: var(--af-gray-900);
}

.hero-secondary-card .card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.hero-secondary-card:hover .card-img img { transform: scale(1.05); }

.hero-secondary-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.30) 50%, transparent 100%);
}

.hero-secondary-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--af-space-4) var(--af-space-5);
}

.hero-secondary-card .card-title {
  font-size: var(--af-text-lg);
  font-weight: 700;
  color: var(--af-white);
  line-height: var(--af-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-secondary-card .card-title a { color: var(--af-white); }
.hero-secondary-card .card-title a:hover { text-decoration: underline; }

.hero-secondary-card .card-meta {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  color: rgba(255,255,255,0.60);
  font-size: var(--af-text-xs);
  margin-top: var(--af-space-2);
}

/* ============================================================
   11. FEATURED POSTS GRID
============================================================ */
.featured-grid-section {
  background: var(--af-white);
  padding-block: var(--af-space-8);
  border-bottom: 1px solid var(--af-gray-200);
}

/* 1 large + 3 small layout */
.featured-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--af-space-4);
}

.featured-main-card {
  grid-row: span 2;
  background: var(--af-gray-900);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  position: relative;
}

.featured-main-card .card-img {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

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

.featured-main-card:hover .card-img img { transform: scale(1.04); }

.featured-main-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.20) 60%, transparent 100%);
}

.featured-main-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--af-space-6);
}

.featured-main-card .card-title {
  font-size: var(--af-text-2xl);
  font-weight: 800;
  color: var(--af-white);
  line-height: var(--af-leading-snug);
  margin: var(--af-space-2) 0 var(--af-space-3);
}

.featured-main-card .card-title a { color: var(--af-white); }
.featured-main-card .card-title a:hover { text-decoration: underline; }

.featured-main-card .card-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: var(--af-text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Secondary featured cards */
.featured-side-card {
  display: flex;
  gap: var(--af-space-3);
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  border: 1px solid var(--af-gray-200);
  overflow: hidden;
  transition: box-shadow var(--af-transition-fast);
}

.featured-side-card:hover { box-shadow: var(--af-shadow-md); }

.featured-side-card .card-img {
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.featured-side-card:hover .card-img img { transform: scale(1.05); }

.featured-side-card .card-body {
  padding: var(--af-space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-side-card .card-title {
  font-size: var(--af-text-md);
  font-weight: 700;
  color: var(--af-gray-900);
  line-height: var(--af-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: var(--af-space-2) 0;
}

.featured-side-card .card-title a:hover { color: var(--af-primary); }

/* ============================================================
   12. CATEGORY SECTIONS
============================================================ */
.category-section {
  padding-block: var(--af-space-8);
}

.category-section:nth-child(odd) { background: var(--af-white); }
.category-section:nth-child(even) { background: var(--af-bg-main); }

/* Category section color accents */
.category-section[data-cat="politique"] .section-header::before { background: #C1121F; }
.category-section[data-cat="economie"] .section-header::before   { background: #1565C0; }
.category-section[data-cat="monde"] .section-header::before      { background: #2E7D32; }
.category-section[data-cat="societe"] .section-header::before    { background: #6A1B9A; }
.category-section[data-cat="culture"] .section-header::before    { background: #E65100; }
.category-section[data-cat="sport"] .section-header::before      { background: #00838F; }

/* Category lead + list layout */
.cat-lead-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--af-space-6);
  align-items: start;
}

.cat-lead-card {
  border-radius: var(--af-radius-md);
  overflow: hidden;
  background: var(--af-white);
  border: 1px solid var(--af-gray-200);
  transition: box-shadow var(--af-transition-fast);
}

.cat-lead-card:hover { box-shadow: var(--af-shadow-md); }

.cat-lead-card .card-img { overflow: hidden; }
.cat-lead-card .card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
}

.cat-lead-card:hover .card-img img { transform: scale(1.03); }

.cat-lead-card .card-body { padding: var(--af-space-4); }

.cat-lead-card .card-title {
  font-size: var(--af-text-xl);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  margin: var(--af-space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-lead-card .card-title a:hover { color: var(--af-primary); }

.cat-lead-card .card-excerpt {
  color: var(--af-gray-600);
  font-size: var(--af-text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--af-space-3);
}

/* Category small list */
.cat-small-list {
  display: flex;
  flex-direction: column;
  gap: var(--af-space-4);
}

/* ============================================================
   13. ARTICLE CARDS
============================================================ */

/* Standard card (image top) */
.article-card {
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid var(--af-gray-200);
  transition: box-shadow var(--af-transition-fast), transform var(--af-transition-fast);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--af-shadow-md);
  transform: translateY(-2px);
}

.article-card .card-img {
  overflow: hidden;
  flex-shrink: 0;
}

.article-card .card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--af-transition-slow);
  display: block;
}

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

.article-card .card-body {
  padding: var(--af-space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .card-title {
  font-size: var(--af-text-md);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  margin: var(--af-space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

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

.article-card .card-excerpt {
  font-size: var(--af-text-sm);
  color: var(--af-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--af-space-3);
}

.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--af-space-3);
  border-top: 1px solid var(--af-gray-100);
  margin-top: auto;
}

/* Horizontal list card */
.article-list-card {
  display: flex;
  gap: var(--af-space-3);
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-100);
}

.article-list-card:last-child { border-bottom: none; }

.article-list-card .card-img {
  width: 110px;
  flex-shrink: 0;
  border-radius: var(--af-radius);
  overflow: hidden;
}

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

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

.article-list-card .card-body { flex: 1; min-width: 0; }

.article-list-card .card-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--af-space-2);
}

.article-list-card .card-title a:hover { color: var(--af-primary); }

/* Numbered list card (trending/popular) */
.article-ranked-card {
  display: flex;
  gap: var(--af-space-4);
  align-items: flex-start;
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-100);
}

.article-ranked-card:last-child { border-bottom: none; }

.article-ranked-card .rank-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--af-gray-200);
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
  font-family: var(--af-font-heading);
}

.article-ranked-card .card-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  color: var(--af-gray-900);
  line-height: var(--af-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-ranked-card .card-title a:hover { color: var(--af-primary); }

/* ============================================================
   14. LATEST NEWS SECTION
============================================================ */
.latest-news-section {
  background: var(--af-white);
  padding-block: var(--af-space-8);
  border-bottom: 1px solid var(--af-gray-200);
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-6);
}

/* ============================================================
   15. SIDEBAR
============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--af-space-6);
}

.widget {
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid var(--af-gray-200);
}

.widget-header {
  padding: var(--af-space-4);
  border-bottom: 1px solid var(--af-gray-200);
  position: relative;
}

.widget-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--af-primary);
}

.widget-title {
  font-size: var(--af-text-md);
  font-weight: 800;
  color: var(--af-gray-900);
  margin: 0;
  padding-left: var(--af-space-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.widget-body { padding: var(--af-space-4); }

/* Popular posts widget */
.widget-popular-posts { }
.widget-popular-posts .post-item {
  display: flex;
  gap: var(--af-space-3);
  padding: var(--af-space-3) 0;
  border-bottom: 1px solid var(--af-gray-100);
}
.widget-popular-posts .post-item:last-child { border-bottom: none; }
.widget-popular-posts .post-img {
  width: 75px;
  height: 55px;
  flex-shrink: 0;
  border-radius: var(--af-radius-sm);
  overflow: hidden;
}
.widget-popular-posts .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-popular-posts .post-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  line-height: var(--af-leading-snug);
  color: var(--af-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-popular-posts .post-title a:hover { color: var(--af-primary); }
.widget-popular-posts .post-date {
  font-size: var(--af-text-xs);
  color: var(--af-gray-400);
  margin-top: var(--af-space-1);
}

/* Categories widget */
.widget-categories .cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--af-space-2) 0;
  border-bottom: 1px solid var(--af-gray-100);
  font-size: var(--af-text-sm);
}
.widget-categories .cat-item:last-child { border-bottom: none; }
.widget-categories .cat-item a {
  display: flex;
  align-items: center;
  gap: var(--af-space-2);
  color: var(--af-gray-700);
  font-weight: 600;
  transition: color var(--af-transition-fast);
}
.widget-categories .cat-item a:hover { color: var(--af-primary); }
.widget-categories .cat-item a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--af-primary);
  flex-shrink: 0;
}
.widget-categories .count {
  font-size: var(--af-text-xs);
  color: var(--af-gray-400);
  background: var(--af-gray-100);
  padding: 2px 8px;
  border-radius: var(--af-radius-full);
}

/* Tags widget */
.widget-tags .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--af-space-2);
}
.widget-tags .tag-item a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--af-gray-100);
  color: var(--af-gray-700);
  font-size: var(--af-text-xs);
  border-radius: var(--af-radius-full);
  font-weight: 600;
  transition: all var(--af-transition-fast);
  border: 1px solid var(--af-gray-200);
}
.widget-tags .tag-item a:hover {
  background: var(--af-primary);
  color: var(--af-white);
  border-color: var(--af-primary);
}

/* Ad widget */
.widget-ad {
  border: none;
  background: transparent;
}
.widget-ad .ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  background: var(--af-gray-50);
  border: 1px dashed var(--af-gray-300);
  border-radius: var(--af-radius-md);
  color: var(--af-gray-400);
  font-size: var(--af-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   16. SINGLE POST
============================================================ */
.single-post-wrap {
  background: var(--af-white);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  border: 1px solid var(--af-gray-200);
  margin-bottom: var(--af-space-6);
}

/* Post hero image */
.single-hero {
  position: relative;
  overflow: hidden;
  background: var(--af-gray-900);
}

.single-hero img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}

.single-hero figcaption {
  padding: var(--af-space-2) var(--af-space-4);
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
  background: var(--af-gray-50);
  border-top: 1px solid var(--af-gray-200);
}

/* Post header */
.single-post-header {
  padding: var(--af-space-8);
  border-bottom: 1px solid var(--af-gray-200);
}

.single-post-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--af-gray-900);
  line-height: var(--af-leading-tight);
  margin: var(--af-space-3) 0;
  letter-spacing: -0.02em;
}

.single-post-subtitle {
  font-size: var(--af-text-xl);
  color: var(--af-gray-600);
  font-weight: 400;
  font-family: var(--af-font-heading);
  font-style: italic;
  margin-bottom: var(--af-space-4);
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--af-space-4);
  padding-top: var(--af-space-4);
  border-top: 1px solid var(--af-gray-100);
}

.single-author-info {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.single-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--af-gray-200);
}

.single-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-author-name {
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-900);
}

.single-author-name a:hover { color: var(--af-primary); }
.single-post-date { color: var(--af-gray-500); font-size: var(--af-text-sm); }

/* Post content */
.single-post-content {
  padding: var(--af-space-8);
}

.entry-content {
  max-width: 72ch;
  font-size: var(--af-text-lg);
  line-height: var(--af-leading-relaxed);
  color: var(--af-gray-800);
}

.entry-content > * + * { margin-top: var(--af-space-5); }
.entry-content p { margin-bottom: var(--af-space-5); }

.entry-content h2 {
  font-size: var(--af-text-2xl);
  font-weight: 800;
  margin-top: var(--af-space-10);
  margin-bottom: var(--af-space-4);
  padding-bottom: var(--af-space-2);
  border-bottom: 2px solid var(--af-gray-200);
  position: relative;
}

.entry-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: var(--af-primary);
}

.entry-content h3 {
  font-size: var(--af-text-xl);
  font-weight: 700;
  margin-top: var(--af-space-8);
  margin-bottom: var(--af-space-3);
}

.entry-content h4 {
  font-size: var(--af-text-lg);
  font-weight: 700;
  margin-top: var(--af-space-6);
  margin-bottom: var(--af-space-2);
}

.entry-content ul, .entry-content ol {
  padding-left: var(--af-space-6);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--af-space-2); }

.entry-content a {
  color: var(--af-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--af-primary-dark); }

.entry-content img {
  border-radius: var(--af-radius-md);
  margin-block: var(--af-space-6);
}

.entry-content figure {
  margin-block: var(--af-space-6);
}

.entry-content figcaption {
  font-size: var(--af-text-sm);
  color: var(--af-gray-500);
  text-align: center;
  margin-top: var(--af-space-2);
  font-style: italic;
}

/* In-article ad */
.in-article-ad {
  margin-block: var(--af-space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--af-gray-50);
  border: 1px dashed var(--af-gray-300);
  border-radius: var(--af-radius);
  padding: var(--af-space-4);
}

/* Post tags */
.single-post-tags {
  padding: 0 var(--af-space-8) var(--af-space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--af-space-2);
}

.single-post-tags .tags-label {
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-700);
}

.single-post-tags .tag-link {
  display: inline-block;
  padding: 4px 12px;
  background: var(--af-gray-100);
  color: var(--af-gray-700);
  font-size: var(--af-text-xs);
  border-radius: var(--af-radius-full);
  font-weight: 600;
  border: 1px solid var(--af-gray-200);
  transition: all var(--af-transition-fast);
}

.single-post-tags .tag-link:hover {
  background: var(--af-primary);
  color: var(--af-white);
  border-color: var(--af-primary);
}

/* Share bar */
.share-bar {
  padding: var(--af-space-4) var(--af-space-8);
  border-top: 1px solid var(--af-gray-200);
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  flex-wrap: wrap;
}

.share-bar .share-label {
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-700);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--af-space-2);
  padding: var(--af-space-2) var(--af-space-4);
  border-radius: var(--af-radius);
  font-size: var(--af-text-xs);
  font-weight: 700;
  color: var(--af-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity var(--af-transition-fast);
}

.share-btn:hover { opacity: 0.88; color: var(--af-white); }
.share-btn svg { width: 14px; height: 14px; }

.share-btn.share-facebook { background: #1877F2; }
.share-btn.share-twitter  { background: #000000; }
.share-btn.share-whatsapp { background: #25D366; }
.share-btn.share-telegram { background: #2AABEE; }
.share-btn.share-copy     { background: var(--af-gray-700); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--af-space-4);
  padding: var(--af-space-6) var(--af-space-8);
  border-top: 1px solid var(--af-gray-200);
}

.post-nav-item {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  padding: var(--af-space-4);
  background: var(--af-gray-50);
  border-radius: var(--af-radius);
  border: 1px solid var(--af-gray-200);
  transition: all var(--af-transition-fast);
}

.post-nav-item:hover {
  background: var(--af-white);
  border-color: var(--af-primary);
  box-shadow: var(--af-shadow-sm);
}

.post-nav-item.nav-next { justify-content: flex-end; text-align: right; }

.post-nav-label {
  font-size: var(--af-text-xs);
  font-weight: 700;
  color: var(--af-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: var(--af-text-sm);
  font-weight: 700;
  color: var(--af-gray-900);
  line-height: var(--af-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-arrow { flex-shrink: 0; color: var(--af-primary); }
.post-nav-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   17. AUTHOR BOX
============================================================ */
.author-box {
  background: var(--af-gray-50);
  border: 1px solid var(--af-gray-200);
  border-radius: var(--af-radius-md);
  padding: var(--af-space-6);
  display: flex;
  gap: var(--af-space-5);
  margin-bottom: var(--af-space-6);
}

.author-box .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--af-white);
  box-shadow: var(--af-shadow-sm);
}

.author-box .author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box .author-info { flex: 1; }

.author-box .author-name {
  font-size: var(--af-text-lg);
  font-weight: 800;
  color: var(--af-gray-900);
  margin-bottom: var(--af-space-2);
}

.author-box .author-name a:hover { color: var(--af-primary); }

.author-box .author-role {
  font-size: var(--af-text-xs);
  color: var(--af-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--af-space-3);
}

.author-box .author-bio {
  font-size: var(--af-text-sm);
  color: var(--af-gray-600);
  line-height: var(--af-leading-relaxed);
}

.author-box .author-social {
  display: flex;
  gap: var(--af-space-2);
  margin-top: var(--af-space-3);
}

.author-box .author-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--af-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--af-gray-600);
  transition: all var(--af-transition-fast);
}

.author-box .author-social a:hover { background: var(--af-primary); color: var(--af-white); }
.author-box .author-social svg { width: 14px; height: 14px; }

/* ============================================================
   18. RELATED POSTS
============================================================ */
.related-posts {
  margin-bottom: var(--af-space-8);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-4);
}

/* ============================================================
   19. ARCHIVE & SEARCH
============================================================ */
.archive-header {
  background: var(--af-secondary);
  color: var(--af-white);
  padding: var(--af-space-10) 0;
  margin-bottom: var(--af-space-8);
}

.archive-header .archive-label {
  font-size: var(--af-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-primary-light);
  margin-bottom: var(--af-space-2);
}

.archive-header .archive-title {
  font-size: var(--af-text-4xl);
  font-weight: 900;
  color: var(--af-white);
  margin: 0;
}

.archive-header .archive-count {
  color: rgba(255,255,255,0.6);
  font-size: var(--af-text-sm);
  margin-top: var(--af-space-2);
}

.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--af-space-6);
  margin-bottom: var(--af-space-8);
}

/* Search results */
.search-results-header {
  padding: var(--af-space-6) 0;
  border-bottom: 1px solid var(--af-gray-200);
  margin-bottom: var(--af-space-6);
}

.search-query-highlight { color: var(--af-primary); font-weight: 800; }

.search-result-item {
  display: flex;
  gap: var(--af-space-4);
  padding: var(--af-space-4) 0;
  border-bottom: 1px solid var(--af-gray-100);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-img {
  width: 150px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--af-radius);
  overflow: hidden;
  background: var(--af-gray-100);
}

.search-result-img img { width: 100%; height: 100%; object-fit: cover; }

.search-result-title {
  font-size: var(--af-text-lg);
  font-weight: 700;
  color: var(--af-gray-900);
  margin-bottom: var(--af-space-2);
}

.search-result-title a:hover { color: var(--af-primary); }

.search-result-excerpt {
  font-size: var(--af-text-sm);
  color: var(--af-gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 404 */
.error-404-wrap {
  text-align: center;
  padding: var(--af-space-20) var(--af-space-4);
}

.error-404-wrap .error-number {
  font-size: 10rem;
  font-weight: 900;
  color: var(--af-gray-200);
  line-height: 1;
  font-family: var(--af-font-heading);
}

.error-404-wrap .error-title {
  font-size: var(--af-text-3xl);
  font-weight: 800;
  color: var(--af-gray-900);
  margin-bottom: var(--af-space-4);
}

.error-404-wrap .error-text {
  color: var(--af-gray-500);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--af-space-6);
}

/* ============================================================
   20. FOOTER
============================================================ */
.site-footer {
  background: var(--af-secondary);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

.footer-top {
  padding: var(--af-space-12) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--af-space-8);
}

.footer-about .footer-logo {
  margin-bottom: var(--af-space-4);
}

.footer-about .footer-logo .logo-text {
  color: var(--af-white);
  font-size: var(--af-text-2xl);
}

.footer-about .footer-logo .logo-text span { color: var(--af-primary-light); }

.footer-desc {
  font-size: var(--af-text-sm);
  line-height: var(--af-leading-relaxed);
  color: rgba(255,255,255,0.60);
  margin-bottom: var(--af-space-4);
}

.footer-social {
  display: flex;
  gap: var(--af-space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--af-transition-fast);
  border: 1px solid rgba(255,255,255,0.10);
}

.footer-social a:hover { background: var(--af-primary); color: var(--af-white); border-color: var(--af-primary); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col-title {
  font-size: var(--af-text-md);
  font-weight: 800;
  color: var(--af-white);
  margin-bottom: var(--af-space-4);
  padding-bottom: var(--af-space-2);
  border-bottom: 2px solid var(--af-primary);
  display: inline-block;
}

.footer-links { display: flex; flex-direction: column; gap: var(--af-space-2); }

.footer-links a {
  font-size: var(--af-text-sm);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: var(--af-space-2);
  transition: color var(--af-transition-fast);
}

.footer-links a::before {
  content: '›';
  color: var(--af-primary-light);
  font-weight: 700;
}

.footer-links a:hover { color: var(--af-white); }

/* Footer newsletter */
.footer-newsletter-form {
  display: flex;
  gap: var(--af-space-2);
  margin-top: var(--af-space-4);
}

.footer-newsletter-form input {
  flex: 1;
  padding: var(--af-space-2) var(--af-space-3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--af-radius);
  color: var(--af-white);
  font-size: var(--af-text-sm);
  outline: none;
}

.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form input:focus { border-color: var(--af-primary); }

.footer-newsletter-form button {
  padding: var(--af-space-2) var(--af-space-4);
  background: var(--af-primary);
  color: var(--af-white);
  border-radius: var(--af-radius);
  font-size: var(--af-text-sm);
  font-weight: 700;
  transition: background var(--af-transition-fast);
}

.footer-newsletter-form button:hover { background: var(--af-primary-dark); }

/* Footer bottom */
.footer-bottom {
  padding: var(--af-space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--af-space-3);
  font-size: var(--af-text-xs);
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: var(--af-space-4);
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--af-transition-fast);
}

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--af-space-6);
  right: var(--af-space-6);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--af-primary);
  color: var(--af-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--af-shadow-md);
  z-index: var(--af-z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--af-transition);
  cursor: pointer;
}

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

.back-to-top:hover { background: var(--af-primary-dark); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ============================================================
   21. NEWSLETTER SECTION (homepage block)
============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--af-secondary) 0%, var(--af-secondary-light) 100%);
  padding: var(--af-space-12) 0;
  color: var(--af-white);
}

.newsletter-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.newsletter-inner .newsletter-icon {
  font-size: 3rem;
  margin-bottom: var(--af-space-4);
}

.newsletter-inner h2 {
  font-size: var(--af-text-3xl);
  font-weight: 800;
  color: var(--af-white);
  margin-bottom: var(--af-space-2);
}

.newsletter-inner p {
  color: rgba(255,255,255,0.70);
  margin-bottom: var(--af-space-6);
}

.newsletter-form {
  display: flex;
  gap: var(--af-space-3);
  max-width: 480px;
  margin-inline: auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--af-space-3) var(--af-space-4);
  border-radius: var(--af-radius);
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: var(--af-white);
  font-size: var(--af-text-base);
  outline: none;
  transition: border-color var(--af-transition-fast);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--af-primary-light); }

.newsletter-form button {
  padding: var(--af-space-3) var(--af-space-6);
  background: var(--af-primary);
  color: var(--af-white);
  border-radius: var(--af-radius);
  font-weight: 700;
  font-size: var(--af-text-sm);
  white-space: nowrap;
  transition: background var(--af-transition-fast);
}

.newsletter-form button:hover { background: var(--af-primary-dark); }

/* ============================================================
   22. AD ZONES
============================================================ */
.ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--af-gray-50);
  border: 1px dashed var(--af-gray-300);
  border-radius: var(--af-radius);
  overflow: hidden;
  text-align: center;
}

.ad-zone-leaderboard { min-height: 90px; } /* 728×90 */
.ad-zone-rectangle   { min-height: 250px; width: 100%; max-width: 300px; } /* 300×250 */
.ad-zone-billboard   { min-height: 250px; } /* 970×250 */
.ad-zone-inline      { min-height: 280px; margin-block: var(--af-space-6); } /* in-article */

/* ============================================================
   23. BREADCRUMBS
============================================================ */
.breadcrumbs {
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--af-space-1);
  margin-bottom: var(--af-space-4);
}

.breadcrumbs a {
  color: var(--af-gray-500);
  transition: color var(--af-transition-fast);
}

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

.breadcrumbs .sep {
  color: var(--af-gray-300);
  font-size: 10px;
}

.breadcrumbs .current { color: var(--af-gray-800); font-weight: 600; }

/* ============================================================
   24. DARK MODE
============================================================ */
@media (prefers-color-scheme: dark) {
  body.auto-dark {
    --af-white: #1e1e2e;
    --af-bg-main: #111827;
    --af-bg-card: #1f2937;
    --af-gray-50: #1f2937;
    --af-gray-100: #2d3748;
    --af-gray-200: #374151;
    --af-gray-300: #4b5563;
    --af-gray-400: #6b7280;
    --af-gray-500: #9ca3af;
    --af-gray-600: #d1d5db;
    --af-gray-700: #e5e7eb;
    --af-gray-800: #f3f4f6;
    --af-gray-900: #f9fafb;
  }
}

body.dark-mode {
  --af-white: #1e1e2e;
  --af-bg-main: #0f1117;
  --af-bg-card: #1a1a2e;
  --af-gray-50: #1a1a2e;
  --af-gray-100: #252547;
  --af-gray-200: #2d2d5a;
  --af-gray-300: #3d3d70;
  --af-gray-400: #6b7280;
  --af-gray-500: #9ca3af;
  --af-gray-600: #d1d5db;
  --af-gray-700: #e5e7eb;
  --af-gray-800: #f3f4f6;
  --af-gray-900: #f9fafb;
  --af-secondary: #0d0d1a;
}

/* ============================================================
   25. RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .content-sidebar-wrap.sidebar-left { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }

  .cat-lead-grid { grid-template-columns: 1fr; }

  .hero-secondary { grid-template-columns: 1fr; }

  .featured-grid-layout { grid-template-columns: 1fr; }
  .featured-main-card { grid-row: auto; }

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

@media (max-width: 768px) {
  :root {
    --af-space-8: 1.5rem;
    --af-space-12: 2rem;
  }

  h1 { font-size: var(--af-text-3xl); }
  h2 { font-size: var(--af-text-2xl); }

  /* Nav */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--af-secondary);
    flex-direction: column;
    align-items: stretch;
    z-index: var(--af-z-modal);
    padding-top: 70px;
    overflow-y: auto;
  }

  .nav-menu.open { display: flex; }

  .nav-menu > .menu-item > a {
    padding: var(--af-space-4) var(--af-space-5);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: var(--af-text-base);
  }

  .nav-menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    border-radius: 0;
    border-top: none;
    background: rgba(255,255,255,0.04);
  }

  .nav-menu .menu-item.submenu-open > .sub-menu { display: block; }

  .mobile-menu-toggle { display: flex; }

  /* Hero */
  .hero-main .hero-img { aspect-ratio: 4/3; }
  .hero-main .hero-content { padding: var(--af-space-4); }
  .hero-main .hero-title { font-size: var(--af-text-2xl); }

  .hero-secondary { grid-template-columns: 1fr; }

  /* Grids */
  .news-grid-2,
  .news-grid-3,
  .news-grid-4,
  .latest-news-grid { grid-template-columns: 1fr; }

  .archive-posts-grid { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }

  /* Single */
  .single-post-header { padding: var(--af-space-5); }
  .single-post-content { padding: var(--af-space-5); }
  .single-post-tags { padding: 0 var(--af-space-5) var(--af-space-5); }
  .share-bar { padding: var(--af-space-4) var(--af-space-5); }
  .post-navigation { grid-template-columns: 1fr; }

  /* Author box */
  .author-box { flex-direction: column; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--af-space-6); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Top bar */
  .top-bar-date { display: none; }

  /* Logo bar */
  .logo-bar-inner { flex-wrap: wrap; }
  .header-ad-zone { display: none; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
}

@media (max-width: 480px) {
  .hero-main .hero-img { aspect-ratio: 3/2; }
  .hero-main .hero-excerpt { display: none; }

  .share-bar { gap: var(--af-space-2); }
  .share-btn { padding: var(--af-space-2) var(--af-space-3); }

  .post-meta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   26. RTL SUPPORT
============================================================ */
[dir="rtl"] .section-header::before { left: auto; right: 0; }
[dir="rtl"] .widget-header::before  { left: auto; right: 0; }
[dir="rtl"] .footer-links a::before { content: '‹'; }
[dir="rtl"] .breadcrumbs .sep       { transform: scaleX(-1); }
[dir="rtl"] .post-nav-arrow         { transform: scaleX(-1); }
[dir="rtl"] .entry-content ul,
[dir="rtl"] .entry-content ol       { padding-left: 0; padding-right: var(--af-space-6); }

/* ============================================================
   27. WORDPRESS CORE CLASSES
============================================================ */
.alignleft  { float: left; margin-right: var(--af-space-4); margin-bottom: var(--af-space-4); }
.alignright { float: right; margin-left: var(--af-space-4); margin-bottom: var(--af-space-4); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--af-space-4); }
.alignwide  { width: 100%; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { margin-bottom: var(--af-space-4); }
.wp-caption img { display: block; }
.wp-caption-text { font-size: var(--af-text-xs); color: var(--af-gray-500); text-align: center; margin-top: var(--af-space-2); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--af-space-3); margin-bottom: var(--af-space-4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--af-radius-sm); }

.sticky { border-left: 3px solid var(--af-primary); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* Comments */
.comments-area { margin-top: var(--af-space-8); }
.comments-title { font-size: var(--af-text-2xl); font-weight: 800; margin-bottom: var(--af-space-6); }
.comment-list { margin-bottom: var(--af-space-6); }
.comment { padding: var(--af-space-4) 0; border-bottom: 1px solid var(--af-gray-200); }
.comment:last-child { border-bottom: none; }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: var(--af-text-xs); color: var(--af-gray-500); }
.comment-content { margin-top: var(--af-space-2); font-size: var(--af-text-sm); }

/* Forms */
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: var(--af-space-3);
  border: 1px solid var(--af-gray-200);
  border-radius: var(--af-radius);
  font-size: var(--af-text-base);
  outline: none;
  transition: border-color var(--af-transition-fast);
  margin-bottom: var(--af-space-4);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--af-primary); }

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form input[type="submit"] {
  width: auto;
  background: var(--af-primary);
  color: var(--af-white);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--af-transition-fast);
}

.comment-form input[type="submit"]:hover { background: var(--af-primary-dark); }

/* ============================================================
   FLOATING SHARE BAR (sidebar sticky on single posts)
============================================================ */
.share-floating {
  position: fixed;
  left: var(--af-space-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--af-space-2);
  z-index: var(--af-z-sticky);
}

.share-floating__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--af-gray-200);
  border-radius: 50%;
  color: var(--af-gray-600);
  margin-bottom: var(--af-space-1);
}

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

.share-floating__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--af-white);
  transition: transform var(--af-transition-fast), opacity var(--af-transition-fast);
  cursor: pointer;
  border: none;
}

.share-floating__btn svg { width: 16px; height: 16px; }
.share-floating__btn--copy { background: var(--af-gray-700); }
.share-floating__btn:hover { transform: scale(1.1); opacity: 0.9; }

/* Compact share */
.share-compact {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.share-compact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: all var(--af-transition-fast);
}

.share-compact__btn svg { width: 14px; height: 14px; }
.share-compact__btn:hover { opacity: 0.75; }

/* Share btn label (hide on small screens) */
@media (max-width: 640px) {
  .share-btn__label { display: none; }
  .share-btn { padding: var(--af-space-2); }
}

/* Hide floating share on small screens */
@media (max-width: 1280px) {
  .share-floating { display: none; }
}

/* ============================================================
   POST META INLINE STYLES (template-parts/single/meta.php)
============================================================ */
.post-meta--single {
  padding-block: var(--af-space-4);
  border-top: 1px solid var(--af-gray-100);
  flex-wrap: wrap;
}

.post-meta__author-wrap {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
}

.post-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.post-meta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta__author-name {
  display: block;
  font-weight: 700;
  font-size: var(--af-text-sm);
  color: var(--af-gray-900);
}

.post-meta__author-name:hover { color: var(--af-primary); }

.post-meta__date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
}

.post-meta__date svg { width: 12px; height: 12px; flex-shrink: 0; }

.post-meta__reading-time,
.post-meta__views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--af-text-xs);
  color: var(--af-gray-500);
}

.post-meta__reading-time svg,
.post-meta__views svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ============================================================
   LOAD MORE BUTTON
============================================================ */
.load-more-wrap {
  text-align: center;
  padding-top: var(--af-space-8);
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--af-space-3);
  padding: var(--af-space-3) var(--af-space-8);
  background: var(--af-white);
  color: var(--af-gray-700);
  border: 2px solid var(--af-gray-200);
  border-radius: var(--af-radius);
  font-size: var(--af-text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--af-transition-fast);
  font-family: var(--af-font-sans);
}

.load-more-btn:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
  background: rgba(193,18,31,.04);
}

.load-more-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.load-more__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--af-gray-300);
  border-top-color: var(--af-primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FLOATING SHARE BAR (continued)
============================================================ */

/* ============================================================
   28. ACCESSIBILITY (continued)
============================================================ */
:focus-visible {
  outline: 3px solid var(--af-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--af-space-4);
  z-index: 9999;
  padding: var(--af-space-2) var(--af-space-4);
  background: var(--af-primary);
  color: var(--af-white);
  font-weight: 700;
  border-radius: var(--af-radius);
}

.skip-link:focus { left: var(--af-space-4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
