/* style/faq.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định chữ tối trên nền sáng */
  background-color: var(--background-color, #ffffff);
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  text-align: center;
  color: #ffffff;
  background-color: #26A9E0;
  overflow: hidden;
}

.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.3;
}

.page-faq__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-faq__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-faq__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-faq__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-faq__btn-primary {
  background-color: #EA7C07; /* Màu cam cho nút đăng nhập/chính */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-faq__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

.page-faq__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b6;
  border-color: #1e87b6;
}

.page-faq__small-btn {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
}

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

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

.page-faq__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-faq__overview-section .page-faq__section-title,
.page-faq__games-promotions-section .page-faq__section-title {
  color: #26A9E0;
}

.page-faq__guide-section .page-faq__section-title,
.page-faq__conclusion-section .page-faq__section-title {
  color: #26A9E0;
}

.page-faq__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__dark-section .page-faq__section-title {
  color: #ffffff;
}

.page-faq__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-faq__faq-list {
  margin-top: 30px;
}

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

.page-faq__dark-section .page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-faq__dark-section .page-faq__faq-question {
  color: #ffffff;
}

.page-faq__faq-item[open] > .page-faq__faq-question,
.page-faq__faq-question:hover {
  background-color: #e6f7ff; /* Light blue hover */
}

.page-faq__dark-section .page-faq__faq-item[open] > .page-faq__faq-question,
.page-faq__dark-section .page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.page-faq__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 20px;
  color: #26A9E0;
}

.page-faq__dark-section .page-faq__faq-toggle {
  color: #ffffff;
}

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

.page-faq__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
}

.page-faq__dark-section .page-faq__faq-answer {
  color: #e0e0e0;
}

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

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

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

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

.page-faq__faq-answer a:hover {
  color: #1e87b6;
}

/* Ensure details summary marker is hidden */
details > summary::-webkit-details-marker {
  display: none;
}

details > summary {
  list-style: none;
}

.page-faq p {
  margin-bottom: 1rem;
}

.page-faq ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1rem;
}

.page-faq ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 1rem;
}

.page-faq li {
  margin-bottom: 0.5rem;
}

.page-faq__conclusion-section {
  text-align: center;
}

.page-faq__conclusion-section p {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__section-title {
    font-size: 2.2rem;
  }
  .page-faq__faq-question {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-faq__main-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .page-faq__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faq__section {
    padding: 40px 0;
  }

  .page-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-faq__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-faq__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

  .page-faq__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  .page-faq__section img,
  .page-faq__inline-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-faq__main-title {
    font-size: 2rem;
  }

  .page-faq__section-title {
    font-size: 1.8rem;
  }

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

  .page-faq__faq-answer {
    font-size: 0.9rem;
  }
}