/* style/faq.css */

/* General page styling */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background: #F5F7FA; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top margin, body padding handles header offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
}

.page-faq__hero-image-container {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure image is responsive */
    border-radius: 8px; /* Slightly rounded corners for visual appeal */
}

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

.page-faq__main-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* CTA Button - Hero */
.page-faq__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Main Content Section */
.page-faq__section {
  padding: 40px 0;
}

.page-faq__section--content {
    background: #F5F7FA;
}

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

.page-faq__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

/* FAQ List */
.page-faq__faq-list {
  margin-bottom: 40px;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

details.page-faq__faq-item[open] {
    border-color: #FF5A4F;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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;
  font-size: 18px;
  font-weight: 600;
  color: #333333; /* Text Main */
  position: relative;
}

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: #f9f9f9;
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  margin-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Main color */
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
  color: #FF5A4F;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #fefefe; /* Slightly off-white for contrast */
  border-top: 1px solid #E0E0E0;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

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

.page-faq__inline-button {
    display: inline-block;
    background: #FF5A4F; /* Auxiliary color */
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__inline-button:hover {
    background: #E53935; /* Main color on hover */
}

/* Call to Action at bottom */
.page-faq__call-to-action {
  text-align: center;
  padding: 30px 20px;
  background: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-top: 40px;
}

.page-faq__call-to-action p {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 38px;
  }
  .page-faq__description {
    font-size: 17px;
  }
  .page-faq__section-title {
    font-size: 32px;
  }
  details.page-faq__faq-item summary.page-faq__faq-question {
    font-size: 17px;
    padding: 16px 20px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Small top margin, body padding handles header offset */
  }

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

  .page-faq__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-faq__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Main Content Section */
  .page-faq__section {
    padding: 30px 0;
  }

  .page-faq__container {
    padding: 0 15px;
  }

  .page-faq__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* FAQ List */
  details.page-faq__faq-item {
    margin-bottom: 10px;
    border-radius: 5px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 18px;
    font-size: 16px;
  }

  .page-faq__faq-qtext {
    margin-right: 10px;
  }

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

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

  .page-faq__inline-button {
    padding: 6px 12px;
    font-size: 14px;
    width: auto;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Call to Action at bottom */
  .page-faq__call-to-action {
    padding: 25px 15px;
    margin-top: 30px;
  }

  .page-faq__call-to-action p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  /* Generic image and container responsiveness for mobile */
  .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-image-container,
  .page-faq__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}