/* style/game-guides.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-game-guides {
  background-color: #08160F; /* Tùy chỉnh nền */
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Phần Hero */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Khoảng trống bên dưới nội dung */
  padding-top: 10px; /* Đệm trên nhỏ, body xử lý bù đắp header */
  background-color: #08160F;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Yêu cầu kích thước tối thiểu */
  min-width: 200px; /* Yêu cầu kích thước tối thiểu */
}

.page-game-guides__hero-content {
  max-width: 800px;
  text-align: center;
  margin-top: 40px;
  z-index: 1;
  color: #F2FFF6;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Kích thước font H1 đáp ứng */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

.page-game-guides__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Tùy chỉnh màu chữ phụ */
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo đáp ứng */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Cho phép chữ xuống dòng */
  text-align: center;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút tùy chỉnh */
  color: #ffffff;
  border: none;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background: #11271B; /* Nền thẻ tùy chỉnh */
  color: #2AD16F; /* Một màu xanh lá cây rực rỡ từ gradient */
  border: 2px solid #2E7A4E; /* Viền tùy chỉnh */
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-2px);
  background: #0A4B2C; /* Xanh lá cây đậm tùy chỉnh */
  color: #F2FFF6;
}

/* Kiểu chung của phần */
.page-game-guides__intro-section,
.page-game-guides__guide-section,
.page-game-guides__tips-section,
.page-game-guides__cta-bottom {
  padding: 80px 0;
  background-color: #08160F; /* Tùy chỉnh nền */
}

.page-game-guides__dark-section {
  background-color: #11271B; /* Nền thẻ tùy chỉnh cho các phần tối */
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

/* Thẻ tính năng */
.page-game-guides__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: #11271B; /* Nền thẻ tùy chỉnh */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
  border: 1px solid #2E7A4E; /* Viền tùy chỉnh */
}

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

.page-game-guides__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Yêu cầu kích thước tối thiểu */
  min-height: 200px; /* Yêu cầu kích thước tối thiểu */
  object-fit: cover;
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

/* Danh sách hướng dẫn */
.page-game-guides__guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.page-game-guides__guide-item {
  display: flex;
  flex-direction: column;
  background-color: #11271B; /* Nền thẻ tùy chỉnh */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Viền tùy chỉnh */
}

.page-game-guides__guide-item:nth-child(even) {
  flex-direction: column-reverse; /* Thay đổi thứ tự hình ảnh/nội dung */
}

.page-game-guides__guide-image {
  width: 100%;
  height: 300px; /* Chiều cao cố định để nhất quán */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__guide-content {
  padding: 30px;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

.page-game-guides__guide-heading {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

.page-game-guides__guide-content p {
  margin-bottom: 20px;
  color: #A7D9B8; /* Tùy chỉnh màu chữ phụ */
}

.page-game-guides__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút tùy chỉnh */
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.page-game-guides__read-more-btn:hover {
  opacity: 0.9;
}

/* Phần Mẹo */
.page-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__tip-card {
  background-color: #11271B; /* Nền thẻ tùy chỉnh */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
  border: 1px solid #2E7A4E; /* Viền tùy chỉnh */
}

.page-game-guides__tip-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
}

.page-game-guides__tip-card p {
  color: #A7D9B8; /* Tùy chỉnh màu chữ phụ */
}

/* Phần Câu hỏi thường gặp */
.page-game-guides__faq-section {
  padding: 80px 0;
}

.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: #0A4B2C; /* Xanh lá cây đậm tùy chỉnh, hơi sáng hơn nền để tạo độ tương phản */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Viền tùy chỉnh */
}

.page-game-guides__faq-item summary {
  list-style: none; /* Ẩn dấu mặc định */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Tùy chỉnh màu chữ chính */
  background-color: #0A4B2C;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary:hover {
  background-color: #13994A; /* Xanh lá cây hơi sáng hơn khi di chuột */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho webkit */
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 20px;
  color: #F2C14E; /* Vàng tùy chỉnh */
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1rem;
  color: #A7D9B8; /* Tùy chỉnh màu chữ phụ */
}

/* Kêu gọi hành động dưới cùng */
.page-game-guides__cta-bottom {
  text-align: center;
}

.page-game-guides__cta-bottom p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: #A7D9B8; /* Tùy chỉnh màu chữ phụ */
}

/* Thiết kế đáp ứng */
@media (min-width: 769px) {
  .page-game-guides__guide-item {
    flex-direction: row;
  }

  .page-game-guides__guide-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .page-game-guides__guide-image {
    width: 50%;
    height: auto; /* Cho phép chiều cao tự điều chỉnh */
  }

  .page-game-guides__guide-content {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

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

  .page-game-guides__main-title {
    font-size: 2rem;
  }

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

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-game-guides__intro-section,
  .page-game-guides__guide-section,
  .page-game-guides__tips-section,
  .page-game-guides__cta-bottom,
  .page-game-guides__faq-section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-game-guides__feature-cards,
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__card,
  .page-game-guides__tip-card {
    padding: 20px;
  }

  .page-game-guides__card-image {
    min-width: 200px;
    min-height: 150px; /* Điều chỉnh chiều cao tối thiểu cho thẻ di động */
  }

  .page-game-guides__guide-item {
    padding: 0 15px;
  }

  .page-game-guides__guide-image {
    height: 200px; /* Chiều cao cố định nhỏ hơn cho di động */
  }

  .page-game-guides__guide-content {
    padding: 20px;
  }

  .page-game-guides__guide-heading {
    font-size: 1.5rem;
  }

  .page-game-guides__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
    font-size: 1rem;
  }

  /* Đáp ứng hình ảnh di động */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image-wrapper,
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__guide-item,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom,
  .page-game-guides__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__hero-image {
    height: 250px !important; /* Chiều cao cố định cho hero di động */
  }

  /* Đệm cụ thể cho các vùng chứa nội dung để tránh tràn */
  .page-game-guides__intro-section .page-game-guides__container,
  .page-game-guides__guide-section .page-game-guides__container,
  .page-game-guides__tips-section .page-game-guides__container,
  .page-game-guides__cta-bottom .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}