/* style/beginner-guide.css */

/* Base styles for the beginner guide page */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.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__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-beginner-guide__hero-content {
  width: 100%;
  max-width: 1000px;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
  background: rgba(38, 169, 224, 0.85); /* Main brand color with transparency */
  color: #ffffff;
  margin-top: -80px; /* Overlap slightly for visual effect */
  position: relative; /* Ensure z-index works */
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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,
.page-beginner-guide__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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;
  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: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

.page-beginner-guide__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-beginner-guide__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.page-beginner-guide__btn-center {
  margin-left: auto;
  margin-right: auto;
  display: block; /* Ensure it takes full width for centering */
  max-width: 300px; /* Limit width for single buttons */
}

.page-beginner-guide__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

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

.page-beginner-guide__sub-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.page-beginner-guide__list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin-bottom: 20px;
}

.page-beginner-guide__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  text-align: left;
  margin-bottom: 20px;
}

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

.page-beginner-guide__list-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: -15px;
  font-weight: bold;
}

.page-beginner-guide__numbered-list .page-beginner-guide__list-item::before {
  content: none;
}

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

/* Section specific styles */
.page-beginner-guide__intro-section,
.page-beginner-guide__deposit-withdraw-section,
.page-beginner-guide__conclusion-section {
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent overlay for dark background */
  color: #ffffff;
}

.page-beginner-guide__registration-section,
.page-beginner-guide__games-section {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly darker transparent overlay */
  color: #ffffff;
}

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

.page-beginner-guide__light-bg {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

/* FAQ Section */
.page-beginner-guide__faq-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  padding: 80px 0;
  color: #ffffff;
}

.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

.page-beginner-guide__faq-question::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: 15px 25px;
  font-size: 1em;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
}

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

  .page-beginner-guide__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__hero-section {
    padding-bottom: 40px;
  }

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

  .page-beginner-guide__hero-content {
    margin-top: -40px;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .page-beginner-guide__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-beginner-guide__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 25px;
  }

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 6px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-beginner-guide__btn-center {
    max-width: 100%;
  }

  .page-beginner-guide__btn-large {
    padding: 15px 30px;
    font-size: 1.05em;
  }

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

  .page-beginner-guide__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-beginner-guide__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-beginner-guide__text-block,
  .page-beginner-guide__list-item {
    font-size: 1em;
  }

  .page-beginner-guide__image-content {
    margin: 20px auto;
    border-radius: 5px;
  }

  .page-beginner-guide__game-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-beginner-guide__faq-section {
    padding: 50px 0;
  }

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

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

  .page-beginner-guide__faq-answer {
    padding: 10px 20px;
  }
  
  /* Mobile image, video, button overflow prevention */
  .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__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__video-section,
  .page-beginner-guide__video-container,
  .page-beginner-guide__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-beginner-guide__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }
  
  .page-beginner-guide__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__hero-content {
    padding: 20px;
    margin-top: -30px;
  }

  .page-beginner-guide__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-beginner-guide__subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .page-beginner-guide__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .page-beginner-guide__sub-title {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }
}