/* style/faq.css */

/* General Styles for page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #FFF3E6); /* Using custom color variable */
  background-color: var(--background, #0D0E12); /* Using custom color variable */
  line-height: 1.6;
}

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

.page-faq__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-bottom: 50px;
}

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

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: -200px auto 0; /* Pull content up over the image */
  padding: 40px;
  background: rgba(23, 25, 31, 0.9); /* Card BG with opacity */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #A84F0C);
}

.page-faq__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--glow, #FFB04D); /* Using custom color variable */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-faq__hero-description {
  font-size: 18px;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--background, #0D0E12);
}

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

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #A84F0C);
  overflow: hidden;
  background: var(--card-bg, #17191F);
  box-shadow: 0 2px 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, border-color 0.3s ease;
  color: var(--text-main, #FFF3E6);
  font-weight: 600;
  font-size: 18px;
}

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, 165, 58, 0.1);
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow, #FFB04D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter than card bg */
  border-radius: 0 0 10px 10px;
  color: var(--text-main, #FFF3E6);
}

.page-faq__faq-answer p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main, #FFF3E6);
}

/* Contact Promo Section */
.page-faq__contact-promo-section {
  padding: 80px 0;
  background-color: var(--background, #0D0E12);
}

.page-faq__contact-promo-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--card-bg, #17191F);
  border-radius: 15px;
  padding: 50px;
  border: 1px solid var(--border, #A84F0C);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__contact-promo-content {
  flex: 1;
  text-align: left;
}

.page-faq__promo-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--glow, #FFB04D);
  margin-bottom: 20px;
}

.page-faq__promo-description {
  font-size: 17px;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-faq__cta-button--secondary {
  background: none;
  border: 2px solid var(--glow, #FFB04D);
  color: var(--glow, #FFB04D);
  box-shadow: none;
}

.page-faq__cta-button--secondary:hover {
  background: var(--glow, #FFB04D);
  color: var(--card-bg, #17191F);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 176, 77, 0.4);
}

.page-faq__contact-promo-image-wrapper {
  flex-shrink: 0;
  width: 40%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__contact-promo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: -150px;
    padding: 30px;
  }

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

  .page-faq__hero-description {
    font-size: 17px;
  }

  .page-faq__contact-promo-grid {
    flex-direction: column;
    text-align: center;
    padding: 40px;
  }

  .page-faq__contact-promo-content {
    text-align: center;
  }

  .page-faq__contact-promo-image-wrapper {
    width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }

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

  .page-faq__hero-content {
    margin-top: -100px; /* Adjust pull-up for smaller screens */
    padding: 20px;
    border-radius: 8px;
  }

  .page-faq__main-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-faq__cta-button {
    padding: 12px 25px;
    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-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

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

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

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

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

  .page-faq__contact-promo-section {
    padding: 50px 0;
  }

  .page-faq__contact-promo-grid {
    padding: 30px;
    gap: 20px;
  }

  .page-faq__promo-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-faq__promo-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-faq__contact-promo-image-wrapper {
    width: 90%;
    margin-top: 20px;
  }

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

  /* Ensure all containers containing images or buttons are responsive */
  .page-faq__hero-section,
  .page-faq__faq-section,
  .page-faq__contact-promo-section,
  .page-faq__hero-content,
  .page-faq__faq-list,
  .page-faq__contact-promo-grid,
  .page-faq__contact-promo-content,
  .page-faq__contact-promo-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}