/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được viết lại biến này */
.page-game-guides {
  background: #08160F; /* Custom background color for the main content area */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative; /* Not absolute, for upper-image lower-text rule */
  z-index: 1;
  margin-top: -100px; /* Pull content up slightly over the image, but not *on* it */
  padding-top: 100px; /* Counteract margin-top */
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-game-guides__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive behavior */
  max-width: 600px; /* Limit max width for button group */
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  flex-grow: 1; /* Allow buttons to grow in flex container */
  max-width: 280px; /* Limit individual button width */
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* White-ish text for primary button */
  border: none;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold text for secondary button */
  border: 2px solid #F2C14E; /* Gold border */
  box-shadow: 0 3px 10px rgba(242, 193, 78, 0.3);
}

.page-game-guides__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.5);
}

/* General Section Styling */
.page-game-guides__introduction-section,
.page-game-guides__game-categories,
.page-game-guides__tips-section,
.page-game-guides__register-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-guides__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
  border-radius: 2px;
}

.page-game-guides p {
  font-size: 1.05rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__highlight {
  color: #F2C14E; /* Highlight color */
  font-weight: 600;
}

.page-game-guides a {
  color: #2AD16F; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides a:hover {
  color: #57E38D; /* Glow color on hover */
  text-decoration: underline;
}

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

.page-game-guides__card {
  background: #11271B; /* Card Background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E; /* Gold color for card titles */
  padding: 20px 20px 10px;
}

.page-game-guides__card p {
  font-size: 0.95rem;
  color: #A7D9B8; /* Secondary text color */
  padding: 0 20px 20px;
  flex-grow: 1; /* Make paragraph grow to push button to bottom */
}

.page-game-guides__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-game-guides__card-button:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
  text-decoration: none;
}

/* Tips Section */
.page-game-guides__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-game-guides__tip-list li {
  background: #11271B; /* Card Background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #F2FFF6; /* Main text color */
  display: flex;
  align-items: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__tip-list li::before {
  content: '✓';
  color: #2AD16F; /* Green checkmark */
  font-weight: 700;
  margin-right: 15px;
  font-size: 1.2rem;
  line-height: 1;
}

/* Registration Section */
.page-game-guides__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-game-guides__step-list li {
  background: #11271B; /* Card Background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #F2FFF6; /* Main text color */
  position: relative;
  padding-left: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__step-list li strong {
  color: #F2C14E; /* Gold highlight */
}

.page-game-guides__step-list li::before {
  content: attr(data-step); /* Use data attribute for step number */
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #2AD16F;
  color: #F2FFF6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.page-game-guides__step-list li:nth-child(1)::before { content: '1'; }
.page-game-guides__step-list li:nth-child(2)::before { content: '2'; }
.page-game-guides__step-list li:nth-child(3)::before { content: '3'; }
.page-game-guides__step-list li:nth-child(4)::before { content: '4'; }

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

.page-game-guides__faq-item {
  background: #11271B; /* Card Background color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2C14E; /* Gold color for FAQ questions */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Green toggle icon */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−'; /* Change to minus when open */
}

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


.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.7;
}

.page-game-guides__faq-answer p {
  margin-bottom: 0; /* Remove extra margin from last paragraph in answer */
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

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

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

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

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    max-width: 300px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    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,
  .page-game-guides__introduction-section .page-game-guides__container,
  .page-game-guides__game-categories .page-game-guides__container,
  .page-game-guides__tips-section .page-game-guides__container,
  .page-game-guides__register-section .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__conclusion-section .page-game-guides__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image responsiveness */
  .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;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, đây chỉ là padding nhỏ */
  }

  .page-game-guides__game-categories {
    padding: 40px 0;
  }

  .page-game-guides__card {
    margin: 0 auto; /* Center cards in a single column */
    max-width: 400px; /* Max width for mobile cards */
  }

  .page-game-guides__tip-list li,
  .page-game-guides__step-list li {
    padding: 15px 15px 15px 45px;
    font-size: 0.95rem;
  }
  .page-game-guides__step-list li::before {
    left: 10px;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  .page-game-guides__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }
}