/* ============================================================
   additional_styles.css — FAQ, About, shared page styles
   Matches Convex Finance dark theme: #202020 / #3A3A3A / DM Sans
   ============================================================ */

/* ── Shared page layout ──────────────────────────────────────── */

.cvx-page-wrap {
  font-family: "DM Sans", sans-serif;
  background-color: #202020;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.cvx-page-header {
  background-color: #202020;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cvx-page-header .cvx-logo {
  height: 22px;
  display: block;
}

.cvx-page-header .cvx-header-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}

.cvx-page-header .cvx-header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cvx-page-header .cvx-header-nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.cvx-page-content {
  width: 1000px;
  max-width: 90%;
  margin: 0 auto;
  padding: 60px 0 80px;
  box-sizing: border-box;
}

.cvx-page-footer {
  background-color: #3A3A3A;
  padding: 36px 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
}

.cvx-page-footer a {
  color: #1682FE;
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
}

.cvx-page-footer a:hover {
  text-decoration: underline;
}

/* ── Internal links styling (shared) ────────────────────────── */

.cvx-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  justify-content: center;
}

.cvx-internal-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.cvx-internal-links a.cvx-link-primary {
  background-color: #1682FE;
  color: #fff;
}

.cvx-internal-links a.cvx-link-primary:hover {
  background-color: rgb(15, 91, 177);
  text-decoration: none;
}

.cvx-internal-links a.cvx-link-outline {
  border: 1px solid rgba(22, 130, 254, 0.5);
  color: #1682FE;
  background-color: transparent;
}

.cvx-internal-links a.cvx-link-outline:hover {
  border-color: #1682FE;
  background-color: rgba(22, 130, 254, 0.06);
  text-decoration: none;
}

/* ── FAQ block on index.html ─────────────────────────────────── */

.cvx-faq-section {
  margin-top: 80px;
  padding: 70px 0 80px;
  background-color: #202020;
  max-width: 100%;
  overflow-x: hidden;
}

.cvx-faq-section .cvx-faq-inner {
  width: 900px;
  max-width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* h1 — SEO hero heading */
.cvx-faq-section .cvx-faq-h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.cvx-faq-section .cvx-faq-h1 span {
  color: #60D8A4;
}

.cvx-faq-section .cvx-faq-subtitle {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin: 0 0 48px;
  line-height: 1.5;
}

/* Accordion list */
.cvx-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cvx-faq-item {
  background-color: #3A3A3A;
  border-radius: 10px;
  overflow: hidden;
  transition: background-color 0.2s;
}

.cvx-faq-item.cvx-faq-open {
  background-color: #444;
}

/* h2 — question button */
.cvx-faq-item .cvx-faq-question {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  padding: 0;
}

.cvx-faq-item .cvx-faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  gap: 16px;
  box-sizing: border-box;
}

.cvx-faq-item .cvx-faq-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cvx-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.2s;
  position: relative;
}

.cvx-faq-icon::before,
.cvx-faq-icon::after {
  content: "";
  position: absolute;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cvx-faq-icon::before {
  width: 10px;
  height: 2px;
}

.cvx-faq-icon::after {
  width: 2px;
  height: 10px;
}

.cvx-faq-open .cvx-faq-icon {
  border-color: #60D8A4;
  transform: rotate(45deg);
}

/* h3 — answer */
.cvx-faq-item .cvx-faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.cvx-faq-item.cvx-faq-open .cvx-faq-answer-wrap {
  max-height: 600px;
}

.cvx-faq-item .cvx-faq-answer {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  padding: 0 24px 22px;
  line-height: 1.6;
}

.cvx-faq-item .cvx-faq-answer a {
  color: #1682FE;
  font-weight: 500;
  text-decoration: none;
}

.cvx-faq-item .cvx-faq-answer a:hover {
  text-decoration: underline;
}

/* Links row at bottom of FAQ block */
.cvx-faq-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  justify-content: center;
}

.cvx-faq-links-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cvx-faq-links-row a.cvx-faq-link-main {
  background-color: #1682FE;
  color: #fff;
}

.cvx-faq-links-row a.cvx-faq-link-main:hover {
  background-color: rgb(15, 91, 177);
  text-decoration: none;
}

.cvx-faq-links-row a.cvx-faq-link-secondary {
  border: 1px solid rgba(22, 130, 254, 0.45);
  color: #1682FE;
  background-color: transparent;
}

