/* style/beginner-guide.css */

/* Variables from shared.css will provide --bg-color, --text-main, etc. */
/* The body's padding-top is handled by shared.css based on --header-offset */

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for the page, assuming dark body background */
  background-color: var(--bg-color, #08160F); /* Ensure consistency with body background */
}

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

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  background-color: var(--bg-color, #08160F);
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  margin-top: -150px; /* Overlap image slightly for visual effect */
  background: rgba(17, 39, 27, 0.8); /* Card B G with transparency */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-beginner-guide__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-beginner-guide__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-beginner-guide__sub-title {
  font-size: clamp(1.3em, 2.5vw, 1.8em);
  font-weight: 600;
  color: var(--glow, #57E38D);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-beginner-guide__text-block {
  font-size: 1em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-beginner-guide__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-beginner-guide__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-beginner-guide__cta-button--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-beginner-guide__introduction-section,
.page-beginner-guide__transactions-section,
.page-beginner-guide__responsible-gaming-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__conclusion-section {
  padding: 60px 0;
  text-align: left;
}

.page-beginner-guide__dark-section {
  background-color: var(--card-bg, #11271B); /* Use Card B G */
}

.page-beginner-guide__dark-bg {
  background-color: var(--deep-green, #0A4B2C);
}

.page-beginner-guide__image-and-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.page-beginner-guide__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-beginner-guide__text-content {
  flex: 1;
  max-width: 50%;
}

.page-beginner-guide__ordered-list,
.page-beginner-guide__unordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-beginner-guide__ordered-list li strong,
.page-beginner-guide__unordered-list li strong {
  color: var(--text-main, #F2FFF6);
}

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

.page-beginner-guide__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--text-main, #F2FFF6);
}

.page-beginner-guide__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--gold, #F2C14E);
  margin: 20px 15px 10px;
}

.page-beginner-guide__card-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-beginner-guide__card-button {
  display: block;
  padding: 12px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.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, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  list-style: none; /* For details/summary */
}

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

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold, #F2C14E);
  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: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-beginner-guide__conclusion-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-beginner-guide__hero-content {
    margin-top: -100px;
  }

  .page-beginner-guide__image-and-text {
    flex-direction: column;
    gap: 30px;
  }

  .page-beginner-guide__image-and-text--reverse {
    flex-direction: column;
  }

  .page-beginner-guide__content-image,
  .page-beginner-guide__text-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-content {
    margin-top: -80px;
    padding: 15px;
  }

  .page-beginner-guide__hero-image-wrapper {
    max-height: 400px;
  }

  .page-beginner-guide__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-beginner-guide__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-beginner-guide__sub-title {
    font-size: clamp(1.2em, 4vw, 1.5em);
  }

  .page-beginner-guide__introduction-section,
  .page-beginner-guide__transactions-section,
  .page-beginner-guide__responsible-gaming-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__conclusion-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-beginner-guide__card-title {
    font-size: 1.3em;
  }

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

  .page-beginner-guide__cta-button,
  .page-beginner-guide__cta-button--small,
  .page-beginner-guide__cta-button--large,
  .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__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;
    gap: 10px;
  }

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

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

  .page-beginner-guide__text-block,
  .page-beginner-guide__ordered-list li,
  .page-beginner-guide__unordered-list li {
    font-size: 0.95em;
  }
}