/* ---------------------------- Home ---------------------------- */

.home_About_Wrapper {
  background: #f9f9f9;
  position: relative;
  padding-block: 64px 168px;
  z-index: 2;
}

.home_About_Wrapper::before {
  content: "";
  background-image: url(./assets/icons/home-about-before.png);
  background-repeat: repeat;
  background-size: cover;
  width: 400px;
  height: 248px;
  position: absolute;
  top: -56px;
  inset-inline-end: -62px;
}

body:not(.rtl) .home_About_Wrapper::before {
  transform: rotateY(180deg);
}

.home_About_Wrapper .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}

.home_About_Top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.home_About_Cards_Wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home_About_Card {
  position: relative;
  overflow: hidden;
  z-index: 2;
  cursor: default;
}

.home_About_Card::before {
  content: "";
  opacity: 0.9;
  background: linear-gradient(180deg, #121212 0%, rgba(18, 18, 18, 0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 190px;
  z-index: 1;
  transition: 0.4s ease;
}

.home_About_Card::after {
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, #00232f 0%, #d7471f 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: 0.4s ease;
}

.home_About_Card_Text {
  position: absolute;
  top: 30px;
  right: 32px;
  width: 80%;
  z-index: 2;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home_About_Card_Text .icon:has(img) {
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}
.home_About_Card_Text .icon:has(img) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home_About_Card_Text::before {
  content: "";
  background: url(./assets/icons/about-card-before.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 96px;
  height: 178px;
  position: absolute;
  bottom: -122%;
  inset-inline-end: -30px;
  opacity: 0;
  transition: 0.4s ease;
}

.home_About_Card_Text h3 {
  color: var(--Gray-G100, #fff);
  font-size: 18px;
  font-weight: 600;
  line-height: 36px;
  transition: 0.4s ease;
}

.home_About_Card_Text .ezIcon {
  --icon: 36px;
}

.home_About_Card_Image {
  overflow: hidden;
}

.home_About_Card_Image img {
  filter: saturate(0);
  z-index: 0;
  transition: 0.4s ease;
}

.home_About_Card_Text p {
  transform: translateY(100px);
  opacity: 0;
  transition: 0.4s;
}

@media (min-width: 992px) {
  .home_About_Card:hover {
    .home_About_Card_Text p {
      transform: translateY(0);
      opacity: 1;
    }
    .home_About_Card_Text {
      top: 64px;
    }
    .home_About_Card_Text .icon:has(img) {
      width: 40px;
      height: 40px;
    }
    .home_About_Card_Text h3 {
      font-size: 24px;
      line-height: 48px;
    }

    .home_About_Card_Image img {
      filter: saturate(1) blur(3px);
      transform: scale(1.06);
    }
    .home_About_Card_Text::before {
      opacity: 1;
      bottom: -78%;
    }
  }
  .home_About_Card:hover::before {
    opacity: 0;
  }

  .home_About_Card:hover::after {
    opacity: 0.7;
  }
}

@media (max-width: 992px) {
  .home_About_Card_Text p {
    font-size: 12px;
    line-height: 1.6;
  }
  .home_About_Wrapper {
    padding-block: 64px 100px !important;
  }
  .home_About_Card_Text::before {
    inset-inline-end: -26px;
  }
  .home_About_Wrapper::before {
    width: 324px;
    height: 243px;
    top: -92px;
    left: -78px;
  }
  .home_About_Cards_Wrapper {
    width: 90vw !important;
    flex-wrap: wrap;
    gap: 16px !important;
    .home_About_Card {
      z-index: 2;
    }
  }

  .home_About_Card {
    width: calc(50% - 8px) !important;
    margin-inline-end: 0 !important;
  }
  .home_About_Card:hover::after {
    opacity: 0.8;
  }
  .home_About_Card_Image {
    width: 100% !important;
  }
  .home_About_Card_Text .ezIcon {
    --icon: 30px;
  }
  .home_About_Card_Text h3 {
    font-size: 16px;
    line-height: 32px;
  }
  .home_About_Card_Text::before {
    bottom: -186%;
  }
  .home_About_Card {
    .home_About_Card_Text p {
      transform: translateY(20px);
      opacity: 0;
    }
    .home_About_Card_Text {
      width: calc(100% - 16px) !important;

      inset-inline-start: 12px !important;
      top: 12px !important;
    }
    .home_About_Card_Text .ezIcon {
      --icon: 32px;
    }
    .home_About_Card_Text h3 {
      font-size: 16px;
      line-height: 32px;
    }
    .home_About_Card_Image img {
      filter: saturate(0) blur(1px);
      width: 100%;
    }
    .home_About_Card_Text::before {
      opacity: 1;
      bottom: -106%;
    }
  }
  .home_About_Card:hover {
    .home_About_Card_Text p {
      transform: translateY(0);
      opacity: 1;
    }
    .home_About_Card_Image img {
      filter: saturate(1);
      width: 100%;
    }
    .home_About_Card_Text::before {
      opacity: 1;
      bottom: -106%;
    }
  }

  .home_About_Card.slick-active::before {
    opacity: 0;
  }

  .home_About_Card.slick-active::after {
    opacity: 0.8;
  }
}

/* Home Services Slider */

.home_Services_Wrapper {
  position: relative;
  /* overflow: hidden; */
  padding-block: 72px 100px;
  margin-bottom: -70px;
  background: linear-gradient(180deg, #f9f9f9 0%, #fff 100%);
}

.home_Services_Wrapper::before {
  content: "";
  position: absolute;
  top: -52%;
  inset-inline-end: 0;
  width: 715px;
  height: 409px;
  background-image: url(./assets/icons/about-missions-after.png);
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 4;
}

body:not(.rtl) .home_Services_Wrapper::before {
  transform: rotateY(180deg);
}

.home_Services_Head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.home_Services_Top {
  text-align: start;
}

.home_Services_Sub {
  position: relative;
  width: fit-content;
  padding-inline-start: 70px;
}

.home_Services_Sub::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 0;
  width: 57px;
  height: 2px;
  background: var(--Secondary-S50);
}

.home_Services_Link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--Secondary-S99);
  padding: 14px 28px;
  transition: var(--transition);
}

.home_Services_Link .ezIcon {
  --icon: 20px;
  --icon-color: var(--Secondary-S50);
}

.home_Services_Link:hover {
  background: var(--Secondary-S95);
  color: var(--Secondary-S50) !important;
}

.home_Services_Main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 64px;
}

.home_Services_Slides {
  min-width: 0;
  flex: 0 0 calc(60% - 32px);
}

.home_Services_Slides .slick-list {
  background: var(--Gray-G100, #fff);
  box-shadow: 0 4px 64px 0 rgba(18, 18, 18, 0.08);
}

.home_Service_Slide {
  /* padding: 32px; */
}

/* .home_Service_Slide::before {
  content: "";
  background-image: url("./assets/icons/services-slide-before.svg");
  position: absolute;
  inset-inline-end: 20px;
  inset-block-end: 32px;
  width: 186px;
  height: 155px;
  z-index: 1;
  pointer-events: none;
} */

.home_Services_Slides_Top {
  display: flex;
  align-items: center;
  gap: 54px;
}

.home_Service_Image_Wrapper {
  width: 100%;
  height: 454px;
  overflow: hidden;
}

.home_Service_Image_Wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.home_Service_Card {
  position: relative;
  min-height: 390px;
  background: var(--Gray-G100, #fff);
  padding: 32px 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.home_Service_Card_Num {
  align-self: start;
  justify-self: center;
  color: var(--Secondary-S50);
  font-size: 80px;
  font-weight: 800;
  margin-top: 8px;
  line-height: 1;
}

.home_Service_Card_Title {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 12px;
  font-size: 20px !important;
  /* max-width: 500px; */
  /* height: 90px; */
}

.home_Service_Card_Title .ezIcon {
  --icon: 24px;
  --icon-color: var(--Gray-G80);
}

.home_Services_Slides_Arrows {
  width: 188px;
  position: absolute;
  bottom: 23px;
  /* transform: translateY(-50%); */
  inset-inline-start: 45%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
}

.home_Services_Slides_Dots {
  width: 214px;
  position: absolute;
  bottom: 40px;
  /* transform: translateY(-50%); */
  right: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home_Services_Slides_Dots .slick-dots {
  padding: 0 !important;
  display: flex;
  align-items: center;
  width: 92px;
  gap: 8px;
}

.home_Services_Slides_Dots .slick-dots li {
  height: 2px !important;
  flex: 1;
  transition: 0.3s;
}

.home_Services_Slides_Dots .slick-dots li.slick-active {
  flex: 4;
}

.home_Services_Slides_Dots .slick-dots li button {
  width: 100% !important;
  height: 2px !important;
  border-radius: 4px !important;
  background: #d9d9d9 !important;
}

.home_Services_Slides_Dots .slick-dots li.slick-active button {
  background: var(--Secondary-S50) !important;
  width: 100% !important;
  height: 2px !important;
}

.home_Service_Arrow {
  position: relative !important;
  /* inset-inline-start: 48px; */
  width: 32px;
  height: 32px;
  border: 1px solid var(--Gray-G95);
  background: var(--white);
  border-radius: 50% !important;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  transform: unset !important;
  cursor: pointer;
}

.home_Service_Arrow::before {
  display: none !important;
}

.home_Service_Arrow .ezIcon {
  --icon: 18px;
  --icon-color: var(--Secondary-S50);
}

.home_Service_Arrow_Prev .ezIcon {
  --icon-rotate: 180deg;
}

.home_Service_Arrow:hover {
  background: var(--Secondary-S50);
  border-color: var(--Secondary-S50);
}

.home_Service_Arrow:not(.slick-disabled):hover .ezIcon {
  --icon-color: var(--white);
}

.home_Services_Tabs {
  flex: 0 0 calc(40% - 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2%;
}

.home_Service_Tab {
  width: 100%;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 16px;
  background: transparent;
  border: 0;
  color: var(--Gray-G50);
  text-align: start;
  cursor: default !important;
  transition: var(--transition);
  padding: 12px 0;
  position: relative;
  flex: 1;
}

body:not(.rtl) .home_Service_Tab {
  height: unset;
}

.home_Service_Tab:not(:last-child) {
  border-bottom: 1px solid #e4e4e4;
}

.home_Service_Tab_Icon {
  --icon: 22px;
  --icon-color: var(--Gray-G70);
}

.home_Service_Tab_Number {
  color: var(--Gray-G50, #7a7a7a);
  font-size: 18px;
  font-weight: 600;
  line-height: 36px;
}

.home_Service_Tab_Title {
  line-height: 2;
}

.home_Service_Tab.active {
  color: var(--Secondary-S50) !important;
  .home_Service_Tab_Title {
    color: var(--Secondary-S50) !important;
  }
}

.home_Service_Tab.active .home_Service_Tab_Icon,
.home_Service_Tab.active .home_Service_Tab_Number {
  --icon-color: var(--Secondary-S50);
  color: var(--Secondary-S50);
}

@media (max-width: 1199px) {
  .home_Services_Main {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .home_Service_Card {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 16px;
  }

  .home_Services_Slides_Top {
    flex-direction: column;
  }

  .home_Service_Card_Num {
    font-size: 44px;
  }
}

@media (max-width: 991px) {
  .home_Services_Wrapper {
    padding-block: 0 50px;
    /* margin-top: -250px; */
    z-index: 2;
  }

  .home_Services_Head {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }

  .home_Services_Main {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }

  .home_Services_Tabs {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .home_Service_Tab {
    min-width: 260px;
    border: 1px solid var(--Gray-G95);
    padding: 12px;
    grid-template-columns: 24px 20px minmax(0, 1fr);
  }

  .home_Service_Tab.active {
    border-color: var(--Secondary-S50);
  }

  .home_Services_Slides {
    width: 100%;
  }

  .home_Service_Card {
    min-height: unset;
    grid-template-columns: 1fr;
    padding-bottom: 150px;
    z-index: 3;
  }

  .home_Services_Wrapper::before {
    z-index: 1;
  }

  .home_Service_Card_Title {
    height: 64px;
    align-items: start;
  }

  .home_Service_Card_Num {
    position: absolute;
    bottom: 100px;
    right: 24px;
  }

  .home_Service_Image_Wrapper {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
  }

  .home_Service_Image_Wrapper img {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .home_Service_Arrow {
    transform: unset !important;
  }

  .home_Service_Arrow_Next {
  }
  .home_Services_Slides_Arrows {
    width: 212px;
    position: absolute;
    bottom: 10%;
    transform: unset;
    inset-inline-start: -76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;

    .home_Service_Arrow {
      border-radius: 50% !important;
      border: 1px solid var(--Gray-G95, #e4e4e4);
    }

    .home_Service_Arrow_Prev {
      inset-inline-start: 1;
    }

    .home_Service_Arrow_Next {
      inset-inline-end: 0;
    }
  }

  body:not(.rtl) .home_Service_Arrow_Next .ezIcon {
    rotate: 180deg;
  }

  body:not(.rtl) .home_Service_Arrow_Prev .ezIcon {
    rotate: 0deg;
  }

  .home_Services_Slides_Dots {
    width: 262px;
    position: absolute;
    bottom: 20%;
    transform: unset;
    inset-inline-start: -56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
  }
  .home_Services_Tabs {
    display: none;
  }
  .home_Services_Head {
    align-items: start;
  }
  .home_Services_Link {
    width: max-content;
    padding: 10px 16px !important;
  }
}

/* -------------------------------------------------------------------------- */
/*                                Home Map                                    */
/* -------------------------------------------------------------------------- */

.home_Map_Wrapper {
  padding-block: 100px 130px;
  background:
    radial-gradient(circle at center, rgba(0, 139, 190, 0.05), transparent 45%),
    var(--Gray-G100);
  overflow: hidden;
  position: relative;
}

.home_Map_Wrapper::before {
  content: "";
  position: absolute;
  top: 24%;
  transform: translateY(-50%);
  right: -100px;
  background-image: url(./assets/icons/about-missions-after.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 469px;
  width: 821px;
  transform: rotateY(180deg);
  z-index: 1;
}

.home_Map_Wrapper::after {
  content: "";
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  left: -100px;
  background-image: url(./assets/icons/about-missions-after.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 469px;
  width: 821px;
}

@media (max-width: 992px) {
  .home_Map_Wrapper::before,
  .home_Map_Wrapper::after {
    display: none;
  }
}

.home_Map_Head {
  text-align: center;
  margin-bottom: 1rem;
}

.home_Map_Head h2 {
  margin-bottom: 0.75rem !important;
}

/* -------------------------------------------------------------------------- */
/*                                  Map Base                                  */
/* -------------------------------------------------------------------------- */

.map_Box {
  position: relative;
  width: 100%;
}

.map_Inner {
  position: relative;
  width: 1300px;
  max-width: 100%;
  margin-inline: auto;
  transform: translateX(80px);
  z-index: 10;
}

.map_Main {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}
body:not(.rtl) .map_Main {
  transform: translateX(-11px);
}

/* -------------------------------------------------------------------------- */
/*                                  Projects                                  */
/* -------------------------------------------------------------------------- */

.map_Project {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  transform: translate(-50%, -50%);
}

.map_Project.active {
  z-index: 20;
}

/* -------------------------------------------------------------------------- */
/*                         Map Pin Connector Line                             */
/* -------------------------------------------------------------------------- */

.map_Connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  max-width: 100%;
  pointer-events: none;
  overflow: visible;

  opacity: 0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.map_Connector.active {
  opacity: 1;
  visibility: visible;
}

.map_Connector_Path {
  fill: none;

  stroke: var(--Secondary-S50);
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;
}

/* نقطه اتصال به لیست */
.map_Connector_End {
  fill: var(--Secondary-S50);
  opacity: 0;

  transition: opacity 0.2s ease;
}

.map_Connector.active .map_Connector_End {
  opacity: 1;
}

/* Mobile doesn't need connector */
@media (max-width: 991px) {
  .map_Connector {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/*                                    Pin                                     */
/* -------------------------------------------------------------------------- */

.map_Pin {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  /* background: linear-gradient(
    180deg,
    rgba(0, 140, 188, 0.8) 0%,
    rgba(0, 150, 88, 0.8) 100%
  ); */
  cursor: pointer;
  outline: none;
  transition:
    width var(--transition),
    height var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.map_Pin::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;

  border-radius: 50%;
  background: #95959554;

  transform: translate(-50%, -50%) scale(0.75);
  transform-origin: center;
  animation: mapPinPulse 1.8s ease-out infinite;

  z-index: -1;
}

@keyframes mapPinPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0.7;
  }

  70%,
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.map_Pin::after {
  content: "";
  position: absolute;
  /* inset: -8px; */
  /* top: -9px;
  right: -4px; */
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  height: 19px;
  width: 10px;
  /* border-radius: inherit; */
  mask: url(./assets/icons/tree-icon.svg);
  mask-repeat: no-repeat;
  mask-size: contain;
  background: linear-gradient(
    180deg,
    rgba(0, 140, 188, 0.8) 0%,
    rgba(0, 150, 88, 0.8) 100%
  );
  transition: var(--transition);
}

/* .map_Project.active .map_Pin {
  width: 1px;
  height: 1px;
  background: var(--Secondary-S50);
  box-shadow: 0 0 0 12px rgba(239, 79, 35, 0.16);
  border: none;
} */

.map_Project.active .map_Pin::before {
  animation: none;
  opacity: 0;
  width: 0px;
  height: 0px;
  transform: scale(0);
}

.map_Project.active .map_Pin::after {
  /* inset: 10px; */
  width: 14px;
  height: 26px;
  /* top: -11px;
  right: -6px; */
  background: var(--Secondary-S50);
}

/* @keyframes mapPinPulse {
  0% {
    transform: scale(0.75);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
} */

/* -------------------------------------------------------------------------- */
/*                      Grouped project information stack                      */
/* -------------------------------------------------------------------------- */

.map_Info_Stack {
  position: absolute;

  top: 50px;

  /* Default = right side */
  right: 12px;
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;

  z-index: 5;

  display: flex;
  width: 430px;
  flex-direction: column;
  gap: 12px;

  padding: 40px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform 0.35s ease;

  max-height: 600px;
  overflow-y: auto;
  overflow-x: visible;

  scroll-snap-type: y mandatory;
  scrollbar-width: none;

  -ms-overflow-style: none;

  transform: translateY(-20px);
}

.map_Info_Stack::-webkit-scrollbar {
  display: none;
}

.map_Info_Stack.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

/* ------------------------------------------------ */
/* x < 40% → project list goes to LEFT side         */
/* ------------------------------------------------ */

.map_Info_Stack.map_Info_Stack_Left {
  left: -200px;
  right: auto;
}

/* ------------------------------------------------ */
/* x >= 40% → project list goes to RIGHT side       */
/* ------------------------------------------------ */

.map_Info_Stack.map_Info_Stack_Right {
  right: 12px;
  left: auto;
}

.map_Info_Stack .map_Info_Box {
  position: relative;
  display: block;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  box-sizing: border-box;
  width: 100%;
  min-height: 105px;
  flex: 0 0 auto;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--Gray-G100, #fff);
  box-shadow: 0 4px 40px 0 rgba(18, 18, 18, 0.12);
  transform: none !important;
  transition:
    box-shadow var(--transition),
    transform var(--transition);

  scroll-snap-align: center;
}

.map_Info_Stack .map_Info_Box:hover,
.map_Info_Stack .map_Info_Box:focus-visible {
  box-shadow: 0 8px 32px rgba(18, 18, 18, 0.18);
}

.map_Info_Box::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1rem;
  width: 3px;
  height: 42px;
  background: var(--Secondary-S50);
}

.map_Info_Title {
  line-height: 1.9;
  margin-bottom: 0.75rem !important;
}

.map_Info_Bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map_Info_Location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map_Info_Location .ezIcon {
  --icon-color: var(--Gray-G70);
}

.map_Info_Arrow {
  --icon-color: var(--Secondary-S50);
}

/* Open on the opposite horizontal side. */
.map_Project_Left .map_Info_Stack {
  inset-inline-start: auto;
  inset-inline-end: 42px;
  transform: translateY(-50%) translateX(8px);
}

.map_Project_Left.active .map_Info_Stack {
  transform: translateY(-50%) translateX(0);
}

/* Open below the pin. */
.map_Project_Bottom .map_Info_Stack {
  top: 42px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.map_Project_Bottom.active .map_Info_Stack {
  transform: translateX(-50%) translateY(0);
}

/* Open above the pin. */
.map_Project_Top .map_Info_Stack {
  top: auto;
  bottom: 42px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(8px);
}

.map_Project_Top.active .map_Info_Stack {
  transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------------------- */
/*                          Mobile Map Clean Version                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .home_Map_Wrapper {
    overflow: hidden;
    padding-bottom: 100px;
  }

  .map_Box {
    overflow: visible;
    padding-bottom: 0;
    padding-top: 48px;
  }

  .map_Inner {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    padding-bottom: 0;
    transform: translateX(10%) scale(1.4);
  }

  .map_Main {
    width: 100%;
    height: auto;
    display: block;
  }

  .map_Project {
    transform: translate(-50%, -50%);
  }

  .map_Project.active {
    z-index: 10;
  }

  /* Hide the desktop grouped popup on mobile. */
  .map_Info_Stack {
    display: none !important;
  }

  .map_Pin {
    width: 20px;
    height: 20px;
  }

  .map_Pin::before {
    width: 10px;
    height: 10px;
  }

  .map_Pin::after {
    /* inset: 3px; */
    width: 8px;
    height: 14px;
  }

  .map_Project.active .map_Pin::after {
    /* inset: 8px; */
    width: 10px;
    height: 18px;
  }

  /* Mobile carousel created by JS */
  .map_Mobile_Carousel {
    width: 100vw;
    margin-top: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 1rem;
    padding: 50px 1rem 60px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .map_Mobile_Carousel::-webkit-scrollbar {
    display: none;
  }

  .map_Mobile_Carousel .map_Info_Box {
    position: relative;
    display: flex !important;
    inset: auto;
    top: auto;
    bottom: auto;
    width: 270px;
    min-width: 270px;
    flex: 0 0 270px;
    min-height: 112px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none !important;
    background: var(--Gray-G100, #fff);
    box-shadow: 0 4px 40px 0 rgba(18, 18, 18, 0.12);
    scroll-snap-align: center;
    transition: 0.3s;
  }

  .map_Mobile_Carousel .map_Info_Box.active {
    box-shadow: 0 4px 20px 0 rgba(18, 18, 18, 0.12);
  }

  .map_Mobile_Carousel .map_Info_Box::before {
    inset-inline-start: 0;
    inset-inline-end: auto;
  }
}

@media (max-width: 575px) {
  .map_Inner {
    max-width: 500px;
    width: calc(100vw + 70px);
    transform: translateX(10%) scale(1.3);
  }

  .map_Mobile_Carousel .map_Info_Box {
    min-width: 300px;
    flex-basis: 255px;
    padding: 1rem;
  }
}

@media (max-width: 390px) {
  .map_Inner {
    width: calc(100vw + 125px);
    transform: translateX(22%) scale(1.4);
  }
  body.ltr .map_Inner {
    transform: translateX(-6%) scale(1.4) !important;
  }
}

@media (max-width: 991px) {
  .map_Mobile_Carousel {
    direction: ltr;
  }

  .map_Mobile_Carousel .map_Info_Box {
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  body:not(.rtl) .map_Mobile_Carousel .map_Info_Box {
    text-align: left;
    direction: ltr;
  }
}

.home_Map_Wrapper {
  /* background: url("./assets/images/home-map-bg.jpg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.map_Status_Bar {
  /* display: flex; */
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--Gray-G99, #f2f2f2);
  background: var(--Gray-G100, #fff);
  box-shadow: 0 4px 56px 0 rgba(18, 18, 18, 0.06);
  padding: 20px 24px 20px 48px;
  display: none;
}

.map_Bottom_Link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.map_Bottom_Link_Icon {
  border-radius: 12px;
  background: var(--Secondary-S99, #fdede9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;

  .ezIcon {
    --icon-color: var(--Secondary-S50);
  }
}

.map_Status_Wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.map_Status_Item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;

  .ezIcon {
    --icon-color: var(--Gray-G70);
  }
}

.map_Status_Item:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-end: -32px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: #e4e4e4;
}

.map_Status_Item_Text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.map_Status_Count {
  position: relative;
}

.map_Status_Count::after {
  content: "+";
  position: absolute;
  inset-inline-end: -16px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: var(--Secondary-S50, #ef4f23);
  font-size: 22px;
  font-weight: 700;
  line-height: 44px;
}

@media (max-width: 992px) {
  .map_Status_Bar {
    flex-direction: column-reverse;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0px;
  }

  .map_Status_Item_Text {
    width: 100%;
    align-items: start;
  }

  .map_Status_Wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: start;
    width: 100%;
  }

  .map_Status_Item {
    flex-direction: row-reverse;
    width: 100%;
  }

  .map_Status_Item:not(:last-child)::before {
    width: 100%;
    height: 1px;
    bottom: -8px;
    top: unset;
    inset-inline-end: unset;
  }

  .map_Bottom_Link {
    justify-content: start;
    width: 100%;
    padding: 22px 24px 24px 74px;
    gap: 24px;
    border: 1px solid var(--Gray-G99, #f2f2f2);
    background: var(--Gray-G100, #fff);
    box-shadow: 0 4px 56px 0 rgba(18, 18, 18, 0.06);
    margin-top: 24px;
  }
  body:not(.rtl) .map_Bottom_Link {
    padding: 22px 74px 24px 24px;
  }
}

/* -------------------------------------------------------------------------- */
/*                              Home Story Section                            */
/* -------------------------------------------------------------------------- */

.home_Story_Wrapper {
  position: relative;
  padding-block: 72px;
  /* overflow: hidden; */
  background: transparent;
  --story-progress: 0;
  --story-intro: 0;
}

@media (min-width: 992px) {
  .home_Story_Wrapper {
    margin-top: 150px;
  }
  .home_Story_Wrapper::after {
    content: "";
    position: absolute;
    top: 10%;
    transform: translateY(-50%);
    left: -100px;
    background-image: url(./assets/icons/about-missions-after.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 469px;
    width: 821px;
    z-index: -1;
  }

  .home_Story_Wrapper::before {
    content: "";
    position: absolute;
    top: 80%;
    transform: translateY(-50%) rotateY(180deg);
    right: -100px;
    background-image: url(./assets/icons/about-missions-after.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 469px;
    width: 821px;
    z-index: -1;
  }
}

/* .home_Story_Wrapper::after {
  content: "";
  background-image: url(./assets/icons/tree-before.svg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 510px;
  height: 382px;
  position: absolute;
  bottom: 30px;
  right: -52px;
} */

.home_Story_Head {
  text-align: center;
  margin-bottom: 32px;
  opacity: var(--story-intro);
  transform: translateY(calc(24px * (1 - var(--story-intro))));
}

.home_Story_Head p {
  margin-top: 8px;
}

.home_Story_Main {
  position: relative;
  height: 460px;
  max-width: 1120px;
  margin-inline: auto;
  opacity: var(--story-intro);
  transform: translateY(calc(32px * (1 - var(--story-intro))));
}

.home_Story_Tree {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 260px;
  z-index: 6;
  transform: translate(-50%, -50%)
    scale(calc(0.94 + (0.06 * var(--story-intro))));
}

body.rtl .home_Story_Tree {
  transform: translate(50%, -50%)
    scale(calc(0.94 + (0.06 * var(--story-intro))));
}

.home_Story_Tree::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 422px;
  height: 422px;
  background-image: url(./assets/icons/home-story-before.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.home_Story_Tree img {
  display: block;
  width: 100%;
}

.home_Story_Branch {
  --p: 0;
  --side: 1;
  --travel: 170px;
  position: absolute;
  top: var(--y);
  width: 430px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  opacity: var(--p);
  filter: blur(calc(4px * (1 - var(--p))));
  pointer-events: none;
  will-change: transform, opacity, filter;

  /*
    Important:
    body.rtl applies direction: rtl to everything.
    That reverses flex row behavior.
    So this component forces physical LTR layout,
    then puts RTL back only on the text.
  */
  direction: ltr;

  transform: translateX(calc(var(--side) * var(--travel) * (var(--p) - 1)))
    translateY(-50%);
}

.home_Story_Branch::before {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(98, 98, 98, 0.45));
  transform: scaleX(var(--p));
  opacity: calc(0.25 + (0.75 * var(--p)));
}

.home_Story_Branch_Icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home_Story_Branch_Icon .ezIcon {
  --icon-color: var(--Gray-G60);
}

.home_Story_Branch_Text {
  min-width: 116px;
  /* direction: rtl; */
  display: flex;
  flex-direction: column;
  align-items: start;
}

body:not(.rtl) .home_Story_Branch_Text {
  align-items: end;
}

body.rtl .home_Story_Main > .home_Story_Branch:nth-child(2),
body.rtl .home_Story_Main > .home_Story_Branch:nth-child(4),
body.rtl .home_Story_Main > .home_Story_Branch:nth-child(6),
body.rtl .home_Story_Main > .home_Story_Branch:nth-child(8) {
  .home_Story_Branch_Text {
    align-items: end !important;
  }
}

body:not(.rtl) .home_Story_Main > .home_Story_Branch:nth-child(2),
body:not(.rtl) .home_Story_Main > .home_Story_Branch:nth-child(4),
body:not(.rtl) .home_Story_Main > .home_Story_Branch:nth-child(6),
body:not(.rtl) .home_Story_Main > .home_Story_Branch:nth-child(8) {
  .home_Story_Branch_Text {
    align-items: start !important;
  }
}

.home_Story_Branch_Count {
  background: var(--Gradient-H);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  /* -webkit-text-fill-color: transparent; */

  direction: ltr;
  text-align: start;
  line-height: 1.4;
}

body.rtl .home_Story_Branch_Count::after {
  content: "+";
  color: var(--Secondary-S50) !important;
  margin-inline-start: 4px;
}
body:not(.rtl) .home_Story_Branch_Count::before {
  content: "+";
  color: var(--Secondary-S50) !important;
  margin-inline-end: 4px;
}

/* -------------------------------------------------------------------------- */
/*                              Branch Positions                              */
/* -------------------------------------------------------------------------- */

/*
  Actual child order:
  1 = .home_Story_Tree
  2 = branch 1
  3 = branch 2
  4 = branch 3
  5 = branch 4
  6 = branch 5
  7 = branch 6
  8 = branch 7
  9 = branch 8

  Do not use nth-of-type here.
  The tree is also a div, so nth-of-type breaks the sequence.
*/

/* Right side branches: 1, 3, 5, 7 */
.home_Story_Main > .home_Story_Branch:nth-child(2) {
  left: calc(50% + 42px);
}

.home_Story_Main > .home_Story_Branch:nth-child(4) {
  left: calc(50% + 62px);
}

.home_Story_Main > .home_Story_Branch:nth-child(6) {
  left: calc(50% + 62px);
}

.home_Story_Main > .home_Story_Branch:nth-child(8) {
  left: calc(50% + 52px);
}
.home_Story_Main > .home_Story_Branch:nth-child(2),
.home_Story_Main > .home_Story_Branch:nth-child(4),
.home_Story_Main > .home_Story_Branch:nth-child(6),
.home_Story_Main > .home_Story_Branch:nth-child(8) {
  --side: 1;
  right: auto;
  flex-direction: row-reverse;
  text-align: right;
}

body:not(.rtl) {
  .home_Story_Main > .home_Story_Branch:nth-child(2),
  .home_Story_Main > .home_Story_Branch:nth-child(4),
  .home_Story_Main > .home_Story_Branch:nth-child(6),
  .home_Story_Main > .home_Story_Branch:nth-child(8) {
    flex-direction: row;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(3),
  .home_Story_Main > .home_Story_Branch:nth-child(5),
  .home_Story_Main > .home_Story_Branch:nth-child(7),
  .home_Story_Main > .home_Story_Branch:nth-child(9) {
    flex-direction: row-reverse;
  }
}

.home_Story_Main > .home_Story_Branch:nth-child(2)::before,
.home_Story_Main > .home_Story_Branch:nth-child(4)::before,
.home_Story_Main > .home_Story_Branch:nth-child(6)::before,
.home_Story_Main > .home_Story_Branch:nth-child(8)::before {
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(98, 98, 98, 0.45));
}

.home_Story_Main > .home_Story_Branch:nth-child(3) {
  right: calc(50% + 42px);
}

.home_Story_Main > .home_Story_Branch:nth-child(5) {
  right: calc(50% + 62px);
}

.home_Story_Main > .home_Story_Branch:nth-child(7) {
  right: calc(50% + 62px);
}

.home_Story_Main > .home_Story_Branch:nth-child(9) {
  right: calc(50% + 52px);
}

/* Left side branches: 2, 4, 6, 8 */
.home_Story_Main > .home_Story_Branch:nth-child(3),
.home_Story_Main > .home_Story_Branch:nth-child(5),
.home_Story_Main > .home_Story_Branch:nth-child(7),
.home_Story_Main > .home_Story_Branch:nth-child(9) {
  --side: -1;
  left: auto;
  flex-direction: row;
  text-align: left;
}

.home_Story_Main > .home_Story_Branch:nth-child(3)::before,
.home_Story_Main > .home_Story_Branch:nth-child(5)::before,
.home_Story_Main > .home_Story_Branch:nth-child(7)::before,
.home_Story_Main > .home_Story_Branch:nth-child(9)::before {
  transform-origin: right center;
  background: linear-gradient(270deg, transparent, rgba(98, 98, 98, 0.45));
}

/* Vertical positions */
.home_Story_Main > .home_Story_Branch:nth-child(2) {
  --y: 8%;
}

.home_Story_Main > .home_Story_Branch:nth-child(3) {
  --y: 21%;
}

.home_Story_Main > .home_Story_Branch:nth-child(4) {
  --y: 29%;
}

.home_Story_Main > .home_Story_Branch:nth-child(5) {
  --y: 42%;
}

.home_Story_Main > .home_Story_Branch:nth-child(6) {
  --y: 55%;
}

.home_Story_Main > .home_Story_Branch:nth-child(7) {
  --y: 67%;
}

.home_Story_Main > .home_Story_Branch:nth-child(8) {
  --y: 84%;
}

.home_Story_Main > .home_Story_Branch:nth-child(9) {
  --y: 97%;
}

@media (min-width: 992px) {
  .home_Story_Bottom {
    text-align: center;
    margin-top: 8px;
    opacity: var(--story-intro);
    transform: translateY(calc(20px * (1 - var(--story-intro))));
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 36px;
  }
}

/* -------------------------------------------------------------------------- */
/*                         Home Story Mobile Timeline                         */
/* -------------------------------------------------------------------------- */

.home_Story_Main {
  margin-bottom: 28px;
}

.home_Story_Main,
.home_Story_Head {
  opacity: 1;
  transform: none;
}
/* -------------------------------------------------------------------------- */
/*                    Home Story Responsive Radial Layout                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .home_Story_Wrapper {
    padding-block: 48px;
    overflow: hidden;
  }

  .home_Story_Head {
    margin-bottom: 0px;
    padding-inline: 16px;
  }

  .home_Story_Head p {
    max-width: 420px;
    margin: 8px auto 0;
  }

  .home_Story_Main {
    --branch-gap: clamp(38px, 8vw, 58px);
    --branch-edge: 12px;

    width: 100%;
    max-width: 630px;
    height: clamp(430px, 85vw, 540px);
    margin-inline: auto;
    box-sizing: border-box;
  }

  /* لوگوی مرکزی */
  .home_Story_Tree {
    width: clamp(115px, 25vw, 165px);
  }

  .home_Story_Tree::before {
    width: clamp(190px, 47vw, 295px);
    height: clamp(190px, 47vw, 295px);
  }

  /* شاخه‌های آماری */
  .home_Story_Branch {
    --travel: 45px;

    width: calc(50% - var(--branch-gap) - var(--branch-edge));
    min-width: 0;
    min-height: 40px;
    gap: 6px;
    box-sizing: border-box;
  }

  .home_Story_Branch::before {
    min-width: 8px;
  }

  .home_Story_Branch_Icon {
    width: clamp(34px, 7vw, 44px);
    height: clamp(34px, 7vw, 44px);
    min-width: clamp(34px, 7vw, 44px);
  }

  .home_Story_Branch_Icon .ezIcon {
    --icon: 19px !important;
  }

  .home_Story_Branch_Text {
    flex: 0 1 auto;
    min-width: 0;
    max-width: clamp(72px, 17vw, 108px);
    overflow: visible;
  }

  .home_Story_Branch_Count {
    font-size: clamp(15px, 3.5vw, 21px);
    line-height: 1.3;
    white-space: nowrap;
  }

  .home_Story_Branch_Text p {
    width: 100%;
    margin: 2px 0 0;
    font-size: clamp(9px, 2vw, 12px);
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: start;
  }

  /* شاخه‌های سمت راست */
  .home_Story_Main > .home_Story_Branch:nth-child(2),
  .home_Story_Main > .home_Story_Branch:nth-child(4),
  .home_Story_Main > .home_Story_Branch:nth-child(6),
  .home_Story_Main > .home_Story_Branch:nth-child(8) {
    left: calc(50% + var(--branch-gap));
    right: auto;
  }

  /* شاخه‌های سمت چپ */
  .home_Story_Main > .home_Story_Branch:nth-child(3),
  .home_Story_Main > .home_Story_Branch:nth-child(5),
  .home_Story_Main > .home_Story_Branch:nth-child(7),
  .home_Story_Main > .home_Story_Branch:nth-child(9) {
    right: calc(50% + var(--branch-gap));
    left: auto;
  }

  /* موقعیت عمودی شاخه‌ها */
  .home_Story_Main > .home_Story_Branch:nth-child(2) {
    --y: 26%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(3) {
    --y: 29%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(4) {
    --y: 40%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(5) {
    --y: 45%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(6) {
    --y: 57%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(7) {
    --y: 59%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(8) {
    --y: 73%;
  }

  .home_Story_Main > .home_Story_Branch:nth-child(9) {
    --y: 76%;
  }

  /* لوگوی ODCC پایین */
  .home_Story_Wrapper .home_Story_Bottom {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding-bottom: 90px;
    margin-top: 8px;
    text-align: center;
  }

  .home_Story_Wrapper .home_Story_Bottom img {
    width: auto;
    max-width: 110px;
    margin-bottom: 0;
  }
}

/* -------------------------------------------------------------------------- */
/*                           Small Mobile Screens                             */
/* -------------------------------------------------------------------------- */

@media (max-width: 630px) {
  .home_Story_Main {
    --branch-gap: clamp(28px, 8vw, 42px);
    --branch-edge: 8px;

    height: clamp(280px, 80vw, 320px);
  }

  .home_Story_Tree {
    width: clamp(105px, 27vw, 140px);
  }

  .home_Story_Tree::before {
    width: clamp(175px, 48vw, 250px);
    height: clamp(175px, 48vw, 250px);
  }

  .home_Story_Branch {
    --travel: 32px;
    gap: 4px;
  }

  .home_Story_Branch::before {
    min-width: 4px;
  }

  .home_Story_Branch_Icon {
    width: clamp(32px, 8vw, 38px);
    height: clamp(32px, 8vw, 38px);
    min-width: clamp(32px, 8vw, 38px);
  }

  .home_Story_Branch_Icon .ezIcon {
    --icon: 17px !important;
  }

  .home_Story_Branch_Text {
    max-width: calc(100% - 38px);
  }

  .home_Story_Branch_Count {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.55 !important;
  }

  .home_Story_Branch_Text p {
    font-size: clamp(8px, 2.4vw, 10px) !important;
    line-height: 1.55;
  }
}

/* -------------------------------------------------------------------------- */
/*                           Very Small Mobiles                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 374.98px) {
  .home_Story_Main {
    --branch-gap: 25px;
    --branch-edge: 5px;

    height: 420px;
  }

  .home_Story_Tree {
    width: 100px;
  }

  .home_Story_Tree::before {
    width: 165px;
    height: 165px;
  }

  .home_Story_Branch {
    --travel: 24px;
  }

  .home_Story_Branch::before {
    min-width: 2px;
  }

  .home_Story_Branch_Icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .home_Story_Branch_Icon .ezIcon {
    --icon: 15px !important;
  }

  .home_Story_Branch_Text {
    max-width: calc(100% - 32px);
  }

  .home_Story_Branch_Count {
    font-size: 14px;
  }

  .home_Story_Branch_Text p {
    font-size: 8px;
    line-height: 1.5;
  }
}
/* -------------------------------------------------------------------------- */
/*                 Home Story — Responsive Radial Layout                      */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*                              Home News                                     */
/* -------------------------------------------------------------------------- */

.home_News_Grid {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 18px;
  margin-bottom: 32px;
}

.home_News_Grid_Item {
  position: relative;
  transition: 0.3s;
  z-index: 2;
}

.home_News_Grid_Item:first-child {
  grid-area: 1 / 1 / 4 / 2;
}

.home_News_Grid_Item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.home_News_Grid_Item:nth-child(3) {
  grid-area: 2 / 2 / 3 / 3;
}

.home_News_Grid_Item:nth-child(4) {
  grid-area: 3 / 2 / 4 / 3;
}

.home_News_Grid_Item:not(:first-child) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 12px 12px 12px 26px;
}

.home_News_Grid_Item:not(:first-child):hover {
  background: var(--Gray-G100, #fff);
  box-shadow: 0 4px 40px 0 rgba(18, 18, 18, 0.08);

  .home_News_Grid_Item_Title {
    color: var(--Secondary-S50);
  }
}

.home_News_Grid_Item:not(:first-child, :last-child)::before {
  content: "";
  position: absolute;
  width: 93%;
  height: 1px;
  background-color: #e4e4e4;
  bottom: -10px;
}

.home_News_Grid_Item_Image {
  flex: 0 0 calc(44% - 16px);
  height: 132px;
  overflow: hidden;
  object-fit: cover;
}

.home_News_Grid_Item_Image img {
  transition: 0.3s;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.home_News_Grid_Item_Info {
  flex: 0 0 calc(56% - 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home_News_Grid_Item_Title {
  color: var(--Gray-G30, #4f4f4f);
  font-size: 18px;
  font-weight: 600;
  line-height: 36px;
  transition: 0.3s;
  height: 72px;
}

.home_News_Grid_Item_Date {
  color: var(--Gray-G60, #959595);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 3px;
}

.home_News_Grid_Item:first-child {
  margin-block: 12px;
  .home_News_Grid_Item_Image {
    height: 500px;
    overflow: hidden;
  }

  .home_News_Grid_Item_Image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    position: relative;
    transition: 0.3s;
  }

  .home_News_Grid_Item_Info {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    bottom: 20px;
    padding-inline: 24px;
  }

  .home_News_Grid_Item_Title {
    color: var(--Gray-G100, #fff);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.8;
    height: unset;
    z-index: 2;
    transition: 0.3s;
  }

  .home_News_Grid_Item_Date {
    color: var(--Gray-G100, #fff);
    font-size: 16px;
    font-weight: 600;
    line-height: 32px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    z-index: 2;
    display: none;
  }
}

.home_News_Grid_Item:hover {
  box-shadow: 0 12px 40px 0 rgba(18, 18, 18, 0.2);
  .home_News_Grid_Item_Image img {
    transform: scale(1.06);
  }
}

@media (max-width: 992px) {
  .home_News_Grid_Item:first-child {
    margin-block: 12px;
    .home_News_Grid_Item_Image {
      height: 300px;
      overflow: hidden;
    }
  }
}

.home_News_Grid_Item:first-child::after {
  content: "";
  background: linear-gradient(0deg, #121212 0%, rgba(18, 18, 18, 0) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  z-index: 1;
}

.home_News_Tabs_Wrapper {
  margin-top: 100px;
  margin-bottom: 150px;
  position: relative;
  .livetabsdefault .ui-tabs {
    border: none;
    padding: 0;
  }
  .livetabsdefault .ui-tabs .ui-tabs-nav {
    background: transparent;
    border: none;
    display: flex;
    gap: 24px;
    padding: 0;
  }
  .livetabsdefault .ui-tabs .ui-tabs-nav li {
    border: none;
    background: var(--Background, #f9f9f9);
    border-radius: 0;
    transition: 0.3s;
    margin: 0;
  }
  .livetabsdefault .ui-tabs .ui-tabs-nav li a {
    color: #555555;
    font-size: 18px;
    font-weight: 700;
    line-height: 36px;
    padding: 4px 42px;
  }

  .livetabsdefault .ui-tabs .ui-tabs-nav li.ui-tabs-selected,
  .livetabsdefault .ui-tabs .ui-tabs-nav li.ui-tabs-active,
  .livetabsdefault .ui-tabs .ui-tabs-nav li.ui-tabs-active {
    background: var(--Secondary-S50);
    a {
      color: #fff !important;
    }
  }

  .livetabsdefault .ui-tabs .ui-tabs-panel {
    padding: 0;
    margin-top: 56px;
    height: 594px;
  }
}

.home_News_Top_Link {
  position: absolute;
  top: 18px;
  inset-inline-end: 24px;
  gap: 8px;
  z-index: 2;

  .ezIcon {
    transition: 0.3s ease;
  }

  p {
    transition: 0.3s ease;
  }
}

body:not(.rtl) .home_News_Top_Link {
  flex-direction: row-reverse;

  .ezIcon {
    rotate: 180deg;
  }
}

.home_News_Top_Link:hover {
  p {
    color: var(--Secondary-S50) !important;
  }
  .ezIcon {
    transform: translateX(-2px);
  }
}

@media (max-width: 992px) {
  .home_News_Tabs_Wrapper {
    margin-top: -100px;
  }
  .home_News_Grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 0;
    height: unset;
  }

  .home_News_Grid_Item {
    padding: 0 !important;
  }

  .home_News_Grid_Item:first-child {
    .home_News_Grid_Item_Info {
      flex-direction: column;
      align-items: start;
      bottom: 24px;
      right: 0;
      gap: 10px;
    }
    .home_News_Grid_Item_Title {
      font-size: 14px;
      font-weight: 600;
    }

    .home_News_Grid_Item_Date {
      font-size: 12px;
      font-weight: 500;
      padding: 2px 12px;
    }
  }
  .home_News_Tabs_Wrapper {
    .livetabsdefault .ui-tabs .ui-tabs-panel {
      height: 709px;
      margin-top: 32px;
    }
  }

  .home_News_Grid_Item:not(:first-child, :last-child)::before {
    opacity: 0;
  }

  .home_News_Grid_Item:not(:first-child) {
    gap: 12px;
    .home_News_Grid_Item_Title {
      font-size: 14px;
      font-weight: 600;
      line-height: 28px;
      height: 56px;
    }
    .home_News_Grid_Item_Info {
      gap: 8px;
    }
    .home_News_Grid_Item_Image {
      height: 90px;
    }
  }
  .home_News_Top_Link {
    bottom: -38px;
    top: unset;
    inset-inline-start: 30px;
    inset-inline-end: unset !important;
  }
  .home_News_Tabs_Wrapper {
    .livetabsdefault .ui-tabs .ui-tabs-nav li a {
      padding: 4px 35px;
    }
  }
}

/* -------------------------------------------------------------------------- */
/*                                Home Improve                                */
/* -------------------------------------------------------------------------- */

.home_Improve_Section {
  overflow: hidden;
}

.home_Improve_Tree {
  position: absolute;
  top: 212px;
  inset-inline-end: 50px;
  z-index: 8;
  width: 200px;
}

.home_Improve_Tree > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}

.home_Improve_Tree > img:last-child {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: fill;
  pointer-events: none;
}

@media (max-width: 991px) {
  .home_Improve_Tree {
    top: auto !important;
    bottom: 40px !important;
    inset-inline-end: 12px !important;
    width: 68px !important;
  }
  body.ltr .home_Improve_Tree {
    bottom: 94px !important;
  }
}

@media (max-width: 575px) {
  .home_Improve_Wrapper {
    min-height: 620px;
    position: relative;
    transform: none;
  }
}
.home_Improve_Wrapper {
  --improve-grow: 0;
  --layer-x: 0px;
  --layer-y: 0px;
  --logo-x: 0px;
  --logo-y: 0px;
  --logo-rotate: 0deg;

  position: relative;
  width: calc(60% + (40% * var(--improve-grow)));
  min-height: 430px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;

  background: url("/portals/0/images/home/improve.jpg") no-repeat center / cover;

  will-change: width;
}

@media (min-width: 992px) {
  .home_Improve_Wrapper {
    height: 620px;
  }
}

/* .home_Improve_Wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 40%, rgba(0, 140, 188, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.24));
} */

.home_Improve_Text {
  position: absolute;
  top: 58%;
  inset-inline-start: clamp(32px, 8vw, 120px);
  z-index: 5;
  transform: translateY(-50%);
}

.home_Improve_Text h2 {
  margin-bottom: 4px !important;
}

.home_Improve_Text p {
  margin-bottom: 20px;
  opacity: 0.5;
}

.home_Improve_Link,
.home_Improve_Link:visited {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--Gray-G100, #fff) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  transition: var(--transition);
  position: relative;
}

.home_Improve_Link::before {
  content: "";
  border-radius: 16px;
  border: 1px solid var(--Gray-G100, #fff);
  background: rgba(255, 255, 255, 0.2);
  position: absolute;
  inset-inline-end: -4px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  width: 32px;
  z-index: 0;
  transition: 0.3s;
}

.home_Improve_Link:hover .ezIcon {
  transform: translateX(-8px);
}

body:not(.rtl) .home_Improve_Link:hover .ezIcon {
  transform: rotate(180deg) translateX(-8px);
}

.home_Improve_Link:hover::before {
  transform: translateX(-8px) translateY(-50%);
}

body:not(.rtl) .home_Improve_Link:hover::before {
  transform: translateX(8px) translateY(-50%);
}

.home_Improve_Link .ezIcon {
  border-radius: 50%;
  --icon: 24px !important;
  box-sizing: content-box;
}

body:not(.rtl) .home_Improve_Link .ezIcon {
  transform: rotate(180deg);
}

.home_Improve_Link:hover {
  opacity: 0.75;
}

.home_Improve_Parallax {
  position: absolute;
  top: 42px;
  inset-inline-end: 90px;
  z-index: 3;
  width: min(380px, 36vw);
  /* height: 250px; */
  object-fit: cover;
  border: 1px solid var(--Primary-P50);
  transform: translate3d(var(--layer-x), var(--layer-y), 0);
  will-change: transform;
  pointer-events: none;
}

.home_Improve_Parallax_Logo {
  position: absolute;
  left: 95px;
  bottom: 52px;
  z-index: 4;
  width: min(180px, 18vw);
  transform: translate3d(var(--logo-x), var(--logo-y), 0)
    rotate(var(--logo-rotate));
  will-change: transform;
  pointer-events: none;
  mask: url(/Portals/0/Images/home/improve-logo.svg) no-repeat center / cover;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(10px);
  height: 320px;
}

.home_Improve_Parallax_Logo::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  width: min(182px, 18vw);
  will-change: transform;
  pointer-events: none;
  mask: url(/Portals/0/Images/home/improve-logo.svg) no-repeat center / cover;
  background: linear-gradient(
    198deg,
    rgba(255, 255, 255, 0.1) 42.6%,
    rgba(255, 255, 255, 0) 100%
  );
  height: 320px;
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 991px) {
  .home_Improve_Wrapper {
    width: 100%;
    min-height: 500px;
  }

  .home_Improve_Parallax_Logo::before {
    display: none;
  }

  .home_Improve_Text {
    top: auto;
    right: 24px;
    transform: none;
  }

  .home_Improve_Parallax {
    top: 40px;
    left: 50%;
    width: calc(100% - 48px);
    height: 230px;
    transform: translate3d(calc(-50% + var(--layer-x)), var(--layer-y), 0);
  }

  .home_Improve_Parallax_Logo {
    left: 32px;
    bottom: 120px;
    width: 140px;
  }
}

@media (max-width: 575px) {
  .home_Improve_Wrapper {
    min-height: 620px;
    transform: scale(1.07);
    position: relative;
  }

  .home_Improve_Text {
    right: 20px;
    bottom: 64px;
  }

  .home_Improve_Parallax {
    width: calc(100% - 32px);
    height: 200px;
  }

  .home_Improve_Parallax_Logo {
    width: 180px;
    bottom: 118px;
  }

  .home_Improve_Link {
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home_Improve_Wrapper {
    width: 100%;
  }

  .home_Improve_Parallax,
  .home_Improve_Parallax_Logo {
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/*                                Home Careers                                */
/* -------------------------------------------------------------------------- */

.home_Careers_Wrapper {
  margin-top: 144px;
  position: relative;
}

.home_Careers_Wrapper::after {
  content: "";
  background-image: url(./assets/icons/tree-before.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 365px;
  height: 328px;
  position: absolute;
  bottom: -150px;
  right: -52px;
  z-index: -1;
  pointer-events: none;
}

.home_Careers_Wrapper::before {
  content: "";
  position: absolute;
  top: 10%;
  transform: translateY(-50%);
  left: -100px;
  background-image: url(./assets/icons/about-missions-after.png);
  background-repeat: no-repeat;
  background-position: center;
  height: 469px;
  width: 821px;
}

@media (max-width: 992px) {
  .home_Careers_Wrapper::before,
  .home_Careers_Wrapper::after {
    display: none;
  }
}

.home_Careers_Wrapper .container {
  display: flex;
  align-items: center;
}

.home_Careers_Right {
  margin-inline-end: 36px;
  flex: 0 0 40%;
}

.home_Careers_Left {
  flex: 0 0 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home_Careers_Right p {
  margin-top: 40px;
}

.home_Careers_Link {
  background: var(--Secondary-S50, #ef4f23);
  padding: 8px 24px;
  transition: 0.3s;
  margin-top: 40px;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
}

.home_Careers_Link:hover {
  /* background: var(--Secondary-S40, #ef4f23); */
  .ezIcon {
    transform: translateX(-4px);
  }
}

.home_Careers_List {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-inline-end: -42px;
  flex: 0 0 50%;
}

.home_Careers_Item {
  background: var(--Gray-G100, #fff);
  box-shadow: 0 4px 40px 0 rgba(18, 18, 18, 0.12);
  z-index: 2;
  padding: 10px 24px 14px 48px;
  transition: 0.3s;
  border-inline-start: 3px solid transparent;
}

.home_Careers_Item:hover {
  border-color: var(--Secondary-S50);
  transform: translateX(-8px);
}

body:not(.rtl) .home_Careers_Item:hover {
  transform: translateX(8px);
}

.home_Careers_Location {
  gap: 8px;
  display: flex;
  align-items: center;

  .ezIcon {
    --icon-color: var(--Gray-G60);
  }
}

.home_Careers_Item_Bottom {
  position: relative;
}

.home_Careers_Item_Bottom span:last-child {
  transform: translateX(20px);
  transition: 0.3s;
}

.home_Careers_Item:hover .home_Careers_Item_Bottom span:last-child {
  transform: translateX(0);
}

.home_Careers_Item_Bottom::before {
  content: "ارسال رزومه";
  color: var(--Secondary-S50, #ef4f23);
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  position: absolute;
  inset-inline-end: 30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

body:not(.rtl) .home_Careers_Item_Bottom::before {
  content: "Send Resume";
}

html[lang="ar-SA"] .home_Careers_Item_Bottom::before {
  content: "إرسال السيرة الذاتية";
  transform: translateY(2px);
}

.home_Careers_Item:hover .home_Careers_Item_Bottom::before {
  opacity: 1;
  visibility: visible;
}

.home_Careers_Left_Image {
  flex: 0 0 50%;
}

.home_Careers_Left_Image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .home_Careers_Wrapper {
    margin-top: 100px;
  }
  .home_Careers_Wrapper .container {
    flex-direction: column;
    align-items: start;
  }
  .home_Careers_Right {
    margin-inline-end: 0;
    margin-bottom: 24px;
    flex: none;
    gap: 8px;
  }
  .home_Careers_Right p {
    margin-top: 0;
    margin-inline-end: 50px;
  }
  .home_Careers_Link {
    inset-inline-start: 24px;
    margin-top: 0 !important;
  }

  body:not(.rtl) .home_Careers_Link {
    bottom: -350%;
  }
  .home_Careers_Left {
    flex: none;
    flex-direction: column-reverse;
    width: 100%;
  }

  .home_Careers_Wrapper::after {
    width: 401px;
    top: -150px;
    bottom: unset;
    left: -114px;
    right: unset;
  }

  .home_Careers_List::-webkit-scrollbar {
    display: none;
  }

  .home_Careers_List {
    margin-left: 0;
    flex: none;
    margin-top: -70px;
    width: 100%;
    flex-flow: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    padding-inline-end: 40px;
    padding-block: 38px;
    /* Firefox */
    scrollbar-width: none;

    /* IE & Edge قدیمی */
    -ms-overflow-style: none;

    .slick-list {
      padding-bottom: 40px;
      width: 120%;
      transform: translateX(12px);
    }

    .slick-slide {
      margin-inline-end: 24px;
    }

    .slick-track {
      margin-inline-start: 48px;
    }

    .home_Careers_Item {
      width: 200px !important;
      padding: 12px 16px;
      border-color: var(--Secondary-S50);
      position: relative;
      flex-shrink: 0;
      scroll-snap-align: start;
    }
    .home_Careers_Item_Bottom span:last-child,
    .home_Careers_Item_Bottom::before {
      display: none;
    }
    .home_Careers_Top p {
      position: absolute;
      bottom: 12px;
      left: 16px;
    }

    .home_Careers_Location .ezIcon {
      --icon: 18px !important;
    }
  }
  .home_Careers_Left_Image {
    width: 90%;
  }
}
