/* Promo FirstPage */

.promo-first-page {
  position: relative;
  min-height: 100vh;
  background-image: url("/assets/images/promo/promo-first-page.png");
  background-position: center right;
  background-size: 40%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: white;
  padding: 0 60px;
  z-index: 2;
}

.promo-first-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00000059;
  z-index: 1;
}

.promo-first-page * {
  position: relative;
  z-index: 2;
}

.promo-content-first-page {
  text-align: left;
  width: 700px;
}

html[lang="ar"] .promo-content-first-page {
  width: 550px;
  order: 1;
  text-align: right;
}

.promo-content-first-page h1 {
  font-size: 3rem;
}

html[lang="ar"] .promo-content-first-page h1 {
  text-align: right;
}

.promo-content-first-page p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

html[lang="ar"] .promo-content-first-page p {
  text-align: right;
}
.promo-content-inFirstPage {
  margin-bottom: 40px;
}
html[lang="ar"] .promo-content-first-page a {
  text-align: right;
}
@media (max-width: 1000px) {
  .promo-content-first-page h1 {
    font-size: 1.4rem;
  }
  .promo-content-first-page p {
    font-size: 1rem;
  }
  html[lang="fr-FR"] .promo-content-first-page p {
    font-size: 0.9rem;
  }
  .promo-content-first-page a {
    font-size: 1rem;
    padding: 10px 15px;
  }
}
/* Download FirstPage */

/* Download General */
.allContent-promo {
  display: flex;
  flex-direction: column;
  gap: 100px;
  font-size: 1.1rem;
}
.allContent-promo h1,
.allContent-promo h2,
.allContent-promo h3 {
  color: white;
  font-size: 1.8rem;
}
.allContent-promo img {
  display: block;
  margin-bottom: 0.75em;
  width: 100%;
}

.allContent-promo ul,
.allContent-promo p,
.allContent-promo ol {
  margin-bottom: 0;
}

.allContent-promo ol,
.allContent-promo ul {
  margin-left: 18px;
}

html[lang="ar"] .allContent-promo ol,
html[lang="ar"] .allContent-promo ul {
  margin-right: 18px;
  margin-left: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] a,
html[lang="ar"] p,
html[lang="ar"] li {
  direction: rtl;
  transition: all 0.5s ease;
}

html[lang="ar"] .allContent-promo a {
  text-align: center;
}

@media (max-width: 1000px) {
  .allContent-promo {
    font-size: 0.9rem;
  }
  .allContent-promo h1,
  .allContent-promo h2,
  .allContent-promo h3 {
    font-size: 1.5rem;
  }
  .allContent-promo a {
    margin: 30px auto 30px;
    padding: 10px 20px;
  }
}
/* Promo General */

.mainA {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: -80px;
  margin-top: 20px;
  color: white !important;
}
.mainA p {
  margin: 0 !important;
}

.promocode-button {
  width: 190px !important;
  height: 51px !important;
  margin: 0 !important;
}

/* Promo SecondPage */
.promo-allContent-page {
  min-height: 100vh;
  width: 100%;
  background-color: rgb(0, 37, 92);
  background-position: center;
  background-size: cover;
  background-repeat: repeat-y;
  background-attachment: fixed;
  position: relative;
}

.promo-allContent {
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  color: white;
  position: relative;
}

html[lang="ar"] .promo-allContent {
  text-align: right;
}

.allContent-promo-secondPage h2 {
  margin-top: 40px;
}

.promo-content-inSecondPage {
  margin-bottom: 40px;
}
.copy-promo-container {
  width: 100%;
  padding: 10px 20px;
  background-color: #f3f8fc;
  text-align: center;
  border-radius: 15px;
}
.copy-promo {
  border: 2px solid #225786;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.copy-promo p {
  color: #3766a9;
  margin-top: 0;
  margin-bottom: 40px;
}
.promo-content {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #3185ce;
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
}
.promo-content input {
  width: auto;
  padding: 5px;
  color: white;
  border: 2px dashed white;
  border-radius: 15px;
  background-color: transparent;
  text-align: center;
  cursor: pointer;
}
.promo-content a {
  font-size: inherit;
  padding: 6px 20px;
  border-radius: 15px;
}
.input {
  position: relative;
}
.copied-message-promo {
  top: -110%;
  position: absolute;
  left: 45%;
  transform: translateX(-50%);
  background-color: #0069af;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
}
.copied-message-promo:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgb(0, 105, 175) transparent transparent;
}
.copied-message-promo.show {
  opacity: 1;
}

.copied-message-promo-2 {
  top: -110%;
  position: absolute;
  left: 45%;
  transform: translateX(-50%);
  background-color: #0069af;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
}
.copied-message-promo-2:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgb(0, 105, 175) transparent transparent;
}
.copied-message-promo-2.show {
  opacity: 1;
}

@media (max-width: 1000px) {
  .promo-content {
    flex-direction: column;
  }
  .promo-content input {
    font-size: 0.8rem;
  }
}
/* Promo SecondPage */

