/* style/beginner-guide.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-background: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

.page-beginner-guide__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-beginner-guide__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.page-beginner-guide__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-beginner-guide__intro-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main-color);
  max-width: 800px;
  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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

.page-beginner-guide__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-beginner-guide__section:last-of-type {
  border-bottom: none;
}

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

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

.page-beginner-guide__sub-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 600;
}

.page-beginner-guide__text-block {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-beginner-guide__introduction-section .page-beginner-guide__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.page-beginner-guide__guide-step-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-beginner-guide__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-beginner-guide__card-title {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-beginner-guide__card-text {
  font-size: 0.95rem;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-beginner-guide__button-container {
  text-align: center;
  margin-top: 30px;
}

.page-beginner-guide__content-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.page-beginner-guide__content-col {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-beginner-guide__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-beginner-guide__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-main-color);
  font-size: 1rem;
}

.page-beginner-guide__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-beginner-guide__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 25px;
  object-fit: cover;
}

.page-beginner-guide__games-section .page-beginner-guide__text-block {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-beginner-guide__game-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-beginner-guide__game-card .page-beginner-guide__card-title {
  color: var(--primary-color);
}

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

.page-beginner-guide__promotion-item {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

.page-beginner-guide__promotion-description {
  font-size: 0.95rem;
  color: var(--text-main-color);
  line-height: 1.6;
}

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

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

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--card-background);
  border-bottom: 1px solid transparent; /* default */
  list-style: none; /* For <summary> */
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-question {
  border-bottom-color: var(--border-color);
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  transform: rotate(45deg);
}

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

.page-beginner-guide__faq-answer p {
  margin: 0;
}

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

  .page-beginner-guide__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

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

  .page-beginner-guide__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-beginner-guide__intro-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .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, 2.2rem);
    margin-bottom: 30px;
  }

  .page-beginner-guide__sub-section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 20px;
  }

  /* General Image adaptation */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__content-row {
    flex-direction: column;
    gap: 30px;
  }

  .page-beginner-guide__content-col {
    min-width: unset;
    width: 100%;
    padding: 25px;
  }

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

  .page-beginner-guide__game-category-grid,
  .page-beginner-guide__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__guide-step-card,
  .page-beginner-guide__game-card,
  .page-beginner-guide__promotion-item {
    padding: 20px;
  }

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

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

  /* Ensure all containers and sections prevent overflow */
  .page-beginner-guide__section,
  .page-beginner-guide__container,
  .page-beginner-guide__guide-step-grid,
  .page-beginner-guide__game-category-grid,
  .page-beginner-guide__promotion-list,
  .page-beginner-guide__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Crucial for preventing horizontal scroll */
  }

  /* Additional padding for content within containers on mobile */
  .page-beginner-guide__container > * {
    padding-left: 0;
    padding-right: 0;
  }
}