/* style/beginner-guide.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #F8F9FA;
  --background-dark: #26A9E0;
  --button-login: #EA7C07;
}

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light); /* Assuming light body background from shared.css */
}

.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Desktop fixed header offset */
}

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

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

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

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

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

.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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

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

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

.page-beginner-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.page-beginner-guide__introduction-section,
.page-beginner-guide__payment-guide,
.page-beginner-guide__app-download,
.page-beginner-guide__faq-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-beginner-guide__registration-guide,
.page-beginner-guide__games-showcase,
.page-beginner-guide__promotions {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-beginner-guide__registration-guide .page-beginner-guide__section-title,
.page-beginner-guide__games-showcase .page-beginner-guide__section-title,
.page-beginner-guide__promotions .page-beginner-guide__section-title {
  color: var(--text-light);
}

.page-beginner-guide__registration-guide .page-beginner-guide__section-description,
.page-beginner-guide__games-showcase .page-beginner-guide__section-description,
.page-beginner-guide__promotions .page-beginner-guide__section-description {
  color: rgba(255, 255, 255, 0.8);
}

.page-beginner-guide__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-beginner-guide__image-wrapper {
  text-align: center;
}

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

.page-beginner-guide__text-block h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
}

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

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

.page-beginner-guide__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--text-light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-beginner-guide__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-beginner-guide__note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

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

.page-beginner-guide__payment-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-beginner-guide__payment-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

.page-beginner-guide__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-beginner-guide__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-beginner-guide__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

.page-beginner-guide__game-title a:hover {
  color: var(--primary-color);
}

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

.page-beginner-guide__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-beginner-guide__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-beginner-guide__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-beginner-guide__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px 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;
  background-color: #f5f5f5;
  color: var(--text-dark);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-beginner-guide__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

.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 show content */
  padding: 15px 25px;
}

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

.page-beginner-guide__contact-note {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-beginner-guide__contact-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-beginner-guide__contact-note a:hover {
  text-decoration: underline;
}

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

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

.page-beginner-guide__list li {
  margin-bottom: 10px;
}

.page-beginner-guide__list li strong {
  color: var(--primary-color);
}

/* 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: 2em;
  }
  .page-beginner-guide__step-item,
  .page-beginner-guide__payment-card,
  .page-beginner-guide__game-card,
  .page-beginner-guide__promo-card {
    padding: 20px;
  }
}

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

  .page-beginner-guide__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

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

  .page-beginner-guide__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

  .page-beginner-guide__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-beginner-guide__content-grid--reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

  .page-beginner-guide__image-content {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginner-guide__step-by-step,
  .page-beginner-guide__payment-methods,
  .page-beginner-guide__game-categories,
  .page-beginner-guide__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-beginner-guide__container,
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__text-block,
  .page-beginner-guide__step-item,
  .page-beginner-guide__payment-card,
  .page-beginner-guide__game-card,
  .page-beginner-guide__promo-card,
  .page-beginner-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all img tags within .page-beginner-guide are responsive */
  .page-beginner-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all video tags within .page-beginner-guide are responsive */
  .page-beginner-guide video,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers mobile adaptation */
  .page-beginner-guide__video-section,
  .page-beginner-guide__video-container,
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button containers mobile adaptation */
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }
}