/* ===================== المتغيرات ===================== */
/* الألوان والخطوط الأساسية تُضبط من لوحة التحكم */
:root {
  --primary: #0f3d3e;
  --accent: #c8a45c;
  --bg: #faf8f4;
  --text: #1e2324;
  --primary-dark: color-mix(in srgb, var(--primary) 68%, #000);
  --accent-dark: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --surface: #ffffff;
  --muted: color-mix(in srgb, var(--text) 62%, #fff);
  --border: color-mix(in srgb, var(--text) 10%, var(--bg));
  --radius: 14px;
  --shadow: 0 8px 30px color-mix(in srgb, var(--primary) 9%, transparent);
  --shadow-lg: 0 18px 50px color-mix(in srgb, var(--primary) 18%, transparent);
  --header-h: 76px;
  --font: "Tajawal", system-ui, sans-serif;
  --hero-font: var(--font);
  --hero-size-d: 96;
  --hero-size-m: 56;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[dir="ltr"] body { line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.section { padding: 90px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* خلفيات الأقسام */
.bg-alt { background: var(--surface); }
.bg-tint { background: var(--accent-soft); }
.bg-dark { background: var(--primary-dark); color: #fff; }
.bg-dark .section-head h2, .bg-dark .block-title, .bg-dark .rich h2, .bg-dark .rich h3 { color: #fff; }
.bg-dark .section-head p, .bg-dark .rich { color: rgba(255,255,255,.85); }
.bg-dark a:not(.btn) { color: var(--accent); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--primary); }
.section-head h2::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: var(--accent); margin: 14px auto 0; border-radius: 2px;
}
.section-head p { color: var(--muted); max-width: 640px; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; transition: all .25s; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); color: #fff; }
.bg-dark .btn-dark { background: var(--accent); color: var(--primary-dark); }
.center { text-align: center; margin-top: 44px; }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1.8;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 1px 12px; border-radius: 20px;
}
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; grid-column: 1 / -1; }
.noimg { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .6; }

/* ===================== الهيدر ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.site-header.scrolled, .site-header.solid {
  background: color-mix(in srgb, var(--primary-dark) 96%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.15); height: 66px;
}
.site-header.solid + main { padding-top: 66px; }
.logo { color: #fff; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--primary-dark);
  display: grid; place-items: center; font-size: 1.15rem;
}
.logo-img { height: 42px; width: auto; }
.header-end { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: rgba(255,255,255,.88); font-weight: 600;
  padding: 8px 16px; border-radius: 30px; transition: all .2s; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav a.active { color: var(--primary-dark); background: var(--accent); }
.lang-switch {
  color: #fff; font-weight: 700; font-size: .9rem; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1.5px solid rgba(255,255,255,.45); border-radius: 30px; display: grid; place-items: center;
}
.lang-switch:hover { color: var(--primary-dark); background: var(--accent); border-color: var(--accent); }
.nav .lang-switch-mobile { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .header-end > .lang-switch { display: none; }
  .nav .lang-switch-mobile { display: block; margin-top: 16px; border: 1.5px solid rgba(255,255,255,.3); text-align: center; }
  .nav {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
    width: min(290px, 82vw); flex-direction: column; padding: 90px 24px 24px;
    background: var(--primary-dark); transition: transform .3s; box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
  }
  [dir="ltr"] .nav { transform: translateX(100%); }
  .nav a { font-size: 1.1rem; }
  .site-header.nav-open .nav { transform: none; }
  .site-header.nav-open { backdrop-filter: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ===================== البانر الرئيسي ===================== */
.hero {
  --overlay: .55;
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; overflow: hidden;
  background: var(--primary-dark) center / cover no-repeat;
}
.hero-large { min-height: 78vh; min-height: 78svh; }
.hero-medium { min-height: 60vh; min-height: 60svh; padding-top: var(--header-h); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,calc(var(--overlay) * .9)) 0%, rgba(0,0,0,calc(var(--overlay) * .6)) 45%, rgba(0,0,0,var(--overlay)) 100%),
              color-mix(in srgb, var(--primary-dark) calc(var(--overlay) * 60%), transparent);
}
.hero-content { position: relative; padding: 0 16px; animation: fadeUp 1s ease both; max-width: 1000px; }
.hero .eyebrow { color: var(--accent); font-weight: 700; margin-bottom: 4px; font-size: 1.1rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0,0,0,.3); }
.hero .hero-name {
  font-family: var(--hero-font);
  font-size: clamp(calc(var(--hero-size-m) * 1px), calc(var(--hero-size-m) * 1px + (var(--hero-size-d) - var(--hero-size-m)) * (100vw - 380px) / 1020), calc(var(--hero-size-d) * 1px));
  color: var(--hero-color, #fff);
  font-weight: var(--hero-weight, 400);
  letter-spacing: var(--hero-spacing, 0);
  line-height: var(--hero-line, 1.4);
  text-shadow: var(--hero-shadow);
  margin-bottom: 16px;
}
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); opacity: .92; max-width: 660px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-down {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px;
}
.scroll-down::after {
  content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 26px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.notfound h1 { font-size: 6rem; }

/* ترويسة الصفحات الداخلية */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 70px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) center / cover;
  position: relative; overflow: hidden;
}
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary-dark) 72%, transparent); }
.page-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent); top: -160px; inset-inline-end: -120px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { opacity: .85; margin: 0; }

