@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap");
@import url("../fonts/font.css");

body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  height: 100%;
  max-height: 100vh;
}

html,
body {
  /* overscroll-behavior: contain;
  scroll-behavior: auto !important; */
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* overflow-x: hidden; */
}

* {
  font-family: "Avenir LT Pro", "Courier New", Courier, monospace;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 
#main {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
} */
.section {
  scroll-snap-align: start;
  /* height: 100vh; */
  overflow: hidden;
}

.whiteLogo {
  filter: brightness(0) saturate(100%) invert(200%) sepia(0%) saturate(2626%) hue-rotate(126deg) brightness(97%) contrast(98%);
}

footer {
  position: relative;
  background: var(--blue);
}

footer .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  padding-bottom: 100px;
  /* z-index: 998; */
  position: relative;
  max-width: 1300px;
  margin: auto;
}

footer .logo {
  width: 120px;
  height: auto;
}

footer .links {
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(6, 1fr);
  gap: 42px;
}

footer .links .linksDouble {
  grid-column: span 2;
  display: flex;
  gap: 42px;
  justify-content: space-evenly;
}

footer .links .link:nth-child(1),
footer .links .link:nth-child(3) {
  grid-column: span 2;
}

footer .links .link,
.sideMenu .link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
footer .links .link {
  justify-content: flex-start;
}

footer .links .linkContent {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  gap: 8px;
}

footer .links .link ul {
  font-size: 14px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

footer .links .link ul li {
  list-style: none;
}

footer .links .link ul li .heading {
  font-size: 16px;
  font-weight: 900;
}

footer .links .link ul li a {
    text-decoration: none;
    color: #15354e;
}

footer .links .link span {
  font-size: 14px;
  color: #708597;
  font-weight: 700;
  margin: 0;
}

footer .links .link:nth-child(1) p {
  line-height: 180%;
  opacity: 70%;
}

footer .links .link p,
.sideMenu .link p {
  font-size: 14px;
  color: #15354e;
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 150%;
}

footer .links .link p span,
.sideMenu .link p span {
  font-size: 14px;
  color: #708597;
  font-weight: 700;
}

footer .socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 80px;
}

footer .socials span {
  color: var(--white);
  font-size: 14px;
  opacity: 70%;
}

footer .socials .icons {
  min-width: 240px;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 15px;
}

footer .socials .icons img {
  cursor: pointer;
}

footer .socials .links {
  font-size: 12px;
  display: flex;
  align-items: center;
  color: #708597;
  text-decoration: none;
  width: 240px;
  align-items: center;
  gap: 0;
}

footer .socials .links a {
  text-decoration: none;
  color: #708597;
}

.nav-container {
  display: flex;
  max-height: 80px;
  justify-content: space-between;
  padding: 12px calc((100% - 1140px) / 2);
  align-items: center;
  font-size: 18px;
  /* color: #15354E; */
  color: white;
  position: fixed;
  top: 0;
  z-index: 999;
  right: 0;
  left: 0;
}

.nav-container.white {
  color: #15354e;
  background-color: white;
}

.nav-container ul {
  display: flex;
  gap: 32px;
}

.nav-container ul li {
  list-style: none;
  position: relative;
  width: 100%;
  text-align: center;
  min-width: max-content;
}

.nav-container ul.nav-menu > li.menu-item {
    padding: 16px 0;
}

.nav-container ul li:not(.submenu-item):nth-of-type(2) {
    padding-right: 18px;
}

.nav-container ul li.menu-item-has-children img {
    position: absolute;
}


.nav-container ul li .submenu1 {
  /* first li */
  left: 16px;
  top: -70px;
}

.nav-container ul li .submenu2 {
  /* second li */
  left: 16px;
  bottom: -175px;
}

.nav-container ul li .submenu3 {
  /* third li */
  right: 16px;
  top: -180px;
}

