/* style/game-guides.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */

:root {
  --qgwin-primary: #26A9E0;
  --qgwin-secondary: #FFFFFF;
  --qgwin-dark-text: #333333;
  --qgwin-light-text: #FFFFFF;
  --qgwin-bg-dark: #000000; /* Body background from shared.css */
  --qgwin-bg-light: #f5f5f5;
  --qgwin-login-btn: #EA7C07;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  color: var(--qgwin-light-text); /* Text color for dark body background */
  background-color: var(--qgwin-bg-dark); /* Should be inherited from body, but explicitly set for safety */
}

.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;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: 100%; /* Ensure image is responsive */
  display: block;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 50px; /* Space from top edge, after image */
  padding: 30px;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--qgwin-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-game-guides__intro-text {
  font-size: 1.15rem;
  color: var(--qgwin-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* General Section Styling */
.page-game-guides__content-section,
.page-game-guides__game-types-section,
.page-game-guides__registration-section,
.page-game-guides__video-section,
.page-game-guides__promotions-section,
.page-game-guides__faq-section {
  padding: 60px 0;
  overflow: hidden;
}

.page-game-guides__light-bg {
  background-color: var(--qgwin-bg-light);
  color: var(--qgwin-dark-text);
}

.page-game-guides__dark-bg {
  background-color: var(--qgwin-bg-dark);
  color: var(--qgwin-light-text);
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  text-align: center;
  color: var(--qgwin-primary);
  font-weight: bold;
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: var(--qgwin-primary);
}

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: var(--qgwin-secondary);
}

.page-game-guides__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Feature List */
.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__feature-item {
  background: var(--qgwin-secondary);
  color: var(--qgwin-dark-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__feature-title {
  font-size: 1.5rem;
  color: var(--qgwin-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__feature-item p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Game Card Grid */
.page-game-guides__game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-guides__game-card.page-game-guides__card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--qgwin-light-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: bold;
}

.page-game-guides__card-title a {
  color: var(--qgwin-secondary);
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  color: var(--qgwin-primary);
}

.page-game-guides__game-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-game-guides__btn-text {
  display: inline-block;
  color: var(--qgwin-primary);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border: 1px solid var(--qgwin-primary);
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
}

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

.page-game-guides__step-item {
  background: var(--qgwin-secondary);
  color: var(--qgwin-dark-text);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-game-guides__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__step-title {
  font-size: 1.5rem;
  color: var(--qgwin-primary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__step-item p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Video Section */
.page-game-guides__video-section {
  text-align: center;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  width: 100%; /* Desktop width */
}

.page-game-guides__video-link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-game-guides__video-caption {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--qgwin-secondary);
}

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

.page-game-guides__promotion-card.page-game-guides__card {
  background: var(--qgwin-secondary);
  color: var(--qgwin-dark-text);
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__promotion-card .page-game-guides__card-title a {
  color: var(--qgwin-primary);
}

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

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

.page-game-guides__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--qgwin-secondary);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

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

.page-game-guides__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  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: 15px 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-game-guides__btn-primary {
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
  border: 2px solid var(--qgwin-primary);
}

.page-game-guides__btn-primary:hover {
  background-color: darken(var(--qgwin-primary), 10%);
  border-color: darken(var(--qgwin-primary), 10%);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--qgwin-primary);
  border: 2px solid var(--qgwin-primary);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--qgwin-primary);
  color: var(--qgwin-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-game-guides__feature-list,
  .page-game-guides__game-card-grid,
  .page-game-guides__process-steps,
  .page-game-guides__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__feature-item,
  .page-game-guides__game-card.page-game-guides__card,
  .page-game-guides__step-item,
  .page-game-guides__promotion-card.page-game-guides__card {
    padding: 20px;
    box-sizing: border-box !important;
  }

  .page-game-guides__card-image,
  .page-game-guides__step-image {
    height: auto;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }

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

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

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

  .page-game-guides__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}