.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark background */
  background-color: var(--primary-color); /* Inherit from shared.css, expected to be dark */
}

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

.page-beginner-guide__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust padding-top for header offset */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-beginner-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-beginner-guide__cta-buttons {
  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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: #FFD700;
  color: #0A1931;
  border: 2px solid #FFD700;
}

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

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

.page-beginner-guide__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

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

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

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

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

.page-beginner-guide__introduction .page-beginner-guide__text-block,
.page-beginner-guide__registration-guide .page-beginner-guide__text-block,
.page-beginner-guide__deposit-guide .page-beginner-guide__text-block,
.page-beginner-guide__withdrawal-guide .page-beginner-guide__text-block,
.page-beginner-guide__tips-strategies .page-beginner-guide__text-block,
.page-beginner-guide__customer-support .page-beginner-guide__text-block,
.page-beginner-guide__conclusion .page-beginner-guide__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-beginner-guide__light-bg .page-beginner-guide__benefit-card,
.page-beginner-guide__light-bg .page-beginner-guide__game-card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-beginner-guide__benefit-card:hover,
.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-beginner-guide__light-bg .page-beginner-guide__benefit-card:hover,
.page-beginner-guide__light-bg .page-beginner-guide__game-card:hover {
  background-color: #f0f0f0;
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

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

.page-beginner-guide__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-beginner-guide__steps-list {
  list-style: decimal;
  padding-left: 25px;
  max-width: 900px;
  margin: 30px auto;
  font-size: 1.1em;
}

.page-beginner-guide__steps-list li {
  margin-bottom: 15px;
}

.page-beginner-guide__steps-list strong {
  color: #FFD700;
}

.page-beginner-guide__light-bg .page-beginner-guide__steps-list strong {
  color: #0A1931;
}

.page-beginner-guide__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-beginner-guide__btn-text-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-beginner-guide__btn-text-link:hover {
  text-decoration: underline;
}

.page-beginner-guide__tips-list,
.page-beginner-guide__support-channels {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 30px auto;
  font-size: 1.1em;
}

.page-beginner-guide__tips-list li,
.page-beginner-guide__support-channels li {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #FFD700;
}

.page-beginner-guide__light-bg .page-beginner-guide__tips-list li,
.page-beginner-guide__light-bg .page-beginner-guide__support-channels li {
  background-color: #f0f0f0;
  color: #333333;
  border-left-color: #0A1931;
}

.page-beginner-guide__tips-list strong,
.page-beginner-guide__support-channels strong {
  color: #FFD700;
}

.page-beginner-guide__light-bg .page-beginner-guide__tips-list strong,
.page-beginner-guide__light-bg .page-beginner-guide__support-channels strong {
  color: #0A1931;
}

.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-beginner-guide__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

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

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

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.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 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

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

.page-beginner-guide__faq-answer a {
  color: #0A1931;
  text-decoration: underline;
}

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

  .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__container {
    padding: 0 15px;
  }

  .page-beginner-guide__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
  }

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

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

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

  .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__benefits-grid,
  .page-beginner-guide__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__benefit-card,
  .page-beginner-guide__game-card {
    padding: 20px;
  }

  .page-beginner-guide__card-title {
    font-size: 1.3em;
  }

  .page-beginner-guide__steps-list,
  .page-beginner-guide__tips-list,
  .page-beginner-guide__support-channels {
    padding-left: 20px;
    margin: 20px auto;
  }

  .page-beginner-guide__steps-list li,
  .page-beginner-guide__tips-list li,
  .page-beginner-guide__support-channels li {
    padding: 12px 15px;
  }

  .page-beginner-guide__content-image {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

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

  /* Ensure all sections and containers handle overflow for mobile */
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__hero-section,
  .page-beginner-guide__introduction,
  .page-beginner-guide__benefits,
  .page-beginner-guide__registration-guide,
  .page-beginner-guide__deposit-guide,
  .page-beginner-guide__withdrawal-guide,
  .page-beginner-guide__popular-games,
  .page-beginner-guide__tips-strategies,
  .page-beginner-guide__customer-support,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

@media (max-width: 480px) {
  .page-beginner-guide__hero-title {
    font-size: 1.8em;
  }

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

  .page-beginner-guide__hero-section {
    padding: var(--header-offset, 120px) 10px 30px;
  }
}