/* ============================================================
   ADDITIONAL STYLES — Ferro Protocol
   additional_styles.css
   ============================================================ */

/* ── Prevent horizontal overflow globally ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   FAQ SECTION ON INDEX.HTML
   ============================================================ */

.faq-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  margin-top: 80px;
  padding: 60px 10% 80px;
  background: linear-gradient(180deg, #000000 0%, #010d1a 100%);
  border-top: 1px solid #007bb2;
}

.faq-h1 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 38px;
  line-height: 48px;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.faq-h1 span {
  color: #007bb2;
}

.faq-subtitle {
  font-family: "roboto", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #adadad;
  text-align: center;
  margin: 0 0 48px 0;
}

@media only screen and (max-width: 768px) {
  .faq-section {
    padding: 48px 6% 60px;
  }
  .faq-h1 {
    font-size: 26px;
    line-height: 34px;
  }
}

@media only screen and (max-width: 544px) {
  .faq-section {
    padding: 36px 5% 48px;
  }
  .faq-h1 {
    font-size: 20px;
    line-height: 28px;
  }
}

/* ── FAQ accordion list ── */

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 48px auto;
  max-width: 860px;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 123, 178, 0.35);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 123, 178, 0.35);
}

/* ── Question button ── */

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  text-align: left;
  gap: 16px;
}

.faq-question h2 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  margin: 0;
  flex: 1 1 auto;
  transition: color 0.2s ease;
}

.faq-item.open .faq-question h2 {
  color: #009be0;
}

.faq-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #007bb2;
  border-radius: 50%;
  color: #007bb2;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease, background-color 0.2s ease;
  user-select: none;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background-color: #007bb2;
  color: #ffffff;
}

/* ── Answer panel ── */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
  padding: 0 4px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 4px 24px;
}

.faq-answer h3 {
  font-family: "roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: #cccccc;
  margin: 0;
}

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

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

/* ── Inner links row below FAQ ── */

.faq-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.faq-links-row a {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 10px 28px;
  border: 1px solid #007bb2;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-links-row a:hover {
  background-color: #007bb2;
  color: #ffffff;
}

/* ============================================================
   SHARED SUBPAGE STYLES
   (used by faq/index.html and about/index.html)
   ============================================================ */

/* ── Page wrapper ── */

.subpage-body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  font-family: "roboto", sans-serif;
  font-size: 1rem;
  line-height: 1.375;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #000000 0%, #010d1a 60%, #000000 100%);
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Subpage header / nav ── */

.subpage-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #000000;
  border-bottom: 1px solid rgba(0, 123, 178, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  gap: 40px;
}

.subpage-logo {
  width: 193px;
  height: 36px;
  display: flex;
  background-image: url("FerroLogo.9e0ac9d15b34aae9883c.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  text-decoration: none;
  flex-shrink: 0;
}

.subpage-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.subpage-nav-links a {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.subpage-nav-links a:hover,
.subpage-nav-links a.active {
  color: #009be0;
}

.subpage-nav-cta {
  color: #ffffff !important;
  background-color: #007bb2;
  padding: 8px 20px;
  border-radius: 8px;
  transition: opacity 0.2s ease !important;
}

.subpage-nav-cta:hover {
  opacity: 0.85;
  color: #ffffff !important;
}

@media only screen and (max-width: 768px) {
  .subpage-nav {
    padding: 0 24px;
    gap: 20px;
  }
  .subpage-nav-links {
    gap: 20px;
  }
  .subpage-logo {
    width: 140px;
  }
}

@media only screen and (max-width: 544px) {
  .subpage-nav {
    padding: 0 16px;
    height: 56px;
  }
  .subpage-nav-links a:not(.subpage-nav-cta) {
    display: none;
  }
  .subpage-logo {
    width: 120px;
  }
}

/* ── Main content area ── */

.subpage-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Hero / page title section ── */

.subpage-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 72px 10% 56px;
  text-align: center;
  background: linear-gradient(180deg, #010d1a 0%, #000000 100%);
  border-bottom: 1px solid rgba(0, 123, 178, 0.2);
}

.subpage-hero h1 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 52px;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: 0.01em;
}

.subpage-hero h1 span {
  color: #009be0;
}

.subpage-hero p {
  font-family: "roboto", sans-serif;
  font-size: 17px;
  line-height: 26px;
  color: #adadad;
  margin: 0 auto;
  max-width: 680px;
}

@media only screen and (max-width: 768px) {
  .subpage-hero {
    padding: 52px 6% 40px;
  }
  .subpage-hero h1 {
    font-size: 30px;
    line-height: 40px;
  }
}

@media only screen and (max-width: 544px) {
  .subpage-hero {
    padding: 40px 5% 32px;
  }
  .subpage-hero h1 {
    font-size: 22px;
    line-height: 30px;
  }
  .subpage-hero p {
    font-size: 15px;
  }
}

/* ── Content sections ── */

.content-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 64px 10%;
}

