:root {
  --navy: #0A1628;
  --navy-2: #12263A;
  --blue: #1E4D7B;
  --gold: #B8954A;
  --gold-2: #D4BC7D;
  --paper: #F7F4EC;
  --paper-2: #EFEAE0;
  --white: #FFFFFF;
  --ink: #1C1917;
  --muted: #57534E;
  --line: #E4DED2;
  --danger: #9B2C2C;
  --ok: #276749;
  --shadow: 0 1px 2px rgba(10, 22, 40, 0.06);
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif;
  --wrap: 1180px;
  --space: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"],
html[dir="rtl"] body,
body.iyhrc-lang-ar {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"],
html[dir="ltr"] body,
body.iyhrc-lang-en {
  direction: ltr;
  text-align: left;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 650;
  color: var(--navy);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

.iyhrc-wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -40px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  z-index: 1000;
}

.skip-link:focus {
  top: 8px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Header — 3-row institutional masthead */
.iyhrc-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.iyhrc-header__accent {
  height: 3px;
  background: var(--gold);
}

.iyhrc-header__utility {
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
}

.iyhrc-header__utility-inner,
.iyhrc-header__brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.iyhrc-header__utility-inner {
  min-height: 40px;
}

.iyhrc-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-2);
  font-weight: 500;
}

.iyhrc-header__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.iyhrc-header__tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.iyhrc-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iyhrc-lang a {
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.iyhrc-lang a[aria-current="true"] {
  color: var(--gold-2);
}

.iyhrc-search-toggle,
.iyhrc-burger,
.iyhrc-drawer__close {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.iyhrc-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  min-height: 32px;
}

.iyhrc-header__brand {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.iyhrc-header__brand-inner {
  min-height: 92px;
}

.iyhrc-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none;
  min-width: 0;
}

.iyhrc-logo:hover {
  text-decoration: none;
}

.iyhrc-logo strong,
.iyhrc-logo em {
  display: block;
}

.iyhrc-logo strong {
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.iyhrc-logo em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.iyhrc-logo__img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.iyhrc-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.iyhrc-header__nav {
  background: var(--navy-2);
}

.iyhrc-header__nav .iyhrc-wrap {
  overflow-x: auto;
}

.iyhrc-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.iyhrc-menu a {
  display: inline-flex;
  align-items: center;
  color: #E8E4DA;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.iyhrc-menu .current-menu-item a,
.iyhrc-menu a:hover {
  color: var(--white);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.iyhrc-search-panel {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.iyhrc-search-panel__form {
  display: flex;
  gap: 8px;
}

.iyhrc-search-panel input {
  flex: 1;
}

.iyhrc-burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}

.iyhrc-burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 10px;
}

.iyhrc-drawer {
  display: none;
}

/* Buttons */
.iyhrc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
}

.iyhrc-btn--primary {
  background: var(--navy);
  color: var(--white);
}

.iyhrc-btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.iyhrc-btn--ghost,
.iyhrc-btn--light {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.iyhrc-hero .iyhrc-btn--light,
.iyhrc-cta .iyhrc-btn--light,
.iyhrc-section--navy .iyhrc-btn--light {
  color: var(--paper);
  border-color: var(--paper);
}

.iyhrc-link {
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  text-decoration: none;
}

/* Hero */
.iyhrc-hero {
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.78), rgba(10, 22, 40, 0.9)),
    url("../images/hero.jpg") center / cover no-repeat,
    var(--navy);
  color: var(--paper);
  padding: 88px 0 96px;
  position: relative;
}

.iyhrc-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
}

.iyhrc-hero__inner {
  text-align: start;
}

.iyhrc-hero h1,
.iyhrc-section--navy h2,
.iyhrc-cta h2 {
  color: var(--white);
}

.iyhrc-hero__eyebrow,
.iyhrc-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: none;
}

.iyhrc-hero__lead {
  max-width: 640px;
  font-size: 1.125rem;
  color: #E8E4DA;
  margin-inline-end: auto;
}

html[dir="ltr"] .iyhrc-hero__lead {
  margin-inline-end: 0;
  margin-inline-start: 0;
}

.iyhrc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Stats */
.iyhrc-stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.iyhrc-stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.iyhrc-stat {
  padding: 28px 8px;
  text-align: center;
}

.iyhrc-stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--navy);
}

.iyhrc-stat span {
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.iyhrc-section {
  padding: 80px 0;
}

.iyhrc-section--paper {
  background: var(--white);
}

.iyhrc-section--navy {
  background: var(--navy);
  color: var(--paper);
}

.iyhrc-section--navy .iyhrc-kicker {
  color: var(--gold-2);
}

.iyhrc-section__head {
  margin-bottom: 40px;
}

.iyhrc-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.iyhrc-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.iyhrc-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}

.iyhrc-panel--photo {
  padding: 0;
  overflow: hidden;
}

.iyhrc-panel--photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.iyhrc-panel--photo h3,
.iyhrc-panel--photo p {
  padding-inline: 32px;
}

.iyhrc-panel--photo p:last-child {
  padding-bottom: 32px;
}

.iyhrc-panel h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 16px;
}

blockquote {
  margin: 24px 0;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gold);
  color: var(--navy);
  font-size: 1.05rem;
}

/* Cards */
.iyhrc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.iyhrc-cards--4 { grid-template-columns: repeat(4, 1fr); }
.iyhrc-cards--5 { grid-template-columns: repeat(5, 1fr); }

.iyhrc-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.iyhrc-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.iyhrc-card__media,
.iyhrc-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--navy-2);
}

