/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text color for light body background */
  background-color: #f5f5f5;
}

/* Fixed Header Offset */
.page-faq {
  padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-faq__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  background-color: #CC0000; /* Main brand color */
  color: #ffffff;
  gap: 40px;
  flex-wrap: wrap;
}

.page-faq__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-faq__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-faq__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Content Area */
.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: -40px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 1;
}

.page-faq__section-title {
  font-size: 2.2em;
  color: #CC0000;
  margin-bottom: 20px;
  text-align: center;
}

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

/* FAQ List */
.page-faq__faq-list {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
}

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

.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: #555555;
}

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

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

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

.page-faq__faq-answer a:hover {
  color: #a00000;
}

/* Additional Info / Conclusion */
.page-faq__additional-info {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #fefefe;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-faq__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

/* Promotion Banner */
.page-faq__promotion-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background-color: #333333; /* Auxiliary brand color */
  color: #ffffff;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.page-faq__banner-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-faq__banner-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__banner-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-faq__banner-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq__banner-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00000;
  border-color: #a00000;
}

.page-faq__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__hero-section,
  .page-faq__promotion-banner {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-faq__hero-content,
  .page-faq__banner-content {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-faq__hero-image-wrapper,
  .page-faq__banner-image-wrapper {
    min-width: unset;
    width: 100%;
  }

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

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

  .page-faq__cta-buttons {
    justify-content: center;
  }
}

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

  .page-faq__hero-section {
    padding: 40px 15px;
  }

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

  .page-faq__description {
    font-size: 1em;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    margin-top: -20px;
  }

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

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

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

  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }

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

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

  .page-faq__additional-info {
    padding: 30px 15px;
  }

  .page-faq__text-block {
    font-size: 1em;
  }

  .page-faq__promotion-banner {
    padding: 40px 15px;
  }

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

  .page-faq__banner-text {
    font-size: 1em;
  }

  /* 🚨 Mobile-specific image adaptation */
  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* 🚨 Mobile-specific button adaptation */
  .page-faq__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* Containers for responsive overflow prevention */
  .page-faq__hero-section,
  .page-faq__content-area,
  .page-faq__additional-info,
  .page-faq__promotion-banner,
  .page-faq__hero-image-wrapper,
  .page-faq__banner-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}