.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg);
}

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

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding for hero section */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  height: auto;
  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: var(--card-bg);
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  position: relative;
  z-index: 1;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.page-beginner-guide__main-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.page-beginner-guide__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

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

.page-beginner-guide__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-beginner-guide__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow);
}

.page-beginner-guide__btn-secondary {
  background: var(--card-bg);
  color: var(--gold);
  border: 2px solid var(--gold);
}

.page-beginner-guide__btn-secondary:hover {
  background: var(--gold);
  color: var(--card-bg);
  box-shadow: 0 0 15px var(--glow);
}

.page-beginner-guide__full-width-btn {
  width: 100%;
  max-width: 350px;
  margin: 15px auto;
}

.page-beginner-guide__section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
  line-height: 1.3;
}

.page-beginner-guide__sub-section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid var(--gold);
  padding-left: 15px;
}

.page-beginner-guide__paragraph {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: justify;
}

.page-beginner-guide__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-beginner-guide__list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-beginner-guide__list li strong {
  color: var(--text-main);
}

.page-beginner-guide__step-by-step {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-beginner-guide__step-item {
  flex: 1 1 calc(50% - 15px);
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider);
}

.page-beginner-guide__step-title {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-beginner-guide__step-list {
  list-style: decimal;
  margin-left: 20px;
  color: var(--text-secondary);
}

.page-beginner-guide__step-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.page-beginner-guide__game-category {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--divider);
}

.page-beginner-guide__game-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--deep-green);
  padding-bottom: 5px;
}

.page-beginner-guide__image-container {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

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

.page-beginner-guide__faq-section {
  padding: 40px 0;
}

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

.page-beginner-guide__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  overflow: hidden;
}

.page-beginner-guide__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
  font-size: 1.1rem;
  list-style: none; /* Remove default marker */
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-beginner-guide__faq-item summary:hover {
  background-color: var(--deep-green);
}

.page-beginner-guide__faq-qtext {
  flex-grow: 1;
}

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

.page-beginner-guide__faq-answer {
  padding: 15px 25px 20px;
  color: var(--text-secondary);
  background-color: var(--bg);
  border-top: 1px solid var(--divider);
}

/* Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* General Section Spacing */
.page-beginner-guide__introduction-section,
.page-beginner-guide__download-section,
.page-beginner-guide__registration-section,
.page-beginner-guide__deposit-withdraw-section,
.page-beginner-guide__games-section,
.page-beginner-guide__promotions-section,
.page-beginner-guide__safety-support-section,
.page-beginner-guide__conclusion-section {
  padding: 60px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-beginner-guide__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }

  .page-beginner-guide__main-title {
    font-size: 2rem;
  }

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

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__step-item {
    flex: 1 1 100%;
  }

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

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

  .page-beginner-guide__paragraph,
  .page-beginner-guide__list li,
  .page-beginner-guide__step-list li,
  .page-beginner-guide__faq-answer p {
    font-size: 0.9rem;
  }

  .page-beginner-guide__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-beginner-guide__container,
  .page-beginner-guide__hero-section,
  .page-beginner-guide__download-section,
  .page-beginner-guide__registration-section,
  .page-beginner-guide__deposit-withdraw-section,
  .page-beginner-guide__games-section,
  .page-beginner-guide__promotions-section,
  .page-beginner-guide__safety-support-section,
  .page-beginner-guide__conclusion-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__image-container,
  .page-beginner-guide__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-beginner-guide__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

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