/* style/faq.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --bg-dark-body: #1a1a2e; /* From shared.css body background */
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-font-color: #FFFF00;
}

.page-faq {
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--bg-dark-body);
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-top: var(--header-offset, 120px);
}

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

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-faq__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  font-weight: bold;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.5;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: var(--btn-register-bg);
  color: var(--btn-font-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-faq__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-faq__video-section {
  background-color: var(--bg-dark-body);
  padding: 60px 0;
  text-align: center;
}

.page-faq__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: var(--text-on-dark);
  text-align: center;
  font-weight: bold;
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-faq__video-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-faq__content-area {
  background-color: var(--secondary-color); /* White background for content */
  color: var(--text-on-light); /* Dark text for white background */
  padding: 60px 0;
}

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

.page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--text-on-light);
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-on-light);
  line-height: 1.7;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-faq__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-faq__image-caption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 60px 0;
  }
  .page-faq__main-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-faq__intro-text {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
    display: block;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__video,
  .page-faq__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-faq__faq-item,
  .page-faq__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__content-area p,
  .page-faq__content-area li {
    color: var(--text-on-light) !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.6em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
  }
  .page-faq__faq-answer {
    font-size: 0.9em;
  }
}