/* Base styles for the FAQ page */
.page-cau-hoi-thuong-gap {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Assuming body background is light (var(--secondary-color) is #FFFFFF) */
  background-color: #f8f8f8;
}

.page-cau-hoi-thuong-gap__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.page-cau-hoi-thuong-gap__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  margin-bottom: 40px;
  text-align: center;
  background-color: #017439;
  position: relative;
  overflow: hidden;
}

.page-cau-hoi-thuong-gap__hero-image-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.page-cau-hoi-thuong-gap__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-cau-hoi-thuong-gap__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.page-cau-hoi-thuong-gap__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for main title accent */
}

.page-cau-hoi-thuong-gap__intro-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cau-hoi-thuong-gap__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cau-hoi-thuong-gap__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-cau-hoi-thuong-gap__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-cau-hoi-thuong-gap__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-cau-hoi-thuong-gap__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cau-hoi-thuong-gap__faq-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.page-cau-hoi-thuong-gap__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cau-hoi-thuong-gap__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-cau-hoi-thuong-gap__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cau-hoi-thuong-gap__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cau-hoi-thuong-gap__faq-question:hover {
  background-color: #e6e6e6;
}

.page-cau-hoi-thuong-gap__faq-question::-webkit-details-marker {
  display: none;
}

.page-cau-hoi-thuong-gap__faq-question::marker {
  display: none;
}

.page-cau-hoi-thuong-gap__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-cau-hoi-thuong-gap__faq-item[open] .page-cau-hoi-thuong-gap__faq-toggle {
  transform: rotate(45deg);
}

.page-cau-hoi-thuong-gap__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #555555;
}

.page-cau-hoi-thuong-gap__faq-answer p {
  margin-bottom: 10px;
}

.page-cau-hoi-thuong-gap__faq-answer ul,
.page-cau-hoi-thuong-gap__faq-answer ol {
  margin-left: 25px;
  margin-bottom: 10px;
}

.page-cau-hoi-thuong-gap__faq-answer li {
  margin-bottom: 5px;
}

.page-cau-hoi-thuong-gap__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-cau-hoi-thuong-gap__faq-illustration {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cau-hoi-thuong-gap__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-cau-hoi-thuong-gap__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-cau-hoi-thuong-gap__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-cau-hoi-thuong-gap__cta-image {
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cau-hoi-thuong-gap__cta-title {
  font-size: 2.2em;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for accent */
}

.page-cau-hoi-thuong-gap__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin-bottom: 30px;
}

.page-cau-hoi-thuong-gap__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-cau-hoi-thuong-gap__container {
    padding: 15px;
  }

  .page-cau-hoi-thuong-gap__hero-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .page-cau-hoi-thuong-gap__hero-image-wrapper {
    height: 250px;
  }

  .page-cau-hoi-thuong-gap__hero-content {
    position: static;
    transform: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    margin-top: -80px; /* Pull content up slightly over image */
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-cau-hoi-thuong-gap__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 10px;
  }

  .page-cau-hoi-thuong-gap__intro-text {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .page-cau-hoi-thuong-gap__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 5px 0;
    padding: 10px 15px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cau-hoi-thuong-gap__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cau-hoi-thuong-gap__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-cau-hoi-thuong-gap__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  .page-cau-hoi-thuong-gap__faq-illustration,
  .page-cau-hoi-thuong-gap__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-cau-hoi-thuong-gap__cta-section {
    padding: 40px 15px;
  }

  .page-cau-hoi-thuong-gap__cta-title {
    font-size: 1.8em;
  }

  .page-cau-hoi-thuong-gap__cta-description {
    font-size: 1em;
  }

  .page-cau-hoi-thuong-gap__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General image and container responsiveness */
  .page-cau-hoi-thuong-gap img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cau-hoi-thuong-gap__section,
  .page-cau-hoi-thuong-gap__card,
  .page-cau-hoi-thuong-gap__container,
  .page-cau-hoi-thuong-gap__hero-section,
  .page-cau-hoi-thuong-gap__faq-section,
  .page-cau-hoi-thuong-gap__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for home-content, gameshow, blog-masonry if they were here */
  /* This page is not homepage, so these are not directly used, but included for completeness as per general requirement */
  .page-cau-hoi-thuong-gap__home-content {
    height: auto !important;
    overflow-y: visible !important;
  }
  .page-cau-hoi-thuong-gap__banners-top-wrapper { /* If this existed */
    grid-template-columns: repeat(2, 1fr) !important; /* Example for smaller screens */
  }
  .page-cau-hoi-thuong-gap__blog-masonry { /* If this existed */
    grid-template-columns: 1fr !important;
  }
  .page-cau-hoi-thuong-gap__slider-track, .page-cau-hoi-thuong-gap__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important; /* Ensure horizontal scroll if needed */
    overflow-x: auto !important; /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-cau-hoi-thuong-gap__game-slide, .page-cau-hoi-thuong-gap__blog-slide {
    flex: 0 0 80% !important;
    max-width: 80% !important;
    scroll-snap-align: start;
  }
}