/* style/beginner-guide.css */

/* Căn chỉnh cho nội dung không bị che bởi header cố định */
.page-beginner-guide__hero-banner {
  padding-top: 120px; /* Cho desktop */
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-banner {
    padding-top: 100px; /* Cho mobile */
    padding-bottom: 40px;
  }
}

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text màu trắng trên nền body đen */
  background-color: #000; /* Đảm bảo nền body đen */
}

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

/* Sections */
.page-beginner-guide__dark-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

.page-beginner-guide__light-section {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 60px 0;
}

.page-beginner-guide__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Màu vàng phụ đạo */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-beginner-guide__sub-section-title {
  font-size: 24px;
  font-weight: bold;
  color: #B22222; /* Màu đỏ chủ đạo */
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-beginner-guide__text-center {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.page-beginner-guide__btn-primary {
  background-color: #B22222;
  color: #ffffff;
  border: 2px solid #B22222;
  box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
}

.page-beginner-guide__btn-primary:hover {
  background-color: #8B0000;
  border-color: #8B0000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(178, 34, 34, 0.6);
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-beginner-guide__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-beginner-guide__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-beginner-guide__action-center {
  text-align: center;
  margin-top: 50px;
}

.page-beginner-guide__mt-40 {
  margin-top: 40px;
}

/* Hero Banner */
.page-beginner-guide__main-title {
  font-size: 52px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-beginner-guide__subtitle {
  font-size: 22px;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

/* Introduction Section */
.page-beginner-guide__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-beginner-guide__intro-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #cccccc;
}

.page-beginner-guide__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Registration Guide */
.page-beginner-guide__step-by-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__step-card {
  background-color: #0d0d0d;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__step-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-beginner-guide__step-card p {
  font-size: 16px;
  color: #cccccc;
}

/* Payment Guide */
.page-beginner-guide__payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-beginner-guide__payment-card {
  background-color: #1a1a1a;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__payment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__payment-card img {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-top: 25px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__payment-card-title {
  font-size: 26px;
  font-weight: bold;
  color: #B22222;
  margin-bottom: 20px;
}

.page-beginner-guide__payment-card p {
  font-size: 17px;
  color: #cccccc;
}

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

.page-beginner-guide__game-card {
  background-color: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__game-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-beginner-guide__game-card img {
  width: 100%;
  height: 220px; /* Kích thước cố định cho hình ảnh game */
  object-fit: cover;
  display: block;
}

.page-beginner-guide__game-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  padding: 15px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.page-beginner-guide__tip-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__tip-title {
  font-size: 24px;
  font-weight: bold;
  color: #B22222;
  margin-bottom: 15px;
}

.page-beginner-guide__tip-card p {
  font-size: 16px;
  color: #cccccc;
}

/* Security and Support */
.page-beginner-guide__security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-beginner-guide__security-item {
  background-color: #0d0d0d;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__security-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__security-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__security-title {
  font-size: 26px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-beginner-guide__security-item p {
  font-size: 17px;
  color: #cccccc;
}

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

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0d0d0d;
  border: 1px solid #333333;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-beginner-guide__faq-question:hover {
  background: #2a2a2a;
}

.page-beginner-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-beginner-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
  color: #B22222;
  transform: rotate(45deg); /* Hoặc sử dụng '−' */
}

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #0d0d0d;
  color: #cccccc;
  font-size: 16px;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #333333;
}

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

.page-beginner-guide__news-card {
  background-color: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-beginner-guide__news-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  padding: 15px 15px 10px 15px;
}

.page-beginner-guide__news-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-beginner-guide__news-title a:hover {
  color: #B22222;
}

.page-beginner-guide__news-excerpt {
  font-size: 16px;
  color: #cccccc;
  padding: 0 15px 15px 15px;
}

.page-beginner-guide__read-more {
  display: inline-block;
  font-size: 16px;
  color: #B22222;
  text-decoration: none;
  font-weight: bold;
  padding: 0 15px 20px 15px;
  transition: color 0.3s ease;
}

.page-beginner-guide__read-more:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 44px;
  }

  .page-beginner-guide__section-title {
    font-size: 32px;
  }

  .page-beginner-guide__intro-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__payment-grid,
  .page-beginner-guide__security-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__intro-image {
    order: -1; /* Đặt ảnh lên trên text trên mobile */
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__hero-banner,
  .page-beginner-guide__introduction-section,
  .page-beginner-guide__registration-guide,
  .page-beginner-guide__payment-guide,
  .page-beginner-guide__game-showcase,
  .page-beginner-guide__tips-section,
  .page-beginner-guide__security-support,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__latest-news {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__main-title {
    font-size: 32px;
  }

  .page-beginner-guide__subtitle {
    font-size: 18px;
  }

  .page-beginner-guide__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-beginner-guide__sub-section-title {
    font-size: 20px;
  }

  .page-beginner-guide__text-center {
    font-size: 16px;
  }

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-beginner-guide__btn-large {
    font-size: 18px;
    padding: 15px 30px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-beginner-guide__step-card,
  .page-beginner-guide__payment-card,
  .page-beginner-guide__tip-card,
  .page-beginner-guide__security-item {
    padding: 25px;
  }

  .page-beginner-guide__step-title,
  .page-beginner-guide__payment-card-title,
  .page-beginner-guide__tip-title,
  .page-beginner-guide__security-title {
    font-size: 20px;
  }

  .page-beginner-guide__game-card img {
    height: 180px;
  }

  .page-beginner-guide__game-card-title {
    font-size: 18px;
    padding: 10px;
  }

  .page-beginner-guide__faq-question {
    padding: 15px 20px;
  }

  .page-beginner-guide__faq-question h3 {
    font-size: 16px;
  }

  .page-beginner-guide__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-beginner-guide__faq-answer {
    padding: 0 20px;
  }

  .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    padding: 15px 20px !important;
  }

  .page-beginner-guide__news-card img {
    height: 160px;
  }

  .page-beginner-guide__news-title {
    font-size: 18px;
  }

  .page-beginner-guide__news-excerpt,
  .page-beginner-guide__read-more {
    font-size: 15px;
  }

  /* Tất cả hình ảnh phải thích ứng với màn hình di động */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__main-title {
    font-size: 28px;
  }

  .page-beginner-guide__section-title {
    font-size: 24px;
  }

  .page-beginner-guide__game-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__step-by-step-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__payment-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__security-grid {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__news-grid {
    grid-template-columns: 1fr;
  }
}