:root {
  --ph365-primary: #F2C14E;
  --ph365-secondary: #FFD36B;
  --ph365-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --ph365-card-bg: #111111;
  --ph365-background: #0A0A0A;
  --ph365-text-main: #FFF6D6;
  --ph365-border: #3A2A12;
  --ph365-glow: #FFD36B;
  --header-offset: 120px; /* Default for desktop, adjusted by shared.css media queries */
}

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

.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background: var(--ph365-background);
  position: relative;
  overflow: hidden;
}

.page-faq__hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  gap: 40px;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.page-faq__hero-image-block {
  width: 100%;
  max-width: 800px; /* Adjust as needed */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq__hero-text-block {
  max-width: 900px;
  padding: 0 20px;
}

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

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--ph365-button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-faq__btn-secondary {
  background: transparent;
  color: var(--ph365-primary);
  border: 2px solid var(--ph365-primary);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-faq__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__section {
  padding: 60px 0;
  background-color: var(--ph365-background);
}

.page-faq__section:nth-of-type(even) {
  background-color: var(--ph365-card-bg);
}

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

.page-faq__section-title {
  font-size: 2.5rem;
  color: var(--ph365-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__section-description {
  font-size: 1.1rem;
  color: var(--ph365-text-main);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--ph365-card-bg);
  color: var(--ph365-text-main);
  font-weight: bold;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: var(--ph365-text-main);
  font-size: 1.15rem;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ph365-primary);
  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(--ph365-text-main);
  font-size: 1rem;
}

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

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

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

.page-faq__faq-answer a {
  color: var(--ph365-secondary);
  text-decoration: underline;
}

.page-faq__faq-answer a:hover {
  color: var(--ph365-primary);
}

.page-faq__call-to-action {
  text-align: center;
  padding: 80px 0;
  background: var(--ph365-card-bg);
}

.page-faq__cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-faq__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-title {
  font-size: 2.2rem;
  color: var(--ph365-primary);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: var(--ph365-text-main);
  margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content-wrapper {
    padding: 0 15px;
  }
  .page-faq__container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-faq__main-title {
    font-size: 2.2rem;
  }
  .page-faq__hero-description,
  .page-faq__section-description,
  .page-faq__cta-description {
    font-size: 1rem;
  }
  .page-faq__section-title {
    font-size: 2rem;
  }
  .page-faq__faq-question,
  .page-faq__faq-question h3 {
    font-size: 1rem;
  }
  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-faq__cta-buttons,
  .page-faq__cta-buttons-bottom {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-faq__section {
    padding: 40px 0;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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