.page-newbie-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Default to white if variable not set */
}

.page-newbie-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); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand main color */
  color: #FFFFFF;
  overflow: hidden;
}

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

.page-newbie-guide__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register and Login font color */
}

.page-newbie-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-newbie-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-newbie-guide__btn-primary,
.page-newbie-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-newbie-guide__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-newbie-guide__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

.page-newbie-guide__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

.page-newbie-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-newbie-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: brightness(0.8); /* Allow brightness filter for background image only */
}

.page-newbie-guide__section {
  padding: 60px 20px;
}

.page-newbie-guide__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-newbie-guide__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-newbie-guide__light-bg .page-newbie-guide__section-title {
  color: #017439;
}

.page-newbie-guide__dark-bg .page-newbie-guide__section-title {
  color: #FFFF00;
}

.page-newbie-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-newbie-guide__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

.page-newbie-guide__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.page-newbie-guide__dark-bg .page-newbie-guide__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-newbie-guide__dark-bg .page-newbie-guide__card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-newbie-guide__feature-icon,
.page-newbie-guide__game-image,
.page-newbie-guide__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.page-newbie-guide__feature-title,
.page-newbie-guide__game-title,
.page-newbie-guide__promo-title,
.page-newbie-guide__step-title,
.page-newbie-guide__content-subtitle {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-newbie-guide__dark-bg .page-newbie-guide__feature-title,
.page-newbie-guide__dark-bg .page-newbie-guide__game-title,
.page-newbie-guide__dark-bg .page-newbie-guide__promo-title,
.page-newbie-guide__dark-bg .page-newbie-guide__step-title,
.page-newbie-guide__dark-bg .page-newbie-guide__content-subtitle {
  color: #FFFF00;
}

.page-newbie-guide__feature-description,
.page-newbie-guide__game-description,
.page-newbie-guide__promo-description {
  font-size: 1em;
  color: #666666;
}

.page-newbie-guide__dark-bg .page-newbie-guide__feature-description,
.page-newbie-guide__dark-bg .page-newbie-guide__game-description,
.page-newbie-guide__dark-bg .page-newbie-guide__promo-description {
  color: #e0e0e0;
}

.page-newbie-guide__step-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-newbie-guide__step-item {
  text-align: left;
  padding: 25px;
}

.page-newbie-guide__step-item p {
  color: #666666;
}

.page-newbie-guide__dark-bg .page-newbie-guide__step-item p {
  color: #e0e0e0;
}

.page-newbie-guide__text-link {
  color: #C30808;
  text-decoration: underline;
  font-weight: bold;
}

.page-newbie-guide__text-link:hover {
  color: #e02020;
}

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

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

.page-newbie-guide__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #666666;
}

.page-newbie-guide__dark-bg .page-newbie-guide__list {
  color: #e0e0e0;
}

.page-newbie-guide__list li {
  margin-bottom: 8px;
}

.page-newbie-guide__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

.page-newbie-guide__game-card {
  text-align: left;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-newbie-guide__game-card:hover {
  text-decoration: none;
}

.page-newbie-guide__game-card .page-newbie-guide__game-description {
  flex-grow: 1;
}

.page-newbie-guide__promo-card .page-newbie-guide__btn-secondary {
  margin-top: 20px;
}

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

.page-newbie-guide__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  padding: 0;
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-question {
  background-color: #e0e0e0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-newbie-guide__dark-bg .page-newbie-guide__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-newbie-guide__dark-bg .page-newbie-guide__faq-item.active .page-newbie-guide__faq-question {
  background-color: rgba(255, 255, 255, 0.25);
}

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

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

.page-newbie-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

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

.page-newbie-guide__dark-bg .page-newbie-guide__faq-answer {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

.page-newbie-guide__app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-newbie-guide__app-info {
  text-align: center;
}

.page-newbie-guide__qr-code {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  border: 5px solid #017439;
  border-radius: 8px;
}

.page-newbie-guide__app-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-newbie-guide__hero-section {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 100px 40px;
    padding-top: var(--header-offset, 120px);
  }

  .page-newbie-guide__hero-content {
    text-align: left;
    max-width: 50%;
  }

  .page-newbie-guide__hero-title {
    font-size: 3.5em;
  }

  .page-newbie-guide__hero-description {
    font-size: 1.3em;
  }

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

  .page-newbie-guide__app-download {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .page-newbie-guide__app-info {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-newbie-guide__hero-title {
    font-size: 2em;
  }

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

  .page-newbie-guide__section-title {
    font-size: 1.8em;
  }

  .page-newbie-guide__btn-primary,
  .page-newbie-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    margin-bottom: 10px; /* Add space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-newbie-guide__cta-buttons,
  .page-newbie-guide__cta-center {
    flex-direction: column;
    gap: 10px;
  }

  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__container,
  .page-newbie-guide__hero-section,
  .page-newbie-guide__app-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-newbie-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-newbie-guide__qr-code {
    width: 150px;
    height: 150px;
  }

  .page-newbie-guide__app-download {
    flex-direction: column;
    gap: 20px;
  }

  .page-newbie-guide__app-info {
    padding-left: 0;
    padding-right: 0;
  }

  .page-newbie-guide__feature-grid,
  .page-newbie-guide__game-category-grid,
  .page-newbie-guide__promo-grid,
  .page-newbie-guide__step-list,
  .page-newbie-guide__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ensure all content area images are at least 200px wide for display, if not constrained by container */
  .page-newbie-guide__feature-icon,
  .page-newbie-guide__game-image,
  .page-newbie-guide__promo-image,
  .page-newbie-guide__content-image,
  .page-newbie-guide__app-screenshot {
    min-width: 200px;
    min-height: 150px; /* Adjust min-height as appropriate for aspect ratio */
  }

  .page-newbie-guide p,
  .page-newbie-guide li {
    font-size: 0.95em;
  }
}