:root {
  --ink: #101827;
  --muted: #596270;
  --line: #e4dcae;
  --paper: #ffffff;
  --soft: #fff8dc;
  --teal: #0a751e;
  --gold: #ff8700;
  --blue: #0637f7;
  --cream: #fff0a6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.8;
}

html[dir="ltr"] body {
  direction: ltr;
}

html[dir="ltr"] .nav,
html[dir="ltr"] .nav-dropdown {
  justify-content: flex-start;
}

html[dir="ltr"] .nav-submenu {
  right: auto;
  left: 0;
}

html[dir="ltr"] .stat {
  border-right: 0;
  border-left: 3px solid var(--gold);
}

html[dir="ltr"] .project {
  border-right: 0;
  border-left: 4px solid var(--gold);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--blue);
  color: #eaf1f4;
  font-size: 13px;
}

.topbar .container,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar .container {
  padding: 8px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0df8e;
  backdrop-filter: blur(14px);
}

.site-header .container {
  padding: 16px 0;
}

.nav-toggle {
  display: none;
}

.nav-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #f0df8e;
  border-radius: 6px;
  background: #fffbed;
  cursor: pointer;
}

.nav-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0df8e;
  padding: 4px;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav,
.nav-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.nav-dropdown-button {
  padding: 9px 11px;
  border-radius: 6px;
  color: #202a36;
  font-size: 14px;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav a.active,
.nav-dropdown:hover .nav-dropdown-button,
.nav-dropdown.active .nav-dropdown-button,
.nav-dropdown:focus-within .nav-dropdown-button {
  background: var(--cream);
  color: var(--blue);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: none;
  min-width: 210px;
  padding: 8px;
  border: 1px solid #f0df8e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7, 21, 68, 0.14);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: grid;
  gap: 6px;
}

.nav-submenu a {
  display: block;
  white-space: nowrap;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 24, 105, 0.88), rgba(10, 117, 30, 0.28)),
    url("hero.jpg") center / cover no-repeat;
}

.hero-content {
  width: min(720px, 100%);
  padding: 74px 0 86px;
}

.eyebrow {
  color: #ffb34a;
  font-weight: 700;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
}

h1 {
  font-size: clamp(34px, 6vw, 62px);
  max-width: 760px;
}

.hero p {
  max-width: 650px;
  font-size: 19px;
  color: #e8eef2;
  margin: 18px 0 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  background: var(--gold);
  color: #101827;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.section {
  padding: 66px 0;
}

.section.paper {
  background: var(--paper);
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-head p {
  color: var(--muted);
  margin: 10px 0 0;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.info-panel,
.content-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  color: var(--blue);
  margin-bottom: 8px;
}

.card p,
.content-box p,
.content-box li {
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.feature img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat {
  border-right: 3px solid var(--gold);
  background: #fffbed;
  padding: 14px;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
}

.page-title {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: #fff;
  padding: 54px 0;
}

.page-title p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #eaf3f4;
}

.content-box {
  margin-top: 24px;
}

.content-box ul {
  margin: 12px 0 0;
  padding: 0 20px 0 0;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project {
  border-right: 4px solid var(--gold);
}

.project-cover {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.photo-gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.photo-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.organization-chart {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 28px auto 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.map-box {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    repeating-linear-gradient(45deg, #f0df8e 0 1px, transparent 1px 28px);
}

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
}

.site-footer {
  background: #071544;
  color: #d8e1e6;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.site-footer small {
  color: #9eabb6;
}

.site-footer a {
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

@media (max-width: 850px) {
  .feature,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-header .container {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .grid,
  .grid.two,
  .stats,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    padding-top: 14px;
    border-top: 1px solid #f0df8e;
    margin-top: 12px;
  }

  .nav-toggle:checked + .nav-menu-button + .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: #fffbed;
    text-align: right;
    border-right: 4px solid transparent;
  }

  .nav-dropdown,
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu,
  .nav-submenu {
    position: static;
    display: grid;
    width: 100%;
    box-shadow: none;
  }

  .nav-dropdown {
    gap: 6px;
    align-items: stretch;
    justify-content: stretch;
  }

  .nav-dropdown-button {
    display: block;
    width: 100%;
    text-align: right;
    background: #fffbed;
    padding: 12px 14px;
    color: #202a36;
    border: 0;
    border-right: 4px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.8;
  }

  .nav-dropdown.active .nav-dropdown-button,
  .nav-dropdown-button:hover,
  .nav-dropdown-button:focus {
    background: var(--cream);
    color: var(--blue);
    border-right-color: var(--gold);
  }

  .nav-submenu {
    min-width: 0;
    gap: 6px;
    padding: 0 14px 0 0;
    border: 0;
    background: transparent;
  }

  .nav-submenu a {
    padding: 10px 14px;
    background: #fff7d0;
    color: #202a36;
    text-align: right;
    border-right: 3px solid #f0df8e;
  }

  .nav-submenu a.active {
    color: var(--blue);
    background: var(--cream);
    border-right-color: var(--gold);
  }

  html[dir="ltr"] .nav a,
  html[dir="ltr"] .nav-dropdown-button,
  html[dir="ltr"] .nav-submenu a {
    text-align: left;
  }

  html[dir="ltr"] .nav a,
  html[dir="ltr"] .nav-dropdown-button {
    border-right: 0;
    border-left: 4px solid transparent;
  }

  html[dir="ltr"] .nav-dropdown.active .nav-dropdown-button,
  html[dir="ltr"] .nav-dropdown-button:hover,
  html[dir="ltr"] .nav-dropdown-button:focus,
  html[dir="ltr"] .nav-submenu a.active {
    border-left-color: var(--gold);
  }

  html[dir="ltr"] .nav-submenu {
    padding: 0 0 0 14px;
  }

  html[dir="ltr"] .nav-submenu a {
    border-right: 0;
    border-left: 3px solid #f0df8e;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .topbar .container > span:first-child {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 54px 0 64px;
  }

  .section {
    padding: 44px 0;
  }

  .brand {
    min-width: 0;
  }
}
