.page-beginner-guide {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
  padding-top: var(--header-offset, 120px);
}

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  background-color: #8B0000; /* Auxiliary color for hero */
  overflow: hidden;
}

.page-beginner-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Main color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-beginner-guide__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginner-guide__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-beginner-guide__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-beginner-guide__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

.page-beginner-guide__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-beginner-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__feature-icon, .page-beginner-guide__game-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-beginner-guide__feature-title, .page-beginner-guide__game-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-beginner-guide__game-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-beginner-guide__game-title a:hover {
  text-decoration: underline;
}

.page-beginner-guide__feature-text, .page-beginner-guide__game-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

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

.page-beginner-guide__step-item {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-beginner-guide__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #8B0000; /* Auxiliary color for step numbers */
  margin-bottom: 15px;
}

.page-beginner-guide__step-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-beginner-guide__step-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-beginner-guide__two-column-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-beginner-guide__column-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-beginner-guide__sub-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-beginner-guide__bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-beginner-guide__bullet-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1em;
  line-height: 1.5;
}

.page-beginner-guide__bullet-list li::before {
  content: '★'; /* Custom bullet point */
  color: #FFD700;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

.page-beginner-guide__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  max-height: 350px;
}

.page-beginner-guide__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for questions */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-beginner-guide__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
  flex-grow: 1;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  color: #FFD700;
  font-weight: bold;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
  transform: rotate(45deg);
  content: '−';
}

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.05); /* Lighter background for answers */
  border-radius: 0 0 8px 8px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-beginner-guide__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-beginner-guide__cta-section {
  padding: 80px 20px;
  background-color: #FFD700; /* Main color for CTA background */
  color: #8B0000; /* Auxiliary color for text on main color background */
  text-align: center;
}

.page-beginner-guide__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #8B0000;
}

.page-beginner-guide__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #8B0000;
}

.page-beginner-guide__btn-primary {
  background: #8B0000;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #8B0000;
  display: inline-block;
}

.page-beginner-guide__btn-primary:hover {
  background: #FFD700;
  color: #8B0000;
  border-color: #8B0000;
}

.page-beginner-guide__btn-secondary {
  background: transparent;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.page-beginner-guide__btn-secondary:hover {
  background: #FFD700;
  color: #8B0000;
}

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

.page-beginner-guide__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-beginner-guide__light-bg {
  background-color: #2a2a2a; /* Another shade of dark for contrast */
  color: #f0f0f0;
}

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

/* Image optimization (Global within page-beginner-guide) */
.page-beginner-guide img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Video optimization (Global within page-beginner-guide) */
.page-beginner-guide video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-beginner-guide__video-section, .page-beginner-guide__video-container, .page-beginner-guide__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-beginner-guide__hero-title {
    font-size: 2.2em;
  }

  .page-beginner-guide__hero-description {
    font-size: 1em;
  }

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

  .page-beginner-guide__btn-primary, .page-beginner-guide__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__hero-section, .page-beginner-guide__section, .page-beginner-guide__cta-section {
    padding: 40px 15px;
  }

  .page-beginner-guide__container {
    padding: 0 10px;
  }

  .page-beginner-guide__section-title, .page-beginner-guide__cta-title {
    font-size: 2em;
  }

  .page-beginner-guide__feature-grid, .page-beginner-guide__game-types-grid, .page-beginner-guide__step-by-step, .page-beginner-guide__two-column-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__card {
    padding: 20px;
  }

  .page-beginner-guide__feature-title, .page-beginner-guide__game-title {
    font-size: 1.3em;
  }

  .page-beginner-guide__step-number {
    font-size: 2em;
  }

  .page-beginner-guide__step-title {
    font-size: 1.5em;
  }

  .page-beginner-guide__sub-title {
    font-size: 1.8em;
  }

  .page-beginner-guide__bullet-list li {
    font-size: 0.95em;
  }

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

  .page-beginner-guide__faq-title {
    font-size: 1.1em;
  }

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

  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__video-section,
  .page-beginner-guide__video-container,
  .page-beginner-guide__video-wrapper,
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-beginner-guide__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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