.page-beginner-guide {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #1a1a1a; /* Assuming a dark background for body from shared.css */
  --button-login: #EA7C07;

  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
}

.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  overflow: hidden;
}

.page-beginner-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-beginner-guide__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: var(--text-light);
}

.page-beginner-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-beginner-guide__hero-cta-group,
.page-beginner-guide__final-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

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

.page-beginner-guide__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.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(--text-light);
}

.page-beginner-guide__btn-login {
  background: var(--button-login);
  color: var(--text-light);
  border: 2px solid var(--button-login);
}

.page-beginner-guide__btn-login:hover {
  background: darken(var(--button-login), 10%);
  border-color: darken(var(--button-login), 10%);
}

.page-beginner-guide__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-beginner-guide__section-title {
  font-size: 2.5em;
  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(--primary-color);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-beginner-guide__text-block {
  margin-bottom: 40px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-beginner-guide__text-block p {
  margin-bottom: 20px;
}

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-beginner-guide__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__numbered-list,
.page-beginner-guide__bullet-list {
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-beginner-guide__numbered-list li,
.page-beginner-guide__bullet-list li {
  margin-bottom: 10px;
}

.page-beginner-guide__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-beginner-guide__text-link:hover {
  text-decoration: underline;
}

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

.page-beginner-guide__game-card {
  background: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.page-beginner-guide__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 15px 10px;
}

.page-beginner-guide__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-beginner-guide__card-title a:hover {
  text-decoration: underline;
}

.page-beginner-guide__card-description {
  padding: 0 20px;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 0.95em;
}

.page-beginner-guide__app-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__qr-code {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border: 5px solid var(--secondary-color);
  border-radius: 8px;
}

.page-beginner-guide__app-text {
  text-align: center;
}

.page-beginner-guide__app-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-beginner-guide__faq-item {
  background: var(--background-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--primary-color);
  background: #f5f5f5;
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
  background: #e9e9e9;
}

.page-beginner-guide__faq-text {
  flex-grow: 1;
  margin-right: 15px;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-beginner-guide__final-cta {
  text-align: center;
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 60px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__final-cta-title {
  font-size: 2.5em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-beginner-guide__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

.page-beginner-guide__video-tutorial {
  text-align: center;
  padding: 60px 20px;
  background: var(--background-dark);
  color: var(--text-light);
  margin-top: 40px;
}

.page-beginner-guide__section-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-beginner-guide__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-title {
    font-size: 2.8em;
  }

  .page-beginner-guide__hero-description {
    font-size: 1.1em;
  }

  .page-beginner-guide__section-title {
    font-size: 2.2em;
  }
}

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

  .page-beginner-guide__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-beginner-guide__hero-title {
    font-size: 2em;
  }

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

  .page-beginner-guide__hero-cta-group,
  .page-beginner-guide__final-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide__btn-login,
  .page-beginner-guide a[class*="button"],
  .page-beginner-guide a[class*="btn"] {
    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__content-area {
    padding: 30px 15px;
  }

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

  .page-beginner-guide__sub-title {
    font-size: 1.5em;
  }

  .page-beginner-guide__image-content {
    margin: 20px auto;
  }

  .page-beginner-guide__game-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-beginner-guide__app-download {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .page-beginner-guide__qr-code {
    width: 200px;
    height: 200px;
  }

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

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

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

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

  .page-beginner-guide__final-cta-title {
    font-size: 2em;
  }

  .page-beginner-guide__final-cta-description {
    font-size: 1em;
  }

  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__game-card,
  .page-beginner-guide__app-download,
  .page-beginner-guide__faq-item,
  .page-beginner-guide__final-cta,
  .page-beginner-guide__video-tutorial {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__video-tutorial {
    padding-top: var(--header-offset, 120px) !important; /* Adjust if video is first element */
  }

  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    overflow: hidden !important;
  }

  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Adjust to fit wrapper */
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__hero-title {
    font-size: 1.8em;
  }

  .page-beginner-guide__hero-description {
    font-size: 0.9em;
  }

  .page-beginner-guide__section-title {
    font-size: 1.6em;
  }

  .page-beginner-guide__final-cta-title {
    font-size: 1.8em;
  }
}