/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css, trang này không được viết lại */

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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-game-guides--text-main); /* Default text color for dark body background */
  background-color: var(--page-game-guides--background); /* Ensure consistent background */
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  min-height: 500px;
  overflow: hidden;
  text-align: center;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of image wrapper */
  overflow: hidden;
  position: relative;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-game-guides__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--page-game-guides--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__description {
  font-size: 1.2rem;
  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__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides--button-gradient);
  color: #ffffff; /* Explicit white for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary {
  background: #ffffff; /* Explicit white for contrast */
  color: var(--page-game-guides--primary-color);
  border: 2px solid var(--page-game-guides--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__btn-secondary:hover {
  background: var(--page-game-guides--primary-color);
  color: #ffffff; /* Explicit white for contrast */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary.page-game-guides__small-btn,
.page-game-guides__btn-secondary.page-game-guides__small-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-game-guides__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--page-game-guides--primary-color);
}

.page-game-guides__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--page-game-guides--text-main);
}

.page-game-guides__highlight {
  color: var(--page-game-guides--gold);
  font-weight: bold;
}

/* Section backgrounds and text colors based on body background type */
.page-game-guides__dark-bg {
  background-color: var(--page-game-guides--background);
  color: var(--page-game-guides--text-main);
}

.page-game-guides__light-bg {
  background-color: #f8f9fa; /* A very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__text-block,
.page-game-guides__light-bg .page-game-guides__card-title,
.page-game-guides__light-bg .page-game-guides__card-text,
.page-game-guides__light-bg .page-game-guides__faq-qtext,
.page-game-guides__light-bg .page-game-guides__faq-answer {
  color: #333333; /* Ensure dark text on light background */
}

.page-game-guides__light-bg .page-game-guides__sub-title {
  color: var(--page-game-guides--deep-green);
}

.page-game-guides__intro-section,
.page-game-guides__why-guides-section,
.page-game-guides__types-section,
.page-game-guides__tips-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 60px 0;
}

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

.page-game-guides__card {
  background-color: var(--page-game-guides--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-game-guides--text-main);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-game-guides--primary-color);
}

.page-game-guides__card-text {
  font-size: 1rem;
  color: var(--page-game-guides--text-secondary);
}

.page-game-guides__game-type-block {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--page-game-guides--divider);
}

.page-game-guides__game-type-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-game-guides__content-flex,
.page-game-guides__content-flex-reverse {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-game-guides__content-flex-reverse {
  flex-direction: row-reverse;
}

.page-game-guides__content-image {
  flex-shrink: 0;
  width: 45%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__text-content {
  flex-grow: 1;
}

.page-game-guides__text-content p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-game-guides__text-content a {
  color: var(--page-game-guides--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-game-guides__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-game-guides__tips-list li {
  background-color: var(--page-game-guides--card-bg);
  border-left: 5px solid var(--page-game-guides--primary-color);
  margin-bottom: 20px;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-game-guides__list-title {
  font-size: 1.3rem;
  color: var(--page-game-guides--gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__tips-list li p {
  font-size: 1rem;
  color: var(--page-game-guides--text-secondary);
}

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

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

.page-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  color: #333333; /* Dark text for light background */
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #e0e0e0;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: #333333; /* Dark text for light background */
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-game-guides--primary-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  background-color: #ffffff;
  font-size: 1rem;
  color: #555555; /* Slightly lighter dark text */
}

.page-game-guides__faq-answer p {
    margin-bottom: 0;
    color: #555555;
}

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

.page-game-guides__faq-item details > summary {
  list-style: none; /* Hide default marker for Firefox */
}

.page-game-guides__conclusion-section .page-game-guides__text-block {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    max-width: 700px;
  }

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

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

  .page-game-guides__content-flex,
  .page-game-guides__content-flex-reverse {
    flex-direction: column;
    text-align: center;
  }

  .page-game-guides__content-image {
    width: 80%;
    max-width: 400px;
    margin-bottom: 20px;
  }

  .page-game-guides__text-content {
    width: 100%;
  }

  .page-game-guides__text-content p {
    text-align: left; /* Keep text aligned left in content blocks */
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
    min-height: 400px;
  }

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

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 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: 1rem;
    margin: 0 auto; /* Center buttons */
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    text-align: center;
  }

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

  .page-game-guides__intro-section,
  .page-game-guides__why-guides-section,
  .page-game-guides__types-section,
  .page-game-guides__tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }

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

  .page-game-guides__grid-3-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-game-guides__card-image {
    height: 180px;
    min-width: unset;
    min-height: unset;
  }

  .page-game-guides__content-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset;
    min-height: unset;
    height: auto !important;
    margin: 0 auto 20px auto;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__game-type-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-game-guides__tips-list li {
    padding: 15px 20px;
  }

  .page-game-guides__list-title {
    font-size: 1.2rem;
  }

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

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