.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #26A9E0 0%, #1A7BB0 100%);
  overflow: hidden;
  color: #FFFFFF;
}

.page-beginner-guide__hero-content {
  max-width: 900px;
  z-index: 10;
}

.page-beginner-guide__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-beginner-guide__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-beginner-guide__btn-primary:hover {
  background-color: #D36C05;
  border-color: #D36C05;
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-beginner-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-beginner-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #000000; /* Explicitly dark background for content */
  color: #ffffff; /* Light text for contrast */
}

.page-beginner-guide__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  border-bottom: 3px solid #1A7BB0;
  padding-bottom: 15px;
  margin-top: 60px;
}

.page-beginner-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.8;
  text-align: justify;
}

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

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

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

.page-beginner-guide__step-image,
.page-beginner-guide__game-image,
.page-beginner-guide__app-image,
.page-beginner-guide__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-beginner-guide__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-beginner-guide__cta-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-beginner-guide__bullet-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-beginner-guide__bullet-list li {
  margin-bottom: 10px;
}

.page-beginner-guide__list-highlight {
  color: #26A9E0;
}

.page-beginner-guide__image-full-width {
  margin: 40px 0;
  text-align: center;
}

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

.page-beginner-guide__game-card {
  text-align: center;
}

.page-beginner-guide__game-title {
  font-size: 1.4em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-beginner-guide__game-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-beginner-guide__game-title a:hover {
  color: #1A7BB0;
  text-decoration: underline;
}

.page-beginner-guide__app-download {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-beginner-guide__app-image {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.page-beginner-guide__app-info {
  flex-grow: 1;
}

.page-beginner-guide__app-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-beginner-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto 60px;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 15px; /* Inner padding for the card effect */
  box-sizing: border-box;
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}

.page-beginner-guide__video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #cccccc;
  position: relative; /* Ensure caption is above the video wrapper's overflow */
  z-index: 2;
  padding-top: calc(56.25% + 25px); /* Adjust based on video height + padding */
}

.page-beginner-guide__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

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

.page-beginner-guide__faq-heading {
  margin: 0;
  color: #FFFFFF;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07;
}

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
}

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

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

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

  .page-beginner-guide__app-download {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .page-beginner-guide__app-image {
    width: 200px;
    height: 200px;
  }
}

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

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

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

  .page-beginner-guide__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-beginner-guide__content-area {
    padding: 40px 15px;
  }

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

  .page-beginner-guide__text-block {
    font-size: 1em;
    text-align: left;
  }

  .page-beginner-guide__steps-grid,
  .page-beginner-guide__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-beginner-guide__app-download {
    padding: 20px;
  }
  
  .page-beginner-guide__app-image {
    width: 150px;
    height: 150px;
  }

  .page-beginner-guide__app-title {
    font-size: 1.6em;
  }

  .page-beginner-guide__video-wrapper {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-beginner-guide__video-caption {
    padding-top: calc(56.25% + 15px); /* Adjusted for mobile */
  }

  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    position: static;
    transform: none;
    border-radius: 0;
  }

  .page-beginner-guide__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all content area images are responsive */
  .page-beginner-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images/videos/buttons */
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .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 and padding-right should be added by parent containers if needed, not directly on elements that might be full width */
  }

  .page-beginner-guide__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-beginner-guide__dark-bg {
  color: #ffffff; /* Deep blue background with white text */
  background: #26A9E0;
}

.page-beginner-guide__light-bg {
  color: #ffffff; /* Black background with white text */
  background: #000000;
}

.page-beginner-guide__card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-beginner-guide p,
.page-beginner-guide li,
.page-beginner-guide h3 {
  color: #ffffff;
}

.page-beginner-guide__section-title {
  color: #26A9E0;
}

.page-beginner-guide__faq-toggle {
  color: #26A9E0;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
  color: #EA7C07;
}

.page-beginner-guide__game-title a {
  color: #26A9E0;
}

.page-beginner-guide__game-title a:hover {
  color: #1A7BB0;
}

.page-beginner-guide__app-title {
  color: #26A9E0;
}