:root {
  --primary-color: #FFD700; /* Gold */
  --primary-color-darker: #E6C200; /* Slightly darker gold for hover */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-shared: var(--bg-dark, #0d0d0d); /* Assuming shared.css defines --bg-dark */
}

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, assuming dark body bg */
  background-color: var(--bg-dark-shared); /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  padding-bottom: 80px; /* Base padding */
  text-align: center;
  background-color: var(--secondary-color); /* Dark red background for hero */
  color: var(--text-light);
  /* Ensure space from fixed header. This will be added to the base padding. */
  padding-top: calc(80px + var(--header-offset, 120px));
}

.page-faq__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--primary-color); /* Gold title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  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;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
  background-color: var(--primary-color); /* Gold button */
  color: var(--text-dark); /* Dark text on gold */
  border: 2px solid var(--primary-color);
}

.page-faq__btn-primary:hover {
  background-color: var(--primary-color-darker); /* Darken gold on hover */
  color: var(--text-dark);
}

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

.page-faq__btn-secondary:hover {
  background-color: var(--primary-color);;
  color: var(--text-dark);
}

/* FAQ List Section */
.page-faq__faq-list {
  padding: 60px 0;
  background-color: var(--text-light); /* Light background for FAQ content */
  color: var(--text-dark); /* Dark text on light background */
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Dark red title */
}

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--text-dark);
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-faq__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Change + to X-like or - */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px; /* Padding for expanded state */
}

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

.page-faq__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  filter: none !important; /* Ensure no filter changes image color */
}

/* CTA Section at the bottom */
.page-faq__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--secondary-color); /* Dark red background */
  color: var(--text-light);
  margin-top: 40px;
}

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

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.page-faq__download-app {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.5em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__category-title {
    font-size: 1.8em;
  }
  .page-faq__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  /* Mobile specific padding for hero section to account for fixed header */
  .page-faq__hero-section {
    padding-top: calc(60px + var(--header-offset, 120px)) !important; /* Adjust padding for mobile header */
    padding-bottom: 60px !important; /* Ensure base padding is also important */
  }
  .page-faq__hero-title {
    font-size: 2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100%; /* Full width buttons on mobile */
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto; /* Center buttons if they're not full width */
    margin-right: auto;
  }
}