html {
  scroll-behavior: smooth;
}

html[lang="ar"],
html[lang="fa"] {
  direction: rtl;
}

html[lang="am"] .e-payment-button {
  max-width: 295px;
}

:root {
  --lineColor: #ffce19;
  --contentLight: #ffd700;
  --black: #222e35;
  --blackGray: #3e4347;
  --white: #ffffff;
  --contentDark: #303030;
  --footerText: #e9e9e9;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] div,
html[lang="ar"] p,
html[lang="ar"] button,
html[lang="ar"] span,
html[lang="ar"] ul > li,
html[lang="ar"] li {
  font-family: "Tajawal";
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] div,
html[lang="fa"] p,
html[lang="fa"] button,
html[lang="fa"] span,
html[lang="fa"] ul > li,
html[lang="fa"] li {
  font-family: "Tajawal";
}

.header-content-container {
  margin: 20px 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  & > img {
    max-width: 140px;
  }

  #lang-choose {
    padding: 12px 22px;
    border-radius: 4px;
    border: 0.25px solid rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 104px;
    margin-left: 60px;

    & > img {
      max-width: 16px;
      width: 100%;
    }

    & > span {
      font-weight: 400;
      font-size: 12px;
      line-height: 100%;
      font-family: "Inter";
      color: var(--black);
    }
  }
}

nav {
  max-width: 900px;
  width: 100%;
  & > ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-family: "Inter";

    & > li {
      font-weight: 500;
      font-size: 14px;
      line-height: 40px;
      letter-spacing: 0.01em;
      text-align: center;
      color: var(--black);
      cursor: pointer;
    }
  }
}

html[lang="mn"] nav,
html[lang="so"] nav {
  max-width: 2000px;
}

html[lang="so"] nav > ul > li,
html[lang="ru"] nav > ul > li {
  font-size: 10px;
}

html[lang="mn"] .header-content-container {
  margin: 20px;
}

.second-section-content-container-faq {
  margin: auto;
  width: 100%;
  max-width: 1205px;
  padding: 0 5px;
}

.page {
  text-decoration: underline var(--lineColor) 1px solid;
  text-underline-position: under;
}

.another-langs {
  display: none;
  position: fixed;
  width: 100%;
  max-width: 120px;
  top: 70px;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
}

.another-langs-en {
  right: 112px;
}

html[lang="fr"] .another-langs-en {
  right: 160px;
}

html[lang="mn"] .another-langs-en {
  right: 0px;
}

#lang-choose.lang-choose-ar {
  margin-left: 0;
  margin-right: 60px;
}

.header-content-container > img.header-content-img-ar {
  margin-right: 0;
  margin-left: 80px;
}

.another-langs-ar {
  left: 112px;
}

.another-language {
  text-align: center;
  margin-bottom: 5px;
  max-width: 104px;
  width: 100%;
  height: 35px;
  background-color: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0.25px solid rgba(0, 0, 0, 0.5);

  & > img {
    max-width: 16px;
    width: 100%;
  }

  & > span {
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: var(--black);
    text-align: center;
    max-width: 57px;
    width: 100%;
    font-family: "Inter";
  }
}

html[lang="ar"] .another-language > span {
  direction: ltr;
}

.active-lang {
  display: flex;
}

.first-section {
  background-image: url(../img/first-section-background-img.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 120px 0;
}

.first-section-content-container {
  margin: auto;
  width: 100%;
  max-width: 1049px;
  text-align: center;

  & > h1 {
    font-weight: 700;
    font-size: 74px;
    line-height: 124%;
    letter-spacing: 0.02em;
    color: var(--black);
    font-family: "Sarala";
  }

  & > p {
    margin: 35px auto;
    font-weight: 500;
    color: var(--black);
    font-family: "Inter";
    font-size: 24px;
  }

  & > button {
    margin: auto;
    font-family: "Inter";
    width: 100%;
    max-width: 300px;
    background-color: var(--contentDark);
    color: var(--white);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    border: 2px solid;
    border-color: rgba(0, 0, 0, 0);
    transition:
      color 0.3s ease-in-out,
      background-color 0.3s ease-in-out,
      border-color 0.3s ease-in-out;

    &:hover {
      color: var(--contentDark);
      background-color: var(--white);
      border-color: rgba(0, 0, 0, 1);
    }

    & > a {
      width: 100%;
      max-width: 300px;
      padding: 25px;
      display: block;
    }
  }
}

html[lang="pt"] .first-section-content-container > button > a {
  padding: 17px;
}

.first-section-content-p-en {
  max-width: 870px;
}

.first-section-content-p-ar {
  max-width: 830px;
}

#second-section {
  padding: 120px 0;
}

