/* style/beginner-guide.css */
.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: #0d0d0d; /* Body background from shared.css */
}

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

/* Color contrast classes */
.page-beginner-guide__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

/* Hero Section */
.page-beginner-guide__hero-section {
  padding: 80px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

.page-beginner-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-beginner-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.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-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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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: #e02020;
  border-color: #e02020;
}

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

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

/* General Section Styling */
.page-beginner-guide__introduction-section,
.page-beginner-guide__download-section,
.page-beginner-guide__registration-section,
.page-beginner-guide__betting-types-section,
.page-beginner-guide__management-section,
.page-beginner-guide__tips-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__cta-bottom-section {
  padding: 60px 0;
}

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

.page-beginner-guide__introduction-section .page-beginner-guide__section-title,
.page-beginner-guide__registration-section .page-beginner-guide__section-title,
.page-beginner-guide__management-section .page-beginner-guide__section-title,
.page-beginner-guide__faq-section .page-beginner-guide__section-title {
  color: #ffffff;
}

.page-beginner-guide__download-section .page-beginner-guide__section-title,
.page-beginner-guide__betting-types-section .page-beginner-guide__section-title,
.page-beginner-guide__tips-section .page-beginner-guide__section-title,
.page-beginner-guide__cta-bottom-section .page-beginner-guide__section-title {
  color: #ffffff;
}

.page-beginner-guide__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-beginner-guide__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-beginner-guide__text-block {
  flex: 1;
  color: #f0f0f0;
}

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

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-beginner-guide__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

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

/* FAQ Section */
.page-beginner-guide__faq-list {
  flex: 1;
}

.page-beginner-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for contrast */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  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: #f0f0f0;
}

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

/* CTA Bottom Section */
.page-beginner-guide__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

.page-beginner-guide__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-beginner-guide__hero-title {
    font-size: 2.5em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__content-grid {
    flex-direction: column;
  }
  .page-beginner-guide__content-grid--reverse {
    flex-direction: column;
  }
  .page-beginner-guide__image-wrapper {
    order: -1; /* Move image to top on smaller screens for default order */
    margin-bottom: 30px;
  }
  .page-beginner-guide__content-grid--reverse .page-beginner-guide__image-wrapper {
    order: -1; /* Keep image at top for reversed sections */
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-beginner-guide__hero-section {
    padding: 60px 0;
    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__section-title {
    font-size: 1.8em;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.3em;
  }
  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images and Videos Responsive */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset;
    min-height: unset;
  }

  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__image-wrapper,
  .page-beginner-guide__text-block,
  .page-beginner-guide__faq-item,
  .page-beginner-guide__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-beginner-guide__content-grid {
    gap: 20px;
  }
  .page-beginner-guide__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-beginner-guide__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-beginner-guide__cta-bottom-section {
    padding: 60px 0;
  }
  .page-beginner-guide__cta-description {
    font-size: 1em;
  }
}