/* style/faq.css */

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

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

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0f8ff; /* Light blue background for hero */
}

.page-faq__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px; /* Space between image and text */
}

.page-faq__hero-text-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-faq__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-faq__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary:hover {
  background-color: #1a8cc7;
  transform: translateY(-2px);
}

/* FAQ List Section */
.page-faq__faq-list-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for FAQ section */
}

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

.page-faq__faq-items-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Item (details/summary based) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

details.page-faq__faq-item:hover {
  box-shadow: 0 6px 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: 1.1em;
  font-weight: 600;
  color: #333333;
}
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: #f5f5f5;
}
details.page-faq__faq-item[open] summary.page-faq__faq-question {
  background-color: #eaf6fc; /* Lighter blue when open */
  color: #26A9E0;
  border-bottom: 1px solid #d0e8f7;
}

.page-faq__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-faq__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate + to make an X or just change to - */
  color: #26A9E0;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-faq__faq-answer p {
  margin-bottom: 15px;
}
.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}
.page-faq__faq-answer a:hover {
  color: #1a8cc7;
}
.page-faq__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* CTA Section */
.page-faq__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand main color background */
  color: #FFFFFF;
  text-align: center;
}

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

.page-faq__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f8ff; /* Slightly off-white for contrast */
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-faq__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  color: #1a8cc7;
}

/* Specific button for Login */
a[href="login.html"].page-faq__btn-primary {
    background-color: #EA7C07; /* Login specific color */
    border: none;
}
a[href="login.html"].page-faq__btn-primary:hover {
    background-color: #cc6a00;
}


/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-faq {
    font-size: 15px;
    line-height: 1.55;
  }

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

  /* Hero Section */
  .page-faq__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-faq__hero-content-wrapper {
    padding: 30px 15px;
  }
  .page-faq__hero-image {
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-faq__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ List Section */
  .page-faq__faq-list-section {
    padding: 40px 0;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-faq__faq-items-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ Item */
  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 18px;
    font-size: 1em;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 24px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 18px 18px;
  }
  .page-faq__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* CTA Section */
  .page-faq__cta-section {
    padding: 50px 0;
  }
  .page-faq__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* Ensure all images are responsive in content area */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* General containers for mobile overflow prevention */
  .page-faq__hero-section,
  .page-faq__faq-list-section,
  .page-faq__cta-section,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__faq-items-wrapper,
  .page-faq__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-faq__container */
  }
}

/* Global image and button responsive rules for content area - applied to all images/buttons within .page-faq */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__cta-buttons,
.page-faq__button-group,
.page-faq__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Additional mobile-specific overrides for images and buttons */
@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq a[class*="button"],
  .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;
  }
  
  .page-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Ensure inner padding for containers */
    padding-right: 15px; /* Ensure inner padding for containers */
    flex-wrap: wrap !important;
    gap: 10px; /* Space between stacked buttons */
  }
  /* For button groups that are naturally flexed */
  .page-faq__cta-buttons {
    flex-direction: column; /* Force vertical stacking on mobile */
  }
}