/* style/faq.css */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF1E8); /* Default text color for dark background */
  background: var(--background, #140C0C); /* Main background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  background-color: var(--deep-red, #7E0D0D); /* Fallback background for hero */
}

.page-faq__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__hero-content {
  text-align: center;
  padding: 20px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main, #FFF1E8);
}

.page-faq__main-title {
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--gold, #F3C54D); /* Gold for main title */
  margin-bottom: 15px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-faq__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-main, #FFF1E8);
}

/* Buttons */
.page-faq__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: var(--card-bg, #2A1212); /* Card BG for secondary button background */
  color: var(--gold, #F3C54D); /* Gold text for secondary button */
  border: 2px solid var(--border, #6A1E1E); /* Border color */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background-color: var(--deep-red, #7E0D0D);
  border-color: var(--gold, #F3C54D);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 40px 0;
  background: var(--background, #140C0C);
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  color: var(--gold, #F3C54D);
  margin-bottom: 30px;
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border, #6A1E1E); /* Border color */
  overflow: hidden;
  background: var(--card-bg, #2A1212); /* Card BG for FAQ item background */
  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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #FFF1E8);
}
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: var(--deep-red, #7E0D0D); /* Deep Red on hover */
}
.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #FFF1E8);
}
.page-faq__faq-toggle {
  font-size: 28px; /* Larger icon for better visibility */
  font-weight: bold;
  color: var(--gold, #F3C54D); /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger touch target */
  text-align: center;
}
details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.3); /* Slightly transparent dark for answer background */
  border-radius: 0 0 8px 8px;
  color: var(--text-main, #FFF1E8);
}
.page-faq__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}
.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.page-faq__cta-section {
  padding: 50px 0;
  text-align: center;
  background: var(--deep-red, #7E0D0D); /* Deep Red background for CTA */
  color: var(--text-main, #FFF1E8);
}

.page-faq__cta-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--gold, #F3C54D);
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-main, #FFF1E8);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image responsive styles */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 30px;
  }

  .page-faq__hero-content {
    padding: 15px 15px 30px;
  }

  .page-faq__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-faq__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* FAQ List Section */
  .page-faq__faq-list-section {
    padding: 30px 0;
  }

  .page-faq__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }

  .page-faq__faq-qtext {
    font-size: 16px;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
  }

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

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

  /* CTA Section */
  .page-faq__cta-section {
    padding: 40px 0;
  }

  .page-faq__cta-title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .page-faq__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile adaptation */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to buttons to match container */
    padding-right: 15px;
  }

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

  /* General image responsive styles for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* @media (max-width: 1024px) - For tablet, less strict than 768px, but good practice */
@media (max-width: 1024px) {
  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 32px;
  }

  .page-faq__section-title,
  .page-faq__cta-title {
    font-size: 28px;
  }

  .page-faq__description,
  .page-faq__cta-description,
  .page-faq__faq-qtext {
    font-size: 17px;
  }
}