/* style/game-guides.css */

/* Custom Colors */
:root {
  --page-game-guides-primary-color: #11A84E; /* Chủ sắc */
  --page-game-guides-secondary-color: #22C768; /* Sắc phụ */
  --page-game-guides-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút */
  --page-game-guides-card-bg: #11271B; /* Nền thẻ */
  --page-game-guides-background: #08160F; /* Nền */
  --page-game-guides-text-main: #F2FFF6; /* Văn bản chính */
  --page-game-guides-text-secondary: #A7D9B8; /* Văn bản phụ */
  --page-game-guides-border-color: #2E7A4E; /* Viền */
  --page-game-guides-glow-color: #57E38D; /* Hiệu ứng phát sáng */
  --page-game-guides-gold-color: #F2C14E; /* Vàng */
  --page-game-guides-divider-color: #1E3A2A; /* Đường phân cách */
  --page-game-guides-deep-green: #0A4B2C; /* Xanh lá đậm */
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-guides-text-main); /* Màu chữ mặc định cho nội dung chính */
  background-color: var(--page-game-guides-background); /* Nền trang */
  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;
  text-align: center;
  padding: 10px 0 60px 0; /* Khoảng cách trên nhỏ, khoảng cách dưới lớn hơn */
  overflow: hidden;
  background-color: var(--page-game-guides-background);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px; /* Khoảng cách giữa hình ảnh và nội dung */
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Kích thước H1 phản hồi */
  color: var(--page-game-guides-gold-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* General Section Styling */
.page-game-guides__section-title {
  font-size: 2.5rem;
  color: var(--page-game-guides-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  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: var(--page-game-guides-gold-color);
  border-radius: 2px;
}

.page-game-guides__text-block {
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  margin-right: 15px;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--page-game-guides-gold-color);
  color: var(--page-game-guides-background);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-game-guides__video-cta {
  margin-top: 30px;
  margin-right: 0; /* Loại bỏ margin-right cho CTA đơn */
}

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

.page-game-guides__card {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-game-guides-text-main);
  display: flex;
  flex-direction: column;
}

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

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

.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);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Strategy List */
.page-game-guides__strategy-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-game-guides__strategy-list li {
  background-color: var(--page-game-guides-card-bg);
  border-left: 5px solid var(--page-game-guides-gold-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--page-game-guides-text-main);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1rem;
}

.page-game-guides__strategy-list li strong {
  color: var(--page-game-guides-gold-color);
}

/* Video Section */
.page-game-guides__video-section {
  background-color: var(--page-game-guides-deep-green);
  padding: 60px 20px;
  text-align: center;
}

.page-game-guides__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Chiều rộng tối đa cho vùng chứa video */
  margin: 30px auto;
  padding-bottom: 56.25%; /* Tỷ lệ khung hình 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Đảm bảo video chiếm toàn bộ không gian */
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 20px;
  background-color: var(--page-game-guides-background);
}

.page-game-guides__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  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-item summary {
  list-style: none; /* Ẩn dấu mặc định */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-game-guides-gold-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--page-game-guides-deep-green);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

.page-game-guides__faq-item summary:hover {
  background-color: var(--page-game-guides-primary-color);
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-game-guides-text-secondary);
  border-top: 1px solid var(--page-game-guides-divider-color);
}

/* CTA Section */
.page-game-guides__cta-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--page-game-guides-background);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-game-guides__section-title {
    font-size: 2rem;
  }
  .page-game-guides__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }
  .page-game-guides__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-game-guides__hero-description {
    font-size: 1rem;
  }
  .page-game-guides__section-title {
    font-size: 1.8rem;
  }
  .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;
    margin-right: 0 !important; /* Loại bỏ margin-right cho các nút xếp chồng */
  }

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

  .page-game-guides__container,
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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 {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

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

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

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-game-guides__section-title {
    font-size: 1.5rem;
  }
  .page-game-guides__card-title {
    font-size: 1.2rem;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}