.page-beginner-guide {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-beginner-guide__hero-intro-section {
  padding-top: 0; /* shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #0A2463; /* Main brand color for intro section */
  text-align: center;
}

.page-beginner-guide__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #E5B80B; /* Accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__intro-text {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-beginner-guide__image-wrapper {
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}

.page-beginner-guide__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-beginner-guide__section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-beginner-guide__section:last-of-type {
  border-bottom: none;
}

.page-beginner-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E5B80B;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__section-description {
  font-size: 17px;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-beginner-guide__step-list, .page-beginner-guide__feature-list, .page-beginner-guide__promotion-list, .page-beginner-guide__tip-list, .page-beginner-guide__app-features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-beginner-guide__step-item, .page-beginner-guide__feature-item, .page-beginner-guide__promotion-item, .page-beginner-guide__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #E5B80B;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__step-item:hover, .page-beginner-guide__feature-item:hover, .page-beginner-guide__promotion-item:hover, .page-beginner-guide__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__step-title, .page-beginner-guide__feature-title, .page-beginner-guide__promotion-title, .page-beginner-guide__tip-title {
  font-size: 24px;
  color: #E5B80B;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-beginner-guide__step-text, .page-beginner-guide__feature-text, .page-beginner-guide__promotion-text, .page-beginner-guide__tip-text, .page-beginner-guide__app-feature-item {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 0;
}

.page-beginner-guide__app-features {
  list-style-type: disc;
  margin-left: 20px;
  color: #cccccc;
}

.page-beginner-guide__app-feature-item {
  margin-bottom: 10px;
  list-style-position: inside;
  text-indent: -1em;
  padding-left: 1em;
}

.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;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 40px;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: #E5B80B; /* Accent color */
  color: #0A2463; /* Dark text for accent background */
  box-shadow: 0 4px 15px rgba(229, 184, 11, 0.4);
}

.page-beginner-guide__btn-primary:hover {
  background-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 184, 11, 0.5);
}

.page-beginner-guide__btn-secondary {
  background-color: #0A2463; /* Main brand color */
  color: #E5B80B; /* Accent text for main brand background */
  border: 2px solid #E5B80B;
  margin-left: 20px;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.4);
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #1c3b7a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 36, 99, 0.5);
}

.page-beginner-guide__game-category {
  margin-bottom: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__game-category-title {
  font-size: 30px;
  color: #E5B80B;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-beginner-guide__game-category-text {
  font-size: 17px;
  color: #cccccc;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-beginner-guide__info-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #0A2463;
}

.page-beginner-guide__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__info-title {
  font-size: 24px;
  color: #E5B80B;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-beginner-guide__info-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 0;
}

/* FAQ styles */
.page-beginner-guide__faq-section {
  background-color: #121212;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #222222;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #0A2463;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-beginner-guide__faq-question:hover {
  background: #1c3b7a;
}

.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: #E5B80B;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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: #1a1a1a;
  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-radius: 0 0 8px 8px;
}

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

.page-beginner-guide__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-beginner-guide__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__news-card .page-beginner-guide__image-wrapper {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  height: 200px; /* Fixed height for news card images */
}

.page-beginner-guide__news-card .page-beginner-guide__image-wrapper img {
  object-fit: cover;
  height: 100%;
}

.page-beginner-guide__news-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 25px 10px;
  color: #E5B80B;
  flex-grow: 1;
}

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

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

.page-beginner-guide__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin: 0 25px 20px;
}

.page-beginner-guide__read-more {
  display: inline-block;
  margin: 0 25px 25px;
  color: #0A2463;
  background-color: #E5B80B;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-beginner-guide__read-more:hover {
  background-color: #ffd700;
  color: #0A2463;
}

.page-beginner-guide__btn-view-all {
  margin-top: 60px;
  display: block;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-beginner-guide__step-title, .page-beginner-guide__feature-title, .page-beginner-guide__promotion-title, .page-beginner-guide__tip-title, .page-beginner-guide__info-title {
    font-size: 22px;
  }

  .page-beginner-guide__game-category-title {
    font-size: 28px;
  }

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

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

@media (max-width: 768px) {
  .page-beginner-guide__container {
    padding: 0 15px;
  }

  .page-beginner-guide__hero-intro-section {
    padding-bottom: 40px;
  }

  .page-beginner-guide__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-beginner-guide__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-beginner-guide__section {
    padding: 50px 0;
  }

  .page-beginner-guide__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .page-beginner-guide__step-item, .page-beginner-guide__feature-item, .page-beginner-guide__promotion-item, .page-beginner-guide__tip-item, .page-beginner-guide__info-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-beginner-guide__step-title, .page-beginner-guide__feature-title, .page-beginner-guide__promotion-title, .page-beginner-guide__tip-title, .page-beginner-guide__info-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-beginner-guide__step-text, .page-beginner-guide__feature-text, .page-beginner-guide__promotion-text, .page-beginner-guide__tip-text, .page-beginner-guide__app-feature-item, .page-beginner-guide__info-text {
    font-size: 15px;
  }

  .page-beginner-guide__btn-primary, .page-beginner-guide__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    margin-top: 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-beginner-guide__game-category {
    padding: 30px;
    margin-bottom: 40px;
  }

  .page-beginner-guide__game-category-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__game-category-text {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-beginner-guide__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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: 15px 20px !important;
  }

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

  .page-beginner-guide__news-card .page-beginner-guide__image-wrapper {
    height: 180px;
  }

  .page-beginner-guide__news-title {
    font-size: 18px;
    margin: 15px 20px 8px;
  }

  .page-beginner-guide__news-excerpt {
    font-size: 14px;
    margin: 0 20px 15px;
  }

  .page-beginner-guide__read-more {
    margin: 0 20px 20px;
  }
  
  /* Mobile image adaptation */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-beginner-guide__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-beginner-guide__section, .page-beginner-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-beginner-guide__btn-view-all {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}