.page-beginner-guide {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --bg-dark: #0A0A0A;
  --card-bg: #111111;
  --text-light: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-beginner-guide__hero-section {
  padding-top: 10px; /* Rely on body padding-top for header offset, this is for slight top margin */
  position: relative;
  color: var(--text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic reasons */
  overflow: hidden;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-beginner-guide__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-beginner-guide__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
}

.page-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: var(--text-light);
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-beginner-guide__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-beginner-guide__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-beginner-guide__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.page-beginner-guide__section {
  padding: 60px 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-beginner-guide__section:nth-of-type(even) {
  background: var(--card-bg);
}

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

.page-beginner-guide__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-beginner-guide__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-beginner-guide__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__feature-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
}

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

.page-beginner-guide__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-beginner-guide__feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

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

.page-beginner-guide__step-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-beginner-guide__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--bg-dark);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-beginner-guide__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-beginner-guide__step-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

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

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

.page-beginner-guide__method-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
}

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

.page-beginner-guide__method-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-beginner-guide__method-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

.page-beginner-guide__withdrawal-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.page-beginner-guide__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}

.page-beginner-guide__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--bg-dark);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.page-beginner-guide__step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 8px;
}

.page-beginner-guide__step-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

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

.page-beginner-guide__game-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
}

.page-beginner-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-beginner-guide__game-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 15px 20px 5px;
  margin: 0;
}

.page-beginner-guide__game-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  margin: 0;
}

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

.page-beginner-guide__tip-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
}

.page-beginner-guide__tip-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-beginner-guide__tip-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

.page-beginner-guide__app-download-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-beginner-guide__app-showcase {
  text-align: center;
  margin-top: 40px;
}

.page-beginner-guide__app-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Styles */
details.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}
details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question::-webkit-details-marker {
  display: none;
}
details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}
.page-beginner-guide__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-beginner-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter dark background for answer */
  border-radius: 0 0 10px 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* General image and container responsive styles */
.page-beginner-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-beginner-guide__section,
.page-beginner-guide__container,
.page-beginner-guide__card,
.page-beginner-guide__feature-item,
.page-beginner-guide__step-item,
.page-beginner-guide__method-card,
.page-beginner-guide__game-card,
.page-beginner-guide__tip-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-content {
    max-width: 80%;
    padding: 15px;
  }
  .page-beginner-guide__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .page-beginner-guide__description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 160px;
  }
  .page-beginner-guide__section {
    padding: 50px 0;
  }
  .page-beginner-guide__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }
  .page-beginner-guide__text-block {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* HERO section mobile */
  .page-beginner-guide__hero-section {
    padding-top: 10px; /* Small top padding on mobile */
  }
  .page-beginner-guide__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    max-height: 400px; /* Adjust max-height for mobile hero image */
  }
  .page-beginner-guide__hero-content {
    position: static;
    transform: none;
    width: 100%;
    padding: 20px 15px;
    background: var(--bg-dark); /* Solid background on mobile to avoid text over image */
    border-radius: 0;
    text-align: left;
  }
  .page-beginner-guide__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    text-align: left;
    margin-bottom: 10px;
  }
  .page-beginner-guide__description {
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 20px;
  }
  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }
  
  /* General section spacing */
  .page-beginner-guide__section {
    padding: 40px 0;
  }
  .page-beginner-guide__container {
    padding: 0 15px;
  }
  .page-beginner-guide__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-beginner-guide__text-block {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Feature Grid / Steps Grid / Method Cards / Tips Grid */
  .page-beginner-guide__feature-grid,
  .page-beginner-guide__steps-grid,
  .page-beginner-guide__method-cards,
  .page-beginner-guide__game-categories,
  .page-beginner-guide__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Card/Item specific mobile adjustments */
  .page-beginner-guide__feature-item,
  .page-beginner-guide__step-item,
  .page-beginner-guide__method-card,
  .page-beginner-guide__tip-item {
    padding: 20px;
  }
  .page-beginner-guide__feature-image,
  .page-beginner-guide__method-image {
    max-width: 180px;
    margin-bottom: 15px;
  }
  .page-beginner-guide__feature-title,
  .page-beginner-guide__method-title,
  .page-beginner-guide__step-title,
  .page-beginner-guide__tip-title {
    font-size: 1.2rem;
  }
  .page-beginner-guide__feature-item p,
  .page-beginner-guide__step-item p,
  .page-beginner-guide__method-card p,
  .page-beginner-guide__tip-item p {
    font-size: 0.9rem;
  }

  /* Withdrawal Steps */
  .page-beginner-guide__withdrawal-steps {
    gap: 15px;
  }
  .page-beginner-guide__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  .page-beginner-guide__step-icon {
    margin-bottom: 10px;
  }
  .page-beginner-guide__step-content h3 {
    font-size: 1.1rem;
  }

  /* Game Categories */
  .page-beginner-guide__game-image {
    height: 180px;
  }
  .page-beginner-guide__game-card h3 {
    font-size: 1.2rem;
    padding: 10px 15px 5px;
  }
  .page-beginner-guide__game-card p {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  /* App Download */
  .page-beginner-guide__app-download-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-beginner-guide__app-image {
    max-width: 90%;
    border-radius: 10px;
  }

  /* FAQ */
  details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
    padding: 15px;
    font-size: 1rem;
  }
  .page-beginner-guide__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  /* Mobile content area overflow prevention */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-beginner-guide__section,
  .page-beginner-guide__container,
  .page-beginner-guide__card,
  .page-beginner-guide__feature-item,
  .page-beginner-guide__step-item,
  .page-beginner-guide__method-card,
  .page-beginner-guide__game-card,
  .page-beginner-guide__tip-item,
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__app-download-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
}