/* style/new-user-guide.css */

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

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

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

.page-new-user-guide__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-new-user-guide__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #26A9E0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-new-user-guide__light-bg .page-new-user-guide__section-title {
  color: #26A9E0;
}

.page-new-user-guide__dark-bg .page-new-user-guide__section-title {
  color: #ffffff;
}

.page-new-user-guide__sub-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-new-user-guide__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-new-user-guide__text-block--note {
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  color: #f0f0f0;
}

.page-new-user-guide__light-bg .page-new-user-guide__text-block {
  color: #333333;
}

.page-new-user-guide__light-bg .page-new-user-guide__text-block--note {
  color: #555555;
}

.page-new-user-guide__text-highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Buttons */
.page-new-user-guide__btn-primary,
.page-new-user-guide__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-new-user-guide__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-new-user-guide__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-new-user-guide__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

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

.page-new-user-guide__cta-buttons--center {
  margin-top: 50px;
}

/* Hero Section */
.page-new-user-guide__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding here */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

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

.page-new-user-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-new-user-guide__hero-content {
  text-align: center;
  z-index: 1; /* Ensure content is above image if any overlap */
  padding-top: 0; /* Content is below image, no need for top padding here */
}

.page-new-user-guide__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-new-user-guide__description {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Registration Guide */
.page-new-user-guide__registration-guide .page-new-user-guide__section-title {
  margin-bottom: 50px;
}

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

.page-new-user-guide__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure equal height */
}

.page-new-user-guide__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-new-user-guide__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-new-user-guide__step-description {
  font-size: 1rem;
  color: #e0e0e0;
  text-align: justify;
  flex-grow: 1;
}

/* Deposit/Withdrawal */
.page-new-user-guide__deposit-withdrawal .page-new-user-guide__section-title {
  color: #26A9E0;
}

.page-new-user-guide__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-new-user-guide__card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  height: 100%; /* Ensure equal height */
}

.page-new-user-guide__card--bordered {
  border: 1px solid #e0e0e0;
}

.page-new-user-guide__dark-bg .page-new-user-guide__card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-new-user-guide__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-new-user-guide__dark-bg .page-new-user-guide__card-title {
  color: #ffffff;
}

.page-new-user-guide__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-new-user-guide__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
  color: #333333;
  text-align: justify;
}

.page-new-user-guide__light-bg .page-new-user-guide__list li {
  color: #333333;
}

.page-new-user-guide__dark-bg .page-new-user-guide__list li {
  color: #e0e0e0;
}

.page-new-user-guide__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

.page-new-user-guide__list-highlight {
  color: #26A9E0;
}

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

.page-new-user-guide__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-new-user-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-new-user-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-new-user-guide__game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
  flex-grow: 0;
}

.page-new-user-guide__game-description {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: justify;
}

.page-new-user-guide__game-link {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: auto; /* Push to bottom */
}

.page-new-user-guide__game-link:hover {
  color: #26A9E0;
}

/* Support Section */
.page-new-user-guide__support .page-new-user-guide__grid-2-col {
  text-align: left;
}

.page-new-user-guide__support .page-new-user-guide__text-block {
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-new-user-guide__support .page-new-user-guide__text-block p {
  color: #333333;
  text-align: justify;
  flex-grow: 1;
}

.page-new-user-guide__support .page-new-user-guide__btn-secondary {
  margin-top: 20px;
  align-self: flex-start;
}

/* FAQ Section */
.page-new-user-guide__faq-section {
  background-color: #1a1a2e;
}

.page-new-user-guide__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-new-user-guide__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-new-user-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-new-user-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-new-user-guide__faq-qtext {
  flex-grow: 1;
}

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

/* For details tag, hide default marker */
.page-new-user-guide__faq-item summary {
  list-style: none;
}

.page-new-user-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-new-user-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.7;
  text-align: justify;
}

/* Final CTA */
.page-new-user-guide__final-cta .page-new-user-guide__cta-content {
  max-width: 900px;
}

.page-new-user-guide__final-cta .page-new-user-guide__section-title {
  color: #26A9E0;
}

.page-new-user-guide__final-cta .page-new-user-guide__text-block {
  color: #333333;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-new-user-guide__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-new-user-guide__description {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
  }

  .page-new-user-guide__section-title {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  }

  .page-new-user-guide__grid-2-col,
  .page-new-user-guide__game-grid,
  .page-new-user-guide__step-list {
    grid-template-columns: 1fr;
  }
  
  .page-new-user-guide__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-new-user-guide__section {
    padding: 40px 0;
  }

  .page-new-user-guide__container {
    padding: 0 15px;
  }

  /* Mobile specific styles for images */
  .page-new-user-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile specific styles for buttons */
  .page-new-user-guide__cta-button,
  .page-new-user-guide__btn-primary,
  .page-new-user-guide__btn-secondary,
  .page-new-user-guide a[class*="button"],
  .page-new-user-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-new-user-guide__cta-buttons,
  .page-new-user-guide__button-group,
  .page-new-user-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 15px;
    overflow: hidden !important;
  }

  .page-new-user-guide__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-new-user-guide__hero-image-wrapper {
    margin-bottom: 30px;
    max-height: 300px;
  }

  .page-new-user-guide__main-title {
    font-size: 2rem;
  }

  .page-new-user-guide__description {
    font-size: 1rem;
  }

  .page-new-user-guide__step-item,
  .page-new-user-guide__card,
  .page-new-user-guide__game-card,
  .page-new-user-guide__support .page-new-user-guide__text-block {
    padding: 20px;
  }

  .page-new-user-guide__game-image {
    height: 180px;
  }

  .page-new-user-guide__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-new-user-guide__support .page-new-user-guide__text-block {
    padding: 15px;
  }

  .page-new-user-guide__section,
  .page-new-user-guide__card,
  .page-new-user-guide__container,
  .page-new-user-guide__hero-section,
  .page-new-user-guide__introduction,
  .page-new-user-guide__registration-guide,
  .page-new-user-guide__deposit-withdrawal,
  .page-new-user-guide__explore-games,
  .page-new-user-guide__support,
  .page-new-user-guide__faq-section,
  .page-new-user-guide__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-new-user-guide__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-new-user-guide__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

}

@media (max-width: 480px) {
  .page-new-user-guide__main-title {
    font-size: 1.8rem;
  }

  .page-new-user-guide__section-title {
    font-size: 1.4rem;
  }

  .page-new-user-guide__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-new-user-guide__btn-primary,
  .page-new-user-guide__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .page-new-user-guide__step-item,
  .page-new-user-guide__card,
  .page-new-user-guide__game-card {
    padding: 15px;
  }

  .page-new-user-guide__faq-question {
    font-size: 0.95rem;
  }
}