/*
Theme Name: NGO Committee on FoRB
Theme URI: https://web.ngoforbgeneva.org
Description: WordPress theme for the NGO Committee on Freedom of Religion or Belief (Geneva & New York). Features: 6 UN languages (EN/FR/ES/RU/AR/ZH), full Customizer editability, news/blog section with professional post layout, resources page, RTL support, responsive design.
Author: NGO Committee on FoRB
Version: 2.3.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngoforb
Domain Path: /languages
Tags: custom-colors, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, blog, news
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'Noto Naskh Arabic', sans-serif;
  color: #1C1F2A;
  background: #0B1A3E;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Noto Naskh Arabic', serif;
  font-weight: 600;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --navy: #0B1A3E;
  --navy-light: #15224A;
  --accent: #2BB5E3;
  --offwhite: #F5F3EF;
  --text-dark: #1C1F2A;
  --text-secondary: #5C6174;
  --text-muted: #7A82A0;
  --max-width: 1100px;
  --section-pad-x: 6vw;
  --section-pad-y: 120px;
}

/* ===== LANGUAGE RTL (Arabic) ===== */
body:lang(ar),
body[data-lang="ar"] {
  font-family: 'Noto Naskh Arabic', 'Inter', sans-serif;
}
body:lang(ar) h1, body:lang(ar) h2, body:lang(ar) h3,
body[data-lang="ar"] h1, body[data-lang="ar"] h2, body[data-lang="ar"] h3 {
  font-family: 'Noto Naskh Arabic', 'Playfair Display', serif;
}
body:lang(zh), body[data-lang="zh"] {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

/* ===== TYPOGRAPHY ===== */
.label-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-pad-x);
  background: rgba(11, 26, 62, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(11, 26, 62, 0.95);
}
.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a, .nav-links button {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  transition: color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }

