/* 智能文字颜色选择器 - Sử dụng màu chữ phù hợp với độ sáng nền */
.page-game-guides__light-bg {
  color: #333333; /* Nền sáng dùng chữ tối */
  background: #ffffff;
}

.page-game-guides__dark-bg {
  color: #FFF5E1; /* Nền tối dùng chữ sáng */
  background: #B71C1C; /* Màu nền tùy chỉnh */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Chỉ 10px top padding để tránh double padding với body */
  padding-bottom: 50px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD86A; /* Sử dụng màu Gold */
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-game-guides__tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #FFD86A;
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Gold color */
  border: 2px solid #FFD86A;
}

.page-game-guides__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-game-guides__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #C91F17; /* Main brand color */
  line-height: 1.3;
}

.page-game-guides__subtitle {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: inherit;
}

.page-game-guides__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
  color: inherit;
}

.page-game-guides__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__game-categories {
  padding: 80px 0;
  background: #B71C1C;
  color: #FFF5E1;
}

.page-game-guides__game-categories .page-game-guides__section-title {
  color: #FFD86A;
}

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

.page-game-guides__card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border color */
}

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

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 15px 10px;
  color: #FFD86A;
}

.page-game-guides__card-text {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-game-guides__card-link {
  display: inline-block;
  margin: 0 15px 20px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-game-guides__benefits-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

.page-game-guides__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: center;
}

.page-game-guides__benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-game-guides__benefit-item:hover {
  transform: translateY(-5px);
}

.page-game-guides__benefit-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-guides__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #C91F17;
}

.page-game-guides__benefit-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.page-game-guides__how-to-access {
  padding: 80px 0;
  background: #B71C1C;
  color: #FFF5E1;
}

.page-game-guides__how-to-access .page-game-guides__section-title {
  color: #FFD86A;
}

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

.page-game-guides__step-item {
  background: #D32F2F;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

.page-game-guides__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFD86A;
  color: #7A0E0E;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A;
}

.page-game-guides__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF5E1;
}

.page-game-guides__step-text a {
  color: #FFCC66;
  text-decoration: underline;
  font-weight: 600;
}

.page-game-guides__step-text a:hover {
  color: #FFD86A;
}

.page-game-guides__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-game-guides__faq-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-game-guides__faq-item summary.page-game-guides__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-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #f5f5f5;
}

.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
}

.page-game-guides__cta-final {
  padding: 80px 0;
  text-align: center;
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.page-game-guides__cta-final .page-game-guides__section-title {
  color: #FFD86A;
}

.page-game-guides__cta-final .page-game-guides__subtitle {
  color: #FFF5E1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =======================================
   RESPONSIVE STYLES
   ======================================= */

/* Global image responsiveness */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-game-guides__hero-image {
    height: 500px;
  }

  .page-game-guides__hero-content {
    padding: 30px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-guides__tagline {
    font-size: 1rem;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .page-game-guides__subtitle {
    font-size: 1.1rem;
  }

  .page-game-guides__text-block {
    font-size: 1rem;
  }

  .page-game-guides__category-grid,
  .page-game-guides__benefits-grid,
  .page-game-guides__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-game-guides__container {
    padding: 40px 15px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-guides__hero-section {
    padding-top: 10px; /* Minimal top padding */
    padding-bottom: 30px;
  }

  .page-game-guides__hero-image {
    height: 300px;
    object-fit: contain !important; /* 禁止裁切两侧 */
    aspect-ratio: unset !important; /* 取消固定比例 */
    position: relative;
  }

  .page-game-guides__hero-content {
    padding: 20px 10px;
    margin-top: 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-guides__tagline {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column; /* 移动端按钮垂直排列 */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides 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-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__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;
  }

  /* 产品展示图区域 & 通用图片与容器 */
  .page-game-guides__category-grid {
    grid-template-columns: 1fr; /* Một cột trên di động */
    gap: 20px;
  }

  .page-game-guides__card {
    margin: 0 15px;
  }

  .page-game-guides__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__benefits-grid,
  .page-game-guides__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 20px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-game-guides__subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-game-guides__text-block {
    font-size: 0.95rem;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-game-guides__container {
    padding: 30px 0;
  }

  .page-game-guides__intro-section .page-game-guides__container,
  .page-game-guides__benefits-section .page-game-guides__container,
  .page-game-guides__how-to-access .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__cta-final .page-game-guides__container {
    padding-left: 0;
    padding-right: 0;
  }

  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px;
  }

  .page-game-guides__faq-qtext {
    font-size: 15px;
  }

  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }

  .page-game-guides__faq-list {
    margin: 0 15px;
  }

  .page-game-guides__step-item {
    margin: 0 15px;
  }

  .page-game-guides__benefit-item {
    margin: 0 15px;
  }

  /* Ensure all content containers are constrained */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */
    /* padding-right: 15px; */
  }
}