.nav-container ul li .submenu4 {
  /* fourth li */
  right: 16px;
  bottom: -65px;
}

.submenu li img {
  opacity: 0;
  transform: translateX(-10px); /* slide effect */
  transition: all 0.3s ease;
}

/* Show image when hovering the <a> inside the <li> */
.submenu li:hover img {
  opacity: 1;
  transform: translateX(0);
}

.has-submenu .arrowIcon {
  transition: transform 0.3s ease;
  margin-left: 4px;
}

/* Rotate 180deg when submenu is active */
.has-submenu.active > .arrowIcon {
  transform: rotate(180deg);
}

.nav-container ul li .submenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  /* start at original position */
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  min-width: 700px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  color: #708597;
  font-size: 20px;
  transition: all 0.3s ease;
  /* smooth animation */
}

.nav-container ul li .submenu.active {
  min-height: 350px;
  /* expand */
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
  /* slide down slightly */
}

.nav-container #menu-btn {
  cursor: pointer;
  background-color: unset;
  border: 0;
  position: relative;
}

/* solutions */

.solutionsWrapper {
  position: relative;
  height: 400vh;
}

.contactWrapper {
  position: relative;
  height: 200vh;
}

.mobileContactWrapper {
  display: none;
}
.pcContactWrapper {
  display: block;
}

.solutionContainer {
  display: flex;
  gap: 54px;
  padding-left: calc((100% - 1140px) / 2);

  /* Make sticky stacking work */
  position: sticky;
  top: 0;
  height: 100vh; /* full viewport */
  z-index: 10;
  background: white;
  box-sizing: border-box; /* include padding in height */
}

.solutionContainer:nth-child(1) {
  z-index: 1;
}
.solutionContainer:nth-child(2) {
  z-index: 2;
}
.solutionContainer:nth-child(3) {
  z-index: 3;
}
.solutionContainer:nth-child(4) {
  z-index: 4;
}

.solutionContainer .content {
  max-height: 100%;
  justify-content: start;
  display: flex;
  flex-direction: column;
  padding-top: 130px;
  max-width: 400px;
  min-width: 400px;
  align-items: start;
}

.solutionContainer .content .heading {
  color: #15354e;
  font-size: 24px;
  font-weight: 900;
}

.solutionContainer .content p {
  text-align: justify;
  line-height: 140%;
  color: #708597;
}

.solutionContainer .content .main {
  margin-top: 20px;
}

.solutionContainer:nth-child(1) .content .main {
  width: 100%;
}

.aboutBannerWrapper button {
  font-size: 18px;
  font-weight: 350;
  color: #15354e;
  width: 484px;
  background-color: #ffffff;
  border: 0;
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
  padding: 12px 16px;
  align-items: center;
  cursor: pointer;
}

.solutionContainer .content button,
.philosophy button,
.aboutMain button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #fafafa;
  color: #15354e;
  border-radius: 8px;
  border: 0;
  text-align: center;
  align-items: center;
  margin-top: auto;
  font-size: 18px;
  transition: all ease 0.5s;
}

.solutionContainer .content button {
  margin-top: 50px;
}

.solutionContainer .content button img,
.philosophy button img,
.aboutMain button img {
  transform: rotate(0deg);
  transition: all ease 0.5s;
}

.solutionContainer .content button:hover,
.philosophy button:hover,
.aboutMain button:hover {
  background-color: #15354e;
  color: white;
}

.solutionContainer .content button:hover img,
.philosophy button:hover img,
.aboutMain button:hover img {
  transform: rotate(45deg);
  filter: brightness(0) saturate(100%) invert(200%) sepia(0%) saturate(2626%) hue-rotate(126deg) brightness(97%) contrast(98%);
}

.solutionContainer .banner {
  overflow: hidden;
  width: 100%;
  padding-top: 85px;
}

.solutionContainer .banner img:nth-of-type(1) {
  width: 100%;
}

.solutionContainer .banner img:nth-of-type(2) {
  display: none;
}

