/* ==========================================================================
   أعمال نفيسة دريشة لخدمات الدراسة بالخارج — الأنماط الأساسية للموقع
   الألوان مأخوذة من شعار الشركة: الأزرق الملكي والبرتقالي.
   ========================================================================== */

:root {
  --blue-900: #06305e;
  --blue-800: #0a3d76;
  --blue-700: #0e4d92;
  --blue-600: #1160b0;
  --blue-500: #2a7ac9;
  --blue-100: #e6f0fa;
  --blue-50:  #f2f7fc;

  --orange-700: #cf5a0d;
  --orange-600: #ef6c17;
  --orange-500: #f7861f;
  --orange-100: #fff1e3;

  --ink:    #16212e;
  --ink-2:  #33445a;
  --muted:  #64748b;
  --line:   #e2e8f0;
  --bg:     #ffffff;
  --soft:   #f6f9fc;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(6, 48, 94, .06), 0 2px 8px rgba(6, 48, 94, .05);
  --shadow:    0 4px 12px rgba(6, 48, 94, .08), 0 12px 32px rgba(6, 48, 94, .07);
  --shadow-lg: 0 18px 50px rgba(6, 48, 94, .16);

  --container: 1180px;
  --nav-h: 76px;

  --font: 'Cairo', 'Tajawal', 'Segoe UI', 'Noto Naskh Arabic', system-ui, sans-serif;
}

/* --------------------------------------------------------------- الأساس */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.05rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.1vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange-600); }

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

ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* يُخفى عمودياً لا أفقياً — الإخفاء الأفقي في صفحة RTL يسبّب تمدّد الصفحة */
.skip-link {
  position: absolute; inset-inline-start: 0; top: -120px;
  background: var(--blue-700); color: #fff; padding: 12px 20px;
  z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- الأزرار */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.7em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--orange-600); color: #fff; box-shadow: 0 6px 18px rgba(239, 108, 23, .32); }
.btn-primary:hover { background: var(--orange-700); color: #fff; box-shadow: 0 10px 26px rgba(239, 108, 23, .4); }

.btn-blue { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(14, 77, 146, .28); }
.btn-blue:hover { background: var(--blue-800); color: #fff; }

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

.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost-light:hover { background: #fff; color: var(--blue-800); border-color: #fff; }

.btn-wa { background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #1da851; color: #fff; }

.btn-sm { padding: .5em 1.1em; font-size: .88rem; }
.btn-lg { padding: .95em 2.2em; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* -------------------------------------------------------------- الترويسة */

.topbar {
  background: var(--blue-900);
  color: #cfe0f2;
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .container { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #cfe0f2; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }
.topbar .spacer { margin-inline-start: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; gap: 18px;
  height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 46px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.02rem; color: var(--blue-800); font-weight: 800; }
.brand-text span { font-size: .74rem; color: var(--muted); font-weight: 600; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0; list-style: none;
  margin-inline-start: auto;
}
.nav-links a {
  display: block;
  padding: .5em .85em;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-100); }

/* زر «قدّم طلبك» داخل القائمة للجوال فقط — على سطح المكتب يظهر زر .nav-cta */
.nav-links .mobile-cta { display: none; }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px; cursor: pointer;
  margin-inline-start: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--blue-800); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* ---------------------------------------------------------------- البطل */

.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset-block: -30%; inset-inline-start: -12%;
  width: 58%;
  background: radial-gradient(closest-side, rgba(247, 134, 31, .3), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
  padding: 78px 0 86px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero .lead { font-size: 1.13rem; color: #d9e7f5; max-width: 46ch; margin-bottom: 1.9em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(247, 134, 31, .18);
  border: 1px solid rgba(247, 134, 31, .45);
  color: #ffd9b8;
  padding: .4em 1.1em; border-radius: 999px;
  font-size: .84rem; font-weight: 700;
  margin-bottom: 1.5em;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 0 rgba(247, 134, 31, .8);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(247, 134, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 134, 31, 0); }
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-badge {
  position: absolute; inset-block-end: -22px; inset-inline-start: -18px;
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge strong { display: block; font-size: 1.5rem; color: var(--blue-700); line-height: 1.1; }
.hero-badge span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.hero-badge .icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange-100); color: var(--orange-600);
  display: grid; place-items: center; flex: none;
}
.hero-badge svg { width: 22px; height: 22px; }

.hero-wave { display: block; width: 100%; height: auto; position: relative; z-index: 3; margin-bottom: -1px; }

/* ------------------------------------------------------------- الأقسام */

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 52px 0; }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head.start { margin-inline: 0; text-align: start; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  color: var(--orange-600);
  font-weight: 800; font-size: .82rem;
  letter-spacing: .06em;
  margin-bottom: .7em;
}
.eyebrow::before { content: '◆ '; font-size: .7em; vertical-align: middle; }

/* ------------------------------------------------------------- الشرائط */

.strip { background: var(--blue-800); color: #fff; padding: 30px 0; }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center;
}
.strip-item strong {
  display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--orange-500); font-weight: 800; line-height: 1.1;
}
.strip-item span { font-size: .92rem; color: #cfe0f2; font-weight: 600; }

/* -------------------------------------------------------------- الشبكات */

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

/* --------------------------------------------------------- بطاقة خدمة */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  color: var(--blue-700);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card:nth-child(3n+2) .card-icon { background: linear-gradient(135deg, var(--orange-100), #fff8f1); color: var(--orange-600); }

.card-num {
  position: absolute; inset-block-start: 18px; inset-inline-end: 22px;
  font-size: 2.6rem; font-weight: 800; color: var(--blue-50); line-height: 1;
}
.card-step { position: relative; overflow: hidden; }

/* --------------------------------------------------------- بطاقة وجهة */

.dest-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 268px;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .25s ease;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-900));
}
.dest-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: #fff; }
.dest-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.dest-card:hover img { transform: scale(1.06); }
.dest-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 48, 94, .93) 6%, rgba(6, 48, 94, .55) 45%, rgba(6, 48, 94, .15) 100%);
}
.dest-card-body {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  min-height: 268px;
}
.dest-card h3 { color: #fff; margin-bottom: .3em; font-size: 1.35rem; }
.dest-card p { color: #d3e2f2; font-size: .9rem; margin-bottom: .8em; line-height: 1.65; }
.dest-card .more { font-weight: 700; font-size: .88rem; color: var(--orange-500); display: inline-flex; align-items: center; gap: .35em; }
.dest-card .more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.dest-card:hover .more svg { transform: translateX(4px); }
.dest-card .pill {
  position: absolute; inset-block-start: 18px; inset-inline-end: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  padding: .25em .85em; border-radius: 999px;
  font-size: .76rem; font-weight: 700;
}

/* -------------------------------------------------------- بطاقة جامعة */

.uni-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
}
.uni-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.uni-card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--blue-100); }
.uni-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.uni-card .thumb .tag {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  background: var(--orange-600); color: #fff;
  padding: .22em .8em; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
}
.uni-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.uni-body h3 { font-size: 1.13rem; margin-bottom: .25em; }
.uni-en { font-size: .82rem; color: var(--muted); direction: ltr; text-align: right; margin-bottom: .8em; font-weight: 600; }
.uni-city { font-size: .86rem; color: var(--blue-700); font-weight: 700; margin-bottom: .9em; display: flex; align-items: center; gap: .4em; }
.uni-city svg { width: 15px; height: 15px; }
.uni-programs { font-size: .89rem; color: var(--muted); margin-bottom: 1em; line-height: 1.7; }