.cvx-faq-links-row a.cvx-faq-link-secondary:hover {
  border-color: #1682FE;
  background-color: rgba(22, 130, 254, 0.07);
  text-decoration: none;
}

/* ── FAQ page (faq/index.html) ───────────────────────────────── */

.cvx-faq-page-hero {
  text-align: center;
  margin-bottom: 52px;
}

.cvx-faq-page-hero h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.cvx-faq-page-hero h1 span {
  color: #60D8A4;
}

.cvx-faq-page-hero p {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.55;
}

.cvx-faq-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cvx-faq-page-item {
  background-color: #3A3A3A;
  border-radius: 10px;
  overflow: hidden;
}

.cvx-faq-page-item.cvx-faq-open {
  background-color: #444;
}

.cvx-faq-page-item .cvx-faq-question {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  padding: 0;
}

.cvx-faq-page-item .cvx-faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  gap: 16px;
  box-sizing: border-box;
}

.cvx-faq-page-item .cvx-faq-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cvx-faq-page-item .cvx-faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.cvx-faq-page-item.cvx-faq-open .cvx-faq-answer-wrap {
  max-height: 800px;
}

.cvx-faq-page-item .cvx-faq-answer {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
  padding: 0 24px 22px;
  line-height: 1.65;
}

.cvx-faq-page-item .cvx-faq-answer a {
  color: #1682FE;
  font-weight: 500;
  text-decoration: none;
}

.cvx-faq-page-item .cvx-faq-answer a:hover {
  text-decoration: underline;
}

.cvx-faq-page-category-label {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 36px 0 10px;
}

.cvx-faq-page-category-label:first-of-type {
  margin-top: 0;
}

/* ── About page (about/index.html) ───────────────────────────── */

.cvx-about-hero {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 20px;
}

.cvx-about-hero h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.cvx-about-hero h1 span {
  color: #60D8A4;
}

.cvx-about-hero p {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.cvx-about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.cvx-about-card {
  flex: 1 1 260px;
  background-color: #3A3A3A;
  border-radius: 10px;
  padding: 28px 24px 30px;
  box-sizing: border-box;
}

.cvx-about-card h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.cvx-about-card p {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.cvx-about-card .cvx-about-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #1682FE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.cvx-about-section {
  background-color: #3A3A3A;
  border-radius: 10px;
  padding: 36px 40px;
  margin-bottom: 28px;
  box-sizing: border-box;
}

.cvx-about-section h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}

.cvx-about-section p {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
  margin: 0 0 12px;
}

.cvx-about-section p:last-child {
  margin-bottom: 0;
}

.cvx-about-section a {
  color: #1682FE;
  font-weight: 500;
  text-decoration: none;
}

.cvx-about-section a:hover {
  text-decoration: underline;
}

.cvx-about-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.cvx-about-stat {
  flex: 1 1 160px;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px 18px;
  text-align: center;
  box-sizing: border-box;
}

.cvx-about-stat .cvx-stat-number {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #60D8A4;
  margin-bottom: 4px;
}

.cvx-about-stat .cvx-stat-label {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cvx-about-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.cvx-about-team-card {
  flex: 1 1 200px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px 18px;
  box-sizing: border-box;
}

.cvx-about-team-card h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.cvx-about-team-card p {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media screen and (max-width: 700px) {
  .cvx-faq-section .cvx-faq-h1 {
    font-size: 28px;
  }

  .cvx-faq-section .cvx-faq-subtitle {
    font-size: 15px;
  }

  .cvx-faq-item .cvx-faq-btn {
    font-size: 15px;
    padding: 16px 18px;
  }

  .cvx-faq-item .cvx-faq-answer {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  .cvx-about-hero h1 {
    font-size: 28px;
  }

  .cvx-about-section {
    padding: 24px 20px;
  }

  .cvx-faq-links-row {
    flex-direction: column;
    align-items: center;
  }

  .cvx-internal-links {
    flex-direction: column;
    align-items: center;
  }

  .cvx-page-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .cvx-page-header .cvx-header-nav {
    gap: 14px;
  }

  .cvx-page-content {
    padding: 40px 0 60px;
  }

  .cvx-about-grid {
    flex-direction: column;
  }

  .cvx-about-stats-row {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .cvx-faq-section .cvx-faq-h1 {
    font-size: 24px;
  }

  .cvx-faq-page-hero h1,
  .cvx-about-hero h1 {
    font-size: 24px;
  }

  .cvx-about-stat .cvx-stat-number {
    font-size: 22px;
  }
}