/* style/faq.css */

/* General styles for the FAQ page */
.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--dark-bg-1); /* Assuming shared.css sets this, so most content will be on light elements */
}

/* Hero Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff; /* White text on dark background */
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-faq__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-faq__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-faq__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.95rem;
  margin-top: 15px;
}

.page-faq__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Content Sections */
.page-faq__general-intro,
.page-faq__reg-login,
.page-faq__transactions,
.page-faq__promotions,
.page-faq__tech-security,
.page-faq__customer-support,
.page-faq__other-questions {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
}

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

.page-faq__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-faq__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

/* Accordion (FAQ) Styles */
.page-faq__accordion-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #333333;
}

.page-faq__faq-item[open] {
  background-color: #ffffff;
  border-color: #26A9E0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none; /* Remove default marker for details summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none;   /* Disable text selection on iOS */
  -khtml-user-select: none;    /* Disable text selection on Konqueror HTML */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on Internet Explorer/Edge */
  user-select: none;           /* Disable text selection on modern browsers */
}

.page-faq__faq-item[open] .page-faq__faq-question {
  color: #26A9E0; /* Primary brand color when open */
}

.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-faq__faq-qtext {
  flex-grow: 1;
}

.page-faq__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

.page-faq__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

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

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

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

  .page-faq__content-area,
  .page-faq__container,
  .page-faq__general-intro,
  .page-faq__reg-login,
  .page-faq__transactions,
  .page-faq__promotions,
  .page-faq__tech-security,
  .page-faq__customer-support,
  .page-faq__other-questions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-link {
    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__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-faq__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
}