/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Background color */
  line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-faq__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow color for main titles */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* General Section Styling */
.page-faq__section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-faq__section:nth-of-type(even) {
  background-color: #111111; /* Card B G color for alternating sections */
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #F2C14E; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF6D6;
}

/* FAQ List */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq__faq-item {
  background-color: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #FFF6D6;
  font-weight: 600;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
  margin: 0;
  color: #FFF6D6;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow color for toggle icon */
}

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

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

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

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

.page-faq__faq-answer .page-faq__btn-secondary {
  margin-top: 15px;
  display: inline-block;
}

/* Call to Action Section */
.page-faq__call-to-action {
  background-color: #F2C14E; /* Primary color background for CTA */
  padding: 80px 0;
  text-align: center;
}

.page-faq__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__cta-title {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: #0A0A0A; /* Dark text for light background */
  margin-bottom: 25px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1rem;
  color: #0A0A0A; /* Dark text for light background */
  margin-bottom: 40px;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s 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%); /* Custom button gradient */
  color: #0A0A0A; /* Dark text for gradient button */
  border: none;
}

.page-faq__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Primary color for secondary button text */
  border: 2px solid #F2C14E; /* Primary color for secondary button border */
}

.page-faq__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
}

/* Image styles within content */
.page-faq__image {
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq__mobile-app-image, .page-faq__security-image, .page-faq__support-image {
  max-width: 400px;
  height: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-image-wrapper {
    max-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-image-wrapper {
    max-height: 300px;
  }
  
  .page-faq__main-title {
    font-size: 2.2rem;
  }

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

  .page-faq__section-title {
    font-size: 1.8rem;
  }

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

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

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

  .page-faq__cta-title {
    font-size: 2rem;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Mobile specific image adaptation */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-image-wrapper {
    max-height: 200px;
  }
  .page-faq__main-title {
    font-size: 1.8rem;
  }
  .page-faq__section-title {
    font-size: 1.5rem;
  }
  .page-faq__faq-question h3 {
    font-size: 1rem;
  }
}