/* Shared styles for .page-faq */
.page-faq {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-faq__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFF6D6;
  min-height: 500px;
}

.page-faq__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

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

.page-faq__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
}

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

.page-faq__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color */
}

.page-faq__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-2px);
}

.page-faq__section {
  padding: 60px 20px;
  background-color: #0A0A0A;
}

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main Color */
}

.page-faq__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: justify;
  color: #FFF6D6;
}

.page-faq__faq-list {
  margin-bottom: 60px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: #FFF6D6;
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: rgba(242, 193, 78, 0.05); /* Slightly lighter version of main color */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
}

.page-faq__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
  text-align: justify;
}

.page-faq__cta-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

.page-faq__cta-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2C14E; /* Main Color */
}

.page-faq__cta-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 15px 30px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-faq__description {
    font-size: 1rem;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-faq__section {
    padding: 50px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 1rem;
  }

  .page-faq__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

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

  .page-faq__faq-answer p {
    font-size: 0.95rem;
  }

  .page-faq__cta-section {
    padding: 30px 15px;
  }

  .page-faq__cta-title {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  }

  .page-faq__cta-description {
    font-size: 0.95rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-faq__hero-section {
    min-height: 400px;
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-faq__hero-image-wrapper {
    max-height: 400px;
  }

  .page-faq__hero-image {
    object-fit: contain !important; /* HERO: object-fit:contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__hero-content {
    padding: 0 15px 20px;
  }

  .page-faq__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-faq__description {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column; /* Buttons: vertical stack */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section {
    padding: 40px 15px;
  }

  .page-faq__container {
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 25px;
    padding: 0 15px;
    text-align: center;
  }

  .page-faq__text-block {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 15px;
    text-align: justify;
  }

  details.page-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-faq__faq-qtext {
    font-size: 0.95rem;
  }

  .page-faq__faq-toggle {
    font-size: 22px;
    width: 22px;
    margin-left: 10px;
  }

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

  .page-faq__faq-answer p {
    font-size: 0.9rem;
  }

  .page-faq__cta-section {
    padding: 30px 15px;
    margin: 0 15px;
  }

  .page-faq__cta-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    margin-bottom: 15px;
  }

  .page-faq__cta-description {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  /* General image and container rules for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-section,
  .page-faq__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  /* No products-grid section on FAQ page, so no 2-column rule needed here */
}

/* For screens smaller than 480px */
@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-faq__description {
    font-size: 0.85rem;
  }

  .page-faq__section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .page-faq__faq-qtext {
    font-size: 0.9rem;
  }

  .page-faq__faq-toggle {
    font-size: 20px;
    width: 20px;
  }

  .page-faq__faq-answer p {
    font-size: 0.85rem;
  }

  .page-faq__cta-title {
    font-size: clamp(1.1rem, 6vw, 1.4rem);
  }

  .page-faq__cta-description {
    font-size: 0.85rem;
  }
}