.iyhrc-card__body {
  padding: 20px;
}

.iyhrc-card--plain {
  padding: 24px;
  background: var(--paper);
}

.iyhrc-index {
  display: block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.iyhrc-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.iyhrc-news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.iyhrc-card--featured {
  grid-row: span 3;
}

.iyhrc-card--featured .iyhrc-card__body h3 {
  font-size: 1.6rem;
}

.iyhrc-cards--reports .iyhrc-card img,
.iyhrc-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy), var(--blue));
}

.iyhrc-cover {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--paper);
  min-height: 220px;
}

.iyhrc-cover span {
  font-size: 13px;
  color: var(--gold-2);
}

.iyhrc-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.iyhrc-partners span {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 16px 20px;
  font-weight: 500;
}

/* Page */
.iyhrc-pagehead {
  padding: 48px 0 24px;
}

.iyhrc-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.iyhrc-breadcrumbs a {
  color: var(--muted);
}

.iyhrc-prose {
  max-width: 760px;
}

.iyhrc-prose p {
  margin: 0 0 16px;
}

.iyhrc-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

.iyhrc-filters {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
}

.iyhrc-filters label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

/* Forms */
.iyhrc-form,
input, select, textarea {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #D6D3D1;
  background: var(--white);
  padding: 8px 12px;
  color: var(--ink);
}

textarea {
  min-height: 120px;
}

.iyhrc-field {
  margin: 0 0 16px;
}

.iyhrc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.iyhrc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.iyhrc-help {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.iyhrc-form__ok {
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  padding: 16px;
  margin-bottom: 20px;
}

.iyhrc-form__error {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  color: var(--danger);
  padding: 16px;
  margin-bottom: 20px;
}

.iyhrc-ref {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.iyhrc-hp {
  position: absolute;
  left: -9999px;
}

/* Map */
.iyhrc-map {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.iyhrc-map__canvas {
  background: #07101C;
  min-height: 420px;
  padding: 16px;
}

.iyhrc-map svg {
  width: 100%;
  height: auto;
}

.iyhrc-gov {
  fill: #1B3A5F;
  stroke: #D4BC7D;
  stroke-width: 1;
  cursor: pointer;
}

.iyhrc-gov:hover,
.iyhrc-gov.is-active {
  fill: #B8954A;
}

.iyhrc-map__panel {
  background: var(--white);
  color: var(--ink);
  padding: 24px;
}

.iyhrc-map__panel h3 {
  margin-top: 0;
}

.iyhrc-kpi {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

/* Footer */
.iyhrc-footer {
  background: var(--navy);
  color: #D6D3D1;
  padding-top: 64px;
}

.iyhrc-footer h2 {
  color: var(--white);
  font-size: 15px;
}

.iyhrc-footer a {
  color: #E7E5E4;
}

.iyhrc-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
}

.iyhrc-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.iyhrc-footer-menu li {
  margin-bottom: 8px;
}

.iyhrc-footer__legal {
  border-top: 1px solid #1E3A5F;
  padding: 16px 0;
  font-size: 13px;
}

.iyhrc-logo--footer {
  color: var(--white);
  margin-bottom: 16px;
}

.iyhrc-form--newsletter {
  display: flex;
  gap: 8px;
}

.iyhrc-cta {
  background: var(--navy-2);
  color: var(--paper);
  padding: 72px 0;
  text-align: center;
}

.iyhrc-cta p {
  max-width: 640px;
  margin-inline: auto;
}

.iyhrc-cta .iyhrc-hero__actions {
  justify-content: center;
}

.iyhrc-share {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  font-size: 14px;
}

.iyhrc-empty,
.iyhrc-404 {
  text-align: center;
  padding: 80px 0;
}

.iyhrc-pagination {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.iyhrc-pagination .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}

.iyhrc-pagination .current {
  background: var(--navy);
  color: var(--white);
}

.iyhrc-status {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 2px 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .iyhrc-header__nav {
    display: none;
  }
  .iyhrc-burger {
    display: inline-block;
  }
  .iyhrc-drawer:not([hidden]) {
    display: block;
  }
  .iyhrc-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.45);
    border: 0;
    z-index: 80;
  }
  .iyhrc-drawer__panel {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(100%, 360px);
    background: var(--white);
    z-index: 90;
    padding: 24px;
    overflow-y: auto;
    box-shadow: 0 0 24px rgba(15, 23, 42, 0.2);
  }
  .iyhrc-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--navy);
  }
  .iyhrc-drawer__close {
    color: var(--navy);
    min-height: 44px;
    padding: 0 8px;
  }
  .iyhrc-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
  }
  .iyhrc-mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-weight: 500;
  }
  .iyhrc-drawer__cta {
    display: grid;
    gap: 10px;
  }
  .iyhrc-stats__grid,
  .iyhrc-cards--5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .iyhrc-split,
  .iyhrc-map,
  .iyhrc-news-grid,
  .iyhrc-layout,
  .iyhrc-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .iyhrc-wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .iyhrc-cards,
  .iyhrc-cards--4,
  .iyhrc-cards--5,
  .iyhrc-stats__grid,
  .iyhrc-grid-2 {
    grid-template-columns: 1fr;
  }
  .iyhrc-header__actions .iyhrc-btn {
    display: none;
  }
  .iyhrc-header__meta span:nth-child(n+2) {
    display: none;
  }
  .iyhrc-hero { padding: 56px 0 64px; }
  .iyhrc-section { padding: 48px 0; }
  .iyhrc-logo span strong { font-size: 14px; }
}
