/* style/faq.css */
/* Colors based on provided scheme */
:root {
  --68jl-primary: #F2C14E;
  --68jl-secondary: #FFD36B;
  --68jl-bg-dark: #0A0A0A;
  --68jl-card-bg: #111111;
  --68jl-text-main: #FFF6D6;
  --68jl-border: #3A2A12;
  --68jl-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-faq {
  background-color: var(--68jl-bg-dark);
  color: var(--68jl-text-main);
  font-family: 'Arial', sans-serif;
  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;
  justify-content: center;
  padding-top: 10px; /* Minimal top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
  border-radius: 10px;
  margin-top: 80px; /* Adjust as needed to not overlap header */
}

.page-faq__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--68jl-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

/* FAQ Section */
.page-faq__faq-section {
  padding: 60px 0;
  background-color: var(--68jl-bg-dark);
}

.page-faq__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--68jl-secondary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__section-description {
  font-size: 1.1rem;
  color: var(--68jl-text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 15px;
}

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

.page-faq__faq-item {
  background-color: var(--68jl-card-bg);
  border: 1px solid var(--68jl-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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(--68jl-card-bg);
  border-bottom: 1px solid var(--68jl-border);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #1a1a1a; /* Slightly lighter dark for hover */
}

.page-faq__faq-question-text {
  font-size: 1.2rem;
  color: var(--68jl-text-main);
  margin: 0;
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  color: var(--68jl-secondary);
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Plus to X for active */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--68jl-text-main);
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--68jl-text-main);
}

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

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Call to Action Section */
.page-faq__cta-section {
  background-color: var(--68jl-primary);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-faq__cta-content {
  max-width: 900px;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  padding: 0 15px;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: var(--68jl-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #DDA11D 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-faq__btn-secondary:hover {
  background-color: #ffffff;
  color: var(--68jl-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    margin-top: 60px;
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-bottom: 40px;
  }

  .page-faq__hero-content {
    margin-top: 40px;
    padding: 25px 15px;
  }

  .page-faq__main-title {
    font-size: 2.2rem;
  }

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

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

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .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-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__faq-section {
    padding: 40px 0;
  }

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

  .page-faq__faq-question {
    padding: 15px;
  }

  .page-faq__faq-question-text {
    font-size: 1.1rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

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

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

  .page-faq__cta-section {
    padding: 60px 0;
  }

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

  .page-faq__cta-description {
    font-size: 1rem;
  }
  
  /* Ensure images are fully responsive on mobile */
  .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;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-content {
    margin-top: 20px;
  }

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

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

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