/* style/faq.css */
.page-faq {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

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

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-faq__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-faq__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

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

.page-faq__section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-faq__faq-category {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__category-title {
  font-size: 2em;
  color: #8B0000;
  margin-bottom: 25px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.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: 18px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  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: #f0f0f0;
  line-height: 1.6;
}

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

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

.page-faq__cta-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 40px;
  margin-top: 60px;
  gap: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__cta-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: #FFD700;
  line-height: 1.3;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-faq__cta-content .page-faq__btn-primary,
.page-faq__cta-content .page-faq__btn-secondary {
  max-width: 250px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 3em;
  }
  .page-faq__section-title {
    font-size: 2.5em;
  }
  .page-faq__category-title {
    font-size: 1.8em;
  }
  .page-faq__cta-section {
    flex-direction: column;
    text-align: center;
  }
  .page-faq__cta-image {
    max-width: 80%;
  }
  .page-faq__cta-content .page-faq__btn-primary,
  .page-faq__cta-content .page-faq__btn-secondary {
    max-width: none;
    width: 100%;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-faq__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__faq-category {
    padding: 20px;
  }
  .page-faq__category-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px 0;
  }
  .page-faq__faq-answer {
    padding: 0 10px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 10px 15px 10px;
  }
  .page-faq__cta-section {
    padding: 30px;
    gap: 20px;
  }
  .page-faq__cta-image {
    max-width: 100%;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
  .page-faq__cta-description {
    font-size: 1em;
  }
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-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-actions {
    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-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__category-title {
    font-size: 1.3em;
  }
  .page-faq__faq-question {
    font-size: 1em;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
}