/* style/new-player-guide.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

.page-new-player-guide {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Màu chữ sáng cho nền body tối */
  line-height: 1.6;
  background-color: #0a0a0a; /* Đảm bảo nền chính của trang là màu tối để chữ trắng nổi bật */
}

/* Hero Section */
.page-new-player-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Hình ảnh trên nội dung */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Padding trên nhỏ (10px), padding dưới lớn hơn */
  overflow: hidden;
  box-sizing: border-box;
}

.page-new-player-guide__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và văn bản */
}

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

.page-new-player-guide__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-new-player-guide__hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff; /* Chữ trắng cho tiêu đề chính */
  margin-bottom: 20px;
  /* Không đặt font-size cố định quá lớn, dựa vào clamp hoặc mặc định để responsive */
}

.page-new-player-guide__hero-content p {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-new-player-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ */
}

/* General Section Styling */
.page-new-player-guide__section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt cho các phần */
  border-radius: 8px;
  box-sizing: border-box;
}

.page-new-player-guide__section:last-of-type {
  margin-bottom: 0;
}

.page-new-player-guide__section h2 {
  font-size: 2.2em;
  color: #26A9E0; /* Màu thương hiệu cho tiêu đề chính các phần */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-new-player-guide__section h3 {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-new-player-guide__section h4 {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-new-player-guide__section p,
.page-new-player-guide__section ul,
.page-new-player-guide__section ol {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-new-player-guide__section ul,
.page-new-player-guide__section ol {
  padding-left: 25px;
}

.page-new-player-guide__section li {
  margin-bottom: 8px;
}

/* Buttons */
.page-new-player-guide__btn-primary,
.page-new-player-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap; /* Ngăn chặn xuống dòng mặc định trên desktop */
}

.page-new-player-guide__btn-primary {
  background-color: #EA7C07; /* Màu login cho hành động chính */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-new-player-guide__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-new-player-guide__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Màu thương hiệu cho hành động phụ */
  border: 2px solid #26A9E0;
}

.page-new-player-guide__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Image Containers within sections */
.page-new-player-guide__image-container {
  text-align: center;
  margin: 30px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-new-player-guide__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Đảm bảo nó hoạt động như một khối */
  margin: 0 auto; /* Căn giữa hình ảnh */
}

/* FAQ Section */
.page-new-player-guide__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-new-player-guide__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  list-style: none; /* Ẩn dấu mặc định */
}

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

.page-new-player-guide__faq-item .page-new-player-guide__faq-qtext {
  flex-grow: 1;
}

.page-new-player-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-new-player-guide__faq-item[open] .page-new-player-guide__faq-toggle {
  content: '−'; /* Thay đổi thành dấu trừ khi mở */
}

.page-new-player-guide__faq-answer {
  padding: 0 25px 18px;
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-new-player-guide__hero-content h1 {
    font-size: 2.5em;
  }
  .page-new-player-guide__hero-content p {
    font-size: 1em;
  }
  .page-new-player-guide__section h2 {
    font-size: 1.8em;
  }
  .page-new-player-guide__section h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-new-player-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-new-player-guide__hero-section {
    padding: 10px 15px 40px;
  }

  .page-new-player-guide__hero-content h1 {
    font-size: 1.8em; /* Nhỏ hơn cho di động, vẫn giữ độ nổi bật */
    max-width: 100%; /* Đảm bảo H1 không gây tràn */
    word-wrap: break-word;
  }

  .page-new-player-guide__hero-content p {
    font-size: 0.95em;
  }

  .page-new-player-guide__cta-buttons {
    flex-direction: column; /* Xếp chồng các nút theo chiều dọc trên di động */
    gap: 15px;
  }

  .page-new-player-guide__btn-primary,
  .page-new-player-guide__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-new-player-guide__section {
    padding: 40px 15px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-new-player-guide__section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-new-player-guide__section h3 {
    font-size: 1.3em;
  }
  .page-new-player-guide__section h4 {
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-new-player-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-new-player-guide__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile FAQ */
  .page-new-player-guide__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-new-player-guide__faq-answer {
    padding: 0 20px 15px;
  }
}