/* style/faq.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
  --border-color: #e0e0e0;
  --background-light-grey: #f9f9f9;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is light, so use dark text */
  background-color: var(--secondary-color);
}

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

/* HERO Section */
.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-light-grey);
}

.page-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-faq__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
}

.page-faq__intro-text {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-faq__cta-button:hover {
  background: #1e87c0; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-button--light {
  background: var(--login-button-color);
  color: var(--text-light);
}

.page-faq__cta-button--light:hover {
  background: #d46c05;
}

/* General Section Styling */
.page-faq__intro-section, .page-faq__content-area, .page-faq__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-faq__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-faq__section-title--light {
  color: var(--text-light);
}

/* Grid Layout for Intro Section */
.page-faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-faq__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-faq__grid-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.page-faq__grid-item p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-dark);
}

/* FAQ List Styling */
.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-faq__faq-category-title {
  font-size: clamp(20px, 3vw, 32px);
  color: var(--primary-color);
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

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: var(--background-light-grey);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-faq__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-light-grey);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

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

.page-faq__faq-answer ul, .page-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
}

.page-faq__faq-answer li {
  margin-bottom: 5px;
}

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

.page-faq__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
  background: #1e87c0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-faq__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-small {
  font-size: 14px;
  padding: 8px 20px;
}

/* Dark Section Styling */
.page-faq__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-faq__dark-section p {
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 17px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__main-title {
    font-size: clamp(24px, 6vw, 40px);
  }

  .page-faq__intro-text {
    font-size: 16px;
  }

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

  .page-faq__intro-section, .page-faq__content-area, .page-faq__conclusion-section {
    padding: 40px 15px;
  }

  .page-faq__section-title {
    font-size: clamp(22px, 5vw, 36px);
  }

  .page-faq__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px;
  }
  .page-faq__faq-qtext {
    font-size: 15px;
  }
  .page-faq__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 15px 15px;
  }

  .page-faq__faq-answer p, .page-faq__faq-answer ul, .page-faq__faq-answer ol {
    font-size: 14px;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__container,
  .page-faq__grid-item,
  .page-faq__faq-list,
  .page-faq__intro-section,
  .page-faq__content-area,
  .page-faq__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button specific mobile rules */
  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .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;
    margin-left: 0 !important;
    margin-right: 0 !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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}