/* style/faq.css */
:root {
  --color-primary: #F2C14E;
  --color-secondary: #FFD36B;
  --color-background-card: #111111;
  --color-background-body: #0A0A0A;
  --color-text-main: #FFF6D6;
  --color-border: #3A2A12;
  --color-glow: #FFD36B;
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset handled by body */
  overflow: hidden;
}

.page-faq__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text on image */
  border-radius: 8px;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--color-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.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-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: var(--color-background-body); /* Dark text for bright button */
  border: none;
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

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

.page-faq__btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-background-body);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

.page-faq__btn-tertiary {
  background-color: var(--color-background-card);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-faq__btn-tertiary:hover {
  background-color: var(--color-border);
  transform: translateY(-2px);
}

.page-faq__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--color-background-card);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.page-faq__section-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #1a1a1a; /* Slightly lighter than card background for contrast */
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-main);
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--color-secondary);
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Changes '+' to 'x' or similar for active state */
}

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

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

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

.page-faq__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
  min-height: 200px;
}

.page-faq__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 80%; /* Adjust as needed for layout */
}

.page-faq__image--left {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-faq__image--right {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-faq__content-block {
  padding: 20px;
  text-align: center;
}

.page-faq__content-block p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: #cccccc;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__image--left,
  .page-faq__image--right {
    float: none;
    margin: 20px auto;
    max-width: 80%;
    display: block;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }
  .page-faq__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-faq__description {
    font-size: 1rem;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-faq__section {
    margin: 30px 15px;
    padding: 15px;
  }
  .page-faq__section-title {
    font-size: 1.8rem;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px 20px;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-faq__section-title {
    font-size: 1.5rem;
  }
  .page-faq__faq-question {
    font-size: 0.95rem;
  }
  .page-faq__hero-content {
    padding: 15px;
  }
  .page-faq__description {
    font-size: 0.9rem;
  }
}