.content-section + .content-section {
  border-top: 1px solid rgba(0, 123, 178, 0.15);
}

.content-section.alt-bg {
  background-color: rgba(0, 13, 26, 0.6);
}

.content-inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.content-section h2 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.content-section h2 span {
  color: #009be0;
}

.content-section h3 {
  font-family: "roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: #cccccc;
  margin: 0 0 16px 0;
}

.content-section p {
  font-family: "roboto", sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #cccccc;
  margin: 0 0 16px 0;
}

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

.content-section a {
  color: #009be0;
  text-decoration: none;
}

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

@media only screen and (max-width: 768px) {
  .content-section {
    padding: 48px 6%;
  }
}

@media only screen and (max-width: 544px) {
  .content-section {
    padding: 36px 5%;
  }
  .content-section h2 {
    font-size: 18px;
    line-height: 26px;
  }
}

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 544px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: linear-gradient(98.23deg, #061121 59.71%, rgba(0, 155, 224, 0.18) 100%);
  border: 1px solid rgba(0, 123, 178, 0.3);
  border-radius: 10px;
  padding: 28px 24px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: #007bb2;
  box-shadow: 0 4px 20px rgba(0, 123, 178, 0.2);
}

.feature-card h3 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #009be0;
  margin: 0 0 12px 0;
}

.feature-card p {
  font-family: "roboto", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #adadad;
  margin: 0;
}

/* ── Stats row ── */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  border: 1px solid rgba(0, 123, 178, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.stat-item {
  flex: 1 1 160px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(0, 123, 178, 0.2);
  box-sizing: border-box;
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: block;
}

.stat-label {
  font-family: "roboto", sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #adadad;
  display: block;
}

@media only screen and (max-width: 544px) {
  .stats-row {
    flex-direction: column;
    border-right: none;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(0, 123, 178, 0.2);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ── Team / about cards ── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

@media only screen and (max-width: 544px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: rgba(0, 13, 26, 0.8);
  border: 1px solid rgba(0, 123, 178, 0.25);
  border-radius: 10px;
  padding: 28px 24px;
  box-sizing: border-box;
}

.team-card h3 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.team-card .team-role {
  font-family: "roboto", sans-serif;
  font-size: 13px;
  color: #009be0;
  margin: 0 0 14px 0;
  display: block;
}

.team-card p {
  font-family: "roboto", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #adadad;
  margin: 0;
}

/* ── FAQ page specific: full accordion list ── */

.subpage-faq-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 860px;
  width: 100%;
}

.subpage-faq-item {
  border-bottom: 1px solid rgba(0, 123, 178, 0.35);
  overflow: hidden;
}

.subpage-faq-item:first-child {
  border-top: 1px solid rgba(0, 123, 178, 0.35);
}

.subpage-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  text-align: left;
  gap: 16px;
}

.subpage-faq-question h2 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  margin: 0;
  flex: 1 1 auto;
  transition: color 0.2s ease;
}

.subpage-faq-item.open .subpage-faq-question h2 {
  color: #009be0;
}