/* Promo ThirdPage */
.allContent-promo-thirdPage {
  text-align: center;
}
.allContent-promo-thirdPage h2 {
  text-align: left;
}
html[lang="ar"] .allContent-promo-thirdPage h2 {
  text-align: right;
}
.promo-content-inThirdPage {
  margin-bottom: 40px;
  text-align: left;
}
html[lang="ar"] .promo-content-inThirdPage {
  text-align: right;
}
/* Promo ThirdPage */

/* Promo FifthPage */
.allContent-promo-fifthPage {
  text-align: center;
}
.allContent-promo-fifthPage h2 {
  text-align: left;
}
html[lang="ar"] .allContent-promo-fifthPage h2 {
  text-align: right;
}
.promo-content-inFifthPage {
  margin-bottom: 40px;
  text-align: left;
}
html[lang="ar"] .promo-content-inFifthPage {
  text-align: right;
}
/* Promo FifthPage */

/* Promo TenthPage */
.allContent-promo-eleventhPage {
  text-align: center;
}
.allContent-promo-eleventhPage h3 {
  text-align: left;
}
html[lang="ar"] .allContent-promo-eleventhPage h3 {
  text-align: right;
}
.promo-content-inEleventhPage {
  margin-bottom: 40px;
  text-align: left;
}
html[lang="ar"] .promo-content-inEleventhPage {
  text-align: right;
}
/* Promo TenthPage */

/* Promo ThirteenthPage */
.allContent-promo-thirteenthPage {
  text-align: center;
}
.allContent-promo-thirteenthPage h3 {
  text-align: left;
}
html[lang="ar"] .allContent-promo-thirteenthPage h3 {
  text-align: right;
}
.promo-content-inThirteenthPage {
  margin-bottom: 40px;
  text-align: left;
}
html[lang="ar"] .promo-content-inThirteenthPage {
  text-align: right;
}
.copy-promo-container {
  margin-bottom: 40px;
}

/* Promo ThirteenthPage */
.author-action a {
  display: inline-flex;
  background-color: transparent;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}
.author-action a:hover {
  background-color: transparent;
  box-shadow: none;
}
.author-link {
  color: black !important;
}
.author-info-section .author-link {
  color: white !important;
}
.tooltip-container {
  position: relative;
  display: block;
  cursor: pointer;
  color: #0bbbef;
  font-weight: 500;
  margin-bottom: 40px;
}

.tooltip-trigger {
  color: #46b5de;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tooltip-trigger:hover,
.tooltip-container:focus-within .tooltip-trigger {
  color: #5dd6ff;
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(93, 214, 255, 0.6);
}

.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text {
  visibility: hidden;
  width: 320px;
  background-color: #002b5c;
  color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #0bbbef;
  position: absolute;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tooltip-text {
  left: 0;
  text-align: left;
  direction: ltr;
  bottom: 125%;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: #002b5c transparent transparent transparent;
}

html[lang="ar"] .tooltip-text {
  right: 0;
  left: auto;
  text-align: right;
  direction: rtl;
}

html[lang="ar"] .tooltip-text::after {
  left: auto;
  right: 10px;
}

@media (max-width: 768px) {
  html[lang="fr"] .promo-content-first-page h1,
  html[lang="en"] .promo-content-first-page h1 {
    margin-top: 20px;
  }

  .promo-first-page::before {
    top: -68px;
    height: calc(100% + 68px);
  }

  .tooltip-text {
    width: 90vw;
    font-size: 13px;
    bottom: auto;
    top: 130%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .tooltip-text::after {
    top: -6px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(180deg);
  }

  html[lang="ar"] .tooltip-text {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  html[lang="ar"] .tooltip-text::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(180deg);
  }
}

.promo-mobile-img-first-page {
  display: none;
}

@media (max-width: 480px) {
  .promo-first-page::before {
    top: -52px;
    height: calc(100% + 52px);
  }
  
  html[lang="ar"] .promo-first-page {
    flex-direction: column-reverse;
  }

  .promo-first-page {
    padding: 30px 16px;
    background-image: none;
    flex-direction: column;
  }

  .promo-content-first-page {
    max-width: 310px;
  }

  .promo-mobile-img-first-page {
    display: block;
  }

  .tooltip-text {
    font-size: 12px;
    padding: 12px;
  }

  .footer-menu ul {
    flex-direction: column;
    align-items: start;
    list-style: disc;
  }

  .footer-menu ul li a {
    padding-left: 0;
  }

  .name-wrapper > a {
    margin: 30px 10px 30px;
  }

  .allContent-promo {
    gap: 0px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tooltip-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .tooltip-text {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: auto;
    top: 130%;
    text-align: center;
    direction: initial;
  }

  .tooltip-text::after {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) rotate(180deg);
  }

  html[lang="ar"] .tooltip-text {
    direction: rtl;
    text-align: right;
  }
}

.content-promo {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 0 20px;
}

.popup-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 10px;
  margin: 0px auto 114px;
}
