.page-ban-ca-kinh-nghiem {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

.page-ban-ca-kinh-nghiem__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-ban-ca-kinh-nghiem__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-ban-ca-kinh-nghiem__section-title {
  font-size: clamp(28px, 3.5vw, 38px);
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca-kinh-nghiem__main-title {
  font-size: clamp(32px, 4.5vw, 48px);
  color: #017439;
  font-weight: 800;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
}

.page-ban-ca-kinh-nghiem__description {
  font-size: clamp(16px, 2vw, 19px);
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-ban-ca-kinh-nghiem__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca-kinh-nghiem__hero-section {
  position: relative;
  padding-top: 10px; /* Adjusted for header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-ban-ca-kinh-nghiem__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Fixed max height for desktop */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-ban-ca-kinh-nghiem__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-ban-ca-kinh-nghiem__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: -100px; /* Pull content up over image slightly */
  max-width: 90%;
  transform: translateY(-50%);
}

.page-ban-ca-kinh-nghiem__cta-button,
.page-ban-ca-kinh-nghiem__btn-primary,
.page-ban-ca-kinh-nghiem__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca-kinh-nghiem__cta-button,
.page-ban-ca-kinh-nghiem__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-ban-ca-kinh-nghiem__cta-button:hover,
.page-ban-ca-kinh-nghiem__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 116, 57, 0.3);
}

.page-ban-ca-kinh-nghiem__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-ban-ca-kinh-nghiem__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 116, 57, 0.1);
}

.page-ban-ca-kinh-nghiem__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-ban-ca-kinh-nghiem__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-ban-ca-kinh-nghiem__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-ban-ca-kinh-nghiem__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-ban-ca-kinh-nghiem__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca-kinh-nghiem__game-card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #017439;
}

.page-ban-ca-kinh-nghiem__game-card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca-kinh-nghiem__game-card-title a:hover {
  color: #005f2e;
  text-decoration: underline;
}

.page-ban-ca-kinh-nghiem__game-card-description {
  font-size: 15px;
  color: #666666;
  padding: 0 15px 20px;
}

.page-ban-ca-kinh-nghiem__article-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ban-ca-kinh-nghiem__article-body h3 {
  font-size: 24px;
  color: #017439;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-ban-ca-kinh-nghiem__article-body p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca-kinh-nghiem__article-figure {
  width: 100%;
  height: auto;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-ban-ca-kinh-nghiem__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.page-ban-ca-kinh-nghiem__benefits-item {
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca-kinh-nghiem__benefits-icon {
  font-size: 24px;
  color: #017439;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-ban-ca-kinh-nghiem__benefits-item p {
  margin: 0;
  font-size: 16px;
  color: #444444;
  text-align: left;
}

.page-ban-ca-kinh-nghiem__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca-kinh-nghiem__steps-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  position: relative;
  counter-increment: step-counter;
}

.page-ban-ca-kinh-nghiem__steps-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  font-size: 40px;
  font-weight: 800;
  color: #e0e0e0;
  opacity: 0.7;
  z-index: 0;
}

.page-ban-ca-kinh-nghiem__steps-title {
  font-size: 22px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  padding-left: 60px;
}

.page-ban-ca-kinh-nghiem__steps-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  padding-left: 60px;
}

details.page-ban-ca-kinh-nghiem__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-ban-ca-kinh-nghiem__faq-item summary.page-ban-ca-kinh-nghiem__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-ban-ca-kinh-nghiem__faq-item summary.page-ban-ca-kinh-nghiem__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ban-ca-kinh-nghiem__faq-item summary.page-ban-ca-kinh-nghiem__faq-question:hover {
  background: #f5f5f5;
}
.page-ban-ca-kinh-nghiem__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-ban-ca-kinh-nghiem__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca-kinh-nghiem__faq-item .page-ban-ca-kinh-nghiem__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-ban-ca-kinh-nghiem__faq-item .page-ban-ca-kinh-nghiem__faq-answer p {
  margin-bottom: 0;
}