/* loader */
.loader {
    height: 8px;
    aspect-ratio: 5;
    --_g: no-repeat radial-gradient(farthest-side, #15354e 100%, #ffffff);
    background: var(--_g), var(--_g), var(--_g), var(--_g);
    background-size: 20% 100%;
    animation: l40-1 0.75s infinite alternate, l40-2 1.5s infinite alternate;
}

@keyframes l40-1 {
  0%,
  10% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  33% {
    background-position: 0 0, calc(100% / 3) 0, calc(100% / 3) 0, calc(100% / 3) 0;
  }

  66% {
    background-position: 0 0, calc(100% / 3) 0, calc(2 * 100% / 3) 0, calc(2 * 100% / 3) 0;
  }

  90%,
  100% {
    background-position: 0 0, calc(100% / 3) 0, calc(2 * 100% / 3) 0, 100% 0;
  }
}

@keyframes l40-2 {
  0%,
  49.99% {
    transform: scale(1);
  }

  50%,
  100% {
    transform: scale(-1);
  }
}

/* ✅ Background Video */
.videoContainer {
  position: relative;
  /* inset: 0; */
  width: 100vw;
  height: 100vh;
  /* opacity: 0; */
  /* z-index: -2; */
  transition: opacity 1s ease;
}
.brandBannerWrapper .videoContainer {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.aboutPageBanner .videoContainer {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.jobsPageBanner .videoContainer {
  background-image: url("../images/jobs.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.videoContainer .banner {
  width: 100%;
}

.videoContainer.show {
  opacity: 1;
}
video#bgVideo_loading {
    object-fit: cover;
    -webkit-mask-image: url(https://website.hatest.ir/alef/wp-content/uploads/2025/12/Mask-group-2.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url(https://website.hatest.ir/alef/wp-content/uploads/2025/12/Mask-group-2.svg);
    mask-repeat: no-repeat;
    mask-position: center;
    background: #15354e;
    mask-size: contain;
}
.videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* mask-image: url("../assets/images/maskimage.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  width: 65%; */
}

/* ✅ Dark overlay on video */
.aboutPictureOverlay {
  position: absolute;
  inset: 0;
  background: #00000054;
  pointer-events: none;
}

.videoOverlay {
  position: absolute;
  inset: 0;
  background: #2c2c2ccc;
  pointer-events: none;
}

.videoContainer .videoContent {
  padding-left: 150px;
  padding-bottom: 100px;
  width: 50%;
  color: #fff;
  position: absolute;
  bottom: 0;
  z-index: 2;
  height: max-content;
  max-width: 500px;
}

.videoContainer .videoContent .heading {
  font-size: 34px;
  font-weight: 800;
}

.videoContainer .videoContent p {
  font-size: 18px;
  font-weight: 350;
  line-height: 180%;
}

.aboutBannerWrapper .videoContainer .videoContent p {
  line-height: 140%;
}

/* ✅ Loading Screen */
.loading {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
  color: #15354e;
}


/* ✅ BIG “1” MASK */
.mask-wrapper {
  position: relative;
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 5px white;
  max-width: 500px;
}

.mask-text img {
  font-size: inherit;
  width: 390px;
}

/* ✅ Curtain Zoom Reveal */
.loading.zoom .mask-wrapper {
  transform: scale(10);
  /* margin-right: 500px; */
  transition: transform 1.2s ease-out, margin 1s ease-out;
  transform-origin: center;
}

.loading .heading {
    letter-spacing: 8px;
    font-weight: 400;
}

/* ✅ Fade Out Loading */
.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ✅ Page appears after */
#pageContent.show {
  opacity: 1;
  transition: opacity 1s ease 0.4s;
}

/* philosophy */
.philosophy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(100vh - 166px);
  padding-top: 83px;
  padding-right: 64px;
  padding-left: 64px;
  gap: 115px;
  align-items: center;
  padding-bottom: 83px;
}

.philosophy .mobile {
  display: none;
}

.philosophy .imageGroup {
  height: max-content;
  width: max-content;
  position: relative;
  margin: auto;
}
.philosophy .imageGroup:last-of-type img:first-of-type {
  margin-left: -171px;
}

.philosophy .imageGroup img:nth-child(2) {
  margin-left: -40px;
  margin-top: -30px;
  position: absolute;
}

.philosophy .content {
  text-align: center;
}

.philosophy .content .heading {
  font-size: 36px;
  color: #15354e;
}

.philosophy .content p {
  line-height: 140%;
  font-size: 18px;
  font-weight: 300;
  color: #708597;
}

.philosophy .counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 90px;
}

.philosophy .counter .counterItem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 22px;
  color: #15354e;
  font-weight: 800;
  text-align: left;
}

