/*
Theme Name: FxBrokerIran Redesign Theme
Theme URI: https://fxbrokeriran.com
Author: Antigravity Team
Author URI: https://fxbrokeriran.com
Description: A modern, minimal, dark-mode WordPress theme for FxBrokerIran, optimized for affiliate marketing and mobile-friendliness.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fxbrokeriran-theme
Domain Path: /languages
*/

/* ============================================
   FxBrokerIran Redesign — Design System & Styles
   Modern, Minimal, Dark Mode with Glassmorphism
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ── Self-Hosted Vazirmatn Font Fallback ── */
@font-face {
  font-family: 'Vazirmatn Local';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Local';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Local';
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn Local';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-primary: #06080f;
  --bg-secondary: #0c1021;
  --bg-tertiary: #111631;
  --bg-card: rgba(17, 22, 49, 0.6);
  --bg-glass: rgba(17, 22, 49, 0.45);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(37, 99, 235, 0.4);

  --accent-primary: #2563eb;
  --accent-secondary: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #3b82f6 100%);
  --accent-gradient-text: linear-gradient(135deg, #3b82f6, #06b6d4, #2563eb, #8b5cf6);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-accent: #3b82f6;

  /* Typography */
  --font-persian: 'Vazirmatn Local', 'Vazirmatn', sans-serif;
  --font-ui: 'Inter', 'Vazirmatn Local', 'Vazirmatn', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gap-sm: 12px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 64px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(37, 99, 235, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-persian);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

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

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

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

.gradient-text {
  background: var(--accent-gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ── Animated Background ── */
.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orbs .orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.bg-orbs .orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -5s;
  animation-duration: 22s;
}

.bg-orbs .orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 28s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   1. HEADER / NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.navbar-logo .logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.1;
}

.navbar-logo .logo-en {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-logo .logo-fx {
  color: var(--accent-primary);
}

.navbar-logo .logo-broker {
  color: var(--text-primary);
}

.navbar-logo .logo-iran {
  color: var(--text-secondary);
  font-weight: 500;
}

.navbar-logo .logo-fa {
  font-family: var(--font-persian);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.8;
  letter-spacing: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.navbar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #1e3a8a;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.45);
  white-space: nowrap;
}

.navbar-cta:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.55);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* ══════════════════════════════════════════
   2. HERO SECTION
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero .bg-orbs .orb:nth-child(1) {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  top: -20%;
  right: -10%;
}

.hero .bg-orbs .orb:nth-child(2) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  bottom: -20%;
  left: -10%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-bonus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero-bonus svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.4; height: 20px; }
}

/* ══════════════════════════════════════════
   3. STATS BAR
   ══════════════════════════════════════════ */
.stats {
  padding: 60px 0;
  position: relative;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-glass);
}

.stat-number {
  font-family: var(--font-ui);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 4px;
  direction: ltr;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   4. WHY ALPARI — FEATURES
   ══════════════════════════════════════════ */
.features {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(37, 99, 235, 0.15);
  transform: scale(1.05);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   5. ACCOUNT TYPES
   ══════════════════════════════════════════ */
.accounts {
  background: var(--bg-secondary);
}

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  align-items: start;
}

.account-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.account-card.popular {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glow);
}

.account-card.popular::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.account-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.account-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.account-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.account-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.account-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.account-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.account-feature .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-feature .check-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--accent-primary);
  fill: none;
  stroke-width: 2.5;
}

.account-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  background: transparent;
}