.second-section-content-container {
  margin: auto;
  width: 100%;
  max-width: 1175px;
  padding: 0 5px;
}

.section-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--black);
  font-family: "Sarala";
}

.section-title:after {
  content: "";
  display: block;
  max-width: 150px;
  width: 100%;
  height: 8px;
  background-color: var(--lineColor);
  margin: 35px auto;
  border-radius: 4px;
}

.section-subtitle {
  font-weight: 300;
  font-size: 24px;
  line-height: 160%;
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
  max-width: 974px;
  color: var(--blackGray);
  margin: auto;
  font-family: "Roboto";
}

html[lang="ar"] .section-subtitle {
  font-weight: 400;
}

.second-section-card-item-title-ar {
  height: 109px;
  max-width: 245px;
}

.second-section-card-item .second-section-card-item-subtitle-ar {
  font-weight: 400;
}

.second-section-card-container {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  width: 100%;
  max-width: 1100px;
}

.second-section-card-item {
  padding: 40px 20px;
  width: 100%;
  max-width: 350px;
  border-top: 8px solid var(--contentLight);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.4s,
    box-shadow 0.4s;

  &:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  & > h3 {
    font-weight: 700;
    font-size: 36px;
    line-height: 150%;
    text-align: center;
    margin: 20px auto;
    color: var(--black);
    font-family: "Sarala";
  }

  & > p {
    font-weight: 200;
    font-size: 16px;
    line-height: 160%;
    color: var(--black);
    letter-spacing: 0.01em;
    width: 100%;
    max-width: 310px;
    font-family: "Inter";
  }
}

.button {
  width: 100%;
  max-width: 210px;
  color: var(--black);
  background-color: var(--contentLight);
  padding: 15px 1px;
  cursor: pointer;
  border-radius: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  border: 2px solid;
  border-color: rgba(0, 0, 0, 0);
  box-shadow: 0px 9px 20px 0px rgba(255, 215, 0, 0);
  margin-bottom: 40px;
  font-family: "Inter";
  transition:
    border-color 0.3s ease-in-out,
    background-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;

  &:hover {
    background-color: var(--white);
    border-color: var(--contentLight);
    box-shadow: 0px 2px 20px 0px rgba(255, 215, 0, 0.5);
  }
}

.e-payment-button {
  max-width: 234px;
}

.payment-button {
  max-width: 228px;
}

.second-section-card-list {
  margin: 20px auto;
  width: 100%;
  max-width: 310px;
}

.second-section-card-list-item {
  margin-bottom: 10px;
  position: relative;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.01em;
  color: var(--black);
  font-family: "Inter";

  &::before {
    content: "";
    background-image: url(../img/card-list.svg);
    background-repeat: no-repeat;
    position: absolute;
    max-width: 25px;
    width: 100%;
    height: 100%;
  }

  & > span {
    font-weight: 700;
    background-color: #feebb8;
  }
}

.second-section-card-list-item-en {
  padding-left: 45px;
  font-weight: 200;

  &::before {
    left: 0;
  }
}

.second-section-card-list-item-ar {
  padding-right: 45px;
  font-weight: 400;

  &::before {
    right: 0;
    height: 100%;
  }
}

.third-section {
  background-image: url(../img/third-section-background-img.png);
  background-color: var(--contentDark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 115px 0;
}

.third-section-content-container {
  margin: auto;
  width: 100%;
  max-width: 1062px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Inter";

  & > div {
    font-weight: 700;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: min-content;
    height: 220px;
    display: flex;
    flex-direction: column;

    &:first-child {
      max-width: 260px;
    }

    & > span {
      font-size: 64px;
      line-height: 150%;
      letter-spacing: 0;
      color: var(--contentLight);
    }
  }
}

.choose-section {
  padding-top: 120px;
}

.choose-section-container {
  margin: auto;
  max-width: 1216px;
  width: 100%;
  background-color: #ebeff2;
  border-radius: 12px;
  padding: 35px 80px 32px;
}

.choose-section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 735px;
  margin: auto;
}

html[lang="ar"] .choose-section-content,
html[lang="fa"] .choose-section-content {
  flex-direction: row-reverse;
}

.choose-section-item {
  cursor: pointer;
  display: block;
  padding: 31px 22px;
  width: 100%;
  max-width: 350px;
  background-color: var(--contentLight);
  border-radius: 12px;
  text-align: center;
  height: 273px;
  transition: transform 0.4s;

  &:hover {
    transform: translateY(-15px);
  }

  &:last-child {
    background-color: var(--contentDark);

    & > h4,
    & > p {
      color: var(--white);
    }
  }

  & > h4 {
    margin: 10px auto 20px;
    font-weight: 700;
    font-size: 24px;
    color: var(--black);
    font-family: "Sarala";
  }

  & > p {
    font-weight: 300;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0.01em;
    text-align: center;
    font-family: "Inter";
  }
}

