:root {
  --app-primary: #2D5DF2;
  --black: #1C1B1C;
  --black-ea: #131313;
  --blue-light: #BAC7F0;
  --blue-primary: #2750E6;
  --grey: #F7F7F7;
  --grey-inactive: #696868;
  --grey-text: #CBCFD9;
  --success-green: #05CA89;
  --white: #FFFFFF;
  --skeleton-primary: #8da5ff;
  --skeleton: #dde4ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  line-height: 1.5;
  color: var(--black);
  font-size: 1rem;
  font-weight: 300;
}

.hidden {
  display: none !important;
}

.block-scroll {
  height: 100vh;
  overflow: hidden;
}

.blur {
  filter: blur(4px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.container {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--blue-primary);
  color: var(--white);
  border: none;
}

.btn-primary:disabled {
  background-color: var(--blue-light);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--blue-primary);
  color: var(--blue-primary);
}

.btn-outline-white {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-circle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.original-text {
  white-space: pre-wrap;
}


/* Header */
.main-header {
  background-color: var(--white);
  border-bottom: 1px solid #EAEAEA;
  padding: .5rem 0;
  height: 4rem;
}

.main-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}


.header-mobile {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 1rem;
}

.nav-links .btn-close {
  display: none;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
}

.login-cta {
  text-decoration: none;
}

.work-as-expert {
  display: none;
}

/* How it Works Section */
.how-it-works {
  background-color: var(--grey);
  padding: 6rem 0;
}

.how-it-works .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.how-it-works .content {
  flex: 1;
}

.how-it-works h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.illustration {
  flex: 1;
}

.illustration img {
  max-width: 100%;
  height: auto;
}

/* faq section */
.faq {
  padding: 6rem 0;
}

/* Description section */
.description-section {
  margin-top: 4rem;
}

.description-section h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--blue-primary);
  border-radius: .5rem;
  background-color: transparent;
  width: 2rem;
  height: 2rem;
  background-color: transparent;
  transition: background-color 0.15s;
  margin-bottom: 2.625rem;
}

.btn-back:hover {
  background-color: var(--blue-light);
}

.btn-back img {
  width: 1rem;
  height: 1rem;
}

.description-section p {
  font-size: 16px;
  color: var(--black);
}

/* Features Section */
.features {
  padding: 4rem 1rem;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.feature-icon {
  width: 82px;
  height: 82px;
  background-color: var(--grey);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.75rem;
  margin-bottom: auto;
  font-weight: 400;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feature-card p {
  text-align: center;
}


/* Meet Our Experts Section */
.meet-experts {
  padding: 4rem 0 4rem 1rem;
  background-color: var(--white);
  display: flex;
  margin-left: calc((100vw - 1128px) / 2)
}

.experts-info {
  max-width: 264px;
  margin-right: 1.5rem;
}

.experts-info h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.experts-info p {
  font-size: 16px;
  color: var(--black);
  margin-bottom: 2rem;
}

.expert-institutions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.institution {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.institution img {
  width: 24px;
  height: 24px;
}

.institution span {
  font-size: 16px;
  color: var(--black);
}

.profiles-scroll {
  display: flex;
  align-self: flex-start;
  gap: 1.5rem;
  flex: 1;
  overflow-x: auto;
  padding-right: 1rem;
  padding-bottom: 1rem
}

.profile-card {
  min-width: 264px;
  padding: 1rem;
  border-bottom: 1px solid var(--blue-light);
  display: flex;
  flex-direction: column;
}

.profile-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.profile-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: var(--grey-inactive);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.rating {
  display: flex;
  gap: 0.25rem;
}

.rating img {
  width: 16px;
  height: 16px;
}

.profile-description {
  color: var(--grey-inactive);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.profile-stats {
  font-size: 0.75rem;
  margin-top: auto;
}

.profile-stats .success {
  color: var(--success-green);
}


/* Faq section */
.faq h2 {
  font-size: 3rem;
  font-weight: 500;
}

.faq .faq-des {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black-ea);
  margin-bottom: 3rem;
}

.faq-list {
  margin-top: 4rem;
}

.faq-list:first-child {
  margin-top: 0;
}

.faq-list .faq-list-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.75rem;
}

.accordion {
  width: 100%;
  margin: 20px 0;
  color: var(--black-ea);
}

.accordion-item {
  margin-bottom: 15px;
  overflow: hidden;
  border-bottom: 1px solid var(--blue-light);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  border: none;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
}

.accordion-header img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-header.active img {
  transform: rotate(-90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  max-height: 500px; /* Adjust based on your content */
  padding: 0 20px 15px;
}

.accordion-content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* CTA Section */
.cta {
  margin-top: 4rem;
}

.cta-content {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--blue-light);
  border-radius: 12px;
  gap: 6.25rem;
  padding: 0;
}

.cta-text {
  padding: 64px;
}

.cta-text h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: .5rem;
}

.btn-cta-section {
  padding: 16px 32px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1.5rem;
  text-decoration: none;
}

.cta-img {
  flex: 1;
  height: 290px;
  width: 40%;
}

.cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Footer */
.main-footer {
  background-color: var(--app-primary);
  color: var(--white);
  padding: 4rem 0;
  margin-top: 8rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links button {
  color: var(--white);
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.footer-links button:hover {
  text-decoration: underline;
}

.main-footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  margin: 1.5rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom .disclaimer-cta {
  cursor: pointer;
}

.footer-bottom .disclaimer-cta:hover {
  text-decoration: underline;
}

.footer-links button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-left: 1.5rem;
}

.footer-links button:hover {
  text-decoration: underline;
}

.dialog-content {
  scroll-behavior: smooth;
}

.btn-close-dialog {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.legal-modal .btn-close-dialog {
  top: 10px;
  right: 10px;
}

.btn-close-dialog:hover {
  background-color: var(--grey-text);
}

.btn-close-dialog svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 1200px) {
  .meet-experts {
    margin-left: calc((100vw - 100%) / 2);
  }
}

@media (max-width: 992px) {
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
      padding: 0 1.5rem;
  }

  .main-header {
    position: relative;
    padding: 0 1rem;
    background-color: var(--white);
    color: var(--app-primary);
    height: 3rem;
  }

  .main-header nav {
    position: fixed;
    z-index: 9999;
    top: 3rem;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--app-primary);
    color: var(--white);
    padding: 2.5rem 1.5rem;
    display: none;
  }

  .header-mobile {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    height: 100%;
  }

  .header-mobile .btn-login-mobile, .header-mobile .btn-menu {
    background-color: transparent;
    border: none;
    color: var(--app-primary);
    padding: .5rem;
  }

  .how-it-works .container {
    flex-direction: column;
}

  .btn-menu .icon {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
  }

  .nav-links .btn-close {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    color: var(--white);
    padding: 0;
  }

  .btn-close .icon {
    font-size: 1.5rem;
    color: #fff;
  }

  .nav-links a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 400;
  }

  .nav-right {
    display: none;
  }

  .work-as-expert {
    display: inline-block;
  }

  .cta-content {
    justify-content: center;
  }

  .cta-text .btn-cta-section {
    width: 100%;
    justify-content: center;
  }

  .cta-content .cta-img {
    display: none;
  }

  .footer-top,
  .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
}

@media (max-width: 642px) {
  .meet-experts {
    flex-direction: column;
    gap: 1.5rem;
  }

  .experts-info {
    max-width: 100%;
    margin: 0 auto;
  }

  .expert-institutions {
    align-items: flex-start;
  }

  .profiles-scroll {
    max-width: 100%;
  }
}

@media (max-width: 325px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}