/* style/faq.css */

/* Base styles for page-faq */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2f7, #ffffff);
}

.page-faq__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

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

.page-faq__main-title {
  color: #26A9E0;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
  /* H1 font size controlled by clamp, not fixed large value */
  font-size: clamp(2em, 4vw, 3.2em);
}

.page-faq__description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.page-faq__cta-buttons--inline {
  justify-content: flex-start;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 150px; /* Ensure buttons are not too small */
}

.page-faq__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

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

.page-faq__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.1);
}

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

.page-faq__btn-login:hover {
  background: #c56706;
  border-color: #c56706;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(234, 124, 7, 0.3);
}

/* Content Area */
.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-faq__section-title {
  color: #26A9E0;
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-faq__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-faq__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-faq__faq-item[open] summary {
  background-color: #26A9E0;
  color: #ffffff;
  border-bottom-color: #1e87c0;
}

.page-faq__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  color: #ffffff;
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #f8f8f8;
}

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

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

.page-faq__image-in-content {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Conclusion Section */
.page-faq__conclusion {
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  padding: 50px 20px;
  border-radius: 10px;
  margin-top: 60px;
}

.page-faq__conclusion-title {
  color: #ffffff;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-faq__conclusion-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq__hero-content {
    padding: 0 15px;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__faq-item summary {
    padding: 18px 20px;
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-faq__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  .page-faq__cta-buttons--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
  }

  .page-faq__cta-buttons--inline .page-faq__btn-secondary {
    width: auto !important;
    flex-grow: 1;
    min-width: unset;
  }

  .page-faq__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-faq__faq-item summary {
    padding: 15px 18px;
    font-size: 0.95em;
  }

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

  .page-faq__image-in-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-faq__conclusion {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-faq__conclusion-title {
    font-size: 1.5em;
  }

  .page-faq__conclusion-text {
    font-size: 1em;
  }

  /* Ensure all images inside .page-faq are responsive */
  .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__content-area,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-faq__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__conclusion-title {
    font-size: 1.3em;
  }
}