/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần lặp lại ở đây */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định chữ tối cho nền sáng */
}

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

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ gọn để không trùng với padding-top của body */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

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

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

.page-game-guides__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Kéo nội dung lên trên ảnh một chút để tạo sự gắn kết */
  position: relative;
  z-index: 1;
  background-color: #FFFFFF; /* Nền trắng để chữ rõ ràng trên ảnh */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-game-guides__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-game-guides__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-game-guides__introduction-section,
.page-game-guides__rules-terms-section,
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-game-guides__game-categories-section,
.page-game-guides__strategy-section,
.page-game-guides__conclusion-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Màu nền chính */
  color: #FFFFFF; /* Chữ trắng cho nền xanh */
}

.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-game-guides__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-game-guides__game-card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Đảm bảo chiều cao tối thiểu cho card */
}

.page-game-guides__card-image {
  width: 100%;
  height: 225px; /* Chiều cao cố định cho ảnh trong card */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

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

.page-game-guides__card-button {
  margin-top: 20px;
  align-self: center;
}

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

.page-game-guides__term-item {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.page-game-guides__term-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-guides__term-item ul {
  list-style: none;
  padding: 0;
}

.page-game-guides__term-item li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.page-game-guides__term-item li::before {
  content: '•';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-game-guides__strategy-item {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.page-game-guides__strategy-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-game-guides__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  user-select: none;
  list-style: none;
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

.page-game-guides__faq-answer p {
  margin-top: 10px;
}

.page-game-guides .highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 2.5em;
  }

  .page-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__hero-content {
    margin-top: -60px;
  }
}

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

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

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

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__game-categories-section,
  .page-game-guides__rules-terms-section,
  .page-game-guides__strategy-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
  }

  .page-game-guides__section-subtitle {
    font-size: 1em;
  }

  .page-game-guides__game-card {
    min-height: auto;
  }

  .page-game-guides__card-image {
    height: 180px; /* Điều chỉnh chiều cao ảnh cho mobile */
  }

  .page-game-guides__card-title {
    font-size: 1.2em;
  }

  .page-game-guides__card-text {
    font-size: 0.9em;
  }

  .page-game-guides__game-card,
  .page-game-guides__term-item,
  .page-game-guides__strategy-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure image fills container */
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness (if any video elements were present) */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* All containers with images/buttons/videos */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__category-grid,
  .page-game-guides__terms-grid,
  .page-game-guides__strategy-grid,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body đã có padding, chỉ cần 10px trang trí */
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 1.8em;
  }

  .page-game-guides__section-title {
    font-size: 1.5em;
  }

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