/* ============================================================
   ADDITIONAL STYLES — Pharaoh Exchange
   FAQ section, FAQ page, About page, internal link buttons
   Color scheme: bg #020407, accent #CA2929, text #edf0f2
   ============================================================ */

/* ── FAQ SECTION (index.html) ── */

.faq-section {
  max-width: 1600px;
  margin: 60px auto 0;
  padding: 48px 30px 56px;
  background: linear-gradient(115deg, #020407 0.65%, #140101 100%);
  border-top: 1px solid rgba(242, 242, 242, 0.06);
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

.faq-h1 {
  font-family: Ubuntu, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #edf0f2;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-h1 span {
  color: #CA2929;
}

.faq-subtitle {
  font-family: Ubuntu, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #afb2b7;
  text-align: center;
  margin: 0 0 40px;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 44px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: rgba(2, 4, 7, 0.64);
  border: 1px solid rgba(242, 242, 242, 0.07);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: rgba(202, 41, 41, 0.45);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-question h2 {
  font-family: Ubuntu, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #edf0f2;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.faq-item.active .faq-question h2 {
  color: #f4bebe;
}

.faq-question-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(202, 41, 41, 0.5);
  background: transparent;
  transition: background 0.2s ease, transform 0.3s ease;
}

.faq-question-icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: #CA2929;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-question-icon::after {
  content: '';
  display: block;
  width: 2px;
  height: 10px;
  background: #CA2929;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-question-icon {
  background: rgba(202, 41, 41, 0.15);
}

.faq-item.active .faq-question-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 22px 20px;
}

.faq-answer h3 {
  font-family: Ubuntu, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #afb2b7;
  margin: 0;
  line-height: 1.7;
}

.faq-answer h3 a {
  color: #CA2929;
  text-decoration: none;
}

.faq-answer h3 a:hover {
  color: #f4bebe;
  text-decoration: underline;
}

/* ── INTERNAL LINK BUTTONS (faq / about links) ── */

.faq-internal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.btn-internal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: Ubuntu, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0 20px;
  height: 36px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-internal-primary {
  background: #CA2929;
  color: #ffffff;
  border: 2px solid #CA2929;
}

.btn-internal-primary:hover {
  background: #d54a4a;
  border-color: #d54a4a;
  color: #ffffff;
}

.btn-internal-secondary {
  background: transparent;
  color: #edf0f2;
  border: 2px solid #CA2929;
}

.btn-internal-secondary:hover {
  background: #140101;
  color: #f4bebe;
  border-color: #d54a4a;
}

/* ── SHARED PAGE STYLES (faq/index.html & about/index.html) ── */

.pharaoh-page {
  min-height: 100vh;
  background: linear-gradient(115deg, #020407 0.65%, #140101 100%);
  font-family: Ubuntu, sans-serif;
  color: #edf0f2;
  box-sizing: border-box;
}

.pharaoh-page *,
.pharaoh-page *::before,
.pharaoh-page *::after {
  box-sizing: border-box;
}

/* ── PAGE HEADER / NAVBAR ── */

.page-navbar {
  width: 100%;
  height: 56px;
  background: #0a0c0f;
  border-bottom: 1px solid rgba(242, 242, 242, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #CA2929;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-navbar-logo svg {
  flex-shrink: 0;
}

.page-navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-navbar-links a {
  font-size: 13px;
  font-weight: 500;
  color: #afb2b7;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.page-navbar-links a:hover {
  color: #f4bebe;
  background: rgba(202, 41, 41, 0.08);
}

.page-navbar-links a.active-nav {
  color: #edf0f2;
}

/* ── PAGE HERO BANNER ── */

.page-hero {
  width: 100%;
  padding: 64px 32px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 242, 242, 0.04);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('hero-bg.9ddcf03f.svg') center top / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.page-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #CA2929;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #edf0f2;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
}

.page-hero h1 span {
  color: #CA2929;
}

.page-hero-desc {
  font-size: 15px;
  font-weight: 400;
  color: #afb2b7;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
}

/* ── PAGE MAIN CONTENT AREA ── */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── FAQ PAGE SPECIFIC ── */

.faq-page-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.faq-page-item {
  background: rgba(2, 4, 7, 0.64);
  border: 1px solid rgba(242, 242, 242, 0.07);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-page-item.active {
  border-color: rgba(202, 41, 41, 0.45);
}

.faq-page-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-page-question h2 {
  font-family: Ubuntu, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #edf0f2;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.faq-page-item.active .faq-page-question h2 {
  color: #f4bebe;
}

.faq-page-question-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(202, 41, 41, 0.5);
  background: transparent;
  transition: background 0.2s ease;
  position: relative;
}

.faq-page-question-icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: #CA2929;
  border-radius: 2px;
}

