:root {
  --primary-color: #11A84E; /* Main color */
  --secondary-color: #22C768; /* Auxiliary color */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  --card-bg: #11271B; /* Card Background */
  --background: #08160F; /* Section Background */
  --text-main: #F2FFF6; /* Main Text Color */
  --text-secondary: #A7D9B8; /* Secondary Text Color */
  --border-color: #2E7A4E; /* Border Color */
  --glow-color: #57E38D; /* Glow Color */
  --gold: #F2C14E; /* Gold Color */
  --divider: #1E3A2A; /* Divider Color */
  --deep-green: #0A4B2C; /* Deep Green */

  /* RGB variants for opacity adjustments if needed */
  --primary-color-rgb: 17, 168, 78;
  --secondary-color-rgb: 34, 199, 104;
  --card-bg-rgb: 17, 39, 27;
  --background-rgb: 8, 22, 15;
  --deep-green-rgb: 10, 75, 44;
}

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color from palette */
  background-color: var(--background); /* From shared.css */
  line-height: 1.6;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  z-index: 1; /* Ensure image is behind content if needed, but not overlaying text */
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for better text contrast if text was overlayed, but text is below */
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: -150px auto 0 auto; /* Pull content up over the image, but still below */
  padding: 40px 20px;
  background-color: var(--card-bg); /* Use card background for content block */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px); /* Adjust to make it float slightly */
  margin-top: -100px; /* Adjust to place content below image but still visually connected */
}

.page-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--gold); /* Use gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
}

.page-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(242, 193, 78, 0.1); /* Slight gold background on hover */
}

/* General Section Styling */
.page-beginner-guide__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-beginner-guide__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-beginner-guide__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
}

.page-beginner-guide__content-block {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.page-beginner-guide__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-beginner-guide__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element for margin auto */
  margin-left: auto;
  margin-right: auto;
}

/* Why Choose Section */
.page-beginner-guide__why-choose {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-beginner-guide__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-beginner-guide__list-item {
  background-color: var(--deep-green);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__feature-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-beginner-guide__feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Getting Started Section */
.page-beginner-guide__getting-started {
  background-color: var(--background);
}

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

.page-beginner-guide__step-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-beginner-guide__step-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take available space */
}

.page-beginner-guide__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__btn-full-width {
  width: 100%;
  max-width: 350px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Popular Games Section */
.page-beginner-guide__popular-games {
  background-color: var(--background); /* Use the main background */
}

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

.page-beginner-guide__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-beginner-guide__game-title {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 10px;
  padding: 0 15px;
  flex-grow: 1;
}

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

.page-beginner-guide__game-title a:hover {
  color: #F2C14E; /* Slightly lighter gold on hover */
}

.page-beginner-guide__game-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-beginner-guide__game-card .page-beginner-guide__btn-secondary {
  margin: 0 auto;
  display: block;
  width: fit-content;
  min-width: unset;
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Promotions Section */
.page-beginner-guide__promotions {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-beginner-guide__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-beginner-guide__promo-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-beginner-guide__promo-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

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

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

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

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

.page-beginner-guide__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-item summary:hover {
  background-color: rgba(var(--deep-green-rgb), 0.8); /* Slightly darker on hover */
}

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

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

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

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-beginner-guide__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: left;
}

/* Final CTA Section */
.page-beginner-guide__final-cta {
  padding-bottom: 80px;
}

.page-beginner-guide__btn-large {
  padding: 16px 35px;
  font-size: 1.2rem;
  min-width: 220px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-beginner-guide__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
    transform: translateY(-30px);
    max-width: 90%;
  }

  .page-beginner-guide__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-beginner-guide__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide__btn-full-width,
  .page-beginner-guide__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__section {
    padding: 40px 15px;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-beginner-guide__feature-list,
  .page-beginner-guide__step-by-step,
  .page-beginner-guide__game-grid,
  .page-beginner-guide__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-beginner-guide__why-choose,
  .page-beginner-guide__promotions {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .page-beginner-guide__game-card {
    padding-bottom: 15px;
  }

  .page-beginner-guide__game-image {
    height: 180px;
  }

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

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

  .page-beginner-guide__faq-toggle {
    font-size: 1.2rem;
  }

  .page-beginner-guide__final-cta {
    padding-bottom: 50px;
  }
  
  .page-beginner-guide__section,
  .page-beginner-guide__content-block,
  .page-beginner-guide__card,
  .page-beginner-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__main-title {
    font-size: 1.7rem;
  }
  .page-beginner-guide__section-title {
    font-size: 1.5rem;
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide__btn-full-width,
  .page-beginner-guide__btn-large {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* --- Color Palette Integration --- */
/* Apply background and text colors to main sections */
.page-beginner-guide {
  background-color: var(--background);
  color: var(--text-main);
}

.page-beginner-guide__section:nth-child(even) { /* Alternate section backgrounds */
  background-color: var(--card-bg);
}

.page-beginner-guide__hero-content,
.page-beginner-guide__why-choose,
.page-beginner-guide__step-card,
.page-beginner-guide__game-card,
.page-beginner-guide__promotions,
.page-beginner-guide__faq-item {
  background-color: var(--card-bg);
}

.page-beginner-guide__feature-list .page-beginner-guide__list-item,
.page-beginner-guide__faq-item summary {
  background-color: var(--deep-green);
}

/* Text colors */
.page-beginner-guide__main-title,
.page-beginner-guide__section-title,
.page-beginner-guide__feature-title,
.page-beginner-guide__step-title,
.page-beginner-guide__game-title a,
.page-beginner-guide__promo-title,
.page-beginner-guide__faq-qtext {
  color: var(--gold);
}

.page-beginner-guide__description,
.page-beginner-guide__text-block,
.page-beginner-guide__feature-description,
.page-beginner-guide__step-description,
.page-beginner-guide__game-description,
.page-beginner-guide__promo-description,
.page-beginner-guide__faq-answer {
  color: var(--text-secondary);
}

/* Buttons */
.page-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for primary button */
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.page-beginner-guide__section-title::after {
  background-color: var(--gold);
}

.page-beginner-guide__faq-toggle {
  color: var(--gold);
}

.page-beginner-guide__faq-item {
  border-color: var(--divider);
}

.page-beginner-guide__faq-item summary {
  border-color: var(--divider);
}

/* Ensure no filter on images */
.page-beginner-guide img {
  filter: none;
}