@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');
:root {
  --ink: #142a3c;
  --muted: #5e6e7a;
  --blue: #18578a;
  --teal: #087c78;
  --line: #dce3e7;
  --paper: #f6f8f9;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.8 Tajawal, Arial, sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #14aaa3;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
main,
section,
article,
div {
  min-width: 0;
}
.shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--muted);
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}
.nav a:hover {
  color: var(--teal);
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 64px 72px;
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--teal);
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 62px);
  margin: 18px 0 22px;
  font-weight: 900;
  letter-spacing: -1px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
}
.hero-mark {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: #dce6ec;
}
.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #b9c6cf;
}
.section {
  padding-block: 56px;
}
.section-head,
.news-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}
.section-head h2,
.news-heading h2 {
  font-size: 32px;
  font-weight: 800;
}
.section-head p,
.news-heading > p {
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
}
.portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.portal {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.portal:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.num {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--teal);
  font-weight: 800;
}
.portal h3 {
  font-size: 25px;
  margin: 26px 0 12px;
}
.portal p {
  font-size: 16px;
  color: var(--muted);
  flex: 1;
}
.go {
  font-size: 14px;
  color: var(--blue);
  font-weight: 800;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.portal.dark {
  background: #122c41;
  color: white;
  border-color: #122c41;
}
.portal.dark p {
  color: #c0cfda;
}
.portal.dark .go,
.portal.dark .num {
  color: #7be1d5;
}
.portal.dark .go {
  border-color: #365065;
}
.quote {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  background: #e7efef;
  padding: 32px;
  border-inline-start: 4px solid var(--teal);
  border-radius: 4px;
}
.quote strong {
  font-size: 17px;
  color: var(--teal);
}
.quote p {
  font-size: 24px;
  line-height: 1.65;
  font-weight: 700;
  max-width: 840px;
}
.news-section {
  padding: 64px 0 72px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.news-heading .eyebrow {
  margin-bottom: 8px;
}
.news-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}
.news-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.news-card > div {
  padding: 22px;
}
.news-card time {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
}
.news-card h3 {
  font-size: 21px;
  margin: 10px 0 12px;
}
.news-card p {
  font-size: 15px;
  color: var(--muted);
}
.news-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
.site-footer {
  background: #0c2233;
  color: #c6d0d9;
  padding: 48px 0 24px;
}
.footer-inner,
.footer-bottom {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 56px;
  padding-bottom: 32px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-brand h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}
.footer-brand p,
.footer-contact p {
  font-size: 15px;
  max-width: 350px;
}
.footer-col h4 {
  font-size: 16px;
  color: white;
  margin: 0 0 18px;
}
.footer-links a {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.footer-contact a {
  display: inline-block;
  direction: ltr;
  color: #84cfde;
  margin-top: 12px;
}
.footer-bottom {
  border-top: 1px solid #304351;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.copy {
  font-size: 12px;
}
.esc-mark {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #7191a5;
}
@media (max-width: 900px) {
  .hero {
    gap: 30px;
  }
  .news-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal {
    padding: 20px;
  }
  .footer-inner {
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .shell,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 32px);
  }
  .topbar {
    flex-wrap: wrap;
    padding-block: 18px;
    gap: 16px;
  }
  .nav {
    gap: 24px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 36px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 17px;
  }
  .hero-mark {
    aspect-ratio: 4/3;
  }
  .section {
    padding-block: 32px;
  }
  .section-head,
  .news-heading {
    display: block;
  }
  .section-head p,
  .news-heading > p {
    margin-top: 12px;
  }
  .portals,
  .news-rail {
    grid-template-columns: 1fr;
  }
  .portal {
    padding: 24px;
  }
  .portal h3 {
    margin-top: 16px;
  }
  .quote {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }
  .quote p {
    font-size: 21px;
  }
  .news-section {
    padding-block: 40px;
  }
  .news-card img {
    aspect-ratio: 16/9;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    align-items: start;
  }
  .copy {
    max-width: 250px;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 10px;
  }
}
.news-rail {
  align-items: stretch;
}
.news-card {
  display: flex;
  flex-direction: column;
}
.news-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card p {
  flex: 1;
}
@media (min-width: 901px) {
  .news-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .news-card {
    grid-column: span 2;
  }
  .news-card:nth-last-child(-n + 2) {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .news-card:nth-last-child(-n + 2) img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    background: #e4eefb;
  }
  .news-card:nth-last-child(-n + 2) h3 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
.news-card[hidden] {
  display: none !important;
}
.news-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-link > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.news-link:hover h3 {
  color: var(--teal);
}
.news-actions {
  text-align: center;
  margin-top: 28px;
}
.news-actions button {
  font: 700 16px Tajawal, Arial, sans-serif;
  cursor: pointer;
}
.news-actions [hidden] {
  display: none;
}
.news-actions p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
@media (min-width: 901px) {
  .news-card:nth-last-child(-n + 2) {
    display: flex;
  }
  .news-card:nth-last-child(-n + 2) .news-link {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

/* Consistent cards across homepage and archives */
.portals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nav {
  flex-wrap: wrap;
}
.news-rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-card,
.news-card:nth-last-child(-n + 2) {
  grid-column: auto;
  display: flex;
}
.news-card:nth-last-child(-n + 2) .news-link {
  display: flex;
  flex-direction: column;
}
.news-card:nth-last-child(-n + 2) img {
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.news-card:nth-last-child(-n + 2) h3 {
  font-size: 21px;
}
@media (max-width: 900px) {
  .news-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .portals,
  .news-rail {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 16px;
  }
}

/* Unified blue project cards. */
.portals .portal {
  background: #122c41;
  color: white;
  border-color: #122c41;
}
.portals .portal p {
  color: #c0cfda;
}
.portals .portal .go,
.portals .portal .num {
  color: #7be1d5;
}
.portals .portal .go {
  border-color: #365065;
}
.portals .portal:hover {
  background: #183c58;
  border-color: #3c8dba;
}
