:root {
  --ink: #102027;
  --muted: #5d6f77;
  --paper: #ffffff;
  --soft: #f4f7f2;
  --mint: #dbe9de;
  --green: #1f6f4a;
  --deep: #123b50;
  --gold: #c99b45;
  --rose: #f3e6df;
  --line: #dce5df;
  --shadow: 0 18px 42px rgba(12, 42, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

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

.top-strip {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 8px clamp(18px, 4vw, 64px);
}

.top-strip a {
  font-weight: 700;
}

.social-links {
  display: inline-flex;
  gap: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #233b42;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--soft);
}

.nav-cta {
  background: var(--deep);
  color: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 11vw, 160px) clamp(18px, 6vw, 88px) 72px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(18, 59, 80, 0.96), rgba(31, 111, 74, 0.88)),
    linear-gradient(45deg, rgba(201, 155, 69, 0.24) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 34px),
    #123b50;
}

.page-hero {
  padding: 76px clamp(18px, 6vw, 88px) 62px;
  background:
    radial-gradient(circle at 14% 18%, rgba(244, 213, 150, 0.24), transparent 24%),
    linear-gradient(120deg, rgba(18, 59, 80, 0.98), rgba(31, 111, 74, 0.88)),
    #123b50;
  color: white;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 213, 150, 0.24), transparent 26%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(7, 29, 34, 0.12), rgba(7, 29, 34, 0.58));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 6vw, 88px) 42px auto;
  width: min(420px, 58vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 47%, rgba(255, 255, 255, 0.18) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(244, 213, 150, 0.16) 48% 52%, transparent 53%);
  opacity: 0.42;
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #f4d596;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

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

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.band {
  background: var(--soft);
}

.content-section,
.intro,
.governance,
.documents,
.stats,
.contact {
  padding: 76px clamp(18px, 6vw, 88px);
}

.section-head {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.intro-grid,
.directory,
.stat-grid,
.cards,
.media-layout {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four,
.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intro-grid article,
.directory article,
.cards article,
.wide-panel,
.stat-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.intro-grid article,
.directory article,
.cards article,
.wide-panel {
  padding: 24px;
}

.feature-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--deep);
  color: white;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card.accent {
  background: var(--green);
}

.feature-card a {
  margin-top: 12px;
  color: #f5d98b;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 800;
}

.tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8df9d;
  font-weight: 800;
}

.required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3ead9;
  color: #7d5a16;
  font-size: 13px;
  font-weight: 800;
}

.stat-grid article {
  padding: 28px 20px;
  text-align: center;
}

.stat-grid strong {
  display: block;
  color: var(--green);
  font-size: 46px;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  font-weight: 700;
}

.media-layout {
  grid-template-columns: 1.2fr 1fr;
}

.wide-panel:first-child {
  grid-row: span 2;
  min-height: 260px;
  background: var(--mint);
}

.wide-panel.rose {
  background: var(--rose);
}

.partners-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.partners-row span {
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
}

.governance {
  background: #122a32;
  color: white;
}

.governance .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  background: var(--gold);
  color: #1b160d;
}

.panel {
  display: none;
  padding: 28px;
  color: var(--ink);
}

.panel.is-active {
  display: block;
}

.panel ul {
  margin: 0;
  padding-right: 22px;
}

.documents {
  background: #122a32;
  color: white;
}

.documents .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.doc-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.doc-search {
  display: grid;
  gap: 8px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.doc-search input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.doc-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--gold);
  color: #1b160d;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-item {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.doc-item.is-hidden {
  display: none;
}

.doc-type {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
}

.doc-item p {
  color: var(--muted);
}

.doc-item a {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
}

.doc-item a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #25424a;
  font-weight: 800;
}

.contact-form label:last-of-type {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 6vw, 88px);
  background: #0d2027;
  color: white;
}

.site-footer p {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.documents-page {
  background: #f4f7f2;
}

.dms-hero {
  position: relative;
  padding: 86px clamp(18px, 6vw, 88px) 72px;
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 213, 150, 0.3), transparent 26%),
    linear-gradient(120deg, rgba(18, 59, 80, 0.98), rgba(31, 111, 74, 0.88)),
    #123b50;
  color: white;
  overflow: hidden;
}

.dms-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -160px -90px;
  width: 430px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  opacity: 0.5;
}

.dms-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.dms-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.dms-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

.dms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.dms-shell {
  padding: 42px clamp(18px, 6vw, 88px) 86px;
}

.dms-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dms-summary article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.dms-summary strong {
  display: block;
  color: var(--green);
  font-size: 38px;
  line-height: 1;
}

.dms-summary span {
  color: var(--muted);
  font-weight: 800;
}

.dms-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dms-toolbar {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.dms-search-box {
  display: grid;
  gap: 8px;
  max-width: 720px;
  font-weight: 800;
}

.dms-search-box input {
  min-height: 54px;
  border-width: 2px;
  background: white;
}

.dms-search-box input:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 111, 74, 0.12);
}

.dms-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dms-filter {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dms-filter:hover,
.dms-filter.is-active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.dms-category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.dms-category-strip article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.dms-category-strip strong,
.dms-category-strip span {
  display: block;
}

.dms-category-strip strong {
  color: var(--deep);
  font-size: 22px;
}

.dms-category-strip span {
  color: var(--muted);
  font-weight: 800;
}

.dms-content-list {
  padding: 26px 24px 32px;
}

.dms-category {
  margin-bottom: 34px;
}

.dms-category.is-hidden,
.dms-doc.is-hidden {
  display: none;
}

.dms-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.dms-category-head h2 {
  margin: 0;
  font-size: 28px;
}

.dms-category-head span {
  min-width: max-content;
  color: var(--gold);
  font-weight: 800;
}

.dms-doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dms-doc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dms-doc:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 74, 0.34);
  box-shadow: 0 12px 28px rgba(12, 42, 35, 0.09);
}

.dms-doc-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dms-doc-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 74, 0.92), rgba(18, 59, 80, 0.92));
}

.dms-doc h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.dms-doc p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dms-doc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 170px;
}

.dms-date,
.dms-status,
.dms-download {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.dms-date {
  background: var(--soft);
  color: var(--muted);
}

.dms-status.available {
  background: #e3f1e7;
  color: var(--green);
}

.dms-status.pending,
.dms-download.pending {
  background: #f3ead9;
  color: #7d5a16;
}

.dms-download:not(.pending) {
  background: var(--deep);
  color: white;
}

.dms-empty {
  display: none;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.dms-empty.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 72vh;
    align-items: flex-end;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(8, 31, 35, 0.86), rgba(8, 31, 35, 0.2));
  }

  .intro-grid,
  .directory,
  .cards.split,
  .cards.three,
  .cards.four,
  .stat-grid,
  .doc-grid,
  .partners-row,
  .dms-summary,
  .dms-category-strip,
  .dms-doc-list,
  .media-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .dms-doc {
    grid-template-columns: 1fr;
  }

  .dms-doc-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .wide-panel:first-child {
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .hero-lead {
    font-size: 17px;
  }

  .content-section,
  .intro,
  .governance,
  .documents,
  .stats,
  .contact {
    padding-block: 54px;
  }

  .top-strip-inner {
    justify-content: center;
    text-align: center;
  }
}
