@font-face {
  font-family: "Graphik Arabic";
  src:
    url("../assets/fonts/graphik-arabic-regular.woff2") format("woff2"),
    url("../assets/fonts/graphik-arabic-regular.ttf") format("truetype");
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src:
    url("../assets/fonts/Graphik-Arabic-SemiBold.woff2") format("woff2"),
    url("../assets/fonts/Graphik-Arabic-SemiBold.ttf") format("truetype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Arabic";
  src:
    url("../assets/fonts/graphik-arabic-bold.woff2") format("woff2"),
    url("../assets/fonts/graphik-arabic-bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Graphik Arabic", sans-serif;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.5;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------------------skip link--------------------- */
/* Off-screen until it takes focus, rather than display:none, which would
   drop it out of the accessibility tree and leave keyboard users with no
   way past the navigation. */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 1100;
  padding: 1.2rem 2.4rem;
  /* Light on the dark header, so it reads over the logo it lands on. */
  background-color: var(--bs-white);
  color: var(--bs-purple-dark);
  border-end-end-radius: 0.8rem;
  border-end-start-radius: 0.8rem;
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.skip-link:focus {
  inset-inline-start: 0;
}

.skip-link:focus-visible {
  outline-color: var(--bs-white);
  outline-offset: 2px;
}

/* ---------------------focus--------------------- */
/* Only form controls carried a focus style; on the purple header the default
   outline is invisible, so keyboard position was impossible to follow. */
:focus-visible {
  outline: 2px solid var(--bs-purple-dark);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.bg-purple-dark :focus-visible,
.main-nav :focus-visible,
.leap-header :focus-visible {
  outline-color: var(--bs-white);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--bs-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 768px) {
  html{
    overflow-x: hidden;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}

/* ---------------------------navbar--------------------------- */
.main-nav {
    transition: 0.4s ease;
}

.main-nav.is-fixed {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 1050;
    isolation: isolate;
}

.nav-raised {
    z-index: 1050 !important;
}

.main-nav.is-fixed .container {
    background-color: var(--bs-purple-dark);
    padding: 2.2rem;
    border-radius: 2.4rem;
}

/* Inside pages (js/sticky-nav.js): the same pinned pill as the home page. */
/* !important: news.css positions the masthead nav with a more specific
   selector, and loads after this file. */
.site-nav.is-fixed {
    position: fixed !important;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0 !important;
    background: none !important;
}

.site-nav.is-fixed > .container,
.site-nav.is-fixed > .nav-container {
    background-color: var(--bs-purple-dark);
    padding: 2.2rem;
    border-radius: 2.4rem;
}

/* The news masthead's nav has no container of its own, so it keeps the
   width of the slot it left. */
.site-nav.is-fixed > .nav-container {
    width: var(--site-nav-w);
    margin-inline: auto;
}

@media (max-width: 991px) {
  .site-nav.is-fixed > .container,
  .site-nav.is-fixed > .nav-container {
    padding: 1.4rem;
    border-radius: 1.6rem;
  }
}

/* Navbar sticky behaviour now works on all screen sizes.
   On mobile the offcanvas menu is used, so the bar itself is lightweight. */
@media (max-width: 991px) {
  .main-nav.is-fixed .container {
    background-color: var(--bs-purple-dark);
    padding: 1.4rem;
    border-radius: 1.6rem;
  }
}

.nav-links li a{
  transition: all 0.4s;
  display: inline-block;
  white-space: nowrap;
}

/* Seven links (Partnerships added) plus both logos don't fit a 1200-1399px
   container at full spacing, so tighten the gaps and type there instead of
   letting two-word links wrap. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .logo-links {
    gap: 3rem !important;
  }

  .nav-links {
    gap: 2.4rem !important;
  }

  .nav-links li a {
    font-size: 1.6rem !important;
  }
}

.nav-links li a.active{
  font-weight: 500;
}

.nav-links li a:hover{
  opacity: 0.8;
}

.logo-links{
  gap: 10rem;
}

/* NITC's mark leads the header; the endowment company's sits beside it at a
   visibly smaller size, as the client asked. */
.brand-logos {
  gap: 1.6rem;
}

/* Thin divider between the two marks. It is a pseudo-element placed with
   flex order, so the header markup on all 47 pages stays untouched. */
.brand-logos::before {
  content: "";
  order: 1;
  flex-shrink: 0;
  align-self: center;
  width: 1px;
  height: 4.4rem;
  background-color: rgba(255, 255, 255, 0.45);
}

.brand-logo-main {
  order: 0;
  width: auto;
  height: 6.4rem;
}

.brand-logo-endowment {
  order: 2;
  width: auto;
  height: 3.6rem;
}

.btn-lang{
  border-radius: 56px;
  padding: 1.2rem 2.4rem;
  white-space: nowrap;
}

.btn-lang img {
  width: 2.4rem;
  height: 2.4rem;
}

/* Language pill and menu button sit together at the far end of the bar. */
.nav-actions {
  gap: 1.2rem;
  flex-shrink: 0;
}

.btn-sidebar {
  padding: 0.6rem;
  border: 0;
  line-height: 0;
}

.btn-sidebar img {
  width: 4rem;
  height: 4rem;
}

/* Phones: one compact row — smaller marks, slimmer pill, no gap waste. */
@media (max-width: 575px) {
  .nav-container {
    gap: 1.2rem;
  }

  .brand-logos {
    gap: 1rem;
    min-width: 0;
  }

  .brand-logos::before {
    height: 3rem;
  }

  .brand-logo-main {
    height: 4.8rem;
  }

  .brand-logo-endowment {
    height: 2.8rem;
  }

  .nav-actions {
    gap: 0.6rem;
  }

  .btn-lang {
    padding: 0.8rem 1.4rem;
  }

  .btn-lang img {
    width: 2rem;
    height: 2rem;
  }

  .btn-sidebar img {
    width: 3.6rem;
    height: 3.6rem;
  }
}

@media (max-width: 374px) {
  .brand-logo-endowment,
  .brand-logos::before {
    display: none;
  }
}

/* ----------------------------sidebar----------------------- */
.offcanvas {
  background-color: var(--bs-purple-dark);
  width: 32rem;
  max-width: 90vw;
  border-inline-end: none !important;
}

/* ---------- header band ---------- */
.offcanvas-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 2.4rem;
}

.offcanvas-logo {
  height: 4.8rem;
  width: auto;
}

.offcanvas-brand-divider {
  width: 1px;
  height: 3.2rem;
  background-color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.offcanvas-endowment-logo {
  height: 2.8rem;
  width: auto;
  opacity: 0.85;
}

.btn-close-sidebar {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  color: var(--bs-white);
  flex-shrink: 0;
}

.btn-close-sidebar:hover,
.btn-close-sidebar:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.btn-close-sidebar svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- nav links ---------- */
.offcanvas-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-nav {
  flex: 1;
  padding: 1.6rem 1.6rem 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 1.3rem 1.6rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  font-weight: 400;
  border: 1px solid transparent;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 500;
  border-color: rgba(255, 255, 255, 0.22);
}

.sidebar-nav-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
  margin-inline-start: auto;
  transition: background 0.22s;
}

.sidebar-nav a:hover .sidebar-nav-dot,
.sidebar-nav a.active .sidebar-nav-dot {
  background: rgba(255,255,255,0.9);
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.6rem 1.6rem 0;
}

/* ---------- language toggle ---------- */
.sidebar-lang {
  padding: 1.6rem;
}

.sidebar-lang a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.9rem 1.8rem;
  border-radius: 5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.5rem;
  font-weight: 500;
  transition: background 0.22s, color 0.22s;
  text-decoration: none;
}

.sidebar-lang a:hover,
.sidebar-lang a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- contact footer ---------- */
.sidebar-contact {
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-contact-item:hover {
  color: #fff;
}

.sidebar-contact-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-contact-icon img {
  width: 1.6rem;
  height: 1.6rem;
  filter: brightness(0) invert(1);
}

.sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 1.2rem;
  padding: 1.2rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.22s;
  margin-top: 0.4rem;
}

.sidebar-cta:hover,
.sidebar-cta:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* The icons are dark or colored SVGs; the menu shows them white. */
.sidebar-lang img,
.sidebar-cta img {
  filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-nav a,
  .sidebar-lang a,
  .sidebar-cta,
  .btn-close-sidebar {
    transition: none;
  }
}

/* ------------------footer------------------ */
.footer-content{
  border: 1px solid var(--bs-gray-600);
  border-radius: 3.6rem;
}

/* Subsidiary-companies strip: on mobile, squeeze all four logos/marks
   into one row. flex-nowrap + auto-sized images let them share the width. */
@media (max-width: 767px) {
  .subsidiary-logos {
    flex-wrap: nowrap !important;
    gap: 1.2rem !important;
    justify-content: center !important;
  }

  .subsidiary-logos > a,
  .subsidiary-logos > img,
  .subsidiary-logos > div {
    flex: 1 1 0;
    min-width: 0;
  }

  .subsidiary-logos img {
    width: 100%;
    height: auto;
    max-height: 4.4rem;
    object-fit: contain;
  }

  /* The nested pair (developer-academy + tuwaiq) counts as one slot. */
  .subsidiary-logos .subsidiary-pair {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .subsidiary-logos .subsidiary-pair img {
    width: auto;
    max-height: 3.6rem;
  }

  .subsidiary-logos .subsidiary-pair .line-y {
    display: none;
  }
}

.section-title-line{
  height: 2px;
}

.line-y{
  width: 1px;
  height: 4.7rem;
}

.social-x{
  border: 1px solid var(--bs-gray-600);
  border-radius: 1.2rem;
  border-bottom: none;
}

.footer-line{
  width: 100%;
  height: 1px;
  background-color: var(--bs-gray-600);
}

/* ------------------gutter override------------------ */
@media screen and (max-width: 991px) {
  .g-5 {
    --bs-gutter-x: 1.5rem;
  }
}


/* ---------------- shared action buttons ---------------- */
/* Used by the consultation form, the FAQ page and the 404, so they
   live here rather than in the form-only stylesheet. */
.submit-btn {
  background-color: var(--bs-purple-dark);
  color: var(--bs-white);
  border-radius: 12px;
  text-decoration: none;
}

.btn-reset-form {
  border: 1px solid var(--bs-purple-dark);
  border-radius: 12px;
  color: var(--bs-purple-dark);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-reset-form:hover,
.btn-reset-form:focus-visible {
  background-color: var(--bs-purple-dark) !important;
  color: var(--bs-white);
}

/* ---------------- 404 ---------------- */
.notfound {
  border: 1px solid var(--bs-gray-600);
  border-radius: 2.4rem;
  background-color: var(--bs-gray-100);
  max-width: 90rem;
  margin-inline: auto;
}

.notfound-code {
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 1;
  color: var(--bs-purple-dark);
  opacity: 0.18;
}

.notfound-text {
  max-width: 62rem;
  margin-inline: auto;
}

.notfound-rule {
  width: min(100%, 40rem);
  height: 1px;
  background-color: var(--bs-gray-600);
}

/* ---------------- footer: company links and social accounts ---------------- */
.footer-brand-link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-brand-link:hover {
  opacity: 0.8;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--bs-gray-600);
  border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  border-color: var(--bs-purple-dark);
  background-color: var(--bs-gray-100);
}

@media (prefers-reduced-motion: reduce) {
  .footer-brand-link,
  .footer-social-link {
    transition: none;
  }
}

/* ---------------- footer: endowment logo and certificate links ---------------- */
.footer-awqaf-logo {
  width: auto;
  height: 8rem;
}

.footer-cert-link {
  display: inline-block;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-cert-link:hover,
.footer-cert-link:focus-visible {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-cert-link {
    transition: none;
  }
}
