/* style/faqs.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #007bb6; /* A darker shade of primary for hover */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #f8f8f8;
  --bg-color-dark: #26A9E0;
  --login-button-color: #EA7C07;
}

.page-faqs {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--bg-color-light); /* Default light background for content area */
}

/* HERO Section */
.page-faqs__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, main offset handled by body */
  color: var(--text-color-light);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
}

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

.page-faqs__hero-image {
  width: 100%;
  margin-bottom: 30px;
  z-index: 1;
}

.page-faqs__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-faqs__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-faqs__hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-color-light);
  margin-bottom: 20px;
  /* Using clamp for responsive font-size, if absolutely necessary, but preferred to avoid fixed large values */
  /* font-size: clamp(2.2rem, 4vw, 3.5rem); */
}

.page-faqs__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-faqs__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Use specific login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-faqs__cta-button:hover {
  background: #d46f00; /* Slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-faqs__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

.page-faqs__section-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-faqs__main-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-faqs__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
  color: #555;
}

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

details.page-faqs__faq-item {
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--text-color-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

details.page-faqs__faq-item[open] {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

details.page-faqs__faq-item summary.page-faqs__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, color 0.3s ease;
  color: var(--text-color-dark);
  font-size: 1.1em;
}

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

details.page-faqs__faq-item summary.page-faqs__faq-question:hover {
  background: #f5f5f5;
  color: var(--primary-color);
}

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

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

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

details.page-faqs__faq-item .page-faqs__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555;
}

.page-faqs__faq-answer p {
  margin-bottom: 10px;
}

.page-faqs__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  border-radius: 5px;
  object-fit: cover;
}

.page-faqs__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faqs__inline-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-faqs__button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-faqs__btn-primary,
.page-faqs__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-faqs__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-faqs__btn-primary:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

.page-faqs__btn-secondary {
  background: var(--text-color-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-faqs__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-1px);
}

/* CTA Section */
.page-faqs__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #26A9E0, #007bb6);
  color: var(--text-color-light);
}

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

.page-faqs__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-faqs__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faqs__hero-content h1 {
    font-size: 2.8em;
  }
  .page-faqs__main-title {
    font-size: 2em;
  }
  .page-faqs__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-faqs__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faqs__hero-content h1 {
    font-size: 2em; /* Smaller H1 for mobile */
  }
  .page-faqs__hero-description {
    font-size: 1em;
  }
  .page-faqs__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-faqs__content-area {
    padding: 30px 15px;
  }
  .page-faqs__main-title {
    font-size: 1.8em;
  }
  .page-faqs__section-description {
    font-size: 0.95em;
  }
  details.page-faqs__faq-item summary.page-faqs__faq-question {
    padding: 15px;
  }
  .page-faqs__faq-qtext {
    font-size: 15px;
  }
  details.page-faqs__faq-item .page-faqs__faq-answer {
    padding: 0 15px 15px;
  }
  .page-faqs__faq-answer p {
    font-size: 0.95em;
  }
  .page-faqs__cta-section {
    padding: 50px 15px;
  }
  .page-faqs__cta-title {
    font-size: 1.8em;
  }
  .page-faqs__cta-description {
    font-size: 1em;
  }
  .page-faqs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faqs__section, .page-faqs__card, .page-faqs__container, .page-faqs__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-faqs__button-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-faqs__btn-primary, .page-faqs__btn-secondary {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-faqs__hero-content h1 {
    font-size: 1.6em;
  }
  .page-faqs__main-title {
    font-size: 1.5em;
  }
  .page-faqs__cta-title {
    font-size: 1.6em;
  }
  .page-faqs__cta-button {
    font-size: 15px;
  }
  .page-faqs__faq-qtext {
    font-size: 14px;
  }
}