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

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

/* Hero Section */
.page-faq__hero-section {
  background-color: #f8f8f8;
  padding: 10px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

.page-faq__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #555555;
  margin-bottom: 30px;
}

.page-faq__hero-image {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-faq__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-faq__section-description {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #666666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: #000000;
  margin-bottom: 25px;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 10px;
  display: inline-block;
}

/* FAQ Item styles (using <details> and <summary>) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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;
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-faq__faq-item[open] .page-faq__faq-toggle {
  transform: rotate(45deg);
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-top: 1px solid #eeeeee;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

details.page-faq__faq-item .page-faq__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 1rem;
}

/* CTA Block */
.page-faq__cta-block {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #26A9E0, #007bff);
  color: #ffffff;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-text {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.4;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin: 0 10px 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-faq__btn-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: normal;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font-size: inherit;
}

.page-faq__btn-link:hover {
  color: #1a8ccf;
}

/* Article Body Section for SEO content */
.page-faq__article-body {
  padding: 60px 0;
  background-color: #f0f8ff;
}

.page-faq__article-body .page-faq__container {
  max-width: 900px;
}

.page-faq__article-body p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
  color: #444444;
}

.page-faq__article-body strong {
  color: #26A9E0;
}

.page-faq__article-body h2 {
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-faq__sub-title {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px dashed #cccccc;
  padding-bottom: 8px;
}

.page-faq__article-body ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-faq__article-body ul li {
  margin-bottom: 8px;
  color: #444444;
}

.page-faq__article-figure {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
}

.page-faq__article-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-faq__article-figure figcaption {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666666;
  font-style: italic;
}

/* Responsive Styles */

/* Desktop/Tablet common for larger screens */
@media (min-width: 769px) {
  .page-faq__cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .page-faq__cta-buttons-group {
    display: flex;
    gap: 20px;
  }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-faq__container {
    padding: 15px;
  }

  /* HERO Section */
  .page-faq__hero-section {
    padding: 10px 0 30px;
    gap: 20px;
  }

  .page-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-faq__intro-text {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-faq__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-faq__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ List Section */
  .page-faq__faq-list-section {
    padding: 30px 0;
  }

  .page-faq__section-title {
    font-size: clamp(1.8rem, 7vw, 2rem);
    margin-bottom: 15px;
  }

  .page-faq__section-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 30px;
  }

  .page-faq__category-title {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  details.page-faq__faq-item summary.page-faq__faq-question {
    padding: 15px 20px;
  }

  .page-faq__faq-qtext {
    font-size: 1rem;
  }

  .page-faq__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    width: 25px;
  }

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

  details.page-faq__faq-item .page-faq__faq-answer p {
    font-size: 0.95rem;
  }

  /* CTA Block */
  .page-faq__cta-block {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .page-faq__cta-text {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    margin-bottom: 20px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq__btn-link {
    display: block !important;
    width: calc(100% - 30px) !important; /* Account for padding */
    margin: 10px auto !important;
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Article Body Section */
  .page-faq__article-body {
    padding: 30px 0;
  }

  .page-faq__article-body .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__article-body h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-faq__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-faq__article-body p,
  .page-faq__article-body ul li {
    font-size: 0.95rem;
  }

  .page-faq__article-figure {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-faq__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Generic image responsiveness for all images within .page-faq */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Generic container responsiveness for all sections, cards, containers */
.page-faq__section,
.page-faq__card,
.page-faq__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no horizontal overflow from product grids, etc. (though not explicitly in FAQ, good practice) */
.page-faq__products-section {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .page-faq__products-section {
    overflow-x: hidden !important;
  }
}

/* Ensure the main content area has appropriate padding for fixed header */
.page-faq {
  /* This is handled by body { padding-top: var(--header-offset); } in shared.css */
  /* Do NOT add padding-top: var(--header-offset); here to avoid double padding */
}