/* ==========================================================================
   صفحات: من أنا · التواصل · الشهادات · الوظائف · المقالات
   ========================================================================== */

/* ---------- من أنا ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-700));
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 7, 34, 0.55), transparent 45%);
  pointer-events: none;
}

/* شكل مؤقت قبل وصول الصورة */
.portrait__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px;
}
.portrait__empty svg { width: 64px; height: 64px; opacity: 0.6; }
.portrait__empty span { font-size: 14.5px; }

.about-card {
  margin-block-start: 20px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.about-card h4 { font-size: 14px; color: var(--ink-3); margin-block-end: 12px; letter-spacing: 0.04em; }

.about-body > * + * { margin-block-start: 20px; }
.about-body p { color: var(--ink-2); font-size: 17.5px; }
.about-body h2 { font-size: clamp(23px, 2.8vw, 32px); margin-block-start: 44px; }

.vision {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: var(--white);
  overflow: hidden;
}
.vision::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(76, 125, 255, 0.4), transparent 62%);
}
.vision > * { position: relative; }
.vision h3 { font-size: 20px; margin-block-end: 12px; }
.vision p { color: rgba(255, 255, 255, 0.82); font-size: 17.5px; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
}
.value {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.value:hover { transform: translateY(-5px); border-color: var(--accent); }
.value__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-block-end: 14px;
}
.value__icon svg { width: 21px; height: 21px; }
.value h4 { font-size: 17px; margin-block-end: 6px; }
.value p { font-size: 14.5px; color: var(--ink-3); }

/* الخط الزمني */
.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim));
}
.tl-item { position: relative; padding-block-end: 30px; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: -34px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
}
.tl-item span { font-size: 13.5px; color: var(--accent); font-weight: 700; }
.tl-item h4 { font-size: 18px; margin-block: 4px 6px; }
.tl-item p { font-size: 15.5px; color: var(--ink-3); }

/* ---------- نموذج التواصل ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label .req { color: #d9534f; font-size: 16px; line-height: 1; }
.field label .opt { color: var(--ink-3); font-weight: 400; font-size: 13px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.8; }
.field select { cursor: pointer; appearance: none; background-image: none; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.field input[dir="ltr"] { direction: ltr; text-align: start; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.field .hint { font-size: 13px; color: var(--ink-3); }
.field .error {
  display: none;
  font-size: 13.5px;
  color: #c9302c;
  align-items: center;
  gap: 6px;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d9534f; background: #fdf3f2; }
.field.is-invalid .error { display: flex; }

/* المرفقات */
.dropzone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: rgba(76, 125, 255, 0.05); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon {
  width: 48px; height: 48px;
  margin-inline: auto;
  margin-block-end: 12px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
}
.dropzone__icon svg { width: 22px; height: 22px; }
.dropzone strong { display: block; font-size: 15.5px; color: var(--navy); }
.dropzone small { font-size: 13px; color: var(--ink-3); }

