/* style/faq.css */
:root {
  --page-faq-primary-color: #FFD700;
  --page-faq-secondary-color: #000080;
  --page-faq-text-light: #ffffff;
  --page-faq-text-dark: #333333;
  --page-faq-bg-dark: #121212;
  --page-faq-card-bg: rgba(255, 255, 255, 0.08);
  --page-faq-border-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-faq__section-spacing {
  padding: 60px 0;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--page-faq-secondary-color), var(--page-faq-bg-dark));
  overflow: hidden;
  color: var(--page-faq-text-light);
}

.page-faq__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

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

.page-faq__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--page-faq-text-light);
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq__btn-primary {
  display: inline-block;
  background-color: var(--page-faq-primary-color);
  color: var(--page-faq-secondary-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;
}

.page-faq__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
}

.page-faq__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    text-align: center;
    max-width: 300px;
}

.page-faq__section-title {
  font-size: 2.8em;
  color: var(--page-faq-primary-color);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-faq__section-subtitle {
  font-size: 2.2em;
  color: var(--page-faq-primary-color);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--page-faq-text-light);
}

.page-faq__introduction-section {
  background-color: var(--page-faq-bg-dark);
}

.page-faq__video-section {
  position: relative;
  background-color: var(--page-faq-secondary-color);
  color: var(--page-faq-text-light);
  text-align: center;
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-faq__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.page-faq__categories {
  background-color: var(--page-faq-bg-dark);
}

.page-faq__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__category-item {
  background-color: var(--page-faq-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-faq-border-color);
}

.page-faq__category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-faq__category-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--page-faq-primary-color));
}

.page-faq__category-title {
  font-size: 1.4em;
  margin-bottom: 0;
}

.page-faq__category-link {
  color: var(--page-faq-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq__category-link:hover {
  color: #e6c200;
}

.page-faq__faq-section {
  background-color: var(--page-faq-bg-dark);
}

.page-faq__faq-section.page-faq__dark-bg {
  background-color: var(--page-faq-secondary-color);
}

.page-faq__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__faq-item {
  background-color: var(--page-faq-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--page-faq-border-color);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-faq-primary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.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-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-faq-text-light);
}

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

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

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

.page-faq__contact-section {
  background: linear-gradient(135deg, var(--page-faq-bg-dark), var(--page-faq-secondary-color));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--page-faq-text-light);
  position: relative;
  overflow: hidden;
}

.page-faq__contact-content {
  z-index: 1;
  max-width: 800px;
}

.page-faq__contact-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  overflow: hidden;
}

.page-faq__contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-faq__hero-section {
    flex-direction: row;
    text-align: left;
    padding: 120px 20px;
    gap: 40px;
  }
  .page-faq__hero-content {
    text-align: left;
    margin-bottom: 0;
  }
  .page-faq__hero-image-wrapper {
    position: relative;
    width: 50%;
    height: auto;
    opacity: 1;
    order: 2;
  }
  .page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .page-faq__contact-section {
    flex-direction: row;
    text-align: left;
    gap: 40px;
  }
  .page-faq__contact-content {
    text-align: left;
    margin-right: auto;
  }
  .page-faq__contact-image-wrapper {
    position: relative;
    width: 50%;
    height: auto;
    opacity: 1;
    order: 2;
  }
  .page-faq__contact-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

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

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

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

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

  .page-faq__btn-primary,
  .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: 12px 15px;
    font-size: 1em;
  }

  .page-faq__btn-center {
      max-width: 100% !important;
  }

  .page-faq__video-wrapper {
    padding-bottom: 56.25%;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-faq img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__category-grid,
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper,
  .page-faq__contact-section,
  .page-faq__contact-content,
  .page-faq__contact-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-faq__category-grid {
    grid-template-columns: 1fr;
  }

  .page-faq__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

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

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

  .page-faq__contact-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0.1;
  }
  .page-faq__contact-image {
    width: 100%;
    height: auto;
  }
}