:root {
  --ink: #102434;
  --ink-2: #2b3e4f;
  --muted: #5d6d7c;
  --line: #e2e7ec;
  --bg: #ffffff;
  --soft: #f4f6f5;
  --cream: #faf8f3;
  --accent: #1c6b52;
  --accent-dark: #145440;
  --accent-soft: #e6f1ec;
  --gold: #a7802f;
  --warn-bg: #fbf6ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 52, .06), 0 8px 24px rgba(16, 36, 52, .06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #7fb8a4; outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.soft { background: var(--soft); }
.section.cream { background: var(--cream); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; font-family: var(--sans); line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d2da; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .95rem; font-family: var(--serif); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 8px 11px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.nav .btn { margin-left: 8px; color: #fff; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 20px 20px; box-shadow: var(--shadow); }
.menu-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--cream), #fff); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.trust span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; transition: transform .15s; }
.feature-card:hover { transform: translateY(-2px); }
.feature-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-card .body { padding: 20px 22px 24px; }
.feature-card h3 { margin: 6px 0 8px; font-size: 1.3rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin: 0; color: var(--ink); }
.post-card .excerpt { color: var(--muted); font-size: .94rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: .84rem; color: var(--muted); }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

.topic-card { display: block; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.topic-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.topic-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.topic-card h3 { margin-bottom: 6px; }
.topic-card p { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.topic-card .count { font-size: .85rem; font-weight: 600; color: var(--ink); }

.platform-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; gap: 10px; }
.platform-card h3 { margin: 0; font-family: var(--sans); font-size: 1.12rem; font-weight: 700; }
.platform-card .kind { font-size: .82rem; color: var(--muted); font-weight: 500; }
.platform-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.platform-card .facts { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; font-size: .9rem; }
.platform-card .facts li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.platform-card .facts b { color: var(--ink); font-weight: 600; text-align: right; }
.platform-card .bonus { align-self: flex-start; background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.platform-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }

.notice { background: var(--warn-bg); border: 1px solid #efe2bf; border-radius: 12px; padding: 14px 18px; font-size: .88rem; color: #5a4a22; }
.notice strong { color: #3f3313; }

/* Pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; background: #fff; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Page header */
.page-head { padding: 56px 0 36px; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Article */
.article-head { padding: 48px 0 28px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 8px 0 14px; }
.article-head .meta { font-size: .92rem; }
.cover { max-width: 1000px; margin: 0 auto 8px; padding: 0 20px; }
.cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; }
@media (max-width: 620px) { .cover img { max-height: 45vh; } }
.prose { font-size: 1.07rem; line-height: 1.75; color: #24323f; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.7rem; margin: 1.9em 0 .4em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .3em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.12rem; margin: 1.4em 0 .3em; font-family: var(--sans); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose li { margin: .35em 0; }
.prose li > p { margin: 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 12px; margin: 0 auto; }
.prose figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.prose tr:first-child td { background: var(--soft); font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose td p { margin: 0; }
.prose td h1, .prose td h2, .prose td h3, .prose td h4, .prose td h5, .prose td h6 { margin: 0; font-size: 1rem; font-family: var(--sans); }
.prose .cta { margin: 1.6em 0; }
.prose .embed { margin: 1.6em 0; }
.prose .embed iframe { width: 100%; min-height: 360px; border: 1px solid var(--line); border-radius: 12px; }
.prose a { word-break: break-word; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); text-decoration: none; }
.chip:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Newsletter */
.newsletter { background: var(--ink); color: #d7e0e8; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { margin: 0; }
.newsletter .wix-form label { color: #d7e0e8; }
.newsletter .wix-form input { background: #fff; }
.newsletter .form-success { color: #fff; }
.newsletter .field-error { color: #ffc7bd; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Forms */
.wix-form { display: grid; gap: 16px; }
.wix-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .wix-form .row-2 { grid-template-columns: 1fr; } }
.wix-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.wix-form .req { color: #b4432f; margin-left: 2px; }
.wix-form input, .wix-form textarea, .wix-form select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cdd5dc; border-radius: 10px; background: #fff; color: var(--ink); }
.wix-form textarea { min-height: 150px; resize: vertical; }
.wix-form input:focus, .wix-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(28, 107, 82, .18); }
.wix-form [aria-invalid="true"] { border-color: #b4432f; }
.field-help { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.field-error { font-size: .85rem; color: #b4432f; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.form-error { background: #fdecea; color: #8a2a1a; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.form-error:empty { display: none; }
.form-success { font-size: 1.05rem; font-weight: 500; padding: 8px 0; }
.form-skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, #eef1f3, #f6f8f9, #eef1f3); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Team */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.team-card p { color: var(--muted); font-size: .96rem; }

.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; font-size: .96rem; }
.info-list strong { display: block; color: var(--ink); }

/* Footer */
.site-footer { background: #0c1c29; color: #a9b7c3; padding: 56px 0 28px; font-size: .92rem; margin-top: 0; }
.site-footer a { color: #d7e0e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-mark { background: #fff; color: var(--ink); }
.legal { border-top: 1px solid #22384a; margin-top: 40px; padding-top: 22px; display: grid; gap: 10px; font-size: .82rem; color: #8b9cab; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
/* ---- i18n: language switcher + RTL ---- */
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .86rem; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.lang summary::-webkit-details-marker { display: none; }
.lang-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 170px; z-index: 60; }
.lang[open] .lang-panel { display: grid; }
.lang-panel a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.lang-panel a:hover, .lang-panel a[aria-current="true"] { background: var(--soft); font-weight: 600; }
[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--sans); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "Noto Sans Arabic", var(--serif); letter-spacing: 0; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 3px solid var(--accent); padding: 4px 22px 4px 0; font-family: "Noto Sans Arabic", var(--serif); }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] .link-more::after { content: " ←"; }
[dir="rtl"] .trust span::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .wix-form .req { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .lang-panel { right: auto; left: 0; }
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 8px; }
.nav a, .brand { white-space: nowrap; }
@media (max-width: 1240px) {
  html:not([lang="en"]) .nav { display: none; }
  html:not([lang="en"]) .menu { display: block; }
}