/* style/faq.css */

/* Body background color from shared.css is #0D0E12 (dark) */
/* Therefore, text color in .page-faq should be light (#FFF3E6) */

.page-faq {
  color: #FFF3E6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0D0E12; /* Ensure consistency with shared body background */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  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;
  border-radius: 10px;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image to make text stand out */
}

.page-faq__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255,176,77,0.5);
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-faq__section {
  padding: 80px 0;
  background-color: #0D0E12;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  color: #FFA53A; /* Auxiliary color for section titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255,165,58,0.3);
}

.page-faq__section-description {
  font-size: 1rem;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  overflow: hidden;
  color: #FFF3E6;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  box-shadow: 0 0 20px rgba(255,139,26,0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #FF8C1A; /* Main color for questions */
  list-style: none; /* Hide default marker for details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 20px;
  color: #FFA53A;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF3E6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 10px;
}

.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;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main for buttons */
  border: none;
  box-shadow: 0 4px 15px rgba(255,139,26,0.4);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255,139,26,0.6);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FF8C1A; /* Main color for secondary button text */
  border: 2px solid #FF8C1A; /* Main color for border */
  margin-left: 15px;
}

.page-faq__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #17191F;
  transform: translateY(-2px);
}

.page-faq__cta-section {
  background-color: #17191F; /* Card BG color */
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #A84F0C; /* Border color */
}

.page-faq__cta-container {
  max-width: 800px;
}

.page-faq__cta-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #FFA53A;
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1rem;
  color: #FFF3E6;
  margin-bottom: 30px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-image {
    height: 450px; /* Adjust hero image height for smaller screens */
  }
}

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

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

  .page-faq__hero-image {
    height: 300px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-faq__hero-description {
    font-size: 1rem;
  }

  .page-faq__section {
    padding: 40px 0;
  }

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

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

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

  .page-faq__faq-toggle {
    font-size: 1.2rem;
  }

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

  .page-faq__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__btn-secondary:last-child {
    margin-bottom: 0;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-image {
    height: 200px;
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-faq__section-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
}