/*
Theme Name: Dariba Tax Intelligence
Theme URI: https://dariba.co
Author: dariba.co
Author URI: https://dariba.co
Description: A professional, bilingual (English/Arabic) WordPress theme for dariba.co — Saudi Arabia's independent tax intelligence platform. Institutional design with Deep Navy, Tax Gold, and Parchment palette. RTL/LTR ready, Polylang compatible.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
License URI: https://dariba.co
Text Domain: dariba
Tags: bilingual, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — aligned with dariba post design system
   ============================================================ */
:root {
  /* Core palette */
  --ink:              #0f0e0c;
  --ink-light:        #3a3732;
  --ink-muted:        #7a756e;
  --parchment:        #faf8f4;
  --cream:            #f2ede4;
  --rule:             #d8d2c6;
  --gold:             #b8860b;
  --gold-light:       #e6c96a;
  --red:              #c0392b;
  --green:            #1a6b3c;
  --blue-dark:        #0d2b4e;
  --accent:           #1a4a7a;

  /* Callout colours */
  --highlight-bg:     #fef9ec;
  --highlight-border: #d4a017;
  --warning-bg:       #fdf2f0;
  --warning-border:   #c0392b;
  --tip-bg:           #f0f7f2;
  --tip-border:       #1a6b3c;

  /* Legacy aliases (used in older template code) */
  --slate:            var(--blue-dark);
  --slate-mid:        #1a3a5e;
  --slate-dark:       #071525;
  --steel:            var(--accent);
  --steel-light:      #7fa8d0;
  --steel-pale:       #dce8f5;
  --canvas:           var(--parchment);
  --surface:          var(--cream);
  --border:           var(--rule);
  --border-mid:       #c0bab0;
  --muted:            var(--ink-muted);
  --body-text:        var(--ink-light);
  --heading-text:     var(--ink);
  --white:            #ffffff;
  --gold-pale:        #fef6dc;

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-serif:       'Source Serif 4', Georgia, serif;
  --font-sans:        'Source Serif 4', Georgia, serif;
  --font-mono:        'JetBrains Mono', 'Courier New', monospace;
  --font-arabic:      'IBM Plex Arabic', 'Noto Naskh Arabic', Arial, sans-serif;

  /* Spacing & shape */
  --radius-sm:        2px;
  --radius-md:        2px;
  --radius-lg:        4px;
  --max-width:        1200px;
  --content-width:    820px;
  --transition:       0.15s ease;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-light);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL support */
body.rtl, [dir="rtl"] {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: var(--font-arabic);
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: 1.125rem; }
p:last-child { margin-bottom: 0; }
p strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

[dir="rtl"] .eyebrow { font-family: var(--font-arabic); letter-spacing: 0; }

/* Lead paragraph */
.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.75rem;
  padding-left: 1.125rem;
  border-left: 3px solid var(--gold);
}

[dir="rtl"] .lead { border-left: none; border-right: 3px solid var(--gold); padding-left: 0; padding-right: 1.125rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section { padding-block: 4rem; }
.section--sm { padding-block: 2.5rem; }
.section--lg { padding-block: 6rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container--narrow { padding-inline: 1.375rem; }
  .section { padding-block: 3rem; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-start { text-align: start; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

[dir="rtl"] .btn { font-family: var(--font-arabic); letter-spacing: 0; }

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}

.btn-outline-slate {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-outline-slate:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* ============================================================
   SITE HEADER / MASTHEAD
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--gold);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(13,43,78,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo svg { width: 110px; height: auto; }
/* Custom logo override — show white version in dark header */
.site-logo .custom-logo { filter: brightness(0) invert(1); }

/* Masthead brand text (fallback when no custom logo) */
.masthead-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* Site tagline in header */
.masthead-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: none; /* shown on wider screens */
}

@media (min-width: 900px) { .masthead-tag { display: block; } }

/* Primary nav */
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

#primary-nav ul li a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--gold-light);
  background: rgba(255,255,255,0.06);
}

/* Language switcher */
.lang-switcher { display: flex; align-items: center; gap: 0.25rem; }

.lang-switcher a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.45);
  transition: all var(--transition);
}

.lang-switcher a:hover, .lang-switcher a.active {
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
}

.lang-divider { width: 0.5px; height: 12px; background: rgba(255,255,255,0.2); }