.philosophy .counter .counterItem:nth-of-type(3) {
  min-width: 130px;
}
.philosophy .counter .counterItem:nth-of-type(2) {
  min-width: 85px;
}

.philosophy .counter .counterItem .heading {
  margin: 0;
}

.philosophy .counter .counterItem p {
  font-size: 16px;
  line-height: 120%;
  font-weight: 300;
  margin: 0;
}

/* description */
.description {
  height: calc(100vh - 170px);
  padding-top: 170px;
  /* height: 100vh; */

  max-width: 1140px;
  margin: auto;
  transition: all 1s ease-out;

  position: sticky;
  top: 0;
}

.description .content {
  background: #15354e;
  color: white;
  border-radius: 12px 12px 0 0;
  height: 100%;
  padding: 0 195px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transform: translateY(240px);
  transition: transform 1s ease, opacity 0.8s ease, padding-top 0.8s ease;
}

.description .content .heading {
  font-size: 24px;
}

.nextStepBrand {
  cursor: pointer;
  z-index: 999;
}

.description .content.active {
  transform: translateY(0);
}

.description .content.active hr {
  margin-top: 0px;
}

.description.expand {
  max-width: 100%;
  padding-top: 0;
  height: 100vh;
}

.description .content hr {
  background: white;
  border: 1px solid white;
  height: 1px;
  width: 174px;
  position: absolute;
  top: 26px;
  margin-top: -55px;
  transition: margin 1.2s ease;
}

.description .content p {
  color: #b0b0b0;
  line-height: 140%;
  font-size: 16px;
  font-weight: 300;
  max-width: 750px;
  transition: all ease-out 1s;
}

.description .content p.active {
  margin-bottom: 100%;
}

.formSection {
  height: calc(100vh - 83px);
  padding-top: 83px;
  /* height: 100vh; */

  /* background: #15354E; */
  border-radius: 12px 12px 0 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  position: sticky;
  top: 0;
}

.formSection form {
  min-width: 407px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formSection form input,
.formSection form textarea {
  background-color: #ffffff21;
  border-radius: 8px;
  outline: none;
  border: none;
  min-height: 30px;
  color: white;
  padding: 10px;
}

.formSection form textarea {
  min-height: 127px;
  resize: none;
}

.formSection .heading {
  font-size: 36px;
  font-weight: 900;
  margin: 0;
  margin-top: 100%;
  transition: all ease-out 1s;
}

.formSection .heading.active {
  margin-top: 0;
}

.formSection span {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 42px;
}

.formSection form button {
  background-color: #f99d22;
  margin-top: 36px;
  border: none;
  border-radius: 8px;
  min-height: 40px;
  font-size: 14px;
  color: #15354e;
  font-weight: 300;
}

/* side menu */
#menu-btn .sideMenu {
  position: absolute;
  width: 330px;
  background: white;
  right: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 33px;
  gap: 70px;
  border-radius: 12px;
  margin-top: 40px;

  opacity: 0;
  /* hidden initially */
  pointer-events: none;
  /* prevent clicks when hidden */
  transform: translateY(-20px);
  /* slightly above */
  transition: all 0.3s ease;
  /* smooth animation */
}

