.page-newbie-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, will be overridden by specific sections */
  background-color: var(--background); /* Default background color from custom colors */
}

/* Hero Section */
.page-newbie-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px; /* Padding below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green); /* Example background for hero */
  color: var(--text-main);
  overflow: hidden; /* Ensure no overflow from image */
}

.page-newbie-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
  margin-bottom: 20px; /* Space between image and text */
}

.page-newbie-guide__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-newbie-guide__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Gold color for main title */
  letter-spacing: 1px;
}

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

.page-newbie-guide__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button container width */
  margin: 0 auto;
}

.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

.page-newbie-guide__btn-secondary:hover {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 15px var(--gold);
}

/* General Section Styles */
.page-newbie-guide__section {
  padding: 60px 0;
  background-color: var(--background); /* Default background */
  color: var(--text-main);
}

.page-newbie-guide__section:nth-of-type(even) {
  background-color: var(--card-bg); /* Alternate background for contrast */
}

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

.page-newbie-guide__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

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

.page-newbie-guide__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Steps Section */
.page-newbie-guide__steps {
  background-color: var(--background);
}

.page-newbie-guide__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  text-align: center;
}

.page-newbie-guide__step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-newbie-guide__step-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

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

/* Deposit/Withdraw Section */
.page-newbie-guide__deposit-withdraw {
  background-color: var(--card-bg);
}

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

.page-newbie-guide__card {
  background-color: var(--deep-green);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--divider);
}

.page-newbie-guide__card-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-newbie-guide__card-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

/* Games Section */
.page-newbie-guide__games {
  background-color: var(--background);
}

.page-newbie-guide__game-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  text-align: center;
}

.page-newbie-guide__game-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-newbie-guide__game-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.page-newbie-guide__game-title a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-newbie-guide__game-title a:hover {
  color: var(--glow);
  text-decoration: underline;
}

/* Promotions Section */
.page-newbie-guide__promotions {
  background-color: var(--card-bg);
}

.page-newbie-guide__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-newbie-guide__promo-item {
  background-color: var(--deep-green);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider);
}

.page-newbie-guide__promo-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

/* Security & Support Section */
.page-newbie-guide__security-support {
  background-color: var(--background);
}

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

.page-newbie-guide__feature-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  border: 1px solid var(--divider);
}

.page-newbie-guide__feature-icon {
  width: 200px; /* Fixed width for icon-like images, but large */
  height: 200px; /* Fixed height */
  object-fit: contain; /* Contain within bounds */
  margin: 0 auto 20px auto; /* Center it */
}

.page-newbie-guide__feature-title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-newbie-guide__faq {
  background-color: var(--card-bg);
}

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

.page-newbie-guide__faq-item {
  background-color: var(--deep-green);
  border: 1px solid var(--divider);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  user-select: none;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-newbie-guide__faq-question:hover {
  background-color: var(--deep-green); /* Slightly darker on hover */
}

.page-newbie-guide__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-left: 15px;
}

.page-newbie-guide__faq-item[open] .page-newbie-guide__faq-question {
  background-color: var(--deep-green);
}

.page-newbie-guide__faq-item[open] .page-newbie-guide__faq-toggle {
  color: var(--gold);
}

.page-newbie-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-newbie-guide__faq-item details > summary {
  list-style: none;
}

.page-newbie-guide__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* Call to Action Section */
.page-newbie-guide__call-to-action {
  text-align: center;
  background-color: var(--background);
  padding-bottom: 80px;
}

.page-newbie-guide__call-to-action .page-newbie-guide__section-title {
  margin-bottom: 20px;
}

.page-newbie-guide__call-to-action .page-newbie-guide__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Links within text */
.page-newbie-guide__text-block a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-newbie-guide__text-block a:hover {
  color: var(--glow);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-newbie-guide__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-newbie-guide__hero-section {
    padding-bottom: 40px;
  }
  .page-newbie-guide__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .page-newbie-guide__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-newbie-guide__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-newbie-guide__text-block {
    font-size: 1rem;
  }
  .page-newbie-guide__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
  }
  .page-newbie-guide__btn-primary,
  .page-newbie-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 20px;
  }

  /* Images responsive */
  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-newbie-guide video,
  .page-newbie-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container for images/videos */
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__container,
  .page-newbie-guide__video-section,
  .page-newbie-guide__video-container,
  .page-newbie-guide__video-wrapper,
  .page-newbie-guide__cta-buttons,
  .page-newbie-guide__button-group,
  .page-newbie-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-newbie-guide__video-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-newbie-guide__feature-icon {
    min-width: 150px; /* Adjust min-width for mobile for better fit, still > 200px if possible, but context matters */
    min-height: 150px;
    width: 100%; /* Ensure it scales within its container */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-newbie-guide__hero-section {
    padding-bottom: 30px;
  }
  .page-newbie-guide__section {
    padding: 40px 0;
  }
  .page-newbie-guide__main-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
  .page-newbie-guide__hero-description {
    font-size: 0.9rem;
  }
  .page-newbie-guide__section-title {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }
  .page-newbie-guide__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-newbie-guide__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Ensure images in content areas are not tiny */
.page-newbie-guide__step-image,
.page-newbie-guide__card-image,
.page-newbie-guide__game-image,
.page-newbie-guide__feature-icon {
  min-width: 200px;
  min-height: 200px;
}
.page-newbie-guide__feature-icon { /* Specific override to ensure it's not tiny */
    width: 200px; /* Fixed width for icon-like images, but large */
    height: 200px; /* Fixed height */
    object-fit: contain; /* Contain within bounds */
    margin: 0 auto 20px auto; /* Center it */
}

/* Color contrast fixes */
.page-newbie-guide {
  color: var(--text-main); /* Fallback for general text on dark background */
}
.page-newbie-guide__text-block {
  color: var(--text-secondary); /* Secondary text on dark background */
}
.page-newbie-guide__faq-item {
  background-color: var(--deep-green); /* Dark background */
  color: var(--text-main); /* Light text */
}
.page-newbie-guide__faq-question {
  color: var(--text-main);
}
.page-newbie-guide__faq-answer {
  color: var(--text-secondary);
}
.page-newbie-guide__card {
  background-color: var(--deep-green); /* Dark background */
  color: var(--text-main); /* Light text */
}
.page-newbie-guide__feature-card {
  background-color: var(--card-bg); /* Dark background */
  color: var(--text-main); /* Light text */
}