/* General image responsiveness */
.page-ban-ca-kinh-nghiem img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all image containers are responsive */
.page-ban-ca-kinh-nghiem__hero-image-wrapper,
.page-ban-ca-kinh-nghiem__game-card-image,
.page-ban-ca-kinh-nghiem__article-figure {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-ban-ca-kinh-nghiem__container {
    padding: 15px;
  }
  .page-ban-ca-kinh-nghiem__hero-content {
    margin-top: -80px;
    transform: translateY(-40%);
  }
  .page-ban-ca-kinh-nghiem__game-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-ban-ca-kinh-nghiem__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca-kinh-nghiem__hero-section {
    padding-top: 10px; /* 約10px頂距 */
    margin-bottom: 20px;
  }
  .page-ban-ca-kinh-nghiem__hero-image-wrapper {
    max-height: 300px;
  }
  .page-ban-ca-kinh-nghiem__hero-image {
    object-fit: contain !important; /* 移动端确保图片完整显示，不裁切 */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca-kinh-nghiem__hero-content {
    margin-top: -50px; /* 调整上移量 */
    transform: translateY(-30%);
    max-width: 95%;
    padding: 15px;
  }
  .page-ban-ca-kinh-nghiem__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }
  .page-ban-ca-kinh-nghiem__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* 其他通用图片和容器 */
  .page-ban-ca-kinh-nghiem img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca-kinh-nghiem__section,
  .page-ban-ca-kinh-nghiem__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca-kinh-nghiem__section {
    padding: 30px 0;
  }
  .page-ban-ca-kinh-nghiem__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 25px;
  }
  .page-ban-ca-kinh-nghiem__text-block {
    font-size: 16px;
  }

  /* 按钮与按钮容器 */
  .page-ban-ca-kinh-nghiem__cta-button,
  .page-ban-ca-kinh-nghiem__btn-primary,
  .page-ban-ca-kinh-nghiem__btn-secondary,
  .page-ban-ca-kinh-nghiem a[class*="button"],
  .page-ban-ca-kinh-nghiem 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;
    font-size: 16px;
  }
  .page-ban-ca-kinh-nghiem__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important; /* 移动端垂直排列 */
    gap: 15px;
  }

  /* 产品展示图区域 */
  .page-ban-ca-kinh-nghiem__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden; /* 防止横向滚动 */
  }
  .page-ban-ca-kinh-nghiem__game-card {
    margin-bottom: 10px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca-kinh-nghiem__article-body {
    padding: 0 10px;
    max-width: 100%;
  }
  .page-ban-ca-kinh-nghiem__article-body h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-ban-ca-kinh-nghiem__article-body p {
    font-size: 16px;
  }
  .page-ban-ca-kinh-nghiem__article-figure {
    margin: 20px 0;
  }

  /* Lợi ích */
  .page-ban-ca-kinh-nghiem__benefits-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-ban-ca-kinh-nghiem__benefits-item {
    padding: 18px;
  }
  .page-ban-ca-kinh-nghiem__benefits-icon {
    font-size: 20px;
    margin-right: 10px;
  }
  .page-ban-ca-kinh-nghiem__benefits-item p {
    font-size: 15px;
  }

  /* Hướng dẫn */
  .page-ban-ca-kinh-nghiem__steps-item {
    padding: 20px;
  }
  .page-ban-ca-kinh-nghiem__steps-item::before {
    font-size: 30px;
    left: 20px;
    top: 20px;
  }
  .page-ban-ca-kinh-nghiem__steps-title {
    font-size: 19px;
    padding-left: 50px;
  }
  .page-ban-ca-kinh-nghiem__steps-item p {
    font-size: 15px;
    padding-left: 50px;
  }

  /* FAQ */
  details.page-ban-ca-kinh-nghiem__faq-item summary.page-ban-ca-kinh-nghiem__faq-question { padding: 15px; }
  .page-ban-ca-kinh-nghiem__faq-qtext { font-size: 15px; }
  details.page-ban-ca-kinh-nghiem__faq-item .page-ban-ca-kinh-nghiem__faq-answer { padding: 0 15px 15px; }
}