/* style/faq.css */
.page-faq {
  color: #ffffff; /* Do body background là #121212 (dark), văn bản chính sử dụng màu trắng */
  background-color: #121212; /* Đảm bảo nền chính của trang FAQ khớp với body */
  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: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị che bởi header */
  background-color: #1a1a1a;
  color: #ffffff;
  overflow: hidden;
}

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

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0;
  text-shadow: 0 0 10px rgba(38, 169, 224, 0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-faq__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #121212;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(38, 169, 224, 0.3);
}

.page-faq__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #cccccc;
}

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

.page-faq__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #262626;
  border-bottom: 1px solid rgba(38, 169, 224, 0.2);
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-faq__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-faq__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
  content: '−';
}

.page-faq__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #cccccc;
  background-color: #1a1a1a;
}

.page-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

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

.page-faq__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-faq__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-faq__btn-primary:hover {
  background-color: #1e87b3;
  transform: translateY(-2px);
}

.page-faq__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #262626;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-title {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 30px;
}

.page-faq__cta-description a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq__cta-description a:hover {
  text-decoration: underline;
}

.page-faq__btn-large {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-faq__additional-info {
  padding: 60px 20px;
  background-color: #121212;
}

.page-faq__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-faq__info-card {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-faq__info-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-faq__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-faq__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq__card-title a:hover {
  text-decoration: underline;
}

.page-faq__card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px;
}

.page-faq__card-description a {
  color: #26A9E0;
  text-decoration: none;
}

.page-faq__card-description a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@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;
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-faq__hero-title {
    font-size: 2.2em;
  }
  .page-faq__hero-description {
    font-size: 1em;
  }
  .page-faq__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-faq__cta-bottom .page-faq__btn-primary {
    width: auto !important; /* Reset for specific button, let max-width handle it */
    max-width: 80% !important;
  }
  .page-faq__content-area {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
  }
  .page-faq__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__cta-title {
    font-size: 1.5em;
  }
  .page-faq__cta-description {
    font-size: 0.95em;
  }
  .page-faq__info-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__hero-image-wrapper,
  .page-faq__info-card {
    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.6em;
  }
  .page-faq__faq-question {
    font-size: 0.95em;
  }
  .page-faq__faq-toggle {
    font-size: 1.2em;
  }
  .page-faq__cta-bottom .page-faq__btn-primary {
    max-width: 100% !important;
  }
}

/* Màu sắc tùy chỉnh */
.page-faq__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
}
.page-faq__btn-login:hover {
  background-color: #c76706;
}
.page-faq a {
  color: #26A9E0;
}