/* style/faq.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --font-register-login: #FFFF00;
  --body-bg: #121212; /* From shared.css, dark background */
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--body-bg);
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}

.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.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-faq__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: var(--text-light);
}

.page-faq__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__intro-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-faq__btn-primary {
  background-color: var(--button-register); /* Custom color for Register/Login */
  color: var(--font-register-login); /* Custom font color */
  border: 2px solid var(--button-register);
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-faq__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--text-light);
}

.page-faq__btn-text-link {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  margin-top: 15px;
  font-size: 0.9em;
}

.page-faq__btn-text-link:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

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

.page-faq__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-faq__section-title--light {
  color: var(--text-light);
}

.page-faq__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__section-description--light {
  color: var(--text-light);
}

.page-faq__general-questions {
  background-color: var(--body-bg);
}

.page-faq__faq-list {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card for dark bg */
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  color: var(--text-light);
}

.page-faq__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: var(--text-light);
}

.page-faq__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-faq__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

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

.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  display: block;
}

.page-faq__cta-bottom {
  padding: 80px 0;
}

.page-faq__cta-bottom .page-faq__container {
  background-color: var(--primary-color);
  border-radius: 15px;
  padding: 60px 40px;
}

.page-faq__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Image and Video responsive styles */
.page-faq img,
.page-faq video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq__video-section,
.page-faq__video-container,
.page-faq__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-faq__hero-section {
    height: 450px;
  }

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

  .page-faq__intro-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-text-link {
    padding: 12px 20px;
    font-size: 0.9em;
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

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

  .page-faq__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-faq__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-faq__cta-bottom .page-faq__container {
    padding: 40px 20px;
  }

  /* Mobile image, video, button specific overrides */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-faq__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}