/* Language dropdown */
.lang-dropdown {
  position: relative;
}
.lang-toggle {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(11, 26, 62, 0.98);
  border: 1px solid rgba(43, 181, 227, 0.2);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 140px;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  display: block;
}
.lang-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.lang-menu a:hover,
.lang-menu a.active {
  color: var(--accent);
  background: rgba(43, 181, 227, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F3EF;
  transition: all 0.3s ease;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a, .mobile-nav button {
  font-size: 20px;
  color: #F5F3EF;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: #F5F3EF;
  background: none;
  border: none;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: var(--navy);
}
.hero-content {
  text-align: center;
  padding: 12vh var(--section-pad-x);
  max-width: 720px;
}
.hero-label {
  display: block;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-logo {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  color: #F5F3EF;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.pill-btn {
  display: inline-block;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: 1px solid var(--accent);
  border-radius: 9999px;
  padding: 14px 40px;
  background: transparent;
  color: var(--accent);
  transition: all 0.3s ease;
  cursor: pointer;
}
.pill-btn:hover {
  background: var(--accent);
  color: var(--navy);
}
.pill-btn-solid {
  display: inline-block;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 9999px;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--navy);
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
}
.pill-btn-solid:hover {
  background: transparent;
  color: var(--accent);
}

/* ===== SECTIONS ===== */
.section-dark {
  background: var(--navy);
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section-light {
  background: var(--offwhite);
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section-gradient {
  background: linear-gradient(180deg, #0B1A3E 0%, #15224A 100%);
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) var(--section-pad-x);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== TWO COLUMNS ===== */
.two-cols {
  display: flex;
  gap: 56px;
  align-items: center;
}
.two-cols .col-text { flex: 0 0 45%; }
.two-cols .col-image { flex: 0 0 55%; }
.two-cols.reverse .col-text { flex: 0 0 45%; order: 2; }
.two-cols.reverse .col-image { flex: 0 0 55%; order: 1; }

.col-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.section-light .col-image img {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.section-label {
  display: block;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 24px;
  line-height: 1.15;
}
.section-dark .section-title,
.section-gradient .section-title { color: #F5F3EF; }
.section-light .section-title { color: var(--text-dark); }
.section-body {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.section-dark .section-body,
.section-gradient .section-body { color: var(--text-muted); }
.section-light .section-body { color: var(--text-secondary); }

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(43, 181, 227, 0.15);
  border-top: 2px solid var(--accent);
  border-radius: 16px;
  padding: 40px 32px;
}
.card-title {
  font-size: 24px;
  color: #F5F3EF;
  margin-bottom: 16px;
}
.card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* News thumbnail */
.news-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  margin: 40px 0;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
}
body:lang(ar) .pull-quote,
body[data-lang="ar"] .pull-quote {
  padding-left: 0;
  padding-right: 32px;
  border-left: none;
  border-right: 3px solid var(--accent);
}
.pull-quote p {
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ===== MEMBERS ===== */
.members-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
/* ===== MEMBER LOGO GRID (CPT-based) ===== */
.members-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.member-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 20px 16px 14px;
  min-height: 150px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: default;
}
a.member-logo-card {
  cursor: pointer;
}
a.member-logo-card:hover {
  border-color: rgba(43, 181, 227, 0.4);
  box-shadow: 0 6px 24px rgba(43, 181, 227, 0.1);
  transform: translateY(-3px);
}
.member-logo-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70px;
}
.member-logo-card img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.member-logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: left;
}
.member-logo-name {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.members-multicol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
}
.member-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-dark);
  padding: 5px 0;
}
.member-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.member-item .dot.ecosoc { background: var(--accent); }
.member-item .dot.other { background: var(--text-secondary); }
.members-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.members-label { display: block; margin-bottom: 4px; }
.members-label.ecosoc { color: var(--accent); }
.members-label.other { color: var(--text-secondary); }

/* ===== BUREAU ===== */
.bureau-intro {
  text-align: center;
  margin-bottom: 56px;
}
.bureau-intro .section-body {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.bureau-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bureau-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(43, 181, 227, 0.2);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
}
.bureau-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  border: 2px solid rgba(43, 181, 227, 0.4);
}
.bureau-role {
  display: block;
  color: var(--accent);
  margin-bottom: 12px;
}
.bureau-name {
  font-size: 24px;
  color: #F5F3EF;
  margin-bottom: 16px;
}
.bureau-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact-section { text-align: center; }
.contact-section .section-body {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}
.contact-links a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  padding: 80px var(--section-pad-x) 40px;
  position: relative;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col .label-mono {
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: #F5F3EF; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom span {
  font-size: 13px;
  color: #5C6174;
}

/* ===== HOMEPAGE NEWS SECTION ===== */
.section-news {
  background: var(--offwhite);
  padding: var(--section-pad-y) var(--section-pad-x);
}
.section-news .section-title { color: var(--text-dark); }
.section-news .section-body { color: var(--text-secondary); }
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.news-header-text { flex: 1; min-width: 280px; }
.news-header-text .section-body { max-width: 600px; margin-bottom: 0; }
.news-header-btn { flex-shrink: 0; margin-bottom: 4px; }

/* ===== RESOURCES PAGE - REDESIGNED ===== */
.resources-page {
  background: var(--offwhite);
  min-height: 100vh;
  padding-top: 64px;
}
.resources-page-header {
  padding: 64px var(--section-pad-x) 48px;
  background: var(--navy);
  margin-bottom: 0;
}
.resources-page-header .section-title {
  color: #F5F3EF;
}
.resources-page-header .section-body {
  color: var(--text-muted);
  max-width: 800px;
}
.resources-page-header .section-body a {
  color: var(--accent);
  text-decoration: underline;
}
.resources-content {
  padding: 64px var(--section-pad-x) 100px;
  background: var(--offwhite);
}
.resources-year-group {
  margin-bottom: 56px;
}
.resources-year-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.resource-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(43, 181, 227, 0.12);
  transform: translateY(-3px);
}
.resource-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(43, 181, 227, 0.1);
  color: var(--accent);
}
.resource-tag-visit {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.resource-tag-thematic {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}
.resource-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}
.resource-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.resource-date {
  display: block;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== NEWS / ARCHIVE - REDESIGNED ===== */
.news-archive {
  background: var(--offwhite);
  min-height: 100vh;
  padding-top: 64px;
}
.news-archive-hero {
  padding: 64px var(--section-pad-x) 48px;
  background: var(--navy);
}
.news-archive-hero .section-title {
  color: #F5F3EF;
}
.news-archive-hero .section-body {
  color: var(--text-muted);
}
.news-archive-body {
  padding: 64px var(--section-pad-x) 100px;
  background: var(--offwhite);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
}
.news-card:hover {
  border-color: rgba(43, 181, 227, 0.35);
  box-shadow: 0 12px 40px rgba(43, 181, 227, 0.1);
  transform: translateY(-4px);
}
.news-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--navy);
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-image img {
  transform: scale(1.05);
}
.news-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0B1A3E 0%, #15224A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-image-placeholder span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(43, 181, 227, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}
.news-card-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.news-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.3s ease;
}
.news-card:hover .news-card-readmore {
  gap: 10px;
}

