/* style/beginner-guide.css */
.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css body, but explicitly set for page scope */
}

.page-beginner-guide__hero-section {
  position: relative;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-beginner-guide__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

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

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginner-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-beginner-guide__video-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Use brand color for contrast */
  color: #ffffff;
}

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

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-beginner-guide__video-cta {
  margin-top: 30px;
}

.page-beginner-guide__content-area {
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  padding: 80px 20px;
}

.page-beginner-guide__section {
  padding: 80px 20px;
}

.page-beginner-guide__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-beginner-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-beginner-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-beginner-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #017439;
  text-align: left;
}

.page-beginner-guide__dark-bg .page-beginner-guide__sub-title {
  color: #ffffff;
}

.page-beginner-guide__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-beginner-guide__highlight {
  font-weight: bold;
  color: #017439;
}

.page-beginner-guide__dark-bg .page-beginner-guide__highlight {
  color: #FFFFFF;
}

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

.page-beginner-guide__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-beginner-guide__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

.page-beginner-guide__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-beginner-guide__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-beginner-guide__step-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 50px;
}

.page-beginner-guide__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #017439;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-beginner-guide__step-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-beginner-guide__dark-bg .page-beginner-guide__step-title {
  color: #ffffff;
}

.page-beginner-guide__step-description {
  font-size: 1em;
  color: #555555;
}

.page-beginner-guide__dark-bg .page-beginner-guide__step-description {
  color: #f0f0f0;
}

.page-beginner-guide__image-text-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-beginner-guide__image-text-layout--reverse {
  flex-direction: row-reverse;
}

.page-beginner-guide__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-beginner-guide__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__text-content {
  flex: 1;
}

.page-beginner-guide__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
  color: inherit;
}

.page-beginner-guide__list-item {
  margin-bottom: 10px;
  color: inherit;
}

.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: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

.page-beginner-guide__game-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-beginner-guide__game-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-beginner-guide__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-beginner-guide__btn-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  display: inline-block;
}

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

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

.page-beginner-guide__card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 20px;
}

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

.page-beginner-guide__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

.page-beginner-guide__support-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.page-beginner-guide__support-info {
  background: #017439;
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__support-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-beginner-guide__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-beginner-guide__contact-item {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.page-beginner-guide__contact-item::before {
  content: '📞'; /* Example icon */
  position: absolute;
  left: 0;
  color: #FFFF00; /* Use custom font color for icon */
}

.page-beginner-guide__contact-item:nth-child(2)::before { content: '📧'; }
.page-beginner-guide__contact-item:nth-child(3)::before { content: '💬'; }

.page-beginner-guide__faq-section {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-beginner-guide__faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.page-beginner-guide__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-weight: bold;
  cursor: pointer;
  color: #017439;
  font-size: 1.1em;
}

.page-beginner-guide__faq-question:hover {
  color: #005f2e;
}

.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 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-beginner-guide__faq-answer p {
  margin-bottom: 10px;
}

/* --- General Button Styles --- */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-beginner-guide__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-beginner-guide__dark-bg .page-beginner-guide__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-beginner-guide__dark-bg .page-beginner-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-beginner-guide__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-title {
    font-size: 2.8em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-beginner-guide__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-beginner-guide__image-text-layout--reverse {
    flex-direction: column;
  }
  .page-beginner-guide__support-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-beginner-guide__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-beginner-guide__hero-title {
    font-size: 2.2em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1em;
  }
  .page-beginner-guide__video-section {
    padding: 60px 15px;
  }
  .page-beginner-guide__content-area,
  .page-beginner-guide__section {
    padding: 60px 15px;
  }
  .page-beginner-guide__section-title {
    font-size: 1.8em;
  }
  .page-beginner-guide__section-description {
    font-size: 0.95em;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__feature-grid,
  .page-beginner-guide__game-grid,
  .page-beginner-guide__promotion-cards {
    grid-template-columns: 1fr;
  }
  .page-beginner-guide__feature-item,
  .page-beginner-guide__game-card,
  .page-beginner-guide__card,
  .page-beginner-guide__support-info,
  .page-beginner-guide__faq-section {
    padding: 20px;
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    max-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__cta-buttons,
  .page-beginner-guide__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  /* Image and Video responsiveness */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-beginner-guide video,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__video-wrapper,
  .page-beginner-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-beginner-guide__video-wrapper {
    margin: 30px auto;
  }
  .page-beginner-guide__support-info,
  .page-beginner-guide__faq-section {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}