.header-cta { margin-inline-start: 0.75rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .masthead-tag { display: none; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    border-bottom: 3px solid var(--gold);
    padding: 1rem 1.375rem 1.5rem;
    box-shadow: 0 8px 32px rgba(13,43,78,0.3);
  }

  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  #primary-nav ul li a { display: block; padding: 0.75rem 0.5rem; }

  [dir="rtl"] #primary-nav ul { align-items: flex-end; }
  .lang-switcher { margin-inline-start: auto; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumbs {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding-block: 0.75rem;
}

.breadcrumbs nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.breadcrumbs a, .breadcrumbs span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .current { color: var(--accent); font-weight: 500; }
.breadcrumb-sep { color: var(--rule); }

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  background: var(--blue-dark);
  color: var(--white);
  padding-block: 5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.03) 39px,
    rgba(255,255,255,0.03) 40px
  );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 440px;
  height: 440px;
  border: 0.5px solid rgba(184,134,11,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 0.5px solid rgba(230,201,106,0.3);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--gold-light);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  max-width: 760px;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em { color: var(--gold-light); font-style: normal; }

[dir="rtl"] .hero h1 { font-family: var(--font-arabic); }

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.9375rem, 2vw, 1.1875rem);
  color: var(--gold-light);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.25rem;
}

[dir="rtl"] .hero-tagline { font-family: var(--font-arabic); font-style: normal; }

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.75rem;
  opacity: 0.65;
}

.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Hero trust bar */
.hero-trust {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item { display: flex; align-items: center; gap: 0.625rem; }

.trust-icon { width: 16px; height: 16px; opacity: 0.45; flex-shrink: 0; }

.trust-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--blue-dark);
  padding-block: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.025) 39px,
    rgba(255,255,255,0.025) 40px
  );
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 0.75rem; color: var(--gold-light); }

.page-hero h1 {
  color: var(--white);
  max-width: 640px;
  margin-bottom: 0.875rem;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  font-size: 1rem;
  margin: 0;
  font-weight: 300;
  font-style: italic;
}

/* ============================================================
   AUTHORITY STATS STRIP
   ============================================================ */
.authority-strip {
  background: var(--blue-dark);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.authority-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.authority-stat {
  text-align: center;
  padding: 1.25rem 1.5rem;
  position: relative;
}

.authority-stat + .authority-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 0.5px;
  background: rgba(255,255,255,0.12);
}

[dir="rtl"] .authority-stat + .authority-stat::before { left: auto; right: 0; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .authority-strip .container { grid-template-columns: 1fr 1fr; }
  .authority-stat + .authority-stat::before { display: none; }
  .authority-stat { border-bottom: 0.5px solid rgba(255,255,255,0.07); }
}

/* ============================================================
   TAX PILLARS — HOMEPAGE
   ============================================================ */
.pillars-section { background: var(--white); padding-block: 4.5rem; }

.section-header { margin-bottom: 2.5rem; }
.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.875rem; color: var(--blue-dark); }
.section-header p { color: var(--ink-muted); max-width: 520px; font-size: 1rem; }

.pillar-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.625rem;
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 24px rgba(13,43,78,0.08);
}

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

.pillar-icon {
  width: 38px;
  height: 38px;
  background: var(--steel-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}

.pillar-icon svg {
  width: 18px; height: 18px;
  stroke: var(--blue-dark);
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.125rem;
}

.pillar-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--transition), color var(--transition);
}

.pillar-link:hover { color: var(--gold); gap: 0.625rem; }

[dir="rtl"] .pillar-link { flex-direction: row-reverse; }

/* ============================================================
   WHY DARIBA
   ============================================================ */
.why-section { background: var(--cream); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.why-list { display: flex; flex-direction: column; gap: 1.375rem; }
.why-item { display: flex; gap: 1.125rem; align-items: flex-start; }
[dir="rtl"] .why-item { flex-direction: row-reverse; }

.why-item-icon {
  width: 34px; height: 34px;
  background: var(--blue-dark);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.125rem;
}

.why-item-icon svg {
  width: 15px; height: 15px;
  stroke: var(--gold-light);
  fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.why-item-text h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--blue-dark);
  margin-bottom: 0.3125rem;
}
.why-item-text p { font-size: 0.9375rem; color: var(--ink-muted); margin: 0; line-height: 1.65; }

