/* style/faq.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --bg-dark: #0D0E12;
  --card-bg: #17191F;
  --text-light: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

.page-faq {
  color: var(--text-light);
  background: var(--bg-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* HERO Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--bg-dark);
  border-bottom: 2px solid var(--border-color);
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-faq__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-faq__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255,165,58,0.6);
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(255,140,26,0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,26,0.6);
}

/* Intro Section */
.page-faq__intro-section {
  padding: 50px 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
}

/* FAQ List Section */
.page-faq__faq-list {
  padding: 60px 0;
  background: var(--bg-dark);
}

.page-faq__faq-category {
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 20px;
}

.page-faq__category-title {
  font-size: 1.8em;
  color: var(--glow-color);
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  font-weight: 600;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #252830;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: var(--card-bg);
  color: var(--text-light);
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: #2f333b;
  color: var(--primary-color);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-light);
}

details.page-faq__faq-item summary.page-faq__faq-question:hover .page-faq__faq-qtext {
  color: var(--primary-color);
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

details[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
  color: var(--glow-color);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 20px;
  background: #20232a;
  border-radius: 0 0 8px 8px;
  font-size: 1em;
  color: var(--text-light);
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

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

.page-faq__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
  margin-right: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(255,140,26,0.3);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,140,26,0.5);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(255,140,26,0.1);
}

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,140,26,0.3);
}

/* CTA Section at bottom */
.page-faq__cta-section {
  text-align: center;
  padding: 50px 20px;
  background: var(--card-bg);
  border-radius: 10px;
  margin-top: 40px;
  border: 1px solid var(--border-color);
}

.page-faq__cta-title {
  font-size: 2em;
  color: var(--glow-color);
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2.2em;
  }
  .page-faq__category-title {
    font-size: 1.6em;
  }
  .page-faq__faq-qtext {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__hero-image img {
    border-radius: 4px;
  }
  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-faq__intro-section,
  .page-faq__faq-list {
    padding: 30px 0;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-faq__section-description {
    font-size: 0.95em;
  }
  .page-faq__faq-category {
    padding: 15px;
  }
  .page-faq__category-title {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 0.95em;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 15px;
  }

  .page-faq__content-image,
  .page-faq__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    display: block;
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 10px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__btn-primary:last-child,
  .page-faq__btn-secondary:last-child {
    margin-bottom: 0;
  }

  .page-faq__cta-section {
    padding: 30px 15px;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  .page-faq__faq-list .page-faq__container > div {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__category-title {
    font-size: 1.2em;
  }
  .page-faq__faq-qtext {
    font-size: 0.9em;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
}