.subpage-faq-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #007bb2;
  border-radius: 50%;
  color: #007bb2;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease, background-color 0.2s ease;
  user-select: none;
}

.subpage-faq-item.open .subpage-faq-icon {
  transform: rotate(45deg);
  background-color: #007bb2;
  color: #ffffff;
}

.subpage-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
  padding: 0 4px;
}

.subpage-faq-item.open .subpage-faq-answer {
  max-height: 800px;
  padding: 0 4px 24px;
}

.subpage-faq-answer p {
  font-family: "roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: #cccccc;
  margin: 0 0 12px 0;
}

.subpage-faq-answer p:last-child {
  margin-bottom: 0;
}

.subpage-faq-answer a {
  color: #009be0;
  text-decoration: none;
}

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

/* ── Category label above FAQ groups ── */

.faq-category {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #007bb2;
  margin: 48px 0 16px 4px;
  max-width: 860px;
  width: 100%;
  display: block;
}

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

/* ── CTA / bottom action area ── */

.subpage-cta-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 64px 10%;
  text-align: center;
  background: linear-gradient(180deg, #000000 0%, #010d1a 100%);
  border-top: 1px solid rgba(0, 123, 178, 0.25);
}

.subpage-cta-section h2 {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 34px;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.subpage-cta-section p {
  font-family: "roboto", sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #adadad;
  margin: 0 0 32px 0;
}

.subpage-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cta-btn-primary {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #ffffff;
  background-color: #007bb2;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-primary:hover {
  opacity: 0.85;
  box-shadow: 2px 2px 12px rgba(0, 123, 178, 0.35);
}

.cta-btn-outline {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #ffffff;
  background-color: transparent;
  border: 1px solid #007bb2;
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-outline:hover {
  background-color: #007bb2;
  box-shadow: 2px 2px 12px rgba(0, 123, 178, 0.35);
}

@media only screen and (max-width: 768px) {
  .subpage-cta-section {
    padding: 48px 6%;
  }
  .subpage-cta-section h2 {
    font-size: 20px;
    line-height: 28px;
  }
}

@media only screen and (max-width: 544px) {
  .subpage-cta-section {
    padding: 36px 5%;
  }
  .subpage-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-btn-primary,
  .cta-btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ── Subpage footer ── */

.subpage-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #000000;
  border-top: 1px solid rgba(0, 123, 178, 0.2);
  padding: 32px 48px;
}

.subpage-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.subpage-footer p {
  font-family: "roboto", sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #686868;
  margin: 0;
}

.subpage-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.subpage-footer-links a {
  font-family: "eurostile-extended", "roboto", sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-footer-links a:hover {
  color: #009be0;
}

@media only screen and (max-width: 768px) {
  .subpage-footer {
    padding: 24px 24px;
  }
  .subpage-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Social icons row (subpage) ── */

.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.social-row a:hover {
  color: #009be0;
}

/* ── Divider ── */

.section-divider {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #009be0 30%,
    #ffffff 50%,
    #e9540e 70%,
    transparent 100%);
  border: none;
  opacity: 0.4;
}

/* ── Accent text utility ── */

.accent {
  color: #009be0;
}

/* ── Highlight box ── */

.highlight-box {
  background: linear-gradient(98.23deg, #061121 59.71%, rgba(0, 155, 224, 0.15) 100%);
  border: 1px solid rgba(0, 123, 178, 0.4);
  border-radius: 10px;
  padding: 28px 32px;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

.highlight-box p {
  font-family: "roboto", sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #cccccc;
  margin: 0;
}

@media only screen and (max-width: 544px) {
  .highlight-box {
    padding: 20px 20px;
  }
}

/* ── Breadcrumb ── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "roboto", sans-serif;
  font-size: 13px;
  color: #686868;
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 0 4px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #686868;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #009be0;
}

.breadcrumb span {
  color: #444;
}

.breadcrumb .breadcrumb-current {
  color: #adadad;
}