/* Tax rate reference panel */
.why-visual {
  background: var(--blue-dark);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  color: var(--white);
}

.why-visual-header {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.375rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tax-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.tax-rate-row:last-child { border-bottom: none; }
.tax-rate-name { font-size: 0.9375rem; color: rgba(255,255,255,0.82); }
.tax-rate-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-light);
  background: rgba(230,201,106,0.1);
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LATEST INSIGHTS
   ============================================================ */
.insights-section { background: var(--parchment); }

.insight-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.insight-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 20px rgba(13,43,78,0.07);
}

.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 1.375rem 0;
}

.insight-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--steel-pale);
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-sm);
}

.insight-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.insight-card-body { padding: 0.875rem 1.375rem 1.375rem; }

.insight-card-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: var(--blue-dark);
}

.insight-card-body h3 a { color: var(--blue-dark); text-decoration: none; transition: color var(--transition); }
.insight-card-body h3 a:hover { color: var(--accent); }

.insight-card-body p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 1.125rem;
}

.read-more {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.read-more:hover { color: var(--gold); }

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.newsletter-section {
  background: var(--blue-dark);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.025) 39px,
    rgba(255,255,255,0.025) 40px
  );
  pointer-events: none;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) { .newsletter-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

.newsletter-inner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
}
.newsletter-inner p { color: rgba(255,255,255,0.55); margin: 0; font-size: 0.9375rem; font-style: italic; }

.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 0.6875rem 1.125rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.32); }
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  color: var(--ink-light);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.875rem;
  margin-bottom: 0;
  color: var(--ink-muted);
  max-width: 280px;
  font-style: italic;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.125rem;
}

[dir="rtl"] .footer-col h4 { font-family: var(--font-arabic); letter-spacing: 0; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col ul li a {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--blue-dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0;
}

.footer-legal { display: flex; gap: 1.375rem; }

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.footer-legal a:hover { color: var(--gold); }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ============================================================
   ARTICLE / SINGLE POST
   ============================================================ */

/* Article hero (uses page-hero styles above + additions) */
.article-hero-meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}
.article-hero-meta time { color: rgba(255,255,255,0.55); }

/* Table of contents bar — full-width strip */
.toc-wrap {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--gold);
  padding: 2.25rem 3rem;
}

.toc-inner { max-width: var(--content-width); margin: 0 auto; }

.toc-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.125rem;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 2rem;
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.375rem 0;
  text-decoration: none;
  color: var(--accent);
  font-size: 0.9375rem;
  border-bottom: 1px dotted var(--rule);
  transition: color var(--transition);
}

.toc-item:hover { color: var(--gold); }

.toc-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* Article layout with sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  padding-block: 3rem;
}

@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }

/* Article body — applies the post design system */
.article-body { max-width: var(--content-width); }

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.875rem;
  letter-spacing: -0.01em;
}

.article-body p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--ink-light); }

.article-body ul, .article-body ol {
  margin: 0 0 1.375rem 1.5rem;
  padding: 0;
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
  margin-inline-start: 0;
  margin-inline-end: 1.5rem;
}

.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--highlight-bg);
}

[dir="rtl"] .article-body blockquote {
  border-left: none;
  border-right: 3px solid var(--gold);
}

.article-body blockquote p { margin: 0; font-style: italic; color: var(--blue-dark); }

/* ─── SECTION BLOCKS (used in long-form post content) ─── */
.section-block { margin-bottom: 4rem; scroll-margin-top: 1.75rem; }

.section-block-header {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--rule);
}

.section-num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
}

/* ─── CALLOUT BOXES ─── */
.callout {
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  position: relative;
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  font-weight: 500;
}

