/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css */
.page-game-guides {
  background-color: var(--bg, #08160F); /* Default to the specified dark background */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, not var(--header-offset) */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  width: 100%;
  max-width: 800px;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-game-guides__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
}

.page-game-guides__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2);
}

.page-game-guides__content-section {
  background-color: #08160F; /* Dark background */
  padding: 60px 20px;
  max-width: 100%; /* Ensure section itself is responsive */
  box-sizing: border-box;
}

.page-game-guides__content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-guides__heading {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2FFF6;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-game-guides__sub-heading {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #57E38D;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block {
  margin-bottom: 20px;
  color: #A7D9B8;
}

.page-game-guides__text-block p {
  margin-bottom: 15px;
}

.page-game-guides__text-block ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-game-guides__text-block ol {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-game-guides__text-block li {
  margin-bottom: 8px;
}

.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: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-game-guides__card-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-game-guides__card-title a:hover {
  color: #57E38D;
}

.page-game-guides__card-description {
  color: #A7D9B8;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-game-guides__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding */
  background-color: #08160F;
}

.page-game-guides__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden; /* Ensure video doesn't overflow */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-guides__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__faq-section {
  background-color: #0A4B2C; /* Deep Green background for FAQ */
  padding: 60px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-game-guides__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #F2FFF6;
}

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #F2FFF6;
  background-color: #1E3A2A; /* Divider color for summary background */
  list-style: none; /* Remove default marker */
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary:hover {
  background-color: #2E7A4E; /* Border color on hover */
}

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

.page-game-guides__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-game-guides__faq-qtext {
  margin-right: 15px;
}

.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); /* Rotate for 'x' effect */
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #A7D9B8;
  border-top: 1px solid #2E7A4E; /* Border color */
}

.page-game-guides__footer-cta-section {
  background-color: #08160F;
  padding: 60px 20px;
  text-align: center;
}

.page-game-guides__footer-cta-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-game-guides__footer-cta-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-game-guides__section {
    padding: 40px 15px;
  }

  .page-game-guides__hero-section {
    padding: 10px 15px 40px;
  }

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

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

  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-game-guides__btn {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__content-section,
  .page-game-guides__video-section,
  .page-game-guides__faq-section,
  .page-game-guides__footer-cta-section {
    padding: 40px 15px;
  }
  
  .page-game-guides__content-container,
  .page-game-guides__video-container,
  .page-game-guides__faq-container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-game-guides__heading,
  .page-game-guides__sub-heading {
    text-align: left;
  }

  .page-game-guides__card-grid {
    grid-template-columns: 1fr;
  }

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

  /* Images 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__card-image-wrapper,
  .page-game-guides__image-wrapper { /* General image container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Videos responsive */
  .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: 0 !important; /* Containers already centered, no need for extra padding */
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  /* FAQ specific for mobile */
  .page-game-guides__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-game-guides__faq-answer {
    padding: 10px 20px 15px;
  }
}

/* Ensure no filter is used for images */
.page-game-guides img {
  filter: none;
}