/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f5f5f5;
}

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

.page-faq-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-faq-hero-container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.page-faq-hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-faq-hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-faq-hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #eee;
}

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

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

.page-faq-section {
  padding: 50px 0;
  background-color: #fdfdfd;
}

.page-faq-section h2 {
  text-align: center;
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 40px;
  position: relative;
}

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

.faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
  border-color: var(--primary-color);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: #34495e;
  font-weight: 600;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 20px 25px;
  border-top: none;
}

.faq-answer p {
  margin: 0;
  color: #555;
  font-size: 1.05em;
}

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

.page-faq-link-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.page-faq-link-button:hover {
  background: #00a8ad;
  transform: translateY(-1px);
}

.page-faq-cta-bottom {
  text-align: center;
  padding: 60px 20px;
  background-color: #eaf7f7;
  border-top: 1px solid #e0e0e0;
}

.page-faq-cta-bottom h2 {
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 20px;
}

.page-faq-cta-bottom p {
  font-size: 1.1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-faq-cta-bottom .page-faq-cta-button {
  margin: 0 10px;
}

.page-faq-cta-bottom .page-faq-cta-secondary {
  background: #ccc;
  color: #333;
}

.page-faq-cta-bottom .page-faq-cta-secondary:hover {
  background: #999;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-faq-hero {
    padding: 40px 15px;
  }

  .page-faq-hero-content h1 {
    font-size: 2.2em;
  }

  .page-faq-hero-content p {
    font-size: 1em;
  }

  .page-faq-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-faq-section h2 {
    font-size: 2em;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 1.5em;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }

  .page-faq-cta-bottom h2 {
    font-size: 1.8em;
  }

  .page-faq-cta-bottom .page-faq-cta-button {
    display: block;
    margin: 15px auto;
  }
}

@media (max-width: 480px) {
  .page-faq-hero-content h1 {
    font-size: 1.8em;
  }

  .page-faq-hero-image {
    border-radius: 8px;
  }

  .page-faq-section h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .faq-question h3 {
    font-size: 1em;
  }
}

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #00CED1; /* Teal */
}