.callout p { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.callout p:last-child { margin-bottom: 0; }

.callout-highlight { background: var(--highlight-bg); border-left: 4px solid var(--highlight-border); }
.callout-highlight .callout-title { color: var(--gold); }
.callout-warning { background: var(--warning-bg); border-left: 4px solid var(--warning-border); }
.callout-warning .callout-title { color: var(--red); }
.callout-tip { background: var(--tip-bg); border-left: 4px solid var(--tip-border); }
.callout-tip .callout-title { color: var(--green); }

/* ─── DATA TABLE ─── */
.data-table-wrap { overflow-x: auto; margin: 2rem 0; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }

.data-table thead tr { background: var(--blue-dark); color: #fff; }

.data-table thead th {
  padding: 0.875rem 1.125rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.data-table tbody tr { border-bottom: 1px solid var(--rule); }
.data-table tbody tr:nth-child(even) { background: var(--cream); }
.data-table tbody td { padding: 0.875rem 1.125rem; color: var(--ink-light); vertical-align: top; }
.data-table tbody td:first-child { font-weight: 600; color: var(--ink); }

/* ─── BADGES ─── */
.badge {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.badge-green { background: #d4edda; color: var(--green); }
.badge-red   { background: #fde8e6; color: var(--red); }
.badge-blue  { background: var(--steel-pale); color: var(--accent); }
.badge-gold  { background: var(--gold-pale); color: var(--gold); }
.badge-grey  { background: #ebebeb; color: #555; }

/* ─── SCENARIO BLOCK ─── */
.scenario {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.scenario-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.scenario p { font-size: 0.9375rem; margin-bottom: 0.625rem; }
.scenario p:last-child { margin-bottom: 0; }
.scenario strong { color: var(--ink); }

/* ─── PULL QUOTE ─── */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--blue-dark);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  text-align: center;
}

/* ─── RISK LIST ─── */
.risk-list { list-style: none; padding: 0; margin: 1.25rem 0; }

.risk-list li {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1rem;
  padding: 1rem 1.125rem;
  background: var(--warning-bg);
  border-left: 3px solid var(--red);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-light);
}

.risk-list li::before {
  content: '⚠';
  flex-shrink: 0;
  color: var(--red);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* ─── CHECKLIST ─── */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '□'; font-size: 0.9375rem; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* ─── KEY TAKEAWAYS BOX ─── */
.takeaways {
  background: var(--blue-dark);
  color: #fff;
  padding: 2.5rem;
  margin-top: 3rem;
  border-radius: var(--radius-sm);
}

.takeaways-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.takeaways ol { list-style: none; padding: 0; counter-reset: takeaway; }

.takeaways ol li {
  counter-increment: takeaway;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.takeaways ol li::before {
  content: counter(takeaway, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold-light);
  flex-shrink: 0;
  padding-top: 3px;
}

/* ─── READ NEXT ─── */
.read-next {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin-top: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.read-next-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3125rem;
}

.read-next-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.read-next-arrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  padding: 0.4375rem 1rem;
  transition: all var(--transition);
}

.read-next-arrow:hover { background: var(--accent); color: #fff; }

/* ─── DIVIDER ─── */
.divider { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 84px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.375rem;
  margin-bottom: 1.375rem;
}

.sidebar-widget h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.125rem;
}

.toc-list { display: flex; flex-direction: column; gap: 0.375rem; }

.toc-list a {
  font-size: 0.875rem;
  color: var(--ink-light);
  padding: 0.3125rem 0.625rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

[dir="rtl"] .toc-list a { border-left: none; border-right: 2px solid transparent; }

.toc-list a:hover, .toc-list a.active {
  background: var(--cream);
  color: var(--blue-dark);
  border-color: var(--gold);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-mission { padding-block: 4.5rem; background: var(--white); }

.mission-text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--blue-dark);
  line-height: 1.6;
  font-weight: 400;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1.625rem;
  margin-bottom: 2.25rem;
}

[dir="rtl"] .mission-text {
  border-left: none;
  border-right: 3px solid var(--gold);
  padding-left: 0;
  padding-right: 1.625rem;
  font-family: var(--font-arabic);
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; margin-top: 2.5rem; }

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

.value-card {
  padding: 1.625rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.value-number {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.value-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.4375rem; }
.value-card p  { font-size: 0.9375rem; color: var(--ink-muted); margin: 0; }

/* ============================================================
   TAX TOPICS PAGE
   ============================================================ */
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }

@media (max-width: 900px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }

.topic-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.625rem;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.topic-card:hover {
  border-color: var(--blue-dark);
  box-shadow: 0 8px 32px rgba(13,43,78,0.1);
  transform: translateY(-2px);
}

.topic-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.topic-card:hover .topic-card-accent { opacity: 1; }

.topic-rate {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--blue-dark);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.topic-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.topic-card p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.125rem;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.topic-article-count {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resources-section { background: var(--parchment); padding-block: 4.5rem; }

.resource-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.625rem;
  display: flex;
  gap: 1.375rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.resource-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 20px rgba(13,43,78,0.07);
}

.resource-icon {
  width: 44px; height: 56px;
  background: var(--blue-dark);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.resource-icon svg {
  width: 20px; height: 20px;
  stroke: var(--gold-light);
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.resource-body { flex: 1; }

.resource-type {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4375rem;
  display: block;
}

.resource-body h3 { font-family: var(--font-display); font-size: 1.0625rem; margin-bottom: 0.4375rem; }
.resource-body p  { font-size: 0.9375rem; color: var(--ink-muted); margin-bottom: 0.875rem; }
.resource-actions { display: flex; gap: 0.625rem; align-items: center; }

.resource-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  background: var(--gold-pale);
  color: var(--blue-dark);
}

/* ============================================================
   ADVISORY PAGE
   ============================================================ */
.advisory-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding-block: 4.5rem;
}

@media (max-width: 800px) { .advisory-hero-split { grid-template-columns: 1fr; } }

.services-list { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 2.25rem; }

.service-item {
  display: flex;
  gap: 1.125rem;
  padding: 1.125rem 1.375rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--transition);
}

.service-item:hover { border-color: var(--accent); background: var(--steel-pale); }
[dir="rtl"] .service-item { flex-direction: row-reverse; }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gold);
  min-width: 22px;
  margin-top: 2px;
}

.service-item h4 { font-family: var(--font-display); font-size: 0.9375rem; margin-bottom: 0.1875rem; }
.service-item p  { font-size: 0.875rem; color: var(--ink-muted); margin: 0; }

.advisory-form-card {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.advisory-form-card h3 { color: var(--white); margin-bottom: 0.4375rem; }
.advisory-form-card > p { color: rgba(255,255,255,0.55); margin-bottom: 1.75rem; font-size: 0.9375rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3.5rem;
  padding-block: 4.5rem;
}

@media (max-width: 800px) { .contact-split { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 0.875rem; }
.contact-info p  { color: var(--ink-muted); margin-bottom: 1.75rem; }

.contact-detail { display: flex; gap: 0.75rem; margin-bottom: 1.125rem; align-items: flex-start; }
[dir="rtl"] .contact-detail { flex-direction: row-reverse; }

.contact-detail-icon {
  width: 34px; height: 34px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 15px; height: 15px;
  stroke: var(--blue-dark);
  fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.contact-detail-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.125rem;
}

.contact-detail-text a,
.contact-detail-text p { font-size: 0.9375rem; color: var(--ink); margin: 0; }

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group { margin-bottom: 1.125rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4375rem;
}

[dir="rtl"] .form-group label { font-family: var(--font-arabic); letter-spacing: 0; }

.form-control {
  width: 100%;
  padding: 0.6875rem 0.9375rem;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}

[dir="rtl"] .form-control { font-family: var(--font-arabic); text-align: right; }

.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--ink-muted); }

textarea.form-control { resize: vertical; min-height: 110px; line-height: 1.6; }
select.form-control { cursor: pointer; }

/* Dark form variant */
.form-dark .form-group label { color: rgba(255,255,255,0.65); }
.form-dark .form-control {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}
.form-dark .form-control:focus { border-color: var(--gold); }
.form-dark .form-control::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.6875rem 0.9375rem;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
}

.search-form button {
  padding: 0.6875rem 1.125rem;
  background: var(--blue-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

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

.search-form button svg {
  width: 16px; height: 16px;
  stroke: var(--white);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 0.3125rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.page-numbers {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  transition: all var(--transition);
}

.page-numbers:hover, .page-numbers.current {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

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

.gold { color: var(--gold); }
.slate { color: var(--blue-dark); }
.muted { color: var(--ink-muted); }

.bg-slate   { background: var(--blue-dark); }
.bg-surface { background: var(--cream); }
.bg-white   { background: var(--white); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--radius-md); }

.alignleft { float: left; margin-right: 2rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 2rem; margin-bottom: 1rem; }
.aligncenter { margin-inline: auto; text-align: center; }

[dir="rtl"] .alignleft { float: right; margin-right: 0; margin-left: 2rem; }
[dir="rtl"] .alignright { float: left; margin-left: 0; margin-right: 2rem; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--ink-muted); text-align: center; margin-top: 0.5rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  #site-header, #site-footer, .article-sidebar, .newsletter-section { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  body { color: #000; }
  a { color: #000; }
}