/* Homepage news section overrides */
.section-news .news-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
}
.section-news .news-card:hover {
  border-color: rgba(43, 181, 227, 0.35);
  box-shadow: 0 12px 40px rgba(43, 181, 227, 0.1);
}
.section-news .news-card-title {
  color: var(--text-dark);
}
.section-news .news-card-excerpt {
  color: var(--text-secondary);
}
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.3s ease;
}
.news-pagination a:hover {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.news-pagination span.current {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  font-weight: 600;
}
.news-empty {
  text-align: center;
  padding: 80px 0;
}
.news-empty p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ===== SINGLE POST - CINEMATIC ===== */
.single-post-wrap {
  background: var(--offwhite);
  min-height: 100vh;
}

/* Cinematic hero: full-width image with title overlay */
.post-cinematic-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  background: var(--navy);
}
.post-cinematic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.post-cinematic-noimg {
  background: linear-gradient(135deg, #0B1A3E 0%, #15224A 50%, #0B1A3E 100%);
}
.post-cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 26, 62, 0.3) 0%,
    rgba(11, 26, 62, 0.1) 30%,
    rgba(11, 26, 62, 0.5) 60%,
    rgba(11, 26, 62, 0.92) 100%
  );
}
.post-cinematic-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 var(--section-pad-x) 48px;
  z-index: 2;
}
.post-cinematic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.post-cinematic-breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.25s ease;
}
.post-cinematic-breadcrumb a:hover {
  color: var(--accent);
}
.post-cinematic-breadcrumb span {
  color: rgba(255,255,255,0.25);
}
.post-cinematic-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-cinematic-cat {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(43, 181, 227, 0.2);
  color: #F5F3EF;
  border: 1px solid rgba(43, 181, 227, 0.3);
  backdrop-filter: blur(4px);
}
.post-cinematic-title {
  font-size: clamp(28px, 4.5vw, 52px);
  color: #F5F3EF;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.post-cinematic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-cinematic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.post-cinematic-meta svg {
  opacity: 0.5;
}

/* Article content */
.post-article {
  padding: 56px var(--section-pad-x) 0;
}
.post-article-inner {
  max-width: 780px;
  margin: 0 auto;
}
.post-article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.post-article-body p {
  margin-bottom: 20px;
}
.post-article-body h2,
.post-article-body h3,
.post-article-body h4 {
  color: var(--text-dark);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.post-article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-article-body a:hover {
  color: #1a9bc4;
}
.post-article-body img {
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-width: 100%;
  height: auto;
}
.post-article-body blockquote {
  margin: 28px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(43, 181, 227, 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-dark);
}
.post-article-body ul,
.post-article-body ol {
  margin: 16px 0;
  padding-left: 28px;
}
.post-article-body ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.post-article-body ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

/* Tags */
.post-article-tags {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Share bar */
.post-share-bar {
  margin-top: 28px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-share-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 6px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.post-share-btn:hover {
  transform: translateY(-2px);
}
.post-share-btn.share-x:hover { background: #000; color: #fff; border-color: #000; }
.post-share-btn.share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.post-share-btn.share-li:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.post-share-btn.share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.post-share-btn.share-tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.post-share-btn.share-email:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); }

/* Author section */
.post-author-section {
  padding: 48px var(--section-pad-x) 0;
}
.post-author-card {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
}
.post-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}
.post-author-info {
  display: flex;
  flex-direction: column;
}
.post-author-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}
.post-author-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.post-author-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Prev / Next section */
.post-prev-next-section {
  padding: 48px var(--section-pad-x) 0;
}
.post-prev-next {
  display: flex;
  gap: 24px;
}
.post-prev,
.post-next {
  flex: 1 1 50%;
  min-width: 0;
}
.post-next {
  text-align: right;
}
.post-next .post-nav-link {
  align-items: flex-end;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.post-nav-link:hover {
  border-color: rgba(43, 181, 227, 0.4);
  box-shadow: 0 4px 20px rgba(43, 181, 227, 0.08);
}
.post-nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.post-nav-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Related articles */
.post-related-section {
  padding: 64px var(--section-pad-x) 80px;
}
.post-related-heading {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-dark);
  margin-bottom: 36px;
  text-align: center;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad-y: 80px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  .two-cols { flex-direction: column !important; }
  .two-cols .col-text,
  .two-cols .col-image { flex: 1 1 100% !important; order: unset !important; }
  .cards-grid { grid-template-columns: 1fr; }
  .bureau-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .members-multicol { grid-template-columns: 1fr; }
  .members-logo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .member-logo-card { padding: 16px 12px; min-height: 90px; }
  .member-logo-card img { max-height: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .contact-links { flex-direction: column; gap: 16px; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-image { height: 180px; }
  .resources-grid { grid-template-columns: 1fr; }
  .post-cinematic-hero { height: 45vh; min-height: 320px; }
  .post-cinematic-title { font-size: 26px; }
  .post-cinematic-content { padding-bottom: 32px; }
  .post-article { padding-top: 40px; }
  .post-author-card { flex-direction: column; align-items: center; text-align: center; }
  .post-author-avatar { width: 60px; height: 60px; }
  .post-prev-next { flex-direction: column; }
  .post-next { text-align: left; }
  .post-next .post-nav-link { align-items: flex-start; }
  .post-related-section { padding-top: 40px; padding-bottom: 60px; }
  .news-archive-body,
  .resources-content { padding-top: 40px; padding-bottom: 60px; }
}

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}

/* ===== SOLID NAV ON SUBPAGES ===== */
body.subpage .site-nav {
  background: var(--navy);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(43, 181, 227, 0.12);
}
body.subpage .site-nav.scrolled {
  background: var(--navy);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===== BREADCRUMB ===== */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  font-size: 13px;
}
.post-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.post-breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb-sep {
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}
.breadcrumb-current {
  color: rgba(255,255,255,0.5);
}

/* ===== SINGLE POST - LAYOUT ===== */
.single-post-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.single-post-content {
  flex: 1 1 65%;
  min-width: 0;
}
.post-sidebar {
  flex: 0 0 320px;
  position: sticky;
  top: 90px;
}

/* ===== POST CATEGORY BADGES ===== */
.post-categories-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 16px;
}
.post-cat-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(43, 181, 227, 0.15);
  color: var(--accent);
  border: 1px solid rgba(43, 181, 227, 0.25);
}