#menu-btn .sideMenu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  /* slide in */
}

.sideMenu .top {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.sideMenu .top .lang {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #708597;
  gap: 8px;
}

#mobileMenu {
  display: none;
}

/* about page */
.aboutMain {
  display: flex;
  padding: 32px calc((100% - 1140px) / 2);
  padding-top: 32px;
  padding-top: 82px;
  gap: 100px;
  justify-content: center;
  align-items: center;
  max-height: calc(100vh - 114px);
  height: calc(100vh - 94px);
}

.aboutMain img {
  height: 100%;
  max-height: 100%;
}

.aboutMain .content .heading {
  color: #15354e;
  font-size: 36px;
  font-weight: 800;
}

.aboutMain .content p {
  text-align: justify;
  font-size: 16px;
  color: #708597;
  line-height: 140%;
}

/* boards of the about page */
.boardsContainer {
  background: #15354e;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 12px calc((100% - 1140px) / 2);
  padding-top: 82px;
  min-height: calc(100vh - 94px);
  gap: 52px;
}

.boardsContainer .heading {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 0;
  margin-top: 68px;
}

.boardsContainer .boards {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  /* gap: 24px; */
}

.boardsContainer .boards .board:nth-of-type(1),
.boardsContainer .boards .board:nth-of-type(3) {
  border-right: 2px solid #f4f4f41f;
}

.boardsContainer .boards .board:nth-of-type(1),
.boardsContainer .boards .board:nth-of-type(2) {
  border-bottom: 2px solid #f4f4f41f;
}

.boardsContainer .boards .board {
  padding: 30px;
}

.boardsContainer .boards .board .heading {
  font-size: 24px;
  font-weight: 800;
}

.boardsContainer .boards .board p {
  color: #708597;
  text-align: justify;
  font-size: 14px;
  line-height: 140%;
}

/* carousel container */
.carouselContainer {
  padding: 32px calc((100% - 1140px) / 2);
  padding-top: 82px;
  max-height: calc(100vh - 114px);
  height: calc(100vh - 114px);
  text-align: center;
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  justify-content: center;
}

.carouselContainer .heading {
  font-size: 28px;
  font-weight: 900;
}

.item {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
}

