/* style/faq.css */

:root {
  --page-faq-primary-color: #017439;
  --page-faq-secondary-color: #FFFFFF;
  --page-faq-text-light: #FFFFFF;
  --page-faq-text-dark: #333333;
  --page-faq-bg-dark: #1a1a1a;
  --page-faq-btn-register: #C30808;
  --page-faq-btn-login: #C30808;
  --page-faq-btn-text-login-register: #FFFF00;
}

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

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--page-faq-primary-color) 0%, darken(var(--page-faq-primary-color), 15%) 100%);
  overflow: hidden;
  color: var(--page-faq-text-light);
}

.page-faq__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  margin-bottom: 40px;
}

.page-faq__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-faq-text-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-faq-text-light);
  opacity: 0.9;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin: 10px;
}

.page-faq__btn-primary {
  background-color: var(--page-faq-btn-register);
  color: var(--page-faq-btn-text-login-register);
  border: 2px solid var(--page-faq-btn-register);
}

.page-faq__btn-primary:hover {
  background-color: darken(var(--page-faq-btn-register), 10%);
  border-color: darken(var(--page-faq-btn-register), 10%);
}

.page-faq__btn-secondary {
  background-color: transparent;
  color: var(--page-faq-text-light);
  border: 2px solid var(--page-faq-text-light);
}

.page-faq__btn-secondary:hover {
  background-color: var(--page-faq-text-light);
  color: var(--page-faq-primary-color);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--page-faq-text-light);
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-faq-text-light);
}

.page-faq__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  opacity: 0.8;
}

.page-faq__faq-list {
  margin-bottom: 60px;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--page-faq-text-light);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: var(--page-faq-btn-register);
}

/* Details element specific styling */
.page-faq__faq-item[open] > .page-faq__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-faq__faq-item details > summary {
  list-style: none;
}

.page-faq__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-faq__faq-answer {
  padding: 20px 25px 25px 25px;
  font-size: 1.05em;
  color: var(--page-faq-text-light);
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-faq__faq-answer p {
  margin-bottom: 1em;
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__cta-card {
  background: linear-gradient(135deg, var(--page-faq-primary-color) 0%, #005a2e 100%);
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
  color: var(--page-faq-text-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.page-faq__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
}

.page-faq__cta-title {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: var(--page-faq-text-light);
  z-index: 1;
  position: relative;
}

.page-faq__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  z-index: 1;
  position: relative;
}

/* Ensure images are responsive */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-faq__hero-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
  .page-faq__faq-question {
    font-size: 1.1em;
  }
  .page-faq__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-faq__content-area {
    padding: 20px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-faq__cta-card {
    padding: 40px 20px;
    margin-top: 40px;
  }
  .page-faq__cta-title {
    font-size: 1.6em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  
  /* Image responsiveness for mobile */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__cta-card,
  .page-faq__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faq__hero-title {
    font-size: 1.8em;
  }
  .page-faq__section-title {
    font-size: 1.5em;
  }
  .page-faq__cta-title {
    font-size: 1.4em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 1.2em;
  }
}