.page-game-bai-cac-loai-hinh {
  color: #333333;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-game-bai-cac-loai-hinh__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-game-bai-cac-loai-hinh__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-bai-cac-loai-cac-loai-hinh__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

.page-game-bai-cac-loai-hinh__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-bai-cac-loai-hinh__dark-section .page-game-bai-cac-loai-hinh__section-title,
.page-game-bai-cac-loai-hinh__dark-section .page-game-bai-cac-loai-hinh__description {
  color: #ffffff;
}

.page-game-bai-cac-loai-hinh__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-game-bai-cac-loai-hinh__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-game-bai-cac-loai-hinh__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
}

.page-game-bai-cac-loai-hinh__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-bai-cac-loai-hinh__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop default */
  display: block;
  opacity: 0.3;
}

.page-game-bai-cac-loai-hinh__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 40px 20px;
}

.page-game-bai-cac-loai-hinh__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-bai-cac-loai-hinh__intro-text {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai-cac-loai-hinh__btn-primary,
.page-game-bai-cac-loai-hinh__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai-cac-loai-hinh__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-game-bai-cac-loai-hinh__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
  transform: translateY(-2px);
}

.page-game-bai-cac-loai-hinh__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-bai-cac-loai-hinh__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb5;
  border-color: #1a7bb5;
  transform: translateY(-2px);
}

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

.page-game-bai-cac-loai-hinh__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai-cac-loai-hinh__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-bai-cac-loai-hinh__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-bai-cac-loai-hinh__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai-cac-loai-hinh__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.page-game-bai-cac-loai-hinh__card-list li {
  margin-bottom: 10px;
  color: #555;
  font-size: 16px;
}

.page-game-bai-cac-loai-hinh__sub-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.page-game-bai-cac-loai-hinh__card-list p {
  font-size: 15px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 0;
}

.page-game-bai-cac-loai-hinh__game-card .page-game-bai-cac-loai-hinh__btn-secondary {
  margin-top: auto;
  width: fit-content;
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 16px;
}

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

.page-game-bai-cac-loai-hinh__benefit-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-game-bai-cac-loai-hinh__benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-game-bai-cac-loai-hinh__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-game-bai-cac-loai-hinh__benefit-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-game-bai-cac-loai-hinh__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-bai-cac-loai-hinh__step-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-bai-cac-loai-hinh__step-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-game-bai-cac-loai-hinh__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai-cac-loai-hinh__step-text {
  font-size: 16px;
  color: #555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-game-bai-cac-loai-hinh__step-text a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
}

.page-game-bai-cac-loai-hinh__step-text a:hover {
  text-decoration: underline;
}

.page-game-bai-cac-loai-hinh__step-item .page-game-bai-cac-loai-hinh__btn-primary,
.page-game-bai-cac-loai-hinh__step-item .page-game-bai-cac-loai-hinh__btn-secondary {
  margin-top: auto;
  align-self: center;
  width: auto;
  padding: 12px 25px;
  font-size: 16px;
}

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

.page-game-bai-cac-loai-hinh__tip-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
  padding: 30px;
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.page-game-bai-cac-loai-hinh__tip-item:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.page-game-bai-cac-loai-hinh__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-bai-cac-loai-hinh__tip-text {
  font-size: 16px;
  color: #555;
}

/* FAQ Section */
details.page-game-bai-cac-loai-hinh__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}

details.page-game-bai-cac-loai-hinh__faq-item summary.page-game-bai-cac-loai-hinh__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: #333333;
}

details.page-game-bai-cac-loai-hinh__faq-item summary.page-game-bai-cac-loai-hinh__faq-question::-webkit-details-marker {
  display: none;
}

details.page-game-bai-cac-loai-hinh__faq-item summary.page-game-bai-cac-loai-hinh__faq-question:hover {
  background: #f5f5f5;
}

.page-game-bai-cac-loai-hinh__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0;
}

