*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Base theme */
  --bg-main: #1a1d24;
  --surface: #242933;
  --border: #383e4a;

  /* Typography */
  --text-title: #585858;
  --text-primary: #f8f9fa;
  --text-muted: #9ca3af;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-main);
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.title {
  text-align: center;
  color: var(--text-title);
  font-size: 48px;
  font-weight: 700;
  line-height: 65px;
  max-width: 450px;
  width: 100%;
  margin-top: 100px;
  /* Apply the gradient background */
  background: linear-gradient(90deg, #b6fafd 0%, #21a5ac 100%);

  /* Essential: clip the background to the text and make text transparent */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 18px;
  font-weight: 500;
  margin-top: 120px;
  margin-bottom: 8px;
}

.description {
  color: var(--text-muted);
  font-size: 14px;
}

.faq-filters {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.faq-filters__btn {
  height: 35px;
  padding: 0 15px;
  color: var(--text-muted);
  background-color: var(--bg-main);
  border: 2px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.faq-filters__btn--active {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.faq-panels {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
  gap: 50px;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 40px;
}

.faq-item {
  width: 100%;
  overflow: hidden;
  border-radius: 25px;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: transparent;
  padding: 30px 40px 30px;
  color: var(--text-primary);
  border: none;
  outline: none;
  font-size: 20px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.faq-item__answer {
  display: block;
  color: var(--text-muted);
  padding: 0px 40px 20px;
}

.faq-item:not(.faq-item--active) .faq-item__answer {
  display: none;
}

.faq-item--active {
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.faq-item__icon {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.faq-item--active .faq-item__icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
}

.faq-panel:not(.faq-panel--active) {
  display: none;
}

@media (max-width: 480px) {
  .header {
    width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .title {
    font-size: 40px;
    line-height: 55px;
    margin-top: 80px;
  }

  .subtitle {
    font-size: 16px;
    margin-top: 100px;
    text-align: left;
  }

  .description {
    font-size: 12px;
    text-align: left;
  }
  .faq-filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
  }

  .faq-item__question {
    padding: 25px 25px 15px 25px;
    font-size: 16px;
    text-align: left;
    align-items: center;
  }

  .faq-item__icon {
    width: 16px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
  }
  .faq-item__answer {
    padding: 0 25px 25px;
  }
}
