/* style/faq.css */

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

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

/* Hero Section */
.page-faq__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-faq__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 100%;
  width: 100%;
}

.page-faq__hero-image-wrapper {
  max-width: 100%;
  width: 100%;
  order: 1; /* Image appears first in DOM */
}

.page-faq__hero-content {
  order: 2; /* Content appears second in DOM */
  max-width: 800px;
  color: #111111; /* Dark text on light hero background */
}

.page-faq__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111111; /* Dark text on light hero background */
  margin-bottom: 20px;
  max-width: 100%;
}

.page-faq__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333; /* Darker text for readability */
}

/* Sections */
.page-faq__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-faq__section:last-of-type {
  border-bottom: none;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Text Main */
}

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

.page-faq__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.page-faq__faq-item.active {
  box-shadow: 0 5px 20px rgba(242, 193, 78, 0.4);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #FFD36B; /* Auxiliary color */
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #2a2a2a;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 20px;
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-faq__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Auxiliary color */
  border: 2px solid #FFD36B;
}

.page-faq__btn-secondary:hover {
  transform: translateY(-3px);
  background: #FFD36B;
  color: #111111;
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.4);
}

/* CTA Section at bottom */
.page-faq__cta-section {
  background: #0A0A0A; /* Background */
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-faq__cta-title {
  font-size: 2.8em;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-faq__cta-description {
  font-size: 1.2em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 900px;
}

.page-faq__cta-image-wrapper {
  margin-top: 40px;
}

.page-faq__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

  .page-faq__section-title {
    font-size: 2em;
  }

  .page-faq__cta-title {
    font-size: 2.2em;
  }

  .page-faq__hero-content {
    padding: 0 20px;
  }
}

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

  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }

  .page-faq__hero-container {
    flex-direction: column;
    gap: 20px;
  }

  .page-faq__hero-image-wrapper {
    order: 1;
  }

  .page-faq__hero-content {
    order: 2;
    padding: 0 15px;
  }

  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-faq__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px 15px;
  }

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

  .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: 12px 20px;
  }

  .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;
  }

  .page-faq__cta-section {
    padding: 60px 0;
  }

  .page-faq__cta-title {
    font-size: 1.8em;
  }

  .page-faq__cta-description {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Images responsive */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }

  .page-faq__section-title {
    font-size: 1.6em;
  }

  .page-faq__cta-title {
    font-size: 1.6em;
  }

  .page-faq__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 15px 10px;
  }
}