/* ===== POST META ROW ===== */
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.post-meta-item svg {
  opacity: 0.6;
}

/* ===== POST TAGS ===== */
.post-tags-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.post-tags-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}
.post-tag-link {
  display: inline-block;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(43, 181, 227, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(43, 181, 227, 0.15);
  transition: all 0.25s ease;
}
.post-tag-link:hover {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

/* ===== POST SHARE ===== */
.post-share-section {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-share-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.post-share-btn:hover {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.sidebar-author {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-author-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.sidebar-author-bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.sidebar-links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: color 0.2s ease;
}
.sidebar-links a:last-child {
  border-bottom: none;
}
.sidebar-links a:hover {
  color: var(--accent);
}
.sidebar-recent-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  align-items: flex-start;
}
.sidebar-recent-item:last-child {
  border-bottom: none;
}
.sidebar-recent-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-recent-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}
.sidebar-recent-item:hover .sidebar-recent-title {
  color: var(--accent);
}
.sidebar-recent-date {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== PREV / NEXT NAVIGATION ===== */
.post-prev-next {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.post-prev,
.post-next {
  flex: 1 1 50%;
  min-width: 0;
}
.post-next {
  text-align: right;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}
.post-nav-link:hover {
  border-color: rgba(43, 181, 227, 0.35);
  box-shadow: 0 4px 16px rgba(43, 181, 227, 0.08);
}
.post-nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.post-nav-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== BACK ROW ===== */
.post-back-row {
  margin-top: 40px;
  text-align: center;
}

/* ===== RESOURCES ABOUT BOX ===== */
.resources-about-box {
  margin-top: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 800px;
}
.resources-about-box a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s ease;
  margin-bottom: 8px;
}
.back-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .resources-about-box {
    padding: 16px;
    font-size: 14px;
  }
}

/* ===== RTL SUPPORT ===== */
body:lang(ar) .resources-about-box,
body[data-lang="ar"] .resources-about-box {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 10px 0 0 10px;
  text-align: right;
}
body:lang(ar) .post-next,
body[data-lang="ar"] .post-next {
  text-align: left;
}
body:lang(ar) .post-next .post-nav-link,
body[data-lang="ar"] .post-next .post-nav-link {
  align-items: flex-start;
}
body:lang(ar) .post-author-card,
body[data-lang="ar"] .post-author-card {
  flex-direction: row-reverse;
}
body:lang(ar) .post-article-body ul,
body:lang(ar) .post-article-body ol,
body[data-lang="ar"] .post-article-body ul,
body[data-lang="ar"] .post-article-body ol {
  padding-left: 0;
  padding-right: 28px;
}
body:lang(ar) .post-article-body blockquote,
body[data-lang="ar"] .post-article-body blockquote {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 8px 0 0 8px;
}
