/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
  padding-bottom: 50px; /* Ensure some space at the bottom */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 50px;
  overflow: hidden; /* For image responsiveness */
}

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

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

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

.page-faq__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow */
  line-height: 1.2;
}

.page-faq__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-faq__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background: transparent;
  border: 2px solid #FFD36B; /* Glow */
  color: #FFD36B; /* Glow */
}

.page-faq__btn-secondary:hover {
  background: #FFD36B; /* Glow */
  color: #0A0A0A; /* Background */
  transform: translateY(-2px);
}

/* General Section Styling */
.page-faq__section-spacing {
  padding: 60px 0;
}

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main color */
}

.page-faq__section-title--light {
  color: #FFF6D6; /* Text Main */
}

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

details.page-faq__faq-item {
  margin-bottom: 0; /* Gap handled by flex gap */
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item--dark-bg {
  background: #0A0A0A; /* Deeper background for contrast in dark section */
  border-color: #3A2A12;
}

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 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

details.page-faq__faq-item summary.page-faq__faq-question--dark-bg {
  background: #111111; /* Card BG for summary in dark section */
}

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(242, 193, 78, 0.1); /* Slight hover effect with main color */
  color: #FFD36B; /* Glow */
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: inherit; /* Inherit from summary */
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* 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 */
  color: #FFD36B; /* Glow */
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
}

details.page-faq__faq-item .page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 16px;
}

details.page-faq__faq-item .page-faq__faq-answer--dark-bg {
  background: #0A0A0A; /* Consistent background */
}

.page-faq__image-answer {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px; /* Min size for all images */
  min-height: 200px;
}

/* Dark Section */
.page-faq__dark-section {
  background: #111111; /* Card BG for the section */
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

/* Contact Section */
.page-faq__contact-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-faq__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-faq__contact-info {
  text-align: left;
}

.page-faq__contact-info .page-faq__section-title {
  text-align: left;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color */
}

.page-faq__contact-info .page-faq__description {
  text-align: left;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-faq__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-faq__contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: #FFF6D6; /* Text Main */
}

.page-faq__contact-icon {
  font-size: 24px;
  margin-right: 15px;
  color: #FFD36B; /* Glow */
}

.page-faq__contact-link {
  color: #FFD36B; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__contact-link:hover {
  color: #F2C14E; /* Main color */
}

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

.page-faq__contact-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  min-width: 200px; /* Min size for all images */
  min-height: 200px;
}

/* Small button for inside FAQ answer */
.page-faq__btn-primary--small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 10px;
  display: inline-block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 40px;
  }

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

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

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

  .page-faq__contact-info,
  .page-faq__contact-info .page-faq__section-title,
  .page-faq__contact-info .page-faq__description {
    text-align: center;
  }

  .page-faq__contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

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

  .page-faq__hero-section {
    padding-bottom: 30px;
  }

  .page-faq__hero-image {
    max-height: 300px !important; /* Smaller hero image on mobile */
    object-fit: contain !important; /* Banner 849px contain */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-faq__main-title {
    font-size: 32px !important;
    margin-bottom: 15px;
  }

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

  .page-faq__cta-buttons {
    flex-direction: column !important; /* Buttons stack vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 20px;
    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__section-spacing {
    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: 28px;
    margin-bottom: 30px;
  }

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

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

  .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__contact-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

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

  .page-faq__contact-info,
  .page-faq__contact-info .page-faq__section-title,
  .page-faq__contact-info .page-faq__description {
    text-align: center;
  }

  .page-faq__contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-faq__contact-image-wrapper,
  .page-faq__contact-image,
  .page-faq__image-answer {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Remove padding if added by container for full width images */
    padding-right: 0 !important;
  }
}