/* style/faq.css */
:root {
  --primary-color: #E0B400; /* Imperial Gold */
  --secondary-color: #1A1A2E; /* Space Blue */
  --accent-color: #00BFFF; /* Electric Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #1A1A2E;
  --background-light: #f4f4f4;
  --border-color: #e0e0e0;
}

.page-faq {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency if body bg is dark */
}

.page-faq__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: var(--background-dark);
  color: var(--text-light);
  overflow: hidden;
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  min-width: 180px;
}

.page-faq__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-faq__btn-primary:hover {
  background: #f0c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
  background: #2a2a47;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-section {
  padding: 60px 0;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-item.active .page-faq__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

.page-faq__faq-question:hover {
  background: #f8f8f8;
  border-color: #d0d0d0;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fcfcfc;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px 25px !important;
  opacity: 1;
  border-color: var(--primary-color);
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-dark);
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__inline-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  margin-top: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq__inline-button:hover {
  background: #f0c200;
  transform: translateY(-1px);
}

.page-faq__image-illustration {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 60px 15px;
  }

  .page-faq__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-faq__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__faq-section {
    padding: 40px 0;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-faq__faq-list {
    padding: 0 15px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-faq__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }

  .page-faq__faq-answer {
    padding: 0 20px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-faq__faq-answer p {
    font-size: 15px;
  }

  .page-faq__inline-button {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-faq__image-illustration {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 15px auto;
    border-radius: 4px;
  }
  
  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}