@font-face { font-family: HRSD; src: url(assets/fonts/HRSD-Light.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: HRSD; src: url(assets/fonts/HRSD-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: HRSD; src: url(assets/fonts/HRSD-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: HRSD; src: url(assets/fonts/HRSD-Bold.ttf); font-weight: 700; font-display: swap; }

/* ألوان هوية الوزارة، مطابقة لـ BrandColors في lib/app/theme/app_theme.dart */
:root {
  --orange: #F5961E;
  --yellow: #FAB414;
  --green: #2DB473;
  --teal: #148287;
  --navy: #14415A;
  --bg: #F3F6F7;
  --tint: #EAF4F4;
  --border: #DCE4E8;
  --muted: #5E7380;
  --ink: #16303F;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 65, 90, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: HRSD, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* تنبيه أن الموقع غير رسمي */
.disclaimer { background: #FFF6E6; color: #6B4A12; border-bottom: 1px solid #F5D9A8; font-size: .9rem; line-height: 1.7; }
.disclaimer__inner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.disclaimer svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--orange); }
.disclaimer p { margin: 0; }
.disclaimer a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* الشريط العلوي */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: #fff; opacity: .85; padding: 8px 14px; border-radius: 999px; font-weight: 500; transition: .2s; }
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }

/* الواجهة */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #0f5a6b 55%, var(--teal) 100%);
  padding: 88px 0 72px;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.hero__card {
  position: relative; overflow: hidden; display: grid; gap: 12px; padding: 26px;
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(5, 25, 40, .35);
}
.hero__card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.hero__symbol { position: absolute; width: 150px; left: -36px; top: -36px; opacity: .1; }
.quick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); transition: .2s; }
.quick:hover { border-color: var(--teal); background: var(--tint); }
.quick > span:first-child { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.quick svg { width: 20px; height: 20px; }
.quick small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.quick b { color: var(--navy); font-size: 1.05rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; max-width: 16ch; }
.eyebrow { display: inline-block; margin: 0 0 12px; color: var(--yellow); font-weight: 500; letter-spacing: .3px; }
.eyebrow--back:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow--back::before { content: "→ "; }
.hero__lead { max-width: 52ch; font-size: 1.15rem; font-weight: 300; opacity: .92; margin: 18px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__shapes .shape { position: absolute; border-radius: 50%; filter: blur(.5px); }
.shape--orange { width: 360px; height: 360px; left: -90px; top: -110px; background: radial-gradient(circle, rgba(245, 150, 30, .55), transparent 70%); }
.shape--yellow { width: 220px; height: 220px; left: 18%; bottom: -120px; background: radial-gradient(circle, rgba(250, 180, 20, .4), transparent 70%); }
.shape--green  { width: 300px; height: 300px; left: 4%; top: 35%; background: radial-gradient(circle, rgba(45, 180, 115, .35), transparent 70%); }

.pillars { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; }
.pillars li {
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(4px);
}
.pillars strong { display: block; font-size: 1.15rem; color: var(--yellow); }
.pillars span { font-size: .95rem; opacity: .9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; transition: .2s;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245, 150, 30, .35); }
.btn--primary:hover { background: #e3850e; transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* الأقسام */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 28px; }
.section__head h2 { font-size: 1.8rem; position: relative; padding-bottom: 10px; }
.section__head h2::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}
.section__head p { margin: 10px 0 0; color: var(--muted); }

/* الأنظمة */
.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.system {
  --c: var(--teal);
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 4px solid var(--c); box-shadow: var(--shadow); transition: .25s;
}
.system:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20, 65, 90, .14); }
.system--green { --c: var(--green); }
.system--navy { --c: var(--navy); }
.system--orange { --c: var(--orange); }
.system__icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.system__icon svg { width: 28px; height: 28px; }
.system__body { flex: 1; }
.system__body strong { display: block; color: var(--navy); font-size: 1.15rem; }
.system__body span { color: var(--muted); font-size: .95rem; }
.system__go { color: var(--c); }
.system__go svg { width: 22px; height: 22px; transition: .25s; }
.system:hover .system__go svg { transform: translateX(-4px); }

/* المكاتب: بطاقات الأنظمة نفسها بلون الوزارة */
.offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.office { --c: var(--orange); }

/* الأخبار */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news { display: grid; gap: 14px; }
.news__item {
  background: #fff; border-radius: 16px; padding: 20px 22px;
  border: 1px solid var(--border); border-inline-start: 4px solid var(--teal);
  transition: .2s;
}
.news__item:hover { box-shadow: var(--shadow); }
.news--accent .news__item { border-inline-start-color: var(--orange); }
.news__meta { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.tag { padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 12%, #fff); color: var(--teal); font-weight: 700; }
.news--accent .tag { background: color-mix(in srgb, var(--orange) 14%, #fff); color: #b8660a; }
.news__item h3 { font-size: 1.12rem; margin: 10px 0 6px; }
.news__item p { margin: 0; color: var(--muted); }
.news__more { display: inline-block; margin-top: 8px; color: var(--teal); font-weight: 700; font-size: .92rem; }
.news__empty { margin: 0; color: var(--muted); }
.news__more::after { content: " ←"; }
.news__more:hover { color: var(--navy); }

/* إعلانات التمكين: بطاقات بموعد التقديم وزر التقديم */
.news--jobs { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.news--jobs .news__item { border-inline-start-color: var(--green); display: flex; flex-direction: column; }
.news--jobs .tag { background: color-mix(in srgb, var(--green) 14%, #fff); color: #1f8a56; }
.news__deadline { color: #b8660a; font-weight: 700; }
.news__apply { align-self: flex-start; margin-top: auto; padding-top: 14px; }
.news__apply .btn { padding: 10px 22px; }

/* الرؤية */
.vision { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.vision::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green), var(--teal));
  height: 5px;
}
.vision__inner { text-align: center; }
.vision__label { margin: 0; color: var(--yellow); font-weight: 500; }
.vision blockquote { margin: 8px auto 0; max-width: 46ch; font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 500; }

/* التواصل */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: stretch; }
.facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.facts__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--teal); }
.facts__icon svg { width: 22px; height: 22px; }
.facts small { display: block; color: var(--muted); font-size: .85rem; }
.facts a, .facts span { font-weight: 700; color: var(--navy); }
.facts a:hover { color: var(--teal); }
.facts--row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* التذييل */
.footer { background: #0d2f42; color: rgba(255, 255, 255, .8); padding: 36px 0; font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer img { height: 40px; width: auto; }
.footer p { margin: 0; }
.footer__year { margin-inline-start: auto !important; }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .pillars { gap: 8px; margin-top: 32px; }
  .pillars li { padding: 12px 10px; text-align: center; }
  .pillars span { display: none; }
  .news-grid, .contact { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer__year { margin-inline-start: 0 !important; }
}
