/* style/beginner-guide.css */

/* Base styles for the beginner guide page */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-beginner-guide__section {
  padding: 60px 0;
  text-align: center;
}

.page-beginner-guide__section-title {
  font-size: clamp(2em, 2.5vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

.page-beginner-guide__sub-title {
  font-size: clamp(1.5em, 2vw, 2em);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
  padding-left: 20px;
}

.page-beginner-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
  padding: 0 20px;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-beginner-guide__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-beginner-guide__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

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

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-beginner-guide__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-beginner-guide__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb4;
  border-color: #1a7fb4;
}

/* Image content styles */
.page-beginner-guide__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Ensure content images don't stretch too wide */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* List styles */
.page-beginner-guide__ordered-list,
.page-beginner-guide__unordered-list {
  text-align: left;
  margin: 20px auto;
  max-width: 800px;
  padding-left: 40px;
  font-size: 1.1em;
}

.page-beginner-guide__ordered-list li,
.page-beginner-guide__unordered-list li {
  margin-bottom: 10px;
}

/* Section specific colors */
.page-beginner-guide__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-beginner-guide__dark-bg .page-beginner-guide__section-title,
.page-beginner-guide__dark-bg .page-beginner-guide__sub-title {
  color: #FFFFFF;
}

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

.page-beginner-guide__light-bg .page-beginner-guide__section-title,
.page-beginner-guide__light-bg .page-beginner-guide__sub-title {
  color: #26A9E0;
}

/* FAQ Section */
.page-beginner-guide__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-beginner-guide__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-beginner-guide__faq-item[open] {
  background-color: #eaf7fc; /* Lighter background when open */
  border-color: #26A9E0;
}

.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: #333333;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-beginner-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

.page-beginner-guide__faq-answer p {
  margin: 0;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-beginner-guide__hero-section {
    padding-bottom: 40px;
  }

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

  .page-beginner-guide__main-title {
    font-size: 2em; /* Adjusted for smaller screens */
  }

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

  .page-beginner-guide__section {
    padding: 40px 0;
  }

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

  .page-beginner-guide__sub-title {
    font-size: 1.3em;
    padding-left: 15px;
  }

  .page-beginner-guide__text-block {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-beginner-guide__ordered-list,
  .page-beginner-guide__unordered-list {
    font-size: 0.95em;
    padding-left: 30px;
    margin: 15px auto;
  }

  .page-beginner-guide__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

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

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

  /* Mobile specific button adaptations */
  .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;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__container,
  .page-beginner-guide__hero-content,
  .page-beginner-guide__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-beginner-guide__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure all sections/containers containing images/buttons/videos are responsive */
  .page-beginner-guide__section,
  .page-beginner-guide__registration,
  .page-beginner-guide__deposit,
  .page-beginner-guide__games,
  .page-beginner-guide__withdrawal,
  .page-beginner-guide__promotions,
  .page-beginner-guide__tips,
  .page-beginner-guide__support,
  .page-beginner-guide__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}