/* style/faq.css */

/* General Styles for FAQ Page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark shared body background */
  background-color: transparent;
}

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

.page-faq__section {
  padding: 60px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-faq__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-faq__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.page-faq__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-faq__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-faq__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-faq__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(48, 0, 96, 0.7); /* #300060 with opacity */
  z-index: 2;
}

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

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-faq__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #300060;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* FAQ List Section */
.page-faq__faq-list {
  background-color: #300060;
  color: #ffffff;
}

.page-faq__faq-items {
  margin-top: 40px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-faq__faq-item.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: bold;
  color: #FFD700;
  transition: color 0.3s ease;
}

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

.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-heading {
  margin: 0;
  color: inherit;
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 30px 20px 30px;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Ensure text color is light */
}

.page-faq__faq-answer .page-faq__button {
  margin-top: 10px;
}

/* Buttons */
.page-faq__button {
  display: inline-block;
  background-color: #FFD700;
  color: #300060;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-faq__button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-faq__button--small {
  font-size: 0.9em;
  padding: 8px 18px;
}

.page-faq__button--large {
  font-size: 1.4em;
  padding: 18px 35px;
  border-radius: 50px;
}

/* Conclusion Section */
.page-faq__conclusion-section {
  background-color: #300060;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 3em;
  }
  .page-faq__hero-description {
    font-size: 1.1em;
  }
  .page-faq__section-title {
    font-size: 2.5em;
  }
  .page-faq__subtitle {
    font-size: 1.6em;
  }
}

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

  .page-faq__container {
    padding: 0 15px !important;
  }

  .page-faq__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-faq__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-faq__subtitle {
    font-size: 1.4em;
  }

  .page-faq__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-faq__text-block, .page-faq__image-block {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-faq__image-block img,
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

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

  .page-faq__button, 
  .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__button--large {
    font-size: 1.2em;
    padding: 15px 30px;
  }

  .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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}