/* TROUBLE SHOOTING */
.common-troubleshooting-container {
  text-align: left;
}

.common-troubleshooting-container p {
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.2rem;
}

.common-troubleshooting-container a {
  text-align: left;
  color: var(--text-color-secondary);
  text-decoration: underline;
}

/* FAQ */
.homepage-section-header {
  font-size: 22px;
  text-align: center;
  /* margin: 0; */
  margin-bottom: .5rem;

  h2,
  h3 {
    margin: 0
  }
}

.faq-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.faq-link.mini-homepage-link {
  text-decoration: none;
}

.faq-link.mini-homepage-link:hover .ghost-item-title {
  text-decoration: underline;
}

.faq-item-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
  width: 100%;

  p {
    text-align: left;
  }
}

.homepage-section {
  background-color: white;
  padding: 2rem 1rem;
  margin: 10px 0;
  border-radius: 1rem;
  box-shadow: 0px 4px 200px 0px #EAEDEF;
  height: fit-content;
}

@media (min-width: 768px) {
  .knowledge-base {
    align-items: center;
  }

  .homepage-section {
    width: 610px;
  }
}

.section {
  margin-bottom: unset;
}

.shortcut-header {
  text-align: center;
  margin: 10px 0;
  font-size: 16px;
  font-family: "Avenir Next LT Pro", sans-serif;
}

.homepage-container {
  padding: 0 3%;
}

/* Ghost items */

.ghosts-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.ghost-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: .75rem;
}

.ghost-link {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.ghost-link p {
  margin: 5px 0;
  font-weight: 600;
}

.ghost-link:hover .ghost-background {
  background-color: #fffc00;
}

:lang(ar)>.homepage-nav-title .icon-chevron-right {
  transform: rotate(180deg);
}

.ghost-item .ghost-background,
.homepage-nav-header .ghost-background {
  background-color: #eceff1;
  width: 70px;
  height: 70px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  /* align-items: flex-end; */
  transition: background 0.1s ease;
}

/* .homepage-nav-header .ghost-background img {
  width: 60px;
  height: 60px;
} */

.ghost-item a {
  font-family: "Avenir Next LT Pro", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color-header);
}

/* New icons on homepage */
.ghost-background img {
  max-width: 84px;
  /* width: 100%; */
}

.globalnav-ghost-icon-link img {
  max-width: 32px;
  max-height: 32px;
}

.faded-bg {
  background: rgba(0, 0, 0, 0.8);
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
}

.contact-us-btn-container,
.contact-us-btn-container-bottom {
  display: none;
  /* display: flex; */
  justify-content: center;
  margin: 1rem 0;
}

.contact-us-btn {
  padding: 15px 30px;
  background: #eceff1;
  border-radius: 100px;
  color: black;
  font-family: "Avenir Next LT Pro";
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 16px;
}

.contact-us-btn:visited {
  color: black;
}

.contact-us-btn:focus,
.contact-us-btn:active,
.contact-us-btn:hover {
  text-decoration: none;
}

.homepage-nav-loader {
  height: fit-content;
  background-color: white;
  padding: 8px 0;
}

.faq-subheader {
  text-align: center;
}

.ghost-item-info {
  font-family: var(--font-family-primary);
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: left;
  font-size: 16px;
}

.ghost-item-info p {
  margin: 0;
}

.ghost-item-desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0px;
  text-align: left;
  color: var(--text-color-secondary);
}

.knowledge-base {

  display: flex;
  flex-direction: column;

  .popular-topics {
    order: 1;
  }

  .homepage-nav-section {
    order: 2;
  }

  .personalized-support {
    order: 3;
  }

  .resources {
    order: 5;
    font-family: Graphik;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;

    p {
      margin: 1rem 0;

      &:last-of-type {
        margin: 0;
      }
    }

    a {
      color: black;

      &:visited {
        color: black;
      }
    }
  }

  .help {
    order: 4;
  }

  .videos {
    order: 5;
  }

  .tips {
    order: 6;
  }
}



@media (min-width: 1070px) {
  .contact-us-btn-container {
    display: none;
  }

  .shortcut-header {
    display: none;
  }

  .section {
    border: 1px solid transparent;
  }

  .homepage-section {
    padding: 2rem;
    margin: 0;
  }

  .homepage-container {
    max-width: unset;
    margin: unset;
    width: unset;
    background-color: #f7f8f9;
  }

  .homepage-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .knowledge-base {
    display: flex;
    column-gap: 2rem;
    row-gap: 1rem;
    padding: 20px 0;
    max-width: 1160px;
    margin: 0 auto;

  }

  .popular-topics {
    grid-area: shortcuts;
  }

  .videos {
    grid-area: videos;
  }

  .tips {
    grid-area: tips;
  }

  .help {
    grid-area: help;
  }

  .personalized-support {
    grid-area: support;
  }
}

@media (max-width: 425px) {
  .ghost-item {
    margin-bottom: 1.5rem;
  }

  .ghost-item:last-of-type {
    margin-bottom: 0;
  }
}