.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text should be light */
  background-color: #1a1a2e;
}

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

.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

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

.page-beginner-guide__hero-content {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
  width: 100%;
  box-sizing: border-box;
}

.page-beginner-guide__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-beginner-guide__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-beginner-guide__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-beginner-guide__introduction-section,
.page-beginner-guide__registration-section,
.page-beginner-guide__deposit-withdrawal-section,
.page-beginner-guide__games-section,
.page-beginner-guide__tips-section,
.page-beginner-guide__support-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__conclusion-section {
  padding: 60px 0;
  text-align: left;
}

.page-beginner-guide__light-bg {
  background-color: #f0f2f5; /* Light background for contrast */
  color: #333333; /* Dark text on light background */
}

.page-beginner-guide__light-bg .page-beginner-guide__section-title,
.page-beginner-guide__light-bg .page-beginner-guide__sub-title {
  color: #26A9E0;
}

.page-beginner-guide__dark-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-beginner-guide__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-beginner-guide__content-grid.reverse-order {
  flex-direction: row-reverse;
}

.page-beginner-guide__text-block {
  flex: 1;
  min-width: 300px;
}

.page-beginner-guide__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-beginner-guide__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__numbered-list,
.page-beginner-guide__bullet-list,
.page-beginner-guide__strategy-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-beginner-guide__numbered-list li {
  counter-increment: list-counter;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-beginner-guide__numbered-list li::before {
  content: counter(list-counter) ". ";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #26A9E0;
}

.page-beginner-guide__bullet-list li,
.page-beginner-guide__strategy-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-beginner-guide__bullet-list li::before,
.page-beginner-guide__strategy-list li::before {
  content: "\2022"; /* Unicode for bullet point */
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

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

.page-beginner-guide__game-card {
  background-color: #1a1a2e; /* Dark background for cards */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-beginner-guide__light-bg .page-beginner-guide__game-card {
  background-color: #FFFFFF;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__game-card .page-beginner-guide__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-beginner-guide__game-card .page-beginner-guide__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #26A9E0;
}

.page-beginner-guide__game-card .page-beginner-guide__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-beginner-guide__game-card .page-beginner-guide__card-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-beginner-guide__game-card .page-beginner-guide__btn-secondary {
  display: inline-block;
  margin-top: auto;
}

.page-beginner-guide__view-all-games {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-beginner-guide__dark-section .page-beginner-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  color: #26A9E0;
  list-style: none; /* For details/summary */
}

.page-beginner-guide__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-beginner-guide__dark-section .page-beginner-guide__faq-question {
  color: #26A9E0;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

.page-beginner-guide__dark-section .page-beginner-guide__faq-answer {
  color: #e0e0e0;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer {
  padding-top: 10px;
}

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-beginner-guide__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-beginner-guide__light-bg .page-beginner-guide__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-beginner-guide__dark-section .page-beginner-guide__btn-secondary {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Special color for login/register type buttons if needed */
a[href*="login.html"].page-beginner-guide__btn-primary,
a[href*="register.html"].page-beginner-guide__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

a[href*="login.html"].page-beginner-guide__btn-primary:hover,
a[href*="register.html"].page-beginner-guide__btn-primary:hover {
  background-color: #d16e00;
  border-color: #d16e00;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-beginner-guide__content-grid {
    flex-direction: column;
  }
  .page-beginner-guide__content-grid.reverse-order {
    flex-direction: column;
  }
}

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

  .page-beginner-guide__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__hero-title {
    font-size: 2.2rem !important;
  }

  .page-beginner-guide__hero-description {
    font-size: 1rem !important;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8rem !important;
  }

  .page-beginner-guide__sub-title {
    font-size: 1.4rem !important;
  }

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
  }

  .page-beginner-guide__game-cards {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__game-card {
    margin-bottom: 20px;
  }

  .page-beginner-guide__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px;
  }

  .page-beginner-guide__faq-answer {
    font-size: 0.95rem !important;
    padding: 0 20px 15px;
  }

  /* Image responsive rules */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__hero-image-wrapper,
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__game-card .page-beginner-guide__card-image,
  .page-beginner-guide__content-grid,
  .page-beginner-guide__game-cards,
  .page-beginner-guide__game-card,
  .page-beginner-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-beginner-guide__hero-section {
    padding-top: 10px !important;
  }

  .page-beginner-guide__introduction-section,
  .page-beginner-guide__registration-section,
  .page-beginner-guide__deposit-withdrawal-section,
  .page-beginner-guide__games-section,
  .page-beginner-guide__tips-section,
  .page-beginner-guide__support-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__conclusion-section {
    padding: 40px 0;
  }
}