.uni-facts { list-style: none; margin: 0 0 1.1em; padding: 0; border-top: 1px dashed var(--line); }
.uni-facts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: .55em 0; margin: 0;
  border-bottom: 1px dashed var(--line);
  font-size: .88rem;
}
.uni-facts .k { color: var(--muted); font-weight: 600; flex: none; }
.uni-facts .v { color: var(--ink); font-weight: 700; text-align: end; }

.uni-note {
  background: var(--orange-100); color: var(--orange-700);
  border-radius: var(--radius-sm);
  padding: .7em 1em; font-size: .84rem; font-weight: 600;
  margin-bottom: 1.1em; line-height: 1.6;
}
.uni-card .btn { margin-top: auto; }

/* ---------------------------------------------------------- بطاقة خبر */

.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb .kind {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px;
  background: rgba(6, 48, 94, .78); color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.post-thumb .kind svg { width: 17px; height: 17px; }
.post-thumb .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.35);
}
.post-thumb .placeholder svg { width: 54px; height: 54px; }

.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); font-weight: 600;
  margin-bottom: .7em;
}
.post-meta .chip {
  background: var(--blue-100); color: var(--blue-700);
  padding: .18em .75em; border-radius: 999px; font-size: .76rem;
}
.post-body h3 { font-size: 1.1rem; margin-bottom: .45em; line-height: 1.5; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--blue-700); }
.post-body p { color: var(--muted); font-size: .93rem; margin-bottom: 1.1em; }
.post-body .read-more { margin-top: auto; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .35em; }
.post-body .read-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* ------------------------------------------------------------ الترويسة الداخلية */

.page-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 62px 0 68px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset-block: -40%; inset-inline-end: -8%;
  width: 46%;
  background: radial-gradient(closest-side, rgba(247, 134, 31, .26), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d3e2f2; max-width: 62ch; font-size: 1.05rem; margin-bottom: 0; }

.breadcrumb {
  display: flex; gap: .5em; flex-wrap: wrap; align-items: center;
  list-style: none; margin: 0 0 1.1em; padding: 0;
  font-size: .85rem; color: #a9c6e2;
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: #cfe0f2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '‹'; margin-inline-end: .5em; opacity: .6; }

/* ------------------------------------------------------------ المقال */

.article { max-width: 780px; margin-inline: auto; }
.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.article-body { font-size: 1.06rem; }
.article-body p { margin-bottom: 1.35em; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { padding: .5em .7em; font-size: .82rem; color: var(--muted); }

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

.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; font-size: .9rem; color: var(--muted); }
.share a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soft); color: var(--blue-700);
  border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, transform .18s ease;
}
.share a:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }
.share svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- النماذج */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 700; font-size: .9rem;
  color: var(--ink); margin-bottom: .45em;
}
.field .req { color: var(--orange-600); }
.field .hint { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .35em; }

