/* Navigation, entrance animations and the responsive rules shared by every page.
   Moved here from inline <style> in Nav.php so browsers download it once and cache it.
   Rules for Arabic pages are scoped with :where(html[lang="ar"]) and kept in place:
   :where() adds no specificity, so the cascade is exactly what the inline PHP
   `if ($language == "Ar")` blocks produced. Every page must keep <html lang="ar|en">. */

@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
  }


  body {
    /* background: red;
    height: 100vh;
    min-height: 100vh;
    padding: 0px;
    margin: 0px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    margin: 0;
    padding: 0; */
  }


  html {
    overflow: scroll;
    overflow-x: hidden;
  }

  ::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }

  ::-webkit-scrollbar-thumb {
    background: #FF000000;
  }

  * {
    user-select: none;
    -webkit-user-select: none;
    /* Safari and Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    -webkit-touch-callout: none;
    /* iOS Safari touch callout */
    -webkit-tap-highlight-color: transparent;
  }


  .SubmitButton span {
    transition-duration: 400ms;
    font-size: 16px;
  }

  :root {
    --PaddingX: 12rem;
  }



  header {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
    padding: 36px calc(var(--PaddingX) / 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .HeaderLogoA {
    font-size: 0px;

  }

  .HeaderLogo {
    display: inline-block;
    height: auto;
    width: auto;
    max-width: 180px;
  }




  nav {
    --_clr-txt: rgb(255, 255, 255);
    --_clr-txt-svg: rgb(255, 255, 255);
    /* speed of rotating text */
    --_ani-speed: 8s;
    display: flex;
    justify-content: space-between;
    gap: 0rem;
  }

  .LanguageBtn {
    display: block;
    background-image: url("../imgs/Icons/Ar.webp");
    background-size: 30px;
    background-position: center;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    filter: invert(1);
    padding: 0px;
    margin: 0px;
    font-size: 0px;
    appearance: unset;
    transition-duration: 100ms;
    margin-top: -3px;
  }

  /* Arabic pages link to the English version, so they show the English icon. */
  :where(html[lang="ar"]) .LanguageBtn {
    background-image: url("../imgs/Icons/En.webp");
  }

  .LanguageBtn:hover {
    background-size: 35px;
  }

  nav a {
    appearance: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-decoration: none;
    text-transform: none;
    line-height: normal;
    overflow: visible;
    text-align: center;
    color: #FFF;
  }


  nav>a {
    position: relative;
    display: grid;
    place-content: center;
    grid-template-areas: 'stack';
    padding: 0 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
    color: #FFF !important;
    font-weight: 400;
    font-size: 16px;
    color: white;
    text-decoration: none;
    /* margin-left: 32px; */
  }

  nav a.Active {
    font-weight: 900;
  }

  nav a:hover {
    color: #FFF !important;
  }

  /* place button items on top of each other */
  nav>a>span {
    transition: all 300ms ease-in-out;
    grid-area: stack;
  }

  /* nav icon */
  nav>a>span:last-of-type {
    margin-top: 0.25rem;
    transform: scale(0);
    transition-delay: 0ms;
    border-radius: 50%;
  }

  /* hover - hide text */
  nav>a:focus-visible>span:first-of-type,
  nav>a:hover>span:first-of-type {
    transform: scale(0);
  }

  /* hover - reveal icon */
  nav>a:focus-visible>span:last-of-type,
  nav>a:hover>span:last-of-type {
    transform: scale(1);
  }

  /* nav SVG circular text*/
  nav>a>svg {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    opacity: 0;
    text-transform: uppercase;
    transition: all 300ms ease-in-out;
    color: var(--_clr-txt-svg);
    pointer-events: none;
    color: #FFF !important;
  }

  /* hover - reveal rotating SVG */
  nav>a:focus-visible>svg,
  nav>a:hover>svg {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition-delay: 150ms;
    transition: all 300ms ease-in-out;
  }

  /*
@supports (-webkit-touch-callout: none) {
  /* specific to iOS devices * / 
  button svg {
      /* adjust position for iOS * /
      translate: -50% -50%;
      animation: rotate var(--_ani-speed) linear infinite;
  }
}
@supports not (-webkit-touch-callout: none) {
 */

  a svg g {
    transform-origin: center;
    animation: rotate var(--_ani-speed) linear infinite;
    /* Spin only while the circular label is shown. Six endless SVG animations used to
       run on every page, keeping the main thread busy every frame for nothing. */
    animation-play-state: paused;
  }

  nav>a:hover>svg g,
  nav>a:focus-visible>svg g {
    animation-play-state: running;
  }

  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  :root {
    --animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-duration: 1s;
  }

  .flipInY {
    -webkit-animation-name: flipInY;
    animation-name: flipInY;
  }

  .flipOutY {
    -webkit-animation-name: flipInY;
    animation-name: flipInY;
    animation-direction: reverse;
  }

  .slideInUp {
    -webkit-animation-name: slideInUp;
    animation-name: slideInUp;
  }

  .slideInDown {
    -webkit-animation-name: slideInDown;
    animation-name: slideInDown;
  }

  .slideInLeft {
    -webkit-animation-name: slideInleft;
    animation-name: slideInleft;
  }

  .slideInRight {
    -webkit-animation-name: slideInRight;
    animation-name: slideInRight;
  }

  .fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
  }

  .zoomIn {
    -webkit-animation-name: zoomIn;
    animation-name: zoomIn;
  }

  .zoomReverseIn {
    -webkit-animation-name: zoomReverseIn;
    animation-name: zoomReverseIn;
  }

  .flipInY {
    -webkit-animation-name: flipInY;
    animation-name: flipInY;
  }

  .flipOutY {
    -webkit-animation-name: flipInY;
    animation-name: flipInY;
    animation-direction: reverse;
  }

  @-webkit-keyframes flipInY {
    0% {
      opacity: 0;
      transform: perspective(90vw) rotateX(-67.5deg);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes flipInY {
    0% {
      opacity: 0;
      transform: perspective(90vw) rotateX(-67.5deg);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @-webkit-keyframes slideInUp {
    0% {
      opacity: 0;
      transform: translateY(25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes slideInUp {
    0% {
      opacity: 0;
      transform: translateY(25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @-webkit-keyframes slideInDown {
    0% {
      opacity: 0;
      transform: translateY(-25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes slideInDown {
    0% {
      opacity: 0;
      transform: translateY(-25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @-webkit-keyframes slideInleft {
    0% {
      opacity: 0;
      transform: translateX(25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes slideInleft {
    0% {
      opacity: 0;
      transform: translateX(25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @-webkit-keyframes slideInRight {
    0% {
      opacity: 0;
      transform: translateX(-25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes slideInRight {
    0% {
      opacity: 0;
      transform: translateX(-25%);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  [data-animation] {
    opacity: 0;
    -webkit-animation-timing-function: var(--animation-timing-function);
    animation-timing-function: var(--animation-timing-function);
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-duration: var(--animation-duration);
    animation-duration: var(--animation-duration);
    /* No permanent will-change here: it kept a GPU layer alive for every animated element
       (about 80 on the home page) long after its animation ended. Browsers promote
       transform/opacity animations on their own while they run. */
  }











  .FlexyRowtillMobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0px 0px;
    margin: auto;
    margin-bottom: 20px;

  }

/* ---- Arabic pages ---- */
    :root:where([lang="ar"]) {
      --FontFamily: "Noto Kufi Arabic", sans-serif !important;
    }


    :where(html[lang="ar"]) h1,
    :where(html[lang="ar"]) h2,
    :where(html[lang="ar"]) h3,
    :where(html[lang="ar"]) h4,
    :where(html[lang="ar"]) h5,
    :where(html[lang="ar"]) h6,
    :where(html[lang="ar"]) p,
    :where(html[lang="ar"]) input,
    :where(html[lang="ar"]) select,
    :where(html[lang="ar"]) textarea {
      direction: rtl;
    }


    :where(html[lang="ar"]) .copyright-text {
      direction: rtl;
      line-height: 1.5;
    }

    /* Footer address: right to left, so its commas sit where Arabic readers expect them;
       the phone numbers and the email inside it still read left to right. */
    :where(html[lang="ar"]) footer pre {
      direction: rtl;
    }

    :where(html[lang="ar"]) footer pre a {
      direction: ltr;
      unicode-bidi: isolate;
    }

    :where(html[lang="ar"]) nav {
      direction: rtl;
    }

    :where(html[lang="ar"]) nav svg {
      direction: ltr;
    }

    :where(html[lang="ar"]) .HeroBG {
      transform: scaleX(-1);
    }

    :where(html[lang="ar"]) .parallax__layer-title {
      direction: rtl;
      left: auto;
      right: 0;
    }

    :where(html[lang="ar"]) .parallax__title {
      text-align: right;
    }

    :where(html[lang="ar"]) .parallax__title.Third {
      line-height: 1.5;
    }

    :where(html[lang="ar"]) .HeroCTA {
      font-weight: 400;
      line-height: 1.5;
    }

    /* .WelcomeSection p {
      direction: rtl;
    } */



    :where(html[lang="ar"]) .AboutSection.Ar {
      direction: rtl;
    }

    :where(html[lang="ar"]) .AboutSection.Ar .GoalsCard img {
      margin-left: 0px;
      margin-right: -10px;
    }

    :where(html[lang="ar"]) .AboutSection.Ar .AboutCard {
      padding: 72px 100px;
      padding-left: 36%;
      background-position: calc(0% - 100px) calc(100% + 136px);
    }

    :where(html[lang="ar"]) .ServicesSection h2 {
      text-align: right;
      line-height: 1.5;
      font-weight: normal;
    }

    :where(html[lang="ar"]) .ServicesSection h2 span {
      line-height: 2;
    }

    :where(html[lang="ar"]) .ServiceCard {
      text-align: right;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-end;
    }

    :where(html[lang="ar"]) .ServiceCard h3 {
      padding: 0px;
      text-align: right;
      direction: rtl;
      width: calc(100% - 100px);
      display: inline-block;
    }

    :where(html[lang="ar"]) .Heading1 {
      line-height: 1.5;
    }

    :where(html[lang="ar"]) .ActionSteps {
      align-items: flex-end;
    }

    :where(html[lang="ar"]) .ActionSteps p {
      text-align: right;
    }

    :where(html[lang="ar"]) .ActionSteps p:first-child span {
      margin-left: 0px;
      margin-right: 5px;
    }


    :where(html[lang="ar"]) .parallax__title {
      margin-bottom: 15px;
    }


    :where(html[lang="ar"]) .NavListSection {
      flex-direction: row-reverse;
    }

    :where(html[lang="ar"]) .intro-head .title,
    :where(html[lang="ar"]) .intro-head .eyebrow,
    :where(html[lang="ar"]) .intro-head .sub,
    :where(html[lang="ar"]) .ImpactHeader h2,
    :where(html[lang="ar"]) .ImpactHeader p {
      text-align: right;
    }

    :where(html[lang="ar"]) .intro-head .title {
      line-height: 1.5;
    }

    :where(html[lang="ar"]) .plist li a {
      direction: rtl;
      flex-direction: row-reverse;
    }

    :where(html[lang="ar"]) .pitem .num {
      right: auto;
      left: 1rem;
    }

    :where(html[lang="ar"]) .pitem .label span {
      text-align: right;
    }

    :where(html[lang="ar"]) .service:nth-of-type(even) .service__content,
    :where(html[lang="ar"]) .service:nth-of-type(odd) .service__content {
      align-items: flex-start;
      direction: rtl;
      padding: 3rem 6vw 3rem 2rem;
    }

    :where(html[lang="ar"]) .service__text {
      text-align: right;
      direction: rtl;
    }

    :where(html[lang="ar"]) .kicker::after {
      margin-left: 0px;
      margin-right: 10px;
    }




    :where(html[lang="ar"]) .FlexyRowtillMobile {
      display: flex;
      flex-direction: row-reverse;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      flex-wrap: wrap;
    }

    :where(html[lang="ar"]) .ServicesSection .ServicesPara {
      text-align: right;
    }

    :where(html[lang="ar"]) .site-footer .row {
      flex-direction: row-reverse;
      text-align: right;
    }

    :where(html[lang="ar"]) .FooterLogo {
      margin-left: 0px;
      margin-right: -10px;
    }

    :where(html[lang="ar"]) .footer-links a {
      line-height: 1.2;
    }

    :where(html[lang="ar"]) .ActionStepsSection {
      direction: rtl;
      padding-right: var(--PaddingX);
      padding-left: var(--PaddingX);
      background-position: calc(0% - 200px) calc(100% + 190px);
      background-size: 500px auto;
    }

    :where(html[lang="ar"]) .ActionStepsSection h2 {
      text-align: right;
      background-position: right top;
    }

    :where(html[lang="ar"]) .ActionStepsSection p {
      text-align: right;
      margin: 0px;
    }

    :where(html[lang="ar"]) .StepsButtonsDiv {
      justify-content: flex-start;
      align-items: flex-start;
    }

    :where(html[lang="ar"]) .StepsLine {
      right: 24px;
      left: auto;
    }

    :where(html[lang="ar"]) .StepBtn::before {
      margin-right: 0px;
      margin-left: 10px;
    }

    :where(html[lang="ar"]) .ActionSteps {
      align-items: flex-start;
    }

    :where(html[lang="ar"]) .ActionSteps p {
      margin-top: 10px;
    }

.MenuBtn {
    display: none;
    width: 25px;
    height: 25px;
    margin: 0px auto 10px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 11px 6px;
    background-color: #94bfc690;
    border: 1px solid #FFFFFF20;
    border-radius: 4px;
    background-size: cover;
    font-size: 0px;
    /* background-image: url(../imgs/Hero/BG.webp); */

  }

  .MenuBtn span:after,
  .MenuBtn span:before {
    content: "";
    position: absolute;
    left: 0;
    top: -5px;
  }

  .MenuBtn span:after {
    top: 5px;
  }

  .MenuBtn span {
    position: relative;
    display: block;
  }

  .MenuBtn span,
  .MenuBtn span:after,
  .MenuBtn span:before {
    width: 100%;
    height: 1px;
    background-color: #FFF;
    transition: all 0.3s;
    backface-visibility: hidden;
    border-radius: 2px;
  }

  /* on activation */
  .MenuBtn.Active span {
    background-color: transparent;
  }

  .MenuBtn.Active span:before {
    transform: rotate(45deg) translate(5px, 5px);
    top: -7px;
  }

  .MenuBtn.Active span:after {
    transform: rotate(-45deg) translate(7px, -8px);
    top: 11px;
  }


  .Arrow {
    position: absolute;
    top: 0px;
    right: 0px;
    display: block;
    transition-duration: 200ms;
    transform: scale(0);
    color: #FFF;
    padding: 8px;
    font-size: 30px;
  }

  *:hover>.Arrow {
    transform: scale(1);
  }



  .BR600 {
    display: none;
  }

  .LanguageBtn.Ar {
    display: none;
  }

  .LanguageBtn.En {
    display: inline-block;
  }






  
  /* Arabic Media Queries */

  :where(html[lang="ar"]) .HeroBigLogo {
    object-position: left;
    left: 0px;
    right: auto;
  }


  :where(html[lang="ar"]) .parallax__title.Third {
    max-width: 600px;
  }

  :where(html[lang="ar"]) .Arrow {
    scale: -1 1;
    left: 0px;
    right: auto;
  }


  :where(html[lang="ar"]) .LanguageBtn.En {
    display: none;
  }

  :where(html[lang="ar"]) .LanguageBtn.Ar {
    display: inline-block;
  }

  
  /* Arabic Media Queries - END */





  /* MAX - Width */
  @media screen and (max-width: 1600px) {
    :root {
      --PaddingX: 6rem;
    }


    .GoalsSection {
      display: flex;
      /* important */
      align-items: stretch;
      justify-content: space-around;
    }

    .GoalsCard {

      height: auto;
    }

    .GoalsCard p {
      height: 100%;
    }

    .AboutCard,
    .GoalsCard,
    .ServiceCard {
      padding: calc(var(--PaddingX) / 2);
    }

    .AboutCard {
      padding-right: 36%;
    }

    .ServicesCardsDiv {
      flex: 3;
      display: flex;
      align-items: stretch;
      justify-content: stretch;
      flex-wrap: wrap;
      align-content: stretch;
      flex-direction: row;
    }

    .ServiceCard {
      width: auto;
      min-width: 300px;
      flex-grow: 1;
      max-width: unset;
    }

    .ServiceCard h3 {
      font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .OneCountrySmallDiv h3 {
      font-size: clamp(0.8rem, 2vw, 1rem);
    }


    .ActionStepsSection {
      padding-right: var(--PaddingX);
      padding-left: var(--PaddingX);
    }


  }

  @media screen and (max-width: 1300px) {


    

    /* Arabic Media Queries */
    :where(html[lang="ar"]) .ActionStepsSection {
      padding-left: var(--PaddingX);
      padding-right: var(--PaddingX);
    }

    :where(html[lang="ar"]) .ActionSteps p {
      font-size: clamp(0.8rem, 1.2vw, 2rem);
    }

    
  }


  @media screen and (max-width: 1200px) {

    nav>a {
      padding: 0 0.5rem;
    }

    .LanguageBtn {
      width: 40px;
      height: 40px;
      margin-top: -7px;
    }

    .AboutCard p,
    .GoalsCard p {
      font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .GoalsCard img {
      display: block;
      margin-bottom: 0px;
    }

    .OneCountrySmallDiv {
      width: calc(33% - 8px);
    }


    .ActionStepsSection {
      overflow: unset;
    }

    .ActionStepsSection ul {
      padding-left: 10px;
      padding-right: 0px;
    }

    .StepsButtonsDiv {
      margin-left: calc(calc(-1 * var(--PaddingX)) - 25px);
    }


    

    /* Arabic Media Queries */
    :where(html[lang="ar"]) .FlexyRowtillMobile {
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-end;
      gap: 0px;
    }

    :where(html[lang="ar"]) .ServicesSection h2 {
      margin-bottom: 0px;
    }

    :where(html[lang="ar"]) .StepsButtonsDiv {
      margin-left: 0px;
    }

    :where(html[lang="ar"]) .ActionStepsSection ul {
      padding-left: 0px;
      padding-right: 0px;
    }

    
  }



  @media screen and (max-width: 1100px) {
    .GoalsCard img {
      display: inline-block;
      margin-bottom: -10px;
    }

    .GoalsCard {
      padding: calc(var(--PaddingX) / 2);
      height: auto;
      width: 100%;
    }

    .OneCountrySmallDiv {
      width: calc(50% - 8px);
    }

    .AboutSection.Ar .AboutCard {
      padding: calc(var(--PaddingX) / 2);
      padding-left: 36%;
      background-size: 200px auto;
      background-position: calc(0% - 80px) calc(100% + 68px);
    }

    .ChooseList li {

      background-color: #FFFFFF20;
      backdrop-filter: blur(5px);
      border: 1px solid #FFFFFF20;


    }


  }



  @media screen and (max-width: 1000px) {
    .HeaderLogo {
      max-width: 150px;
      font-size: 14px;
    }

    .AboutCard {
      /* padding: calc(var(--PaddingX) / 2); */
      padding-right: 15%;
      background-position: calc(100% + 72px) calc(100% + 72px);
      background-size: 200px auto;
    }

    .AboutCard {
      padding-bottom: var(--PaddingX);
    }

    nav>a {
      font-size: 14px;
    }



    :where(html[lang="ar"]) .NavListSection {
      flex-direction: column;
    }

    
  }

  @media screen and (max-width: 900px) {




    .owl-carousel *[data-animation] {
      transform: unset;
      opacity: 1;
      animation: none;
    }



    .ServicesCardsDiv {
      flex-direction: column;
      padding: 0px var(--PaddingX);
    }

    .WhyChooseUs {
      padding: calc(0.5 * var(--PaddingX));
    }

    .ServiceCard {
      min-width: unset;
      max-width: unset;
      display: flex;
      flex-direction: row;
      min-height: unset;
      padding: calc(0.25 * var(--PaddingX));
      justify-content: space-between;
      align-items: center;
    }

    .ServiceCard img {
      margin: 0px
    }

    .ServiceCard h3 {
      position: static;
      display: block;
      width: auto;
    }


    header {
      padding: 20px calc(var(--PaddingX) / 4);
    }

    .MenuBtn {
      display: block;
      top: 20px;
      right: 20px;
      scale: 1.1;
      transform-origin: right top;
    }

    nav {
      pointer-events: none;
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0px;
      left: 0px;
      overflow-y: auto;
      /* opacity: 0; */
      -webkit-clip-path: circle(0% at 91.5% 75px);
      clip-path: circle(0% at 91.5% 75px);
      transition: 300ms cubic-bezier(0.7, 0.2, 1, 1);
      z-index: 9;
      background: #000;
      width: 100%;
      height: 100%;
      justify-content: center;
      align-items: center;
    }

    nav::before {
      content: "";
      width: 104%;
      height: 102%;
      border-radius: 8px;
      background-image: linear-gradient(var(--rotate), #1cb8d3, #014042 43%, #014042);
      position: absolute;
      z-index: -1;
      top: -1%;
      left: -2%;
      animation: spin 20s linear infinite;
    }

    .LanguageBtn.En {
      display: inline-block;
    }

    .LanguageBtn.Ar {
      display: none;
    }



    :root {
      --card-height: 65vh;
      --card-width: calc(var(--card-height) / 1.5);
    }

    nav::after {
      position: absolute;
      content: "";
      top: calc(var(--card-height) / 6);
      left: 0;
      right: 0;
      z-index: -1;
      height: 100%;
      width: 100%;
      margin: 0 auto;
      transform: scale(0.8);
      filter: blur(calc(var(--card-height) / 6));
      background-image: linear-gradient(var(--rotate), #1cb8d3, #014042 43%, #014042);
      opacity: 1;
      transition: opacity .5s;
      animation: spin 20s linear infinite;
    }

    /* The rotating, blurred menu background repaints the whole screen every frame.
       Run it only while the menu is open, not all the time behind the closed menu. */
    nav:not(.Active)::before,
    nav:not(.Active)::after {
      animation-play-state: paused;
    }


    nav>a {
      width: auto;
      text-align: center;
      padding: 10px 20px;
      margin: 10px 0px
    }

    .LanguageBtn {
      margin: 20px 0px
    }

    nav.Active {
      -webkit-clip-path: circle(270% at 91.5% 75px);
      clip-path: circle(270% at 91.5% 75px);
      /* opacity: 1; */
      pointer-events: auto;
    }



    .HeroBigLogo {
      width: auto;
      max-width: none;
      height: 80vh;
    }


    .parallax__title.Third {
      max-width: 100%;
    }



    .OneCountrySmallDiv {
      opacity: 1 !important;
      min-width: unset;
    }

    .ServicesSection,
    #OneCountrySection {
      padding: 50px 0px;
    }

    .FlexyRowtillMobile {
      padding: 0px var(--PaddingX);
    }

    .owl-stage {
      padding: 0px var(--PaddingX);
    }

    /* .owl-stage-outer {
      height: 360px;
    } */

    .owl-theme .owl-dots .owl-,
    .owl-dots {
      margin: 5px;
      display: none;
    }

    .OneCountrySmallDiv {
      width: auto;
      max-width: unset;
    }

    .OneCountrySmallDiv img {
      max-width: unset;
      max-height: unset;
    }

    #OneCountrySection,
    #OneCountrySection .owl-stage-outer {
      max-height: unset;
    }

    .ServiceCard {
      box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    }

    .ServicesSection br {
      display: none;
    }


    .ActionSteps p {
      font-size: clamp(0.8rem, 1.2vw, 2rem);
    }

    .ActionSteps.Active {
      padding: calc(var(--PaddingX) / 3);
      /* margin: 0px; */
    }

    

    /* Arabic Media Queries */
    :where(html[lang="ar"]) .ActionStepsSection {
      padding: calc(var(--PaddingX) / 2);
    }

    :where(html[lang="ar"]) .AboutSection.Ar .AboutCard {
      padding: calc(var(--PaddingX) / 2);
      padding-bottom: 25%;
      background-size: 200px auto;
      background-position: calc(0% - 80px) calc(100% + 68px);
    }


    
  }

  @media screen and (max-width: 800px) {


    .ActionStepsSection {
      padding: var(--PaddingX) calc(var(--PaddingX) / 2);
    }

    .StepTitleIn {
      display: block;
      font-weight: bold;
      margin-top: 10px;
    }

    .StepBtn span {
      display: none;
    }

    .StepsButtonsDiv {
      min-width: unset;
    }

    .ActionSteps {
      width: 100%;
    }

    .StepsButtonsDiv {
      margin-left: 0;
      margin-right: 0;
      position: absolute;
      left: 70px;
    }

    .ActionStepsSection ul {
      padding-left: 0px;
      padding-right: 0px;
      width: 100%;
    }





    .FlexyRowtillMobile {
      gap: 0px;
      margin-bottom: 36px;
    }

    .MwanText h2 {
      font-size: clamp(1.2rem, 5vw, 4rem);
    }

    .MwanText h2 span {
      font-size: clamp(1rem, 3vw, 3rem);
    }

    .MwanText p {
      font-size: clamp(0.8rem, 2vw, 2rem);
    }

    .ServicesPara {
      font-size: clamp(0.8rem, 2vw, 2rem);

    }

    .ActionStepsSection {
      background-position: calc(100% + 100px) calc(100% + 100px);
      background-size: 300px auto;
    }


    

    /* Arabic Media Queries */
    :where(html[lang="ar"]) .ActionStepsSection {
      background-position: calc(0% - 120px) calc(100% + 100px);
      background-size: 300px auto;
    }



    :where(html[lang="ar"]) .StepsButtonsDiv {
      right: 70px;
      left: auto;
    }

    
  }

  @media screen and (max-width: 700px) {
    .HeroTextLogo {
      max-width: 40vw;
    }

    .NCECLogo {
      max-width: 36vw;
    }

    .parallax__layer-title br {
      line-height: 0.1;
    }

    .parallax__title.Third {
      margin-top: 5px;
    }

  }

  @media screen and (max-width: 600px) {

    :root {
      --PaddingX: 3rem;
    }

    .WhyChooseUs {
      padding: calc(1 * var(--PaddingX));
      background-image: none;
    }

    .AboutCard,
    .GoalsCard,
    .ServiceCard {
      padding: calc(var(--PaddingX));
    }

    .ActionStepsSection {
      padding: var(--PaddingX);
    }

    .StepsButtonsDiv {
      left: 20px;
    }

    .ActionSteps.Active {
      padding: var(--PaddingX);
    }

    .ActionSteps {
      background-color: #F8F8F899;

    }

    header {
      padding: 20px calc(var(--PaddingX));
    }

    .HeaderLogo {
      max-width: 130px;
    }



    .parallax__title.Third,
    .HeroCTA,
    .ServicesPara {
      font-size: clamp(0.8rem, 2vw, 2rem);
    }

    .HeroWhatsapp {
      width: 30px;
      height: 30px;
      background-size: 30px;
      margin-left: 0px;
    }

    .parallax__layer-title {
      padding: calc(var(--PaddingX));

    }

    .WelcomeSection p {
      font-size: clamp(0.8rem, 2vw, 2rem);
    }

    .BR600 {
      display: block;
    }

    .AboutCard,
    .GoalsCard {
      padding: calc(var(--PaddingX));
    }

    .AboutCard {
      padding-bottom: calc(var(--PaddingX) * 2);
    }

    .ActionStepsSection .ServicesPara {
      margin-bottom: -10px;
    }


    .AboutCard p,
    .GoalsCard p {
      text-align: justify;
    }


    

    /* Arabic Media Queries */
    :where(html[lang="ar"]) .StepsButtonsDiv {
      right: 22px;
      left: auto;
    }

    :where(html[lang="ar"]) .ServicesSection h2 {
      font-size: clamp(0.8rem, 5vw, 2rem);
    }



    
  }


  @media screen and (max-width: 500px) {

    :root {
      --PaddingX: 2rem;
    }

    .StepsButtonsDiv {
      left: 27px;
    }



    .AboutCard {
      background-position: calc(100% + 80px) calc(100% + 80px);
      background-size: 150px auto;
      padding-bottom: var(--PaddingX);
    }

    .MwanLogo {
      max-width: 100%;
    }

    .HeroBigLogo {
      width: auto;
      max-width: none;
      height: 50vh;
    }

    .StepsLine {
      display: none;
    }

    .StepBtn {
      border-radius: 0px;
      margin: 0px;
      padding: 0px;
      flex-grow: 1;
      display: flex;
    }

    .StepBtn::before {
      border-radius: 0px;
      margin: 0px;
      outline: 0;
      padding: 0px;
      border: 0px;
      height: 100%;
      width: 40px;
      color: #00000050;
      border-bottom: 1px solid #00000020;
      background-color: #1cb8d300;
      display: flex;
      justify-content: center;
      align-items: center;
      padding-right: 5px;
    }

    .StepBtn.Active::before {
      color: #03d1b7;
      background-color: #1cb8d300;
    }

    .StepsButtonsDiv {
      position: static;
      /* margin-left: calc(-0.5 * var(--PaddingX)); */
      /* border-top-left-radius: 8px;
      border-bottom-left-radius: 8px; */
      overflow: hidden;
      border-right: 1px solid #00000010;
      padding: 10px 0px;
    }

    .ActionStepsSection ul {
      /* width: calc(100% + 0.5 * var(--PaddingX)); */
      margin: 0px;
    }

    .ActionSteps {
      border: none;
      border-radius: 0px;
    }



    
    /* Arabic Media Queries */

    :where(html[lang="ar"]) .ServicesSection h2 span {
      font-size: 70%;
    }

    :where(html[lang="ar"]) .AboutSection.Ar .AboutCard {
      padding: calc(var(--PaddingX));
      padding-bottom: 30%;
      background-size: 180px auto;
      background-position: calc(0% - 71px) calc(100% + 60px);
    }

    :where(html[lang="ar"]) .pitem .num {
      text-align: left;
      left: 0rem;
    }

    :where(html[lang="ar"]) .StepsButtonsDiv {
      border-right: 0px solid #00000010;
      border-left: 1px solid #00000010;
      margin-left: 0px;
      /* margin-right: calc(-0.5 * var(--PaddingX)); */
    }

    :where(html[lang="ar"]) .StepBtn::before {
      padding-right: 0px;
      padding-left: 5px;
    }

    
  }

  @media screen and (max-width: 400px) {

    :root {
      --PaddingX: 2rem;
    }

    .parallax__layer-title,
    header {
      padding: var(--PaddingX);
    }




  }









  /* MAX - HEIGHT */
  @media screen and (max-height: 550px) {

    .HeroTextLogo {
      max-height: 9vh;
      width: auto;
    }

    /* header {
      padding: 20px var(--PaddingX);
    } */

    .parallax__layer-title {
      padding-bottom: 0rem;
    }

    .NCECLogo {
      margin-bottom: 5px;
      margin-left: 0px;
    }

  }

  /* MAX - HEIGHT - End */
