/* =============================================
   FAQ Section Styles
   ============================================= */

.faq-section {
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 40px 24px;
  background-color: #f8fcff;
  border-top: 1px solid #e2e8f0;
}

.faq-section-inner {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.faq-h1 span {
  color: #596aec;
}

.faq-subtitle {
  text-align: center;
  color: #718096;
  font-size: 15px;
  margin-bottom: 36px;
}

/* Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0px 4px 8px rgba(89, 106, 236, 0.10), 0px 0px 2px rgba(89, 106, 236, 0.08);
}

.faq-item.open {
  border-color: #596aec;
  box-shadow: 0px 4px 8px rgba(89, 106, 236, 0.15), 0px 0px 2px rgba(89, 106, 236, 0.10);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  font-family: Inter, sans-serif;
  gap: 12px;
  line-height: 1.4;
}

.faq-question:focus {
  outline: none;
}

.faq-question-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  line-height: 1.4;
}

.faq-item.open .faq-question-text {
  color: #596aec;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #eef0fd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #596aec;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  background-color: #596aec;
}

.faq-item.open .faq-icon svg {
  stroke: #ffffff;
  transform: rotate(180deg);
}

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

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

.faq-answer-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  border-top: 1px solid #edf2f7;
  padding-top: 14px;
}

/* FAQ section footer links */
.faq-section-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.faq-section-links a {
  font-size: 14px;
  font-weight: 500;
  color: #596aec;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid #596aec;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-section-links a:hover {
  background-color: #596aec;
  color: #ffffff;
}

/* =============================================
   Page Layout (FAQ page / About page)
   ============================================= */

.page-wrapper {
  background-color: #f8fcff;
  min-height: 100vh;
  font-family: Inter, sans-serif;
}

.page-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
}

.page-header-inner {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.page-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #596aec;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-header-nav a:hover {
  background-color: #eef0fd;
}

.page-header-nav .btn-primary {
  background-color: #596aec;
  color: #ffffff;
  box-shadow: 0px 4px 8px rgba(89, 106, 236, 0.18), 0px 0px 2px rgba(89, 106, 236, 0.12);
}

.page-header-nav .btn-primary:hover {
  background-color: #4a5cd8;
  color: #ffffff;
}

.page-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 48px 24px 60px 24px;
}

.page-hero {
  text-align: center;
  margin-bottom: 48px;
}

.page-hero-badge {
  display: inline-block;
  background-color: #eef0fd;
  color: #596aec;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.25;
  margin-bottom: 16px;
}

.page-title span {
  color: #596aec;
}

.page-description {
  font-size: 16px;
  color: #718096;
  line-height: 1.7;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Content cards */
.content-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}

.content-card:hover {
  box-shadow: 0px 4px 8px rgba(89, 106, 236, 0.10), 0px 0px 2px rgba(89, 106, 236, 0.08);
}

.content-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  line-height: 1.4;
}

.content-card-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.75;
  margin: 0;
}

.content-card-icon {
  width: 40px;
  height: 40px;
  background-color: #eef0fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.content-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #596aec;
  fill: none;
  stroke-width: 2;
}

/* Two column grid for cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Section heading */
.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef0fd;
}

.section-subheading {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 10px;
  margin-top: 24px;
}

/* Page footer links */
.page-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.page-footer-links a.btn-solid {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: #596aec;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  box-shadow: 0px 4px 8px rgba(89, 106, 236, 0.18);
}

.page-footer-links a.btn-solid:hover {
  background-color: #4a5cd8;
}

.page-footer-links a.btn-outline {
  font-size: 14px;
  font-weight: 500;
  color: #596aec;
  background-color: transparent;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid #596aec;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-footer-links a.btn-outline:hover {
  background-color: #596aec;
  color: #ffffff;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #596aec;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Team / feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f3f4;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: #eef0fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-list-icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #596aec;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page footer (site footer inside page) */
.page-site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #a0aec0;
  margin-top: 0;
}

.page-site-footer a {
  color: #596aec;
  text-decoration: none;
}

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

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
  .faq-h1 {
    font-size: 24px;
  }

  .faq-section {
    padding: 32px 16px;
    margin-top: 40px;
  }

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

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

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

  .faq-item.open .faq-answer {
    padding: 0 16px 16px 16px;
  }

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

  .faq-section-links a {
    text-align: center;
  }

  .page-title {
    font-size: 26px;
  }

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

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 20px 18px;
  }

  .page-header-inner {
    height: 64px;
  }

  .page-header-nav a {
    font-size: 13px;
    padding: 6px 12px;
  }

  .stats-row {
    flex-direction: column;
  }

  .stat-item {
    min-width: unset;
  }

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

  .page-footer-links a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .faq-h1 {
    font-size: 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-hero-badge {
    font-size: 11px;
  }

  .section-heading {
    font-size: 18px;
  }
}