/* ===================== المحتوى المنسق ===================== */
.rich > :last-child { margin-bottom: 0; }
.rich img { border-radius: var(--radius); margin: 1.4em auto; height: auto; }
.rich h2 { color: var(--primary); font-size: 1.6rem; margin-top: 1.4em; }
.rich h3 { color: var(--primary); font-size: 1.3rem; margin-top: 1.2em; }
.rich ul, .rich ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.rich blockquote {
  margin: 1.6em 0; padding: 18px 26px; background: var(--surface);
  border-inline-start: 4px solid var(--accent); border-radius: 8px;
  font-size: 1.2rem; font-weight: 700; color: var(--primary);
}
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich iframe { max-width: 100%; }
.rich .ql-align-center { text-align: center; }
.rich .ql-align-right { text-align: right; }
.rich .ql-align-left { text-align: left; }
.rich .ql-align-justify { text-align: justify; }
.rich .ql-size-small { font-size: .85em; }
.rich .ql-size-large { font-size: 1.4em; }
.rich .ql-size-huge { font-size: 2em; }
.rich pre { background: #1e2324; color: #eee; padding: 16px; border-radius: 8px; overflow-x: auto; direction: ltr; }
.block-title { color: var(--primary); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.text-block.align-center { text-align: center; }

/* ===================== نبذة ===================== */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.about.no-img { grid-template-columns: 1fr; max-width: 820px; }
.about-img { position: relative; isolation: isolate; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-img::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 3px solid var(--accent); border-radius: var(--radius); z-index: -1;
}
.about h2 { color: var(--primary); font-size: 2rem; margin-top: 10px; }
.bg-dark .about h2 { color: #fff; }
.stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 2rem; color: var(--accent-dark); line-height: 1.2; }
.bg-dark .stats strong { color: var(--accent); }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about-img { max-width: 340px; margin-inline: auto; width: 100%; }
}

/* ===================== الأبرز ===================== */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 20px; }
.featured-grid > :first-child { grid-column: span 2; grid-row: span 2; }
.featured-grid.n1 > :first-child { grid-column: 1 / -1; }
.featured-grid.n2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 380px; }
.featured-grid.n2 > :first-child { grid-column: auto; grid-row: auto; }
.featured-grid.n3 > :nth-child(n+2) { grid-column: span 2; }
.featured-grid.n4 > :nth-child(4) { grid-column: span 2; }
.featured-grid.n6 > :nth-child(6) { grid-column: span 4; }
.feat-card {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow); color: #fff; background: var(--primary);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px;
}
.feat-card:hover { color: #fff; }
.feat-card > img, .feat-card > .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feat-card:hover > img { transform: scale(1.06); }
.feat-body {
  position: relative; padding: 70px 22px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.feat-body h3 { font-size: 1.15rem; margin: 8px 0 2px; }
.featured-grid > :first-child .feat-body h3 { font-size: 1.6rem; }
.feat-body .meta { color: rgba(255,255,255,.78); }
.feat-text { margin: 8px 0 0; font-size: .95rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-kind { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 12px; border-radius: 20px; background: var(--accent); color: var(--primary-dark); }
.feat-kind.art { background: #fff; color: var(--primary); }
.feat-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 860px) {
  /* على الشاشات الصغيرة: ارتفاع كل بطاقة حسب محتواها لمنع التداخل */
  .featured-grid, .featured-grid.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 16px; }
  .featured-grid > :first-child, .featured-grid.n2 > :first-child { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
  .featured-grid.n3 > :nth-child(n+2), .featured-grid.n4 > :nth-child(4) { grid-column: auto; }
  .featured-grid.n6 > :nth-child(6), .featured-grid.n4 > :nth-child(4) { grid-column: 1 / -1; }
  .featured-grid.n2 > :nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .featured-grid, .featured-grid.n2 { grid-template-columns: 1fr; }
  .featured-grid > * { grid-column: auto !important; }
}

/* ===================== المعرض ===================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  font: inherit; font-weight: 600; cursor: pointer; line-height: 1.6;
  padding: 7px 20px; border-radius: 30px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); transition: all .2s;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.gallery { columns: 3 300px; column-gap: 20px; }
.gallery.cols-2 { columns: 2 320px; }
.gallery.cols-4 { columns: 4 220px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 20px; position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: zoom-in; box-shadow: var(--shadow); background: #ddd;
}
.gallery-item img { width: 100%; transition: transform .6s ease; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
}
.gallery-item figcaption h3 { font-size: 1.15rem; margin: 6px 0 2px; }
.gallery-item .meta { color: rgba(255,255,255,.78); }
.gallery-item .tag { background: var(--accent); color: var(--primary-dark); }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.badge-count {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; padding: 2px 12px; border-radius: 20px;
}

/* نافذة العرض */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 13, .97);
  display: grid; grid-template-columns: 1fr 380px; animation: fade .25s;
}
.lightbox.no-info { grid-template-columns: 1fr; }
.lightbox.no-info .lb-info { display: none; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px 20px; min-height: 0; }
.lb-img { max-height: calc(100vh - 170px); max-width: 100%; object-fit: contain; border-radius: 8px; }
.lb-thumbs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; max-width: 100%; }
.lb-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .5; background: none; flex: none; }
.lb-thumbs button.active { border-color: var(--accent); opacity: 1; }
.lb-thumbs img { width: 70px; height: 50px; object-fit: cover; }
.lb-info { background: var(--surface); padding: 60px 30px 30px; overflow-y: auto; }
.lb-info h3 { font-size: 1.4rem; color: var(--primary); margin-top: 12px; }
.lb-info .meta { margin-bottom: 16px; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; display: grid; place-items: center; transition: background .2s; line-height: 1;
}
.lb-btn:hover { background: var(--accent); color: var(--primary-dark); }
.lb-close { top: 14px; inset-inline-start: 14px; z-index: 2; }
.lb-prev { inset-inline-start: 12px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 12px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lb-prev::before { content: "›"; }
[dir="rtl"] .lb-next::before { content: "‹"; }
[dir="ltr"] .lb-prev::before { content: "‹"; }
[dir="ltr"] .lb-next::before { content: "›"; }
.lb-counter { direction: ltr; position: absolute; top: 24px; inset-inline-end: 24px; color: rgba(255,255,255,.7); font-size: .9rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 900px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .lb-stage { padding: 64px 12px 12px; }
  .lb-img { max-height: 55vh; }
  .lb-info { padding: 24px; }
  .lb-close { position: fixed; }
}

/* ===================== المدونة ===================== */
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.blog-tools .filters { margin: 0; justify-content: flex-start; }
.search {
  flex: 0 1 300px; font: inherit; padding: 10px 20px; border-radius: 30px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
}
.search:focus { outline: none; border-color: var(--accent); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 30px; }
.post-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; color: var(--text);
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-cover { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--border); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-body .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-body h3 { font-size: 1.3rem; }
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: var(--primary); }
.post-body > p { color: var(--muted); flex: 1; }
.read-more { font-weight: 700; color: var(--accent-dark) !important; }