.item .itemContent {
  background-color: #f7f7f7;
  border-radius: 4px;
  padding: 55px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.item .itemContent .heading {
  font-size: 24px;
  font-weight: 800;
  /* color: #00546b; */
  color: #15354e;
}

.item .itemContent p {
  line-height: 140%;
  color: #708597;
  font-size: 16px;
}

.item .itemContent button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 330px;
  height: 60px;
  background: #00546b;
  color: white;
  border: 0;
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

.item .itemContent button img {
  max-width: max-content;
  max-height: 100%;
}

.item .itemContent .heading {
  margin: 0;
}

.item .itemImageContainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item .itemImageContainer .itemSocials {
  display: flex;
  background: #f7f7f7;
  border-radius: 4px;
  padding: 8px;
  justify-content: center;
  gap: 14px;
}
.item .itemImageContainer .mobileItemSocials {
  display: none;
}

.item .itemImageContainer .itemSocials img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.owl-nav {
  justify-content: end;
  display: flex;
}

.owl-stage .owl-item:nth-child(2) .item .itemSocials img {
  filter: invert(52%) sepia(82%) saturate(400%) hue-rotate(165deg) brightness(95%);
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
  background: none !important;
}

/* ===== Base Layout ===== */
.historyCardsContainer {
  max-height: calc(100vh - 100px);
  padding-top: 100px;
  display: flex;
}

.historyCardGroup {
  display: flex;
  max-height: 500px;
  min-height: 500px;
}

/* .historyCardGroup:first-child {
  padding-left: 121px;
} */

.historyGroupFlag {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: -28px;
}

.historyGroupFlag .circle {
  width: 10px;
  height: 10px;
  background: #15354e;
  border-radius: 50%;
  margin-bottom: -8px;
  margin-top: 10px;
}

.historyGroupFlag hr {
  height: 100%;
}

.historyGroupFlag span {
  font-size: 24px;
  font-weight: 800;
}

.historyCardGroup hr {
  width: 1px;
  background: #15354e78;
  border: 0;
}

/* ===== Horizontal Scroll ===== */
/* .horizontalScroll {
  overflow-x: auto !important;
  overflow-y: hidden;
}

.scrollInner {
  display: flex;
  gap: 120px;
  padding-right: 242px;
  padding-bottom: 40px;
  width: max-content;
} */
.horizontalScroll {
  height: 100vh;
  top: 0;
  overflow: hidden;
}

.horizontalScroll.sticky {
  position: sticky;
}

.horizontalScroll .scrollInner {
  display: flex;
  width: max-content;
  height: calc(100% - 100px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-right: 121px;
  padding-bottom: 100px;
  padding-left: 121px;
  align-items: center;
}
.horizontalScroll::after {
  content: "";
  display: block;
  height: 100vh; /* یا یک مقدار مناسب دیگر */
}

/* ===== Card Base ===== */
.historyCardItem {
  width: 287px;
  background: #fafafa;
  border-radius: 8px;
  padding: 15px;
  height: 336px;
  margin: auto 44px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;

  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease, width 0.4s ease, height 0.4s ease, padding 0.4s ease;
  justify-content: space-between;
}

.historyCardItem.miwa *{
  color: #F99D22 !important;
}

.historyCardItem.asteria *{
  color: #C8652F !important;
}

.historyCardItem .historyCardContent span {
  font-size: 16px;
  font-weight: 800;
  color: #708597;
}

.historyCardItem .historyCardContent h2 {
  font-size: 20px;
  color: #15354e;
  font-weight: 800;
}

.historyCardItem .historyCardContent p {
  color: #708597;
  font-weight: 350;
  font-size: 16px;
  line-height: 140%;
}

/* ===== Image Stacking ===== */
.historyCardImage {
  position: relative;
  width: 100%;
  height: 200px;
  /* margin-top: auto; */

  max-width: 300px;
}

.historyCardImage img {
  position: absolute;
  width: 100%;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  transition: all 0.6s ease;
}

/* upper image */
.historyCardImage img:first-child {
  z-index: 2;
}

/* lower image */
.historyCardImage img:last-child {
  z-index: 1;
  /* transform: translate(10px, 10px); */
}

.historyCardItem::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #FAFAFA;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Activate effect ONLY when a card is hovered */
.historyCardsContainer:has(.historyCardItem:hover)
  .historyCardItem:not(:hover)::after {
  opacity: 0.75;
}

.historyCardsContainer:has(.historyCardItem:hover)
  .historyCardItem:not(:hover) {
  transform: scale(0.95);
}

.historyCardsContainer .historyCardItem:hover {
  transform: scale(1.08);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* ===== Active (Click Expanded) ===== */
.historyCardItem.active {
  width: 560px;
  min-width: 830px;
  min-height: max-content;

  transform: scale(1.05);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);

  filter: none !important;
  padding: 25px;

  display: flex;
  flex-direction: row;
}

/* image movement */
/* .historyCardItem.active .historyCardImage img:first-child {
  transform: translate(40px, -20px); /* top right */
/* } */

.historyCardItem .historyCardImage img {
  max-height: 175px;
}

.historyCardItem.active .historyCardImage {
  height: 100%;
}

.historyCardItem.active .historyCardImage img:last-child {
  transform: translate(0px, -179px); /* bottom right */
}

.historyCardItems{
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.historyCardItems .historyCardItem{
  height: max-content;
  margin: 0 44px;
}

/* ===== Extra Text Reveal ===== */
.extraText {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.historyCardItem.active .extraText {
  max-height: 300px;
  opacity: 1;
  margin-top: 10px;
}

/* horizontal row */
.thumbs {
  display: flex;
  margin-top: -40px;
  position: relative;
}

/* overlapping circles */
.thumbs img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  margin-left: -15px; /* controls overlap amount */
  transition: transform 0.3s ease, z-index 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
  z-index: 1;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* first thumb should not overlap before anything */
.thumbs img:first-child {
  margin-left: 0;
}

/* active = bigger + in front */
.thumbs img.active {
  transform: scale(1.2);
  opacity: 1;
  z-index: 10 !important;
}

/* contact */

.contactusForm {
  height: calc(100vh - 81px);
  background-color: #15354e;
  color: white;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 150px;
  padding-top: 81px;
}

.contactusForm .contactData {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contactusForm .description.expand {
  height: calc(100vh - 83px);
}

.contactusForm .description .content {
  height: auto;
  padding: 0;
}

.contactusForm .formSection form input,
.contactusForm .formSection form textarea {
  background-color: #fff;
  color: #a09e9e;
}

.contactusForm p {
  font-size: 16px;
  line-height: 140%;
  color: #aeaeae;
}

.contactusForm link {
  display: flex;
  flex-direction: column;
}

.contactusForm .link .linkItem {
  display: flex;
  gap: 4px;
  align-items: center;
}

.contactusForm .link span {
  color: white;
}

.contactusForm .link .heading {
  color: #aeaeae;
}

/* pins container */
.pinsContainer {
  padding: 50px calc((100% - 1140px) / 2);
  padding-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 131px;
  gap: 24px;
}

.pinsContainer .pinItem {
  text-align: center;
}

.pinsContainer .pinItem .heading {
  color: #15354e;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.pinsContainer .pinItem p {
  color: #708597;
  font-size: 16px;
  text-align: center;
}

.pinsContainer hr {
  min-height: 260px;
  border: 1px solid #15354e2b;
}

/* jobs container */
.jobsContainer {
  padding-top: 131px;
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.jobsContainer .jobsHeader .heading {
  font-size: 36px;
  font-weight: 800;
  color: #15354e;
  margin-bottom: 8px;
  margin-top: 0;
}

.jobsContainer .jobsHeader span {
  font-size: 16px;
  color: #708597;
}

.jobsContainer select {
    border: 0;
    background: #f2f2f2;
    border-radius: 8px;
    padding: 10px;
    max-width: 380px;
    font-size: 16px;
    color: #708597;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="darkblue"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
}

.jobsContainer .jobItem {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #0000001a;
  padding: 22px 0;
  align-items: baseline;
}

.jobsContainer .jobItem .jobItemContent .heading {
  font-size: 24px;
  font-weight: 900;
  color: #15354e;
  margin: 0;
  margin-bottom: 0px;
  margin-bottom: 5px;
}

.jobsContainer .jobItem .jobItemContent .jobItemDetail {
  color: #708597;
  font-size: 16px;
  display: flex;
  gap: 10px;
}

.jobsContainer .jobItem button {
  font-size: 16px;
  color: #708597;
  display: flex;
  justify-content: space-between;
  background: #fff;
  border: 0;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.jobsContainer .jobItem button img {
  transform: rotate(-90deg);
}

.singleJobPageWrapper {
  padding-top: 140px;
  max-width: 750px;
  margin: auto;
}

.singleJobPageWrapper .backButton {
  background-color: transparent;
  border: none;
  font-size: 18px;
  color: #708597;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.singleJobPageWrapper .backButton img {
  transform: rotate(-135deg);
  margin-right: 8px;
  max-height: 18px;
}
.jobDetailsContainer .jobDetailsContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
}

.singleJobPageWrapper .jobDetailsContainer {
  padding-bottom: 180px;
}

.jobDetailsContent .jobItemContent .heading {
  font-size: 24px;
  font-weight: 900;
  color: #15354e;
  margin-top: 0;
  margin-bottom: 6px;
}

.jobDetailsContent .jobItemContent .jobItemDetail {
  color: #708597;
  font-size: 16px;
  display: flex;
  gap: 10px;
}

.jobDetailsContainer .jobDescription {
  margin-top: 32px;
  color: #708597;
  line-height: 140%;
  font-size: 16px;
}

.jobDetailsContainer .applyButton {
  background-color: #15354e;
  border-radius: 8px;
  padding: 8px 16px;
  color: white;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  border: 0;
  min-width: 270px;
  align-items: center;
  height: 60px;
  cursor: pointer;
}

.jobDetailsContainer .applyLastButton {
  margin-top: 80px;
}

.jobDescription p {
  font-size: 16px;
  color: #708597;
  text-align: justify;
  line-height: 140%;
}

.jobDescription .heading {
  font-size: 20px;
  font-weight: 900;
  color: #15354e;
}

.jobDescription ul {
  margin-left: 0px;
  padding-left: 24px;
  list-style: none;
  gap: 25px;
  display: flex;
  flex-direction: column;
}

.jobDescription ul li {
  position: relative;
}

.jobDescription ul li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #708597;
  border-radius: 50%; /* makes it a circle */
  position: absolute;
  left: -20px;
  top: 8px;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal box */
.modalContent {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  position: relative;
  width: 750px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close icon */
.closeModal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* Submit button */
.submitCV {
  margin-top: 15px;
  padding: 10px;
  background: #15354e;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  height: 46px;
  font-size: 16px;
}

.modalContent .mainContent {
  width: 560px;
  height: 345px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modalContent .mainContent .heading {
  font-size: 20px;
  font-weight: 900;
  color: #15354e;
  margin-top: 0;
}

.modalContent .mainContent p {
  font-size: 16px;
  line-height: 140%;
  color: #708597;
  margin: 0;
}

.modalContent .mainContent form input {
  background-color: #f2f2f2;
  border: none;
  border-radius: 8px;
  padding: 10px;
  outline: none;
  font-size: 16px;
  color: #708597;
  height: 26px;
}

.modalContent .mainContent form .inputs {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.modalContent .mainContent form .controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 26px;
}

/* Hide real file input */
#cvFile {
  display: none;
}

/* Upload Box */
.uploadBox {
    border: 2px dashed #708597;
    padding: 0px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.uploadBox:hover {
  background: #f5f7fa;
}

.uploadBox p {
  margin-top: 10px;
  color: #708597;
  font-size: 14px;
}


.historyMainWrapper {
  position: relative;
}

.brandSticky {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #F0F0F0;
  border-radius: 8px;
  display: flex;
  gap: 25px;
  align-items: center;
  pointer-events: auto;
  z-index: 9999;
  padding: 13px 24px;

  /* Instead of width: 80px */
  max-width: 80px;
  overflow: hidden;

  /* Transition must include max-width */
  transition: padding 0.8s ease, max-width 0.8s ease;
}

/* hide second before expand */
.brandSticky img.second ,
.brandSticky img.third ,
.brandSticky img.fourth {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* expanded effect */
.brandSticky.expanded {
  /* replace unset with a numeric value large enough to show all logos */
  max-width: 138px; /* adjust as needed */
}

.brandSticky.expandedMore {
  /* replace unset with a numeric value large enough to show all logos */
  max-width: 280px; /* adjust as needed */
}

.brandSticky.expandedAlef {
  /* replace unset with a numeric value large enough to show all logos */
  max-width: 360px; /* adjust as needed */
}


.brandSticky.expanded img.second,
.brandSticky.expandedMore img.third,
.brandSticky.expandedAlef img.fourth,
.brandSticky.expandedMore img.second {
  opacity: 1;
}


.brandSticky .brandLogo {
    max-height: 36px;
}