.files { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.file-row.is-bad { border-color: #d9534f; background: #fdf3f2; color: #a3302c; }
.file-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__size { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.file-row button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-3);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.file-row button:hover { background: #fdecea; color: #c9302c; }
.file-row svg { width: 15px; height: 15px; }

.form-note {
  margin-block-start: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(76, 125, 255, 0.07);
  border: 1px solid rgba(76, 125, 255, 0.25);
  font-size: 14.5px;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
}
.form-note svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-block-start: 2px; }

.form-status {
  display: none;
  margin-block-start: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 15px;
}
.form-status.is-shown { display: block; animation: fadeUp 0.4s var(--ease); }
.form-status.is-ok { background: #eefaf3; border: 1px solid #b7e4cd; color: #11603a; }
.form-status.is-err { background: #fdf3f2; border: 1px solid #f2c4c0; color: #9c2b28; }

/* بطاقات جانب النموذج */
.side-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--white);
  margin-block-end: 20px;
}
.side-card h3 { font-size: 18px; margin-block-end: 16px; }
.side-card .contact-line { color: rgba(255, 255, 255, 0.82); }
.side-card .contact-line a:hover { color: #fff; }

.side-note {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
}
.side-note h4 { font-size: 16px; margin-block-end: 10px; }
.side-note p { font-size: 14.5px; color: var(--ink-3); }
.side-note ul { margin: 10px 0 0; padding-inline-start: 18px; font-size: 14.5px; color: var(--ink-3); display: grid; gap: 8px; }

/* ---------- شريط تنقّل فرعي ---------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 38px;
}
.subnav a {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.subnav a:hover { border-color: var(--accent); color: var(--navy); transform: translateY(-2px); }
.subnav a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- الشهادات ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}
.cert {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cert__thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* صور الوثائق تُعرض كاملة بلا قصّ */
.cert__thumb--doc { background: #fff; padding: 10px; }
.cert__thumb--doc img { object-fit: contain; }
.cert__thumb--doc::after {
  content: "اضغط للتكبير";
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 12px;
  font-size: 11.5px;
  color: var(--white);
  background: rgba(0, 7, 34, 0.75);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cert:hover .cert__thumb--doc::after { opacity: 1; }
.cert__thumb svg { width: 46px; height: 46px; }
.cert__body { padding: 22px; }
.cert__body h3 { font-size: 18px; margin-block-end: 6px; }
.cert__issuer { font-size: 14.5px; color: var(--accent); font-weight: 700; }
.cert__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- الوظائف ---------- */
.job {
  display: block;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-block-end: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.job:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.job__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.job h3 { font-size: 20px; margin-block-end: 6px; }
.job__org { font-size: 15px; color: var(--accent); font-weight: 700; }
.job__badge {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-block-start: 16px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.job__meta span { display: inline-flex; align-items: center; gap: 7px; }
.job__meta svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- المقالات ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* الغلاف: لوحة مطبعية بلا صور — رقم متسلسل ورسم هندسي يدلّ على الموضوع */
.article-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(152deg, var(--navy-700), var(--navy));
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
}
/* توهّج لوني يتغيّر موضعه من بطاقة لأخرى عبر --gx / --gy */
.article-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(115% 85% at var(--gx, 78%) var(--gy, 16%), rgba(76, 125, 255, 0.42), transparent 62%);
  transition: opacity 0.45s var(--ease);
}
/* شبكة دقيقة تعطي إحساس الورق الهندسي */
.article-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
/* الرسم الهندسي الدالّ على التصنيف */
.article-card__motif {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -14px;
  translate: 0 -50%;
  width: 148px;
  height: 148px;
  color: var(--accent-soft);
  opacity: 0.22;
  transition: opacity 0.45s var(--ease), translate 0.45s var(--ease);
  pointer-events: none;
}
html[dir="rtl"] .article-card__motif { scale: -1 1; }
/* الرقم المتسلسل مع خط أفقي رفيع بجانبه */
.article-card__index {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.26);
  letter-spacing: 0.01em;
}
.article-card__index::after {
  content: "";
  height: 1px;
  width: 46px;
  background: linear-gradient(to left, transparent, rgba(159, 184, 255, 0.55));
}
html[dir="ltr"] .article-card__index::after {
  background: linear-gradient(to right, rgba(159, 184, 255, 0.55), transparent);
}
.article-card__tag {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 5px 13px;
  border-radius: 999px;
}
.article-card__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.article-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card h3 { font-size: 19px; line-height: 1.45; transition: color 0.3s var(--ease); }
.article-card p { font-size: 15px; color: var(--ink-3); flex: 1; }
.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 4px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--line);
}
.article-card__date { font-size: 13.5px; color: var(--ink-3); }
.article-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.article-card__go svg {
  width: 16px;
  height: 16px;
  transition: translate 0.3s var(--ease);
}
html[dir="rtl"] .article-card__go svg { scale: -1 1; }
/* التفاعل */
.article-card:hover .article-card__cover::before { opacity: 1.25; }
.article-card:hover .article-card__motif { opacity: 0.34; translate: -8px -50%; }
.article-card:hover h3 { color: var(--accent); }
.article-card:hover .article-card__go svg { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card__motif,
  .article-card__go svg { transition: none; }
  .article-card:hover { transform: none; }
  .article-card:hover .article-card__motif { translate: 0 -50%; }
}

/* ---------- الاستجابة ---------- */
@media (max-width: 1000px) {
  .about-intro { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-card { padding: 20px 16px; }
  .timeline { padding-inline-start: 26px; }
  .tl-item::before { inset-inline-start: -26px; width: 13px; height: 13px; }
}

/* ==========================================================================
   عارض الصور داخل الصفحة (الشهادات والوثائق)
   ========================================================================== */
.lbx {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(14px, 4vw, 44px);
  background: rgba(0, 7, 34, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lbx.is-open { display: grid; animation: lbxIn 0.25s var(--ease); }
@keyframes lbxIn { from { opacity: 0; } to { opacity: 1; } }

.lbx__box {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: min(1100px, 100%);
  min-width: 0;
}
.lbx__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lbxZoom 0.3s var(--ease);
}
@keyframes lbxZoom { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }

.lbx__cap {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
  max-width: 720px;
}
.lbx__count { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.lbx__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lbx__btn:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.07); }
.lbx__btn svg { width: 20px; height: 20px; }
.lbx__close { inset-block-start: 16px; inset-inline-end: 18px; }
.lbx__prev { inset-inline-start: 16px; inset-block-start: 50%; transform: translateY(-50%); }
.lbx__next { inset-inline-end: 16px; inset-block-start: 50%; transform: translateY(-50%); }
.lbx__prev:hover, .lbx__next:hover { transform: translateY(-50%) scale(1.07); }

body.lbx-lock { overflow: hidden; }

@media (max-width: 640px) {
  .lbx__btn { width: 40px; height: 40px; }
  .lbx__prev { inset-inline-start: 8px; }
  .lbx__next { inset-inline-end: 8px; }
  .lbx__img { max-height: calc(100vh - 210px); }
  .lbx__cap { font-size: 13px; }
}

/* ---------- حالة «قريبًا» لقسم لم يبدأ النشر فيه بعد ---------- */
.empty-state {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(152deg, var(--navy-700), var(--navy));
  color: var(--white);
  isolation: isolate;
}
.empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(105% 80% at 50% 0%, rgba(76, 125, 255, 0.4), transparent 62%);
}
.empty-state::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}
.empty-state__icon {
  width: 68px;
  height: 68px;
  margin-inline: auto;
  margin-block-end: 22px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.empty-state__icon svg { width: 32px; height: 32px; color: var(--accent-soft); }
.empty-state h2 { font-size: 26px; margin-block-end: 12px; }
.empty-state p {
  max-width: 560px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.85;
}
.empty-state .btn { margin-block-start: 28px; }
.empty-state__note {
  margin-block-start: 26px;
  padding-block-start: 22px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 640px) {
  .empty-state { padding: 48px 22px; }
  .empty-state h2 { font-size: 22px; }
}

/* ==========================================================================
   صفحة «من أنا» على الجوال — تخطيط مستقل لا تصغيرًا لتخطيط الكمبيوتر
   (يُحمَّل pages.css في about/articles/certificates/contact/jobs)
   ========================================================================== */

/* ---------- لوحي: 641 إلى 900 ---------- */
@media (max-width: 900px) {
  .about-intro { gap: 34px; }
  .portrait { max-width: 300px; margin-inline: auto; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- جوال: 640 فما دون ---------- */
@media (max-width: 640px) {
  /* الصورة كانت تبتلع الشاشة: عرض كامل بنسبة 4:5 ≈ 430 بكسل ارتفاعًا.
     صارت مربّعة صغيرة في الوسط. */
  .about-intro { gap: 26px; }
  .portrait {
    width: 190px;
    max-width: 55%;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 24px;
  }
  .portrait img { object-position: top center; }
  .portrait::after { background: linear-gradient(to top, rgba(0, 7, 34, 0.35), transparent 55%); }
  .portrait__empty svg { width: 44px; height: 44px; }

  .about-card { margin-block-start: 16px; padding: 18px; }
  .about-card h4 { margin-block-end: 10px; }

  .about-body > * + * { margin-block-start: 16px; }
  .about-body p { font-size: 16.5px; line-height: 1.9; }
  .about-body h2 { font-size: 22px; margin-block-start: 32px; }

  .vision { padding: 22px 20px; border-radius: 20px; }
  .vision h3 { font-size: 18px; }
  .vision p { font-size: 16.5px; }

  .values { grid-template-columns: 1fr; gap: 14px; }
  .value { padding: 18px; }
  .value__icon { width: 38px; height: 38px; border-radius: 11px; margin-block-end: 10px; }
  .value__icon svg { width: 18px; height: 18px; }
  .value h4 { font-size: 16px; }
  .value p { font-size: 14px; }

  /* لا حركة رفع عند اللمس — لا يوجد hover على الجوال */
  .value:hover,
  .article-card:hover,
  .job:hover { transform: none; }
}

@media (max-width: 380px) {
  .portrait { width: 160px; max-width: 60%; }
  .about-body p { font-size: 16px; }
  .vision { padding: 18px 16px; }
}
