/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

:root {
  --page-game-guides-primary-color: #11A84E;
  --page-game-guides-secondary-color: #22C768;
  --page-game-guides-bg-color: #08160F;
  --page-game-guides-card-bg: #11271B;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-border-color: #2E7A4E;
  --page-game-guides-divider-color: #1E3A2A;
  --page-game-guides-glow-color: #57E38D;
  --page-game-guides-gold-color: #F2C14E;
  --page-game-guides-deep-green: #0A4B2C;
  --page-game-guides-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-game-guides {
  background-color: var(--page-game-guides-bg-color);
  color: var(--page-game-guides-text-main);
  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;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ để tránh trùng với body padding-top */
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao cho hình ảnh chính */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp để tránh font-size quá lớn */
  color: var(--page-game-guides-text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__description {
  font-size: 1.15rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 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: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Cho phép văn bản xuống dòng */
  word-wrap: break-word; /* Ngắt từ nếu cần */
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: var(--page-game-guides-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--page-game-guides-glow-color);
  border: 2px solid var(--page-game-guides-glow-color);
  box-shadow: 0 2px 10px rgba(87, 227, 141, 0.3);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(87, 227, 141, 0.1);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.5);
}

/* General Sections */
.page-game-guides__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-game-guides-divider-color);
}

.page-game-guides__section:last-of-type {
  border-bottom: none;
}

.page-game-guides__section-title {
  font-size: 2.2rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-game-guides__text-block {
  font-size: 1.05rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__text-block a {
  color: var(--page-game-guides-glow-color);
  text-decoration: none;
  font-weight: 600;
}

.page-game-guides__text-block a:hover {
  text-decoration: underline;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

/* Card Grid */
.page-game-guides__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-game-guides-border-color);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-game-guides__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
  width: 100%;
  height: 220px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Tối thiểu 200px */
  min-height: 200px; /* Tối thiểu 200px */
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  color: var(--page-game-guides-text-main);
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  color: var(--page-game-guides-glow-color);
  text-decoration: underline;
}

.page-game-guides__card-text {
  font-size: 0.95rem;
  color: var(--page-game-guides-text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-game-guides__card-link {
  display: inline-block;
  margin: 0 20px;
  color: var(--page-game-guides-glow-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

.page-game-guides__card-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--page-game-guides-glow-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-game-guides__card-link:hover::after {
  transform: scaleX(1);
}

/* Lists */
.page-game-guides__list,
.page-game-guides__ordered-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-game-guides__list-item {
  font-size: 1.05rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-game-guides__list-item::before {
  content: '✔'; /* Hoặc một biểu tượng khác */
  color: var(--page-game-guides-glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-game-guides__ordered-list .page-game-guides__list-item::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  color: var(--page-game-guides-gold-color);
  font-weight: bold;
  left: 0;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-game-guides-text-main);
  cursor: pointer;
  background-color: var(--page-game-guides-deep-green);
  border-bottom: 1px solid var(--page-game-guides-border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-game-guides__faq-item summary::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-game-guides__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.3);
}

.page-game-guides__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-game-guides-glow-color);
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-game-guides__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  border-top: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
  color: var(--page-game-guides-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-section {
    padding: 40px 20px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-game-guides__section-title {
    font-size: 2rem;
  }
  .page-game-guides__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body đã xử lý padding-top, đây chỉ là khoảng cách nhỏ */
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .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;
    font-size: 0.95rem;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-game-guides__section-title {
    font-size: 1.8rem;
  }
  .page-game-guides__text-block,
  .page-game-guides__list-item,
  .page-game-guides__card-text {
    font-size: 0.95rem;
  }
  .page-game-guides__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__card-title {
    font-size: 1.2rem;
  }
  .page-game-guides__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 15px;
  }

  /* Mobile Image Responsive */
  .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__content-image,
  .page-game-guides__card-image,
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-game-guides__card-image {
    height: 180px; /* Điều chỉnh chiều cao cho hình ảnh thẻ trên mobile */
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    padding: 20px 10px;
    padding-top: 10px !important;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
  .page-game-guides__section-title {
    font-size: 1.5rem;
  }
  .page-game-guides__faq-question {
    font-size: 0.9rem;
  }
}