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

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Main text color for dark background */
  background-color: var(--background-color);
  line-height: 1.6;
}

.page-faq__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles header offset, this is decorative top padding */
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-faq__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--text-main-color);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-faq__description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  filter: brightness(1.1);
}

.page-faq__section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-faq__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-faq__section-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color);
  background-color: var(--card-bg-color);
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: rgba(255, 140, 26, 0.1);
  border-bottom-color: var(--border-color);
}

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

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-main-color);
  opacity: 0.8;
}

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

.page-faq__cta-section {
  padding: 80px 0;
  background-color: var(--deep-orange-color);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-faq__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.page-faq__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  max-height: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-content {
  max-width: 800px;
  text-align: center;
  color: var(--text-main-color);
}

.page-faq__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-faq__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-faq__section-title {
    font-size: 2em;
  }

  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-faq__hero-image {
    max-height: 400px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    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__section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 1.1em;
  }

  .page-faq__faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 0.95em;
  }

  .page-faq__cta-section {
    padding: 60px 0;
  }

  .page-faq__cta-image {
    max-height: 250px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Image responsive rules */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }

  .page-faq__section-title {
    font-size: 1.6em;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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