.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a0a; /* Dark background from body */
}

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

.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Adjust padding-top for header offset on desktop */
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-beginner-guide__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

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

.page-beginner-guide__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: auto;
  max-width: 800px; /* Limit image size */
  z-index: 0;
  opacity: 0.7;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 1;
}

.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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-beginner-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-beginner-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-beginner-guide__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-beginner-guide__introduction-section .page-beginner-guide__section-title,
.page-beginner-guide__faq-section .page-beginner-guide__section-title,
.page-beginner-guide__tips-section .page-beginner-guide__section-title {
  color: #017439;
}

.page-beginner-guide__steps-grid,
.page-beginner-guide__games-grid,
.page-beginner-guide__promotions-grid,
.page-beginner-guide__support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-beginner-guide__step-card,
.page-beginner-guide__game-card,
.page-beginner-guide__promotion-card,
.page-beginner-guide__support-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-beginner-guide__light-bg .page-beginner-guide__step-card,
.page-beginner-guide__light-bg .page-beginner-guide__game-card,
.page-beginner-guide__light-bg .page-beginner-guide__promotion-card,
.page-beginner-guide__light-bg .page-beginner-guide__support-card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-beginner-guide__light-bg .page-beginner-guide__card-title {
  color: #017439;
}

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

.page-beginner-guide__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

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

.page-beginner-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-beginner-guide__light-bg .page-beginner-guide__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-beginner-guide__light-bg .page-beginner-guide__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-beginner-guide__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-beginner-guide__tip-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
}

.page-beginner-guide__tip-item strong {
  color: #017439;
}

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

.page-beginner-guide__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
  background-color: #005a2e;
}

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

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-question {
  background-color: #005a2e;
}

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

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

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

.page-beginner-guide__faq-answer p {
  margin-bottom: 0;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-beginner-guide__final-cta {
  margin-top: 40px;
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-beginner-guide__hero-section {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 100px 20px 60px; /* Reset for desktop */
    padding-top: var(--header-offset, 120px);
  }

  .page-beginner-guide__hero-content {
    text-align: left;
    max-width: 50%;
    padding-right: 40px;
  }

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

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

  .page-beginner-guide__hero-image-wrapper {
    position: relative;
    width: 50%;
    bottom: auto;
    right: auto;
    opacity: 1;
  }

  .page-beginner-guide__cta-buttons {
    justify-content: flex-start;
  }

  .page-beginner-guide__steps-grid,
  .page-beginner-guide__games-grid,
  .page-beginner-guide__promotions-grid,
  .page-beginner-guide__support-cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 1024px) {
  .page-beginner-guide__hero-title {
    font-size: 2.8em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1.1em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-beginner-guide__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    flex-direction: column;
    text-align: center;
  }

  .page-beginner-guide__hero-content {
    max-width: 100%;
    padding-right: 0;
  }

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

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

  .page-beginner-guide__hero-image-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    opacity: 1;
  }

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-beginner-guide__steps-grid,
  .page-beginner-guide__games-grid,
  .page-beginner-guide__promotions-grid,
  .page-beginner-guide__support-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__step-card,
  .page-beginner-guide__game-card,
  .page-beginner-guide__promotion-card,
  .page-beginner-guide__support-card {
    padding: 20px;
  }

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

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

  .page-beginner-guide__tip-item {
    font-size: 1em;
    padding: 15px;
  }

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

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

  .page-beginner-guide__faq-answer p {
    font-size: 0.95em;
  }

  /* Ensure all images are responsive in content areas */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/content to prevent overflow */
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__hero-image-wrapper,
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__steps-grid,
  .page-beginner-guide__games-grid,
  .page-beginner-guide__promotions-grid,
  .page-beginner-guide__support-cards,
  .page-beginner-guide__support-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
}