/* ==========================================
   FAQ PAGE LAYOUT
========================================== */

.faq-page {
  width: 100%;
  padding: clamp(40px, 6vw, 90px) 20px;
}

.faq-shell {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.faq-content-box {
  position: relative;
  padding: clamp(35px, 5vw, 60px);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(77, 184, 255, 0.22);
  box-shadow:
    0 0 20px rgba(77, 184, 255, 0.16),
    0 0 60px rgba(77, 184, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.faq-content-box::before,
.faq-toc::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top left,
    rgba(77, 184, 255, 0.14),
    transparent 40%
  );
}

.faq-content-box > *,
.faq-toc > * {
  position: relative;
  z-index: 2;
}

/* ==========================================
   MAIN HEADINGS
========================================== */

.faq-content-box h1 {
  text-align: center;
  margin-bottom: 70px;
}

.faq-content-box h2 {
  margin-top: 110px;
  margin-bottom: 55px;
  padding: 26px;

  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;

  color: #fff;

  background: linear-gradient(
    90deg,
    rgba(77, 184, 255, 0.05),
    rgba(77, 184, 255, 0.16),
    rgba(77, 184, 255, 0.05)
  );

  border-top: 1px solid rgba(77, 184, 255, 0.3);
  border-bottom: 1px solid rgba(77, 184, 255, 0.3);

  box-shadow: 0 0 25px rgba(77, 184, 255, 0.14);
}

.faq-content-box h2:first-of-type {
  margin-top: 0;
}

.faq-heading-number {
  display: inline-block;
  margin-right: 10px;
  color: #4db8ff;
  font-weight: 700;
}

/* ==========================================
   FAQ QUESTION CARDS
========================================== */

.faq-item {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;

  margin-top: 60px;
  background: rgba(0, 0, 0, 0.8);

  border: 1px solid rgba(77, 184, 255, 0.22);
  border-radius: 18px;

  box-shadow: 0 0 18px rgba(77, 184, 255, 0.12);
  overflow: hidden;
}

.faq-item:not(:first-of-type)::before {
  content: "✦";
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);

  color: #4db8ff;
  font-size: 1.25rem;

  text-shadow:
    0 0 12px rgba(77, 184, 255, 0.65),
    0 0 28px rgba(77, 184, 255, 0.25);
}

.faq-item h3 {
  margin: 0;
  width: 100%;
  padding: 20px 24px;
  box-sizing: border-box;

  border-left: 4px solid #4db8ff;

  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

/* ==========================================
   FAQ ANSWERS
========================================== */

.faq-answer {
  width: 100%;
  padding: 0 26px 24px;
  box-sizing: border-box;

  background: rgba(77, 184, 255, 0.06);

  border-top: 1px solid rgba(77, 184, 255, 0.18);
  border-left: 1px solid rgba(77, 184, 255, 0.28);
  border-right: 1px solid rgba(77, 184, 255, 0.28);
  border-bottom: 1px solid rgba(77, 184, 255, 0.28);

  box-shadow:
    0 0 22px rgba(77, 184, 255, 0.18),
    0 0 65px rgba(77, 184, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.faq-answer p {
  margin-top: 14px;
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin-top: 14px;
  margin-bottom: 0;
  padding-left: 28px;
  background: none;
  box-shadow: none;
}

.faq-answer li {
  margin-bottom: 12px;
}

/* ==========================================
   FAQ TABLE OF CONTENTS
========================================== */

.faq-toc {
  position: relative;
  margin-bottom: 70px;
  padding: clamp(26px, 4vw, 42px);

  border-radius: 26px;
  border: 1px solid rgba(77, 184, 255, 0.28);

  box-shadow:
    0 0 22px rgba(77, 184, 255, 0.18),
    0 0 65px rgba(77, 184, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);

  overflow: hidden;
}

.faq-toc h2 {
  margin: 0 0 24px;
  text-align: center;
}

.faq-toc ol,
.faq-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.faq-toc li {
  display: block;
  margin: 0 0 5px;
  padding: 0;
  list-style: none;
  list-style-type: none;
  border-radius: 14px;
  overflow: hidden;
}

.faq-toc li:last-child {
  margin-bottom: 0;
}

.faq-toc li::before,
.faq-toc li::after,
.faq-toc a::before,
.faq-toc a::after {
  content: none;
  display: none;
}

.faq-toc a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;

  padding: 13px 16px;
  box-sizing: border-box;

  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;

  border-radius: 14px;
  transition: all 0.22s ease;
}

.faq-toc a:hover {
  color: #ffffff;
  background: rgba(77, 184, 255, 0.13);

  box-shadow:
    inset 3px 0 0 #4db8ff,
    0 0 14px rgba(77, 184, 255, 0.22);
}

.faq-toc .toc-number {
  flex: 0 0 48px;
  color: #4db8ff;
  font-weight: 700;
}

.faq-toc .toc-text {
  flex: 1;
}

.faq-toc .toc-level-2 a {
  margin-top: 12px;
  font-family: "Acme", sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-toc .toc-level-3 {
  padding-left: 22px;
}

.faq-toc .toc-level-3 a {
  font-size: 1rem;
  opacity: 0.9;
}

/* ==========================================
   BACK TO TOC BUTTON
========================================== */

.back-to-toc {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 14px 20px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  text-decoration: none;

  border: 1px solid rgba(77, 184, 255, 0.35);

  font-family: "Acme", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;

  box-shadow:
    0 0 16px rgba(77, 184, 255, 0.25),
    0 0 40px rgba(77, 184, 255, 0.1);

  transition: all 0.25s ease;
}

.back-to-toc:hover {
  transform: translateY(-3px);

  box-shadow:
    0 0 24px rgba(77, 184, 255, 0.35),
    0 0 50px rgba(77, 184, 255, 0.18);
}

/* ==========================================
   SCROLL BEHAVIOR
========================================== */

html {
  scroll-behavior: smooth;
}

.faq-content-box h2,
.faq-content-box h3 {
  scroll-margin-top: 140px;
}

/* ==========================================
   MOBILE STYLES
========================================== */

@media (max-width: 700px) {
  .faq-page {
    padding: 35px 16px;
  }

  .faq-shell {
    width: 100%;
  }

  .faq-content-box {
    padding: 26px;
    border-radius: 22px;
  }

  .faq-content-box h1 {
    margin-bottom: 50px;
  }

  .faq-content-box h2 {
    margin-top: 75px;
    margin-bottom: 35px;
    padding: 18px;
  }

  .faq-item {
    margin-top: 50px;
  }

  .faq-item h3 {
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .faq-item:not(:first-of-type)::before {
    top: -35px;
  }

  .faq-toc .toc-level-3 {
    padding-left: 10px;
  }

  .faq-toc .toc-number {
    flex-basis: 42px;
  }
}