.page-game-bai-cac-loai-hinh__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-game-bai-cac-loai-hinh__faq-item .page-game-bai-cac-loai-hinh__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555;
}

.page-game-bai-cac-loai-hinh__faq-answer p {
  margin-bottom: 0;
  margin-top: 10px;
}

.page-game-bai-cac-loai-hinh__faq-answer a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
}

.page-game-bai-cac-loai-hinh__faq-answer a:hover {
  text-decoration: underline;
}

.page-game-bai-cac-loai-hinh__cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0, #1a7bb5);
  color: #ffffff;
}

.page-game-bai-cac-loai-hinh__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-bai-cac-loai-hinh__cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-game-bai-cac-loai-hinh__cta-description {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-game-bai-cac-loai-hinh__cta-button {
  padding: 18px 40px;
  font-size: 20px;
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-game-bai-cac-loai-hinh__cta-button:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

.page-game-bai-cac-loai-hinh__article-body {
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
  padding: 20px;
}

.page-game-bai-cac-loai-hinh__article-body p {
  margin-bottom: 1em;
}

.page-game-bai-cac-loai-hinh__article-body a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-game-bai-cac-loai-hinh__article-body a:hover {
  text-decoration: underline;
}

/* Global image and container responsive styles */
.page-game-bai-cac-loai-hinh img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-bai-cac-loai-hinh__section,
.page-game-bai-cac-loai-hinh__container,
.page-game-bai-cac-loai-hinh__game-card,
.page-game-bai-cac-loai-hinh__benefit-item,
.page-game-bai-cac-loai-hinh__step-item,
.page-game-bai-cac-loai-hinh__tip-item,
.page-game-bai-cac-loai-hinh__faq-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .page-game-bai-cac-loai-hinh__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-game-bai-cac-loai-hinh__intro-text {
    font-size: clamp(16px, 1.8vw, 20px);
  }
  .page-game-bai-cac-loai-hinh__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }
  .page-game-bai-cac-loai-hinh__description {
    font-size: 17px;
  }
  .page-game-bai-cac-loai-hinh__game-grid,
  .page-game-bai-cac-loai-hinh__benefit-grid,
  .page-game-bai-cac-loai-hinh__guide-steps,
  .page-game-bai-cac-loai-hinh__tips-grid {
    gap: 20px;
  }
  .page-game-bai-cac-loai-hinh__card-title,
  .page-game-bai-cac-loai-hinh__benefit-title,
  .page-game-bai-cac-loai-hinh__step-title,
  .page-game-bai-cac-loai-hinh__tip-title {
    font-size: 20px;
  }
  .page-game-bai-cac-loai-hinh__card-image {
    height: 220px;
  }
  details.page-game-bai-cac-loai-hinh__faq-item summary.page-game-bai-cac-loai-hinh__faq-question {
    padding: 15px 20px;
  }
  .page-game-bai-cac-loai-hinh__faq-qtext {
    font-size: 16px;
  }
  .page-game-bai-cac-loai-hinh__faq-toggle {
    font-size: 24px;
  }
  .page-game-bai-cac-loai-hinh__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 768px) {
  .page-game-bai-cac-loai-hinh__hero-section {
    min-height: 400px;
    padding-top: 10px; /* Ensure small top padding */
  }
  .page-game-bai-cac-loai-hinh__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important;
  }
  .page-game-bai-cac-loai-hinh__hero-content {
    padding: 20px 15px;
  }
  .page-game-bai-cac-loai-hinh__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-game-bai-cac-loai-hinh__intro-text {
    font-size: clamp(16px, 4vw, 18px);
  }
  .page-game-bai-cac-loai-hinh__section {
    padding: 40px 0;
  }
  .page-game-bai-cac-loai-hinh__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-bai-cac-loai-hinh__section-title {
    font-size: clamp(24px, 6vw, 30px);
  }
  .page-game-bai-cac-loai-hinh__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-game-bai-cac-loai-hinh__game-grid,
  .page-game-bai-cac-loai-hinh__benefit-grid,
  .page-game-bai-cac-loai-hinh__guide-steps,
  .page-game-bai-cac-loai-hinh__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-bai-cac-loai-hinh__game-card,
  .page-game-bai-cac-loai-hinh__benefit-item,
  .page-game-bai-cac-loai-hinh__step-item,
  .page-game-bai-cac-loai-hinh__tip-item {
    padding: 20px;
  }
  .page-game-bai-cac-loai-hinh__card-image {
    height: 180px;
  }
  .page-game-bai-cac-loai-hinh__card-content {
    padding: 20px;
  }
  .page-game-bai-cac-loai-hinh__card-title,
  .page-game-bai-cac-loai-hinh__benefit-title,
  .page-game-bai-cac-loai-hinh__step-title,
  .page-game-bai-cac-loai-hinh__tip-title {
    font-size: 18px;
  }
  .page-game-bai-cac-loai-hinh__card-list li,
  .page-game-bai-cac-loai-hinh__benefit-text,
  .page-game-bai-cac-loai-hinh__step-text,
  .page-game-bai-cac-loai-hinh__tip-text {
    font-size: 15px;
  }
  .page-game-bai-cac-loai-hinh__game-card .page-game-bai-cac-loai-hinh__btn-secondary {
    width: 100%;
    text-align: center;
  }
  .page-game-bai-cac-loai-hinh__step-image {
    height: 150px;
  }
  .page-game-bai-cac-loai-hinh__step-item .page-game-bai-cac-loai-hinh__btn-primary,
  .page-game-bai-cac-loai-hinh__step-item .page-game-bai-cac-loai-hinh__btn-secondary {
    width: 100%;
  }
  details.page-game-bai-cac-loai-hinh__faq-item summary.page-game-bai-cac-loai-hinh__faq-question {
    padding: 15px;
  }
  .page-game-bai-cac-loai-hinh__faq-qtext {
    font-size: 15px;
  }
  .page-game-bai-cac-loai-hinh__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-game-bai-cac-loai-hinh__faq-item .page-game-bai-cac-loai-hinh__faq-answer {
    padding: 0 15px 15px;
  }
  .page-game-bai-cac-loai-hinh__cta {
    padding: 50px 0;
  }
  .page-game-bai-cac-loai-hinh__cta-title {
    font-size: clamp(26px, 7vw, 36px);
  }
  .page-game-bai-cac-loai-hinh__cta-description {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 30px;
  }
  .page-game-bai-cac-loai-hinh__cta-button {
    width: 100%;
    padding: 15px 25px;
    font-size: 18px;
  }
  .page-game-bai-cac-loai-hinh__article-body {
    padding: 15px;
    font-size: 16px;
  }
  /* Ensure all images are responsive */
  .page-game-bai-cac-loai-hinh img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* All containers with images or buttons must handle overflow */
  .page-game-bai-cac-loai-hinh__section,
  .page-game-bai-cac-loai-hinh__container,
  .page-game-bai-cac-loai-hinh__game-grid,
  .page-game-bai-cac-loai-hinh__benefit-grid,
  .page-game-bai-cac-loai-hinh__guide-steps,
  .page-game-bai-cac-loai-hinh__tips-grid,
  .page-game-bai-cac-loai-hinh__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  /* Button specific mobile styles */
  .page-game-bai-cac-loai-hinh__btn-primary,
  .page-game-bai-cac-loai-hinh__btn-secondary,
  .page-game-bai-cac-loai-hinh a[class*="button"],
  .page-game-bai-cac-loai-hinh a[class*="btn"] {
    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-game-bai-cac-loai-hinh__cta-buttons,
  .page-game-bai-cac-loai-hinh__button-group,
  .page-game-bai-cac-loai-hinh__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}