html[lang="ru"] .choose-section-item > h4 {
  margin-bottom: 0;
}

#fourth-section {
  padding: 120px 0;
}

.fourth-section-content-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-evenly;
}

.fourth-section-content-item {
  text-align: center;
  width: 100%;
  max-width: 243px;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease-in-out;
  font-family: "Inter";

  & > h4 {
    margin: 5px auto;
    font-weight: 700;
  }

  &:hover {
    transform: scale(1.15);
  }
}

.fourth-section-content-item-p-en {
  font-weight: 200;
}

.fourth-section-content-item-p-ar {
  font-weight: 400;
}

.fifth-section {
  padding: 120px 0;
  background-image: url(../img/third-section-background-img.png);
  background-color: var(--contentDark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.fifth-section-content-container {
  margin: auto;
  width: 100%;
  max-width: 1056px;
  text-align: center;

  & > h2 {
    color: var(--white);
  }

  & > p {
    color: var(--white);
    opacity: 1;
    margin-bottom: 35px;
  }

  & > button {
    margin-bottom: 0;
    max-width: max-content;

    & > a {
      padding: 15px 20px;
    }
  }
}

footer {
  background-color: var(--black);
  padding: 40px 0 45px;

  & > p {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.01em;
    opacity: 0.75;
    color: var(--footerText);
    margin-top: 40px;
    font-family: "Inter";
  }
}

.footer-content-container {
  margin: auto;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
}

.footer-partner-support-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 665px;

  & > ul {
    width: 100%;
    max-width: 265px;

    & > li:not(:first-child) {
      font-weight: 500;
      font-size: 14px;
      line-height: 40px;
      letter-spacing: 0.01em;
      color: var(--footerText);
      cursor: pointer;
      font-family: "Inter";

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

html[lang="ar"] .footer-partner-support-item > ul > li:not(:first-child),
html[lang="fa"] .footer-partner-support-item > ul > li:not(:first-child) {
  font-family: "Tajawal";
}

html[lang="es"] .footer-partner-support-item > ul {
  max-width: 320px;
}

.footer-contants-item {
  width: 100%;
  max-width: 303px;
}

.footer-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 160%;
  color: var(--contentLight);
  margin-bottom: 40px;
  position: relative;
  font-family: "Sarala";

  &::after {
    content: "";
    display: block;
    max-width: 45px;
    width: 100%;
    height: 4px;
    background-color: var(--lineColor);
    border-radius: 4px;
  }
}

.contact-footer {
  font-weight: 500;
  font-size: 14px;
  line-height: 40px;
  letter-spacing: 0.01em;
  color: var(--footerText);
  cursor: pointer;
  position: relative;
  font-family: "Inter";

  &:hover {
    text-decoration: underline;
  }

  &::before {
    content: "";
    background-repeat: no-repeat;
    position: absolute;
    top: 11px;
    max-width: 20px;
    width: 100%;
    height: 50%;
  }
}

.contact-footer-email::before {
  background-image: url(../img/contact-email.svg);
}

.contact-footer-tg::before {
  background-image: url(../img/contact-tg.svg);
}

.contact-footer-wa::before {
  background-image: url(../img/contact-wa.svg);
}

.contact-footer-en {
  padding-left: 30px;

  &::before {
    left: 0;
  }
}
.contact-footer-ar {
  padding-right: 30px;

  &::before {
    right: 0;
  }
}

.content-img-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 40px;

  & > a {
    cursor: pointer;
  }
}

.mobile-burger-menu-button-en {
  right: 24px;
}

.mobile-burger-menu-button-ar {
  left: 24px;
}

.mobile-burger-menu-button {
  display: none;
  position: absolute;
  pointer-events: all;
}

.burger-menu-wrapper {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100%;
  height: 100%;
  background-color: #222e35;
  opacity: 0.8;
  transition: left 0.3s ease-in-out;
  z-index: 1;
}

.burger-menu-content {
  background-color: white;
  width: 100%;
  max-width: 180px;
  position: fixed;
  top: 0;
  left: 100vw;
  transition: left 0.3s ease-in-out;
  z-index: 2;

  & > img {
    position: absolute;
    top: 15px;
    right: 15px;
    pointer-events: all;
  }

  & > nav {
    width: 100%;
    margin: 54px auto 20px;
    text-align: center;

    & > ul {
      display: block;

      & > li {
        line-height: 30px;
      }
    }
  }
}

.active-burger-menu {
  left: 0;
}

.active-burger-menu-content {
  left: 77vw;
}

html[lang="ar"] .active-burger-menu-content,
html[lang="fa"] .active-burger-menu-content {
  left: 0;
}