.account-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.account-card.popular .account-btn {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.account-card.popular .account-btn:hover {
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   6. HOW TO START — STEPS
   ══════════════════════════════════════════ */
.steps {
  background: var(--bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  position: relative;
}

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  right: 16.66%;
  left: 16.66%;
  height: 2px;
  background: linear-gradient(to left, var(--accent-primary), var(--accent-blue));
  opacity: 0.2;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.step-card:hover .step-number {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 280px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   7. BLOG PREVIEW
   ══════════════════════════════════════════ */
.blog {
  background: var(--bg-secondary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.blog-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

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

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

.blog-card-img .blog-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-secondary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.blog-read-more {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-read-more:hover {
  gap: 10px;
}

/* ══════════════════════════════════════════
   8. FAQ SECTION
   ══════════════════════════════════════════ */
.faq {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
  text-align: right;
  font-family: var(--font-persian);
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.active .faq-icon {
  background: rgba(16, 185, 129, 0.1);
  transform: rotate(180deg);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
}

.faq-item.active .faq-icon svg {
  stroke: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 2;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ══════════════════════════════════════════
   9. FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--gap-xl);
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 360px;
}

.footer-links h3,
.footer-contact h3,
.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(-4px);
}

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

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-socials a:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill var(--transition-fast);
}

.footer-socials a:hover svg {
  fill: var(--accent-primary);
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.footer-contact a:hover {
  color: var(--accent-primary);
}

.footer-disclaimer {
  border-top: 1px solid var(--border-glass);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.8;
  text-align: justify;
}

.aparat-embed-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-card);
  padding: 10px;
}

.aparat-embed-container iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ══════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════ */

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }

  .theme-toggle-btn {
    margin-right: auto;
    margin-left: 12px;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    left: -100%;
    right: auto;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(6, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: left var(--transition-base);
    z-index: 999;
    border-right: 1px solid var(--border-glass);
    border-left: none;
  }

  .navbar-nav.open {
    left: 0;
    right: auto;
  }

  .navbar-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    white-space: normal;
  }

  .navbar-cta {
    margin-top: 16px;
    justify-content: center;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

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

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item {
    border-bottom: 1px solid var(--border-glass);
    padding: 24px;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .accounts-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

  .steps-grid::before {
    display: none;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .account-card {
    padding: 28px 20px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.92rem;
  }
}

/* ============================================
   Conversion Popup Styles
   ============================================ */
.popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.popup-wrapper.active {
  visibility: visible;
  opacity: 1;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-container {
  position: relative;
  width: 90%;
  max-width: 460px;
  background: rgba(17, 22, 49, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px var(--gap-md) var(--gap-lg);
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  transform: scale(0.9);
  transition: transform var(--transition-spring);
  z-index: 2;
}

.popup-wrapper.active .popup-container {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.popup-close:hover {
  color: var(--text-primary);
}

.popup-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.popup-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.popup-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.popup-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.popup-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  background: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.popup-btn-secondary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* ══════════════════════════════════════════
   LIGHT MODE THEME
   ══════════════════════════════════════════ */
body.light-mode {
  --bg-primary: #f8f9fc;
  --bg-secondary: #eef1f6;
  --bg-tertiary: #e2e6ee;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(37, 99, 235, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-accent: #2563eb;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.08);
  --shadow-glow-strong: 0 0 60px rgba(37, 99, 235, 0.12);
}

body.light-mode::before {
  opacity: 0.15;
}

body.light-mode .navbar.scrolled {
  background: rgba(248, 249, 252, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .blog-card-img .blog-tag {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--accent-primary);
}

body.light-mode .popup-overlay {
  background: rgba(255, 255, 255, 0.75);
}

body.light-mode .popup-container {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .faq-icon {
  background: rgba(0, 0, 0, 0.04);
}

body.light-mode .faq-item.active .faq-icon {
  background: rgba(37, 99, 235, 0.1);
}

body.light-mode .account-btn {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light-mode mobile nav */
@media (max-width: 1024px) {
  body.light-mode .navbar-nav {
    background: rgba(248, 249, 252, 0.97);
    border-right-color: rgba(0, 0, 0, 0.06);
  }
}
/* ══════════════════════════════════════════
   THEME TOGGLE BUTTON
   ══════════════════════════════════════════ */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  color: var(--text-secondary);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

body.light-mode .theme-toggle-btn .sun-icon {
  display: block;
}

body.light-mode .theme-toggle-btn .moon-icon {
  display: none;
}

body.light-mode .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════
   COMMENTS SECTION
   ══════════════════════════════════════════ */
.comments-area {
  margin-top: 60px;
}

.comments-area .comments-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.comments-area .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-area .comment-list .comment {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
}

.comments-area .comment-list .comment .comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comments-area .comment-list .comment .comment-author img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

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

.comments-area .comment-list .comment .comment-metadata {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.comments-area .comment-list .comment .comment-metadata a {
  color: var(--text-tertiary);
}

.comments-area .comment-list .comment .comment-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.comments-area .comment-list .comment .reply a {
  font-size: 0.82rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

.comments-area .comment-list .children {
  list-style: none;
  padding: 0;
  margin: 16px 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-area .no-comments {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  padding: 40px 0;
}

/* Comment Form */
.comment-respond {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 5vw, 36px);
}

.comment-respond .comment-reply-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.comment-respond .comment-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-persian);
  outline: none;
  transition: border-color var(--transition-fast);
  margin-bottom: 16px;
}

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

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

.comment-respond .comment-form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-persian);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.comment-respond .comment-form .form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
}

/* ══════════════════════════════════════════
   AUTHOR PAGE
   ══════════════════════════════════════════ */
.author-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.author-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.author-profile-card .author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.author-profile-card .author-info h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.author-profile-card .author-info .author-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 600px;
}

.author-profile-card .author-info .author-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.author-profile-card .author-info .author-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .author-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .author-profile-card .author-info .author-meta {
    justify-content: center;
  }
}

/* Post Author Mini Box (Single Post) */
.post-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-mini img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
}

.post-author-mini a {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.post-author-mini a:hover {
  color: var(--accent-primary);
}

/* ══════════════════════════════════════════
   CATEGORY PAGE
   ══════════════════════════════════════════ */
.category-header {
  text-align: center;
  margin-bottom: 50px;
}

.category-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.category-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Clickable Category Tags in Single Post */
.post-categories-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.post-categories-list a {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: var(--accent-secondary);
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  font-weight: 500;
}

.post-categories-list a:hover {
  background: rgba(37, 99, 235, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   VIDEO EMBED SECTION
   ══════════════════════════════════════════ */
.video-embed-section .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
}

.video-embed-section .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: var(--gap-lg);
}

@media (max-width: 520px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   PAGE HERO IMAGE
   ══════════════════════════════════════════ */
.page-hero-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 2 / 1;
  background: var(--bg-card);
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════
   NEW: BROKER & EXCHANGE CARDS
   ══════════════════════════════════════════ */
.broker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.broker-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.broker-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.broker-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.broker-card:hover::before {
  opacity: 1;
}

.broker-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  z-index: 2;
}

.broker-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.broker-logo {
  max-width: 100px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}


.broker-card-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.broker-card-title h3 a {
  color: inherit;
}

.broker-card-title h3 a:hover {
  color: var(--accent-primary);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}

.star-rating .star.filled {
  color: #f59e0b;
}

.star-rating .star.empty {
  color: var(--text-tertiary);
}

/* Broker Specs */
.broker-card-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.broker-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.broker-spec:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.spec-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.spec-value.spec-yes {
  color: #10b981;
}

.spec-value.spec-no {
  color: #ef4444;
}

/* Broker Card Actions */
.broker-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.broker-review-btn {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  background: transparent;
  transition: all var(--transition-base);
}

.broker-review-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.broker-aff-btn {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.broker-aff-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* ══════════════════════════════════════════
   NEW: SINGLE BROKER/EXCHANGE LAYOUT
   ══════════════════════════════════════════ */
.broker-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap-lg);
  align-items: start;
}

.broker-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.broker-sidebar .sticky-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* Review Score Bar */
.review-score-bar {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.review-score-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.review-score-label span {
  color: var(--text-secondary);
}

.review-score-label strong {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.review-score-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-score-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specs Table */
.broker-specs-table {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
}

.broker-specs-table h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.broker-specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.broker-specs-table th,
.broker-specs-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.broker-specs-table th {
  color: var(--text-secondary);
  font-weight: 600;
  width: 35%;
}

.broker-specs-table td {
  color: var(--text-primary);
  font-weight: 500;
}

.broker-specs-table tr:last-child th,
.broker-specs-table tr:last-child td {
  border-bottom: none;
}

/* Pros & Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.pros-list,
.cons-list {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.pros-list {
  border-top: 3px solid #10b981;
}

.cons-list {
  border-top: 3px solid #ef4444;
}

.pros-list h3,
.cons-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pros-list ul,
.cons-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pros-list li,
.cons-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-right: 8px;
}

.pros-list li::before {
  content: '✓ ';
  color: #10b981;
  font-weight: 700;
}

.cons-list li::before {
  content: '✗ ';
  color: #ef4444;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   NEW: TOOLS GRID
   ══════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: var(--gap-md);
}

.tool-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: block;
  text-decoration: none;
  color: inherit;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tool-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tool-card .feature-icon {
  margin-bottom: 16px;
}

.tool-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-arrow {
  transform: translateX(-4px);
}

/* ══════════════════════════════════════════
   NEW: CATEGORIES GRID
   ══════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 280px));
  justify-content: center;
  gap: var(--gap-md);
}

.category-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.category-card .feature-icon {
  margin: 0 auto 14px;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   NEW: POPULAR ARTICLES
   ══════════════════════════════════════════ */
.popular-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.popular-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
}

.popular-item:hover {
  border-color: var(--border-hover);
  transform: translateX(-4px);
  box-shadow: var(--shadow-glow);
}

.popular-rank {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.popular-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.popular-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════
   NEW: DROPDOWN MENUS (WordPress sub-menus)
   ══════════════════════════════════════════ */
.navbar-nav .menu-item-has-children {
  position: relative;
}

.navbar-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-right: 6px;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.navbar-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(6, 8, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

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

.navbar-nav .sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.navbar-nav .sub-menu li a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Light mode dropdown */
body.light-mode .navbar-nav .sub-menu {
  background: rgba(248, 249, 252, 0.97);
  border-color: rgba(0, 0, 0, 0.06);
}

/* Stats grid for 5 items */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-md);
}

/* ══════════════════════════════════════════
   RESPONSIVE: NEW COMPONENTS
   ══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .broker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .broker-single-layout {
    grid-template-columns: 1fr;
  }

  .broker-sidebar .sticky-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
  }

  /* Mobile dropdown */
  .navbar-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 0;
    padding: 0 12px;
    box-shadow: none;
    display: none;
  }

  .navbar-nav .menu-item-has-children.dropdown-open > .sub-menu {
    display: flex;
  }

  .navbar-nav .menu-item-has-children > a::after {
    border-top: 5px solid currentColor;
  }

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

@media (max-width: 768px) {
  .broker-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .broker-sidebar .sticky-sidebar {
    grid-template-columns: 1fr;
  }

  .popular-item {
    padding: 12px 16px;
  }

  .popular-thumb {
    width: 48px;
    height: 48px;
  }

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

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

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .broker-card {
    padding: 20px;
  }

  .broker-card-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .broker-card-actions {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════
   NEW: PAGINATION (WordPress)
   ══════════════════════════════════════════ */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.nav-links .page-numbers:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.nav-links .page-numbers.current {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* Blog template pagination: WordPress returns a UL, so style it directly. */
.pagination {
  margin-top: var(--gap-xl);
}

.pagination > .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.pagination > .page-numbers li { margin: 0; }

.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination a.page-numbers:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.pagination .page-numbers.current {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .25);
}

/* Two-column layout for single posts and pages */
.single-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: start;
  margin-bottom: 60px;
}

@media (min-width: 992px) {
  .single-post-grid {
    grid-template-columns: minmax(0, 1fr) 320px !important;
  }
}

/* Shared single-post presentation: articles, brokers and exchanges. */
.post-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  margin: 0 auto 32px;
  max-width: 900px;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.post-main-content,
.broker-editor-content {
  direction: rtl;
  text-align: right;
  min-width: 0;
}

.broker-editor-content h2,
.post-main-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.7;
  margin: 40px 0 20px;
  color: var(--text-primary);
  scroll-margin-top: 110px;
}

.broker-editor-content h3,
.post-main-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 30px 0 15px;
  color: var(--text-primary);
  scroll-margin-top: 110px;
}

.broker-editor-content p,
.post-main-content p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
  margin: 0 0 24px;
  text-align: right;
  overflow-wrap: anywhere;
}

.broker-editor-content ul,
.broker-editor-content ol,
.post-main-content ul,
.post-main-content ol {
  padding-right: 24px;
  margin: 0 0 24px;
  color: var(--text-secondary);
}

.broker-editor-content li,
.post-main-content li {
  line-height: 1.9;
  margin-bottom: 8px;
}

.broker-editor-content img,
.post-main-content img {
  max-width: 100%;
  height: auto;
}

.post-toc {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: clamp(20px, 4vw, 30px);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-right: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  direction: rtl;
  text-align: right;
}

.post-toc-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.post-toc-title span {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
}

.post-toc ol {
  margin: 0;
  padding-right: 22px;
}

.post-toc li { margin: 8px 0; }
.post-toc .toc-level-3 { margin-right: 18px; font-size: .92rem; }
.post-toc a { color: var(--text-secondary); text-decoration: none; }
.post-toc a:hover { color: var(--accent-primary); }

/* Collapsible Table of Contents styles */
.post-toc.collapsible ol li:nth-child(n+6) {
  display: none;
}

.post-toc.collapsible.expanded ol li:nth-child(n+6) {
  display: list-item;
}

.toc-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-persian);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  outline: none;
}

.toc-toggle-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.toc-toggle-btn .arrow {
  display: inline-block;
  font-size: 0.8rem;
  transition: transform var(--transition-base);
}


.sidebar-ad {
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.sidebar-ad a,
.sidebar-ad img { display: block; width: 100%; }
.sidebar-ad img { height: auto; transition: transform var(--transition-base); }
.sidebar-ad a:hover img { transform: scale(1.02); }

.sidebar-ad-title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background: #ffffff;
  border-top: 0;
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transition: color var(--transition-fast);
}

.sidebar-ad a:hover .sidebar-ad-title {
  background: #ffffff;
  color: #1d4ed8;
}

/* Explicit light-mode CTA colours maintain readable text on hover. */
body.light-mode .navbar-cta,
body.light-mode .navbar-cta:visited {
  background: #1e3a8a;
  color: #ffffff !important;
}

body.light-mode .navbar-cta:hover,
body.light-mode .navbar-cta:focus-visible {
  background: #16347d;
  color: #ffffff !important;
  box-shadow: 0 8px 28px rgba(30, 58, 138, .35);
}

@media (max-width: 991px) {
  .single-post-grid { grid-template-columns: 1fr; }
  .post-sidebar { order: 2; }
}
