/* style/faq.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Deep Sky Blue */
  --dark-background: #222222;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
}

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

.page-faq-hero {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text-color);
  text-align: center;
  overflow: hidden;
}

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

.page-faq-hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  object-fit: cover;
}

.page-faq-hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq-hero-content p {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-faq-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--dark-background);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-faq-cta-button:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq-cta-button.secondary {
  background: var(--primary-color);
  color: var(--dark-background);
  border: 2px solid var(--dark-background);
}

.page-faq-cta-button.secondary:hover {
  background: var(--dark-background);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-faq-cta-button.small {
    padding: 10px 25px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-faq-content {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.page-faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq-content h2 {
  font-size: 2.5em;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-faq-content h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.page-faq-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--gray-medium);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid transparent; /* default */
}

.faq-question:hover {
  background: var(--gray-light);
}

.faq-item.active .faq-question {
  background: var(--secondary-color);
  color: var(--light-text-color);
  border-bottom-color: var(--primary-color);
}

.faq-question h3 {
  font-size: 1.3em;
  margin: 0;
  color: inherit;
  font-weight: bold;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--light-text-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--gray-light);
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* Sufficient height for content */
  padding: 25px;
  border-top: 1px solid var(--gray-medium);
}

.faq-answer p {
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

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

.faq-answer ol, .faq-answer ul {
  margin: 15px 0 15px 25px;
  padding: 0;
  list-style-type: disc;
  color: var(--dark-text-color);
}

.faq-answer ol {
  list-style-type: decimal;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer h4 {
  font-size: 1.1em;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-faq-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-faq-cta-section {
  background-color: var(--dark-background);
  color: var(--light-text-color);
  padding: 80px 20px;
  text-align: center;
}

.page-faq-cta-section h2 {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.page-faq-cta-section p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.8);
}

.page-faq-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-faq-hero-content h1 {
    font-size: 2.8em;
  }
  .page-faq-hero-content p {
    font-size: 1.1em;
  }
  .page-faq-content h2 {
    font-size: 2em;
  }
  .faq-question h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-faq-hero {
    padding: 60px 15px;
  }
  .page-faq-hero-image {
    margin-bottom: 30px;
  }
  .page-faq-hero-content h1 {
    font-size: 2.2em;
  }
  .page-faq-hero-content p {
    font-size: 1em;
  }
  .page-faq-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq-content {
    padding: 40px 15px;
  }
  .page-faq-content h2 {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .faq-question {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
  }
  .faq-toggle {
    align-self: flex-end;
    margin-top: -30px; /* Adjust to position correctly */
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px;
  }
  .page-faq-cta-section {
    padding: 60px 15px;
  }
  .page-faq-cta-section h2 {
    font-size: 2em;
  }
  .page-faq-cta-section p {
    font-size: 1em;
  }
  .page-faq-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-faq-hero-content h1 {
    font-size: 1.8em;
  }
  .page-faq-hero-content p {
    font-size: 0.9em;
  }
  .page-faq-cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-faq-content h2 {
    font-size: 1.5em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .page-faq-cta-section h2 {
    font-size: 1.8em;
  }
}