/* style/faq.css */

:root {
  --primary-color: #025BE8;
  --secondary-color: #FFFFFF;
  --text-color-dark: #404040;
  --text-color-light: #FFFFFF;
  --background-color: #F3F3F3;
  --register-button-color: #1266EC;
  --login-button-color: #E5EEFD;
  --footer-bg-color: #191E2D;
  --header-offset: 120px; /* Default for desktop, adjusted by shared.css media queries */
}

.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-color);
}

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

.page-faq__section-spacing {
  padding: 60px 0;
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset); /* Ensure content is below fixed header */
  background-color: var(--primary-color);
  color: var(--text-color-light);
  overflow: hidden;
}

.page-faq__hero-image-container {
  width: 100%;
  height: 400px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
}

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

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
}

.page-faq__hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-faq__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-faq__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

.page-faq__cta-button--primary:hover {
  background-color: #0d5dd1;
  transform: translateY(-2px);
}

.page-faq__cta-button--secondary {
  background-color: var(--login-button-color);
  color: var(--primary-color);
  border: 2px solid var(--login-button-color);
}

.page-faq__cta-button--secondary:hover {
  background-color: #d1e2fc;
  transform: translateY(-2px);
}

.page-faq__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-faq__intro-section .page-faq__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-faq__intro-section .page-faq__text-content {
  flex: 1;
}

.page-faq__intro-section .page-faq__image-content {
  flex: 1;
  min-width: 200px; /* Minimum size for content images */
}

.page-faq__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__paragraph {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-color-dark);
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #f0f0f0;
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 600;
}

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Use !important for smooth expansion */
  padding: 15px 25px 20px;
}

.page-faq__faq-answer p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color-dark);
}

.page-faq__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
}

.page-faq__cta-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 0;
}

.page-faq__cta-container {
  max-width: 900px;
}

.page-faq__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-faq__cta-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: var(--text-color-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-faq__intro-section .page-faq__content-wrapper {
    flex-direction: column;
  }
  .page-faq__intro-section .page-faq__image-content {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-faq__section-spacing {
    padding: 40px 0;
  }

  .page-faq__hero-content {
    padding: 30px 15px;
  }

  .page-faq__hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .page-faq__hero-description {
    font-size: 1rem;
  }

  .page-faq__cta-button {
    width: 100% !important;
    margin-bottom: 10px;
    padding: 12px 20px;
  }

  .page-faq__cta-button:last-child {
    margin-bottom: 0;
  }

  .page-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

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

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

  .page-faq__faq-toggle {
    font-size: 1.5rem;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-faq__cta-section {
    padding: 50px 0;
  }

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

  .page-faq__cta-description {
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__container,
  .page-faq__content-wrapper,
  .page-faq__text-content,
  .page-faq__image-content,
  .page-faq__faq-list,
  .page-faq__faq-item,
  .page-faq__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
  }
}