/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-offset, 120px); /* For fixed header */
}

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

.page-faq__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  z-index: 1;
  border: 1px solid #3A2A12; /* Border */
}

.page-faq__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow */
}

.page-faq__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-faq__section-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-faq__section-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: #F2C14E;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-faq__section-subtitle {
  font-size: clamp(1em, 1.3vw, 1.1em);
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Categories */
.page-faq__faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-faq__faq-category {
  background: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-faq__category-title {
  font-size: clamp(1.5em, 2.5vw, 2em);
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 25px;
  text-align: center;
}

.page-faq__category-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  object-fit: cover;
}

/* FAQ Items */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-item:last-child {
  border-bottom: none;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-weight: bold;
  color: #FFF6D6;
  transition: color 0.3s ease;
}

.page-faq__faq-question:hover {
  color: #F2C14E;
}

.page-faq__faq-question p {
  margin: 0;
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E;
  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 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

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

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

.page-faq__faq-answer a {
  color: #FFD36B; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
  color: #F2C14E;
  text-decoration: underline;
}

/* CTA Section */
.page-faq__cta-section {
  text-align: center;
  padding: 60px 20px;
  background: #111111; /* Card BG */
  border-radius: 10px;
  margin-top: 60px;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2C14E;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.4);
}

.page-faq__cta-description {
  font-size: clamp(1em, 1.3vw, 1.1em);
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  margin: 0 10px 10px 10px;
  max-width: 100%;
  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(242, 193, 78, 0.6);
}

.page-faq__cta-button--secondary {
  background: #111111; /* Card BG */
  border: 2px solid #F2C14E;
  color: #F2C14E;
  box-shadow: none;
}

.page-faq__cta-button--secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

/* Copyright Section */
.page-faq__copyright-section {
  text-align: center;
  padding: 30px 20px;
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-size: 0.9em;
  border-top: 1px solid #3A2A12;
}

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

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

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

  .page-faq__hero-description {
    font-size: 1em;
  }

  .page-faq__hero-button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-faq__content-area,
  .page-faq__cta-section {
    padding: 40px 15px;
  }

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

  .page-faq__section-subtitle {
    font-size: 0.95em;
  }

  .page-faq__faq-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-faq__faq-category {
    padding: 20px;
  }

  .page-faq__category-title {
    font-size: 1.3em;
  }

  .page-faq__faq-question {
    padding: 12px 0;
  }

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

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

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

  .page-faq__cta-description {
    font-size: 0.95em;
  }

  .page-faq__cta-button {
    display: block;
    margin: 10px auto;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__cta-section .page-faq__cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

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

  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__faq-container,
  .page-faq__faq-category,
  .page-faq__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
  }
}