.input, .select, .textarea {
  width: 100%;
  font: inherit; font-size: .97rem;
  padding: .72em .95em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .85em center;
  background-size: 17px;
  padding-inline-start: 2.6em;
}

.ltr { direction: ltr; text-align: left; }

.apply-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; gap: 28px; } }

.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: .93rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: flex; gap: .7em; align-items: flex-start;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-success { background: #e8f8ef; color: #14663a; border-color: #b7e6cb; }
.alert-error   { background: #fdecec; color: #9b1c1c; border-color: #f6c6c6; }
.alert-info    { background: var(--blue-50); color: var(--blue-800); border-color: #cfe1f3; }
.alert ul { margin: .3em 0 0; padding-inline-start: 1.2em; }

/* ----------------------------------------------------- التواصل / CTA */

.cta {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 46px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute; inset-block: -50%; inset-inline-start: -10%;
  width: 45%;
  background: radial-gradient(closest-side, rgba(247, 134, 31, .3), transparent 70%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { color: #d9e7f5; max-width: 60ch; margin-inline: auto; margin-bottom: 1.8em; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-tile {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .25s ease;
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-tile .icon-circle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.contact-tile .icon-circle svg { width: 26px; height: 26px; }
.contact-tile.wa .icon-circle { background: #e6f9ee; color: #128c4b; }
.contact-tile h3 { font-size: 1.05rem; margin-bottom: .3em; }
.contact-tile p { color: var(--muted); font-size: .9rem; margin-bottom: .8em; }
.contact-tile .value { direction: ltr; font-weight: 800; color: var(--blue-800); font-size: 1.02rem; display: block; margin-bottom: 1em; }

/* ------------------------------------------------------------- التذييل */

.site-footer {
  background: var(--blue-900);
  color: #b8cfe6;
  padding: 60px 0 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: #fff; font-size: 1rem; margin-bottom: 1.1em;
  position: relative; padding-bottom: .6em;
}
.site-footer h4::after {
  content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 38px; height: 3px; background: var(--orange-500); border-radius: 2px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color: #b8cfe6; }
.site-footer a:hover { color: var(--orange-500); }
.footer-brand img { height: 54px; width: auto; border-radius: 8px; background: #fff; padding: 5px; margin-bottom: 16px; }
.footer-brand p { color: #9dbad4; font-size: .9rem; line-height: 1.8; }

.footer-contact li { display: flex; gap: .7em; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--orange-500); }
.footer-contact .ltr { direction: ltr; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff;
  transition: background .2s ease, transform .18s ease;
}
.social a:hover { background: var(--orange-600); color: #fff; transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #8fb0cd;
}
.footer-bottom a { color: #8fb0cd; }

/* ------------------------------------------------- زر واتساب العائم */

.wa-float {
  position: fixed;
  inset-block-end: 22px; inset-inline-end: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 90;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------- الترقيم */

.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding-inline: .8em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-weight: 700; font-size: .92rem;
  color: var(--ink-2); background: #fff;
}
.pagination a:hover { border-color: var(--blue-500); color: var(--blue-700); }
.pagination .current { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pagination .disabled { opacity: .45; }

/* -------------------------------------------------------- فلاتر */

.filters { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filters a {
  padding: .48em 1.25em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 700; font-size: .88rem;
  color: var(--ink-2);
}
.filters a:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filters a.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

/* ---------------------------------------------------------- متفرقات */

.empty {
  text-align: center; padding: 60px 20px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty svg { width: 56px; height: 56px; color: var(--line); margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex; gap: .75em; align-items: flex-start;
  margin-bottom: .85em; font-size: .97rem;
}
.check-list svg { width: 21px; height: 21px; color: var(--orange-600); flex: none; margin-top: 4px; }

.prose-box {
  background: var(--soft);
  border-inline-start: 4px solid var(--orange-500);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; color: var(--blue-100); line-height: 1; }

/* ---------------------------------------------------------- الاستجابة */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .hero-inner { gap: 36px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: .8em .6em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .mobile-cta { display: block; margin-top: 14px; }
  .nav-links .mobile-cta a { background: var(--orange-600); color: #fff; text-align: center; border-radius: 999px; border: 0; }

  .hero-inner { grid-template-columns: 1fr; padding: 52px 0 64px; }
  .hero-media { order: -1; }
  .hero-badge { inset-inline-start: auto; inset-inline-end: 14px; inset-block-end: -18px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-tiles { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta { padding: 40px 26px; }
  .topbar .container { justify-content: center; font-size: .8rem; gap: 14px; }
  .topbar .spacer { margin-inline-start: 0; }
  .topbar .hide-sm { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text span { font-size: .68rem; }
  .form-card { padding: 24px 20px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .wa-float, .topbar, .cta { display: none !important; }
  body { font-size: 12pt; }
}
