/* General Styles for page-beginner-guide */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-beginner-guide__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-beginner-guide__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4A8BFF 0%, #2F6BFF 100%); /* Main color gradient */
  border-radius: 2px;
}

.page-beginner-guide__section-title--light {
  color: #FFFFFF;
}

.page-beginner-guide__section-title--light::after {
  background: #FFFFFF;
}

.page-beginner-guide__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-beginner-guide__section-description--light {
  color: #F4F7FB;
}

.page-beginner-guide__content-block {
  background-color: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #D6E2FF; /* Border */
}

.page-beginner-guide__dark-section .page-beginner-guide__content-block {
  background-color: rgba(255, 255, 255, 0.1);
  color: #F4F7FB;
  border: 1px solid rgba(214, 226, 255, 0.3);
}

.page-beginner-guide__content-heading {
  font-size: 28px;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin-top: 0;
  margin-bottom: 20px;
}

.page-beginner-guide__content-heading--light {
  color: #6FA3FF; /* Accent Color */
}

.page-beginner-guide p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-beginner-guide__dark-section p {
  color: #F4F7FB;
}

.page-beginner-guide__step-list, .page-beginner-guide__bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-beginner-guide__step-list li, .page-beginner-guide__bullet-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-beginner-guide__dark-section .page-beginner-guide__step-list li, .page-beginner-guide__dark-section .page-beginner-guide__bullet-list li {
  color: #F4F7FB;
}

.page-beginner-guide__step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: #2F6BFF; /* Main Color */
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.page-beginner-guide__bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2F6BFF; /* Main Color */
  font-size: 24px;
  line-height: 1;
}

.page-beginner-guide__step-list--light li::before, .page-beginner-guide__bullet-list--light li::before {
  background-color: #6FA3FF; /* Accent Color */
  color: #FFFFFF;
}

.page-beginner-guide__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-beginner-guide__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-beginner-guide__btn-secondary {
  background-color: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
  border-color: #1F2D3D;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F4F7FB; /* Background */
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

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

.page-beginner-guide__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
  border: 1px solid #D6E2FF;
}

.page-beginner-guide__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #2F6BFF; /* Main Color */
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-beginner-guide__subtitle {
  font-size: 20px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* Intro Section */
.page-beginner-guide__intro-section {
  padding: 60px 0;
}

/* Guide Sections (Registration, Deposit, Withdrawal) */
.page-beginner-guide__guide-section {
  padding: 60px 0;
}

.page-beginner-guide__dark-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Main color gradient */
  color: #FFFFFF;
}

/* Game Exploration Section */
.page-beginner-guide__game-exploration-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-beginner-guide__game-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #1F2D3D; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-beginner-guide__game-card-title {
  font-size: 22px;
  font-weight: 700;
  padding: 15px 20px 10px;
  margin: 0;
  color: #2F6BFF; /* Main Color */
}

.page-beginner-guide__game-card-text {
  font-size: 15px;
  padding: 0 20px 20px;
  margin: 0;
  color: #1F2D3D;
}

/* Support Section */
.page-beginner-guide__support-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Main color gradient */
  color: #FFFFFF;
}

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

.page-beginner-guide__support-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(214, 226, 255, 0.3);
}

.page-beginner-guide__support-item-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #6FA3FF; /* Accent Color */
}

.page-beginner-guide__support-item-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #F4F7FB;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

details.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #1F2D3D; /* Text Main */
}

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

details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question:hover {
  background: #F4F7FB;
}

.page-beginner-guide__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

details.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-qtext {
  color: #2F6BFF;
}

.page-beginner-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-beginner-guide__faq-item .page-beginner-guide__faq-answer {
  padding: 0 25px 25px;
  background: #F9F9F9; /* Lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: #1F2D3D;
}

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

/* CTA Bottom Section */
.page-beginner-guide__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Main color gradient */
  color: #FFFFFF;
}

.page-beginner-guide__cta-bottom-section .page-beginner-guide__section-title {
  color: #FFFFFF;
}

.page-beginner-guide__cta-bottom-section .page-beginner-guide__section-title::after {
  background: #FFFFFF;
}

.page-beginner-guide__cta-bottom-section .page-beginner-guide__section-description {
  color: #F4F7FB;
}

/* Image responsiveness and general media queries */
.page-beginner-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-beginner-guide__container {
    padding: 15px;
  }

  .page-beginner-guide__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-beginner-guide__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__content-block {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__content-heading {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .page-beginner-guide__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }

  .page-beginner-guide__hero-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure image is fully visible */
  }

  .page-beginner-guide__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-beginner-guide__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-beginner-guide__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-beginner-guide__intro-section,
  .page-beginner-guide__guide-section,
  .page-beginner-guide__game-exploration-section,
  .page-beginner-guide__support-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__cta-bottom-section {
    padding: 40px 0;
  }

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

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

  .page-beginner-guide__game-card-title {
    font-size: 20px;
    padding: 12px 15px 8px;
  }

  .page-beginner-guide__game-card-text {
    font-size: 14px;
    padding: 0 15px 15px;
  }

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

  details.page-beginner-guide__faq-item summary.page-beginner-guide__faq-question {
    padding: 15px;
  }

  .page-beginner-guide__faq-qtext {
    font-size: 16px;
  }

  .page-beginner-guide__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

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

  /* Ensure all images in content sections are responsive */
  .page-beginner-guide__section, .page-beginner-guide__card, .page-beginner-guide__container, .page-beginner-guide__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-beginner-guide__image-full-width {
    padding-left: 0;
    padding-right: 0;
  }

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