/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.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-color: #0D0E12; /* Ensure consistent background */
}

.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%; /* For flex item */
}

.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;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-faq__main-title {
  font-size: clamp(2.2em, 5vw, 3.2em); /* Use clamp for H1 size */
  font-weight: bold;
  color: #FFF3E6;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.5); /* Glow */
}

.page-faq__intro-text {
  font-size: 1.2em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
}

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

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

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

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

.page-faq__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.page-faq__overview-section p,
.page-faq__additional-info p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-faq__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-faq__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
}

.page-faq__faq-list-section {
  padding-bottom: 80px;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
}

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: rgba(255, 140, 26, 0.1); /* Lighter hover for dark background */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow color for question text */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(23, 25, 31, 0.8); /* Slightly transparent Card BG for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #FFF3E6;
}

.page-faq__faq-answer ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: #FFF3E6;
}

.page-faq__faq-answer strong {
  color: #FFB04D; /* Glow color */
}

.page-faq__text-link {
  color: #FFA53A; /* Auxiliary color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #FF8C1A; /* Main color */
}

.page-faq__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-faq__benefits-list li {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-faq__benefit-title {
  display: block;
  font-size: 1.2em;
  color: #FFB04D; /* Glow color */
  margin-bottom: 10px;
}

.page-faq__cta-button--bottom {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #666;
  background-color: #0D0E12;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-image img {
    border-radius: 4px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    line-height: 1.3;
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

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

  .page-faq__container {
    padding: 0 15px;
  }

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

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

  .page-faq__overview-section p,
  .page-faq__additional-info p {
    font-size: 1em;
  }

  .page-faq__image-wrapper img {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }
  
  .page-faq__faq-qtext {
    font-size: 1em;
  }
  
  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }

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

  .page-faq__faq-answer p,
  .page-faq__faq-answer li {
    font-size: 0.95em;
  }

  .page-faq__benefits-list {
    grid-template-columns: 1fr;
  }

  .page-faq__benefits-list li {
    padding: 20px;
  }

  .page-faq__benefit-title {
    font-size: 1.1em;
  }
}

/* Ensure all images within .page-faq are responsive and not too small */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Image containers for mobile responsiveness */
.page-faq__section,
.page-faq__container,
.page-faq__image-wrapper,
.page-faq__faq-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min size on mobile */
    min-height: 200px !important; /* Enforce min size on mobile */
  }
  
  .page-faq__cta-button,
  .page-faq__text-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__cta-button {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure content areas have padding on mobile to prevent content touching edges */
  .page-faq__hero-section,
  .page-faq__section,
  .page-faq__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}