.faq-page-question-icon::after {
  content: '';
  display: block;
  width: 2px;
  height: 10px;
  background: #CA2929;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-page-item.active .faq-page-question-icon {
  background: rgba(202, 41, 41, 0.15);
}

.faq-page-item.active .faq-page-question-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-page-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}

.faq-page-item.active .faq-page-answer {
  max-height: 600px;
  padding: 0 22px 22px;
}

.faq-page-answer p {
  font-size: 14px;
  font-weight: 400;
  color: #afb2b7;
  margin: 0;
  line-height: 1.75;
}

.faq-page-answer p + p {
  margin-top: 10px;
}

.faq-page-answer a {
  color: #CA2929;
  text-decoration: none;
}

.faq-page-answer a:hover {
  color: #f4bebe;
  text-decoration: underline;
}

/* ── ABOUT PAGE SPECIFIC ── */

.about-section {
  margin-bottom: 48px;
}

.about-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #edf0f2;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(202, 41, 41, 0.25);
  letter-spacing: -0.01em;
}

.about-section-title span {
  color: #CA2929;
}

.about-text {
  font-size: 14px;
  font-weight: 400;
  color: #afb2b7;
  line-height: 1.75;
  margin: 0 0 14px;
}

.about-text a {
  color: #CA2929;
  text-decoration: none;
}

.about-text a:hover {
  color: #f4bebe;
  text-decoration: underline;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.about-feature-card {
  background: linear-gradient(rgb(22, 24, 26) 0%, rgb(15, 17, 20) 100%);
  border: 1px solid rgb(28, 29, 31);
  border-radius: 4px;
  padding: 22px 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.about-feature-card:hover {
  background: linear-gradient(rgb(28, 29, 31) 0%, rgb(73, 5, 5) 100%);
  border-color: rgba(202, 41, 41, 0.35);
}

.about-feature-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #edf0f2;
  margin: 0 0 8px;
}

.about-feature-card-desc {
  font-size: 13px;
  font-weight: 400;
  color: #afb2b7;
  margin: 0;
  line-height: 1.6;
}

.about-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.about-stat-card {
  flex: 1;
  min-width: 140px;
  background: rgba(2, 4, 7, 0.64);
  border: 1px solid rgba(242, 242, 242, 0.07);
  border-radius: 4px;
  padding: 20px 18px;
  text-align: center;
}

.about-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #CA2929;
  display: block;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 12px;
  font-weight: 400;
  color: #afb2b7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── PAGE FOOTER / CTA ── */

.page-cta {
  margin-top: 12px;
  padding: 36px 24px;
  background: rgba(2, 4, 7, 0.64);
  border: 1px solid rgba(202, 41, 41, 0.2);
  border-radius: 4px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #edf0f2;
  margin: 0 0 10px;
}

.page-cta-desc {
  font-size: 14px;
  color: #afb2b7;
  margin: 0 0 22px;
  line-height: 1.6;
}

.page-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── MINIMAL PAGE FOOTER ── */

.page-footer {
  width: 100%;
  padding: 24px 32px;
  background: #0a0c0f;
  border-top: 1px solid rgba(242, 242, 242, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.page-footer-copy {
  font-size: 12px;
  color: #afb2b7;
  font-weight: 400;
}

.page-footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer-nav a {
  font-size: 12px;
  color: #afb2b7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-footer-nav a:hover {
  color: #f4bebe;
}

/* ── RESPONSIVE ── */

@media (max-width: 720px) {
  .faq-section {
    padding: 40px 16px 48px;
  }

  .faq-h1 {
    font-size: 24px;
  }

  .faq-question h2 {
    font-size: 14px;
  }

  .page-hero {
    padding: 48px 20px 36px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-content {
    padding: 32px 16px 48px;
  }

  .page-navbar {
    padding: 0 16px;
  }

  .page-navbar-links a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .faq-internal-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-internal {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .about-stat-row {
    flex-direction: column;
  }

  .about-stat-card {
    min-width: unset;
  }

  .page-cta-links {
    flex-direction: column;
    align-items: stretch;
  }

  .page-cta-links .btn-internal {
    justify-content: center;
  }
}