/* صفحة المقال */
.article-hero {
  position: relative; color: #fff; background: var(--primary) center / cover;
  padding: calc(var(--header-h) + 110px) 0 70px;
}
.article-hero .overlay { position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--primary-dark) 55%, transparent), color-mix(in srgb, var(--primary-dark) 92%, transparent)); }
.article-hero .container { position: relative; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 14px; }
.article-hero .meta { color: rgba(255,255,255,.85); display: flex; gap: 12px; align-items: center; }
.article-hero .tag { background: var(--accent); color: var(--primary-dark); }
.article-content { padding: 60px 0 80px; font-size: 1.12rem; line-height: 2; }
[dir="ltr"] .article-content { line-height: 1.85; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share span { font-weight: 700; }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.share a:hover { background: var(--primary); color: #fff; }
.share svg { width: 18px; height: 18px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a { background: var(--surface); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.6; }
.post-nav a:hover { color: var(--primary); }
.post-nav a.next { text-align: end; }
.post-nav small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }

/* ===================== أقسام إضافية ===================== */
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.image-text.side-end .it-img { order: 2; }
.it-img img, .it-img .noimg { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
@media (max-width: 800px) { .image-text { grid-template-columns: 1fr; gap: 30px; } .image-text.side-end .it-img { order: 0; } }

.quote-block { text-align: center; }
.quote-block blockquote {
  margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--primary); line-height: 1.6; position: relative; padding-top: 40px;
}
.quote-block blockquote::before { content: "”"; position: absolute; top: -30px; left: 50%; translate: -50% 0; font-size: 6rem; color: var(--accent); line-height: 1; }
.bg-dark .quote-block blockquote { color: #fff; }
.quote-block cite { display: block; margin-top: 18px; color: var(--muted); font-style: normal; font-weight: 600; }

.cta { position: relative; padding: 100px 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)) center / cover; }
.cta.has-img::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary-dark) 75%, transparent); }
.cta .container { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta p { opacity: .9; font-size: 1.15rem; margin-bottom: 28px; }

.video-box { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-box iframe, .video-box video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 30px 16px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2.4rem; color: var(--accent-dark); line-height: 1.2; }
.stat span { color: var(--muted); }
.bg-dark .stat { background: rgba(255,255,255,.06); box-shadow: none; }
.bg-dark .stat strong { color: var(--accent); }
.bg-dark .stat span { color: rgba(255,255,255,.75); }

.spacer { display: flex; align-items: center; }
.spacer hr { border: 0; border-top: 1px solid var(--border); }
.embed-box iframe { width: 100%; border: 0; border-radius: var(--radius); }

/* ===================== تواصل معي ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; color: var(--text); }
.card h2 { color: var(--primary); font-size: 1.5rem; }
.contact-info p { color: var(--muted); }
.contact-line { display: flex; gap: 12px; align-items: center; margin: 16px 0; font-weight: 700; }
.contact-line .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-dark); flex: none; }
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line a { word-break: break-all; }
.social-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 26px; }
.social-big a {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 600; transition: all .25s;
}
.social-big a:hover { color: #fff; border-color: transparent; transform: translateY(-3px); }
.social-big svg { width: 22px; height: 22px; flex: none; }
.social-facebook:hover { background: #1877f2; }
.social-x:hover { background: #000; }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social-youtube:hover { background: #ff0000; }
.social-linkedin:hover { background: #0a66c2; }
.social-telegram:hover { background: #229ed9; }
.social-whatsapp:hover { background: #25d366; }
.social-tiktok:hover { background: #111; }
.social-snapchat:hover { background: #fffc00; color: #000 !important; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 12px 16px; border-radius: 10px; color: var(--text);
  border: 1.5px solid var(--border); background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { margin-top: 16px; border-radius: 10px; font-weight: 600; }
.form-status.success { padding: 14px 18px; background: #e7f6ec; color: #1d6b3a; }
.form-status.error { padding: 14px 18px; background: #fdecec; color: #a12a2a; }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 26px; }
}

/* ===================== الفوتر ===================== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 50px 0 30px; text-align: center; }
.site-footer .logo { justify-content: center; margin-bottom: 18px; }
.footer-nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-nav a { color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: var(--accent); }
.social { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: all .25s;
}
.social a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.copy { font-size: .88rem; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* ===================== حركة الظهور ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
