/* 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-glow-color: #57E38D;
  --page-game-guides-gold-color: #F2C14E;
  --page-game-guides-divider-color: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
  --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-guides-text-main); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--page-game-guides-bg-color);
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Nhỏ hơn cho top, lớn hơn cho bottom */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px; /* Giới hạn chiều cao cho desktop */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Sử dụng clamp cho H1 */
  color: var(--page-game-guides-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-game-guides__hero-description {
  font-size: 1.2rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.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: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: var(--page-game-guides-text-main);
  border: 2px solid var(--page-game-guides-glow-color);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-game-guides-glow-color);
}

.page-game-guides__btn-secondary {
  background: var(--page-game-guides-deep-green);
  color: var(--page-game-guides-text-main);
  border: 2px solid var(--page-game-guides-border-color);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-game-guides-border-color);
}

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--page-game-guides-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-game-guides__introduction-section,
.page-game-guides__detailed-guides-section,
.page-game-guides__getting-started-section,
.page-game-guides__final-cta-section {
  padding: 60px 0;
  background-color: var(--page-game-guides-bg-color);
}

.page-game-guides__game-types-section,
.page-game-guides__responsible-gaming-section,
.page-game-guides__faq-section {
  padding: 60px 0;
  background-color: var(--page-game-guides-card-bg); /* Nền tối hơn cho các section này */
}

.page-game-guides__paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: var(--page-game-guides-deep-green);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-game-guides-border-color);
  display: flex;
  flex-direction: column;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--page-game-guides-glow-color);
}

.page-game-guides__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Đảm bảo tối thiểu 200px */
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-game-guides-gold-color);
  padding: 20px 20px 10px;
  line-height: 1.4;
}

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

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

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

.page-game-guides__guide-block {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
}

.page-game-guides__guide-title {
  font-size: 1.8rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  min-height: 200px; /* Đảm bảo tối thiểu 200px */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

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

.page-game-guides__list-item strong {
  color: var(--page-game-guides-text-main);
}

.page-game-guides__list-item::before {
  content: '✔';
  color: var(--page-game-guides-glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-game-guides__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__step-card {
  background-color: var(--page-game-guides-deep-green);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-game-guides-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__step-title {
  font-size: 1.5rem;
  color: var(--page-game-guides-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__step-description {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 30px;
}

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

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-deep-green);
  border: 1px solid var(--page-game-guides-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-game-guides-text-main);
  background-color: var(--page-game-guides-deep-green);
  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/Safari */
}

.page-game-guides__faq-question:hover {
  background-color: var(--page-game-guides-deep-green);
}

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

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-game-guides-text-secondary);
}

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

.page-game-guides__faq-answer a {
  color: var(--page-game-guides-glow-color);
  text-decoration: underline;
}

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

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

  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-game-guides__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-game-guides__card-title {
    font-size: 1.3rem;
  }

  .page-game-guides__guide-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-game-guides__hero-section {
    padding: 10px 15px 40px;
  }

  .page-game-guides__hero-image {
    max-height: 400px;
    width: 100% !important; /* Force responsive */
    height: auto !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-game-guides__introduction-section,
  .page-game-guides__game-types-section,
  .page-game-guides__detailed-guides-section,
  .page-game-guides__responsible-gaming-section,
  .page-game-guides__getting-started-section,
  .page-game-guides__faq-section,
  .page-game-guides__final-cta-section {
    padding: 40px 0;
  }

  .page-game-guides__paragraph {
    font-size: 1rem;
    line-height: 1.7;
  }

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

  .page-game-guides__card-image {
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-game-guides__guide-block {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-game-guides__guide-title {
    font-size: 1.4rem;
  }

  .page-game-guides__guide-image {
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__list-item {
    font-size: 1rem;
    padding-left: 25px;
  }

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

  .page-game-guides__step-card {
    padding: 25px;
  }

  .page-game-guides__step-title {
    font-size: 1.3rem;
  }

  .page-game-guides__step-description {
    font-size: 0.95rem;
  }

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

  .page-game-guides__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Ensure all img and video elements are responsive on mobile */
  .page-game-guides img,
  .page-game-guides video {
    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__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}