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

:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-new-user-guide {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--page-bg-color);
  line-height: 1.6;
}

.page-new-user-guide h1,
.page-new-user-guide h2,
.page-new-user-guide h3,
.page-new-user-guide h4,
.page-new-user-guide h5,
.page-new-user-guide h6 {
  color: var(--text-main-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.page-new-user-guide h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-new-user-guide h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1em;
}

.page-new-user-guide h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
}

.page-new-user-guide p {
  color: var(--text-secondary-color);
  margin-bottom: 1em;
}

.page-new-user-guide a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-new-user-guide a:hover {
  text-decoration: underline;
}

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

.page-new-user-guide__section {
  padding: 80px 0;
}

.page-new-user-guide__dark-bg {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
}

.page-new-user-guide__light-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-new-user-guide__section-title {
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-new-user-guide__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary-color);
}

.page-new-user-guide__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-new-user-guide__btn-primary,
.page-new-user-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-new-user-guide__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-new-user-guide__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-new-user-guide__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-new-user-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-new-user-guide__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-new-user-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 80px 0; /* body handles padding-top from header */
  text-align: center;
  overflow: hidden;
}

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

.page-new-user-guide__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 400px; /* Ensure minimum size */
}

.page-new-user-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-new-user-guide__intro-text {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 20px auto 0 auto;
}

/* Why Choose Us Section */
.page-new-user-guide__why-choose-us {
  background-color: var(--card-bg-color);
}

.page-new-user-guide__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-new-user-guide__feature-item {
  text-align: center;
}

.page-new-user-guide__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-new-user-guide__feature-title {
  color: var(--text-main-color);
  margin-bottom: 10px;
}

.page-new-user-guide__feature-text {
  color: var(--text-secondary-color);
}

/* Registration Guide Section */
.page-new-user-guide__registration-guide {
  background-color: var(--page-bg-color);
}

.page-new-user-guide__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-new-user-guide__step-item {
  text-align: center;
}

.page-new-user-guide__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-new-user-guide__step-title {
  color: var(--text-main-color);
  margin-bottom: 10px;
}

/* Deposit/Withdrawal Guide Section */
.page-new-user-guide__deposit-withdrawal-guide {
  background-color: var(--card-bg-color);
}

.page-new-user-guide__financial-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-new-user-guide__financial-block {
  text-align: center;
}

.page-new-user-guide__block-title {
  color: var(--text-main-color);
  margin-bottom: 15px;
}

.page-new-user-guide__block-image {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Game Types Section */
.page-new-user-guide__game-types {
  background-color: var(--page-bg-color);
}

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

.page-new-user-guide__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-new-user-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-new-user-guide__game-title {
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-new-user-guide__game-title a {
  color: inherit;
}

.page-new-user-guide__game-description {
  color: var(--text-secondary-color);
}

/* Promotions Section */
.page-new-user-guide__promotions-section {
  background-color: var(--card-bg-color);
}

.page-new-user-guide__promotions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

.page-new-user-guide__promotion-card {
  text-align: center;
}

.page-new-user-guide__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-new-user-guide__promotion-title {
  color: var(--text-main-color);
  margin-bottom: 10px;
}

/* Customer Support Section */
.page-new-user-guide__customer-support {
  background-color: var(--page-bg-color);
}

.page-new-user-guide__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-new-user-guide__support-channel {
  text-align: center;
}

.page-new-user-guide__channel-title {
  color: var(--text-main-color);
  margin-bottom: 10px;
}

.page-new-user-guide__support-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 50px auto 0 auto;
  display: block;
  border-radius: 12px;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-new-user-guide__faq-section {
  background-color: var(--card-bg-color);
}

.page-new-user-guide__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-new-user-guide__faq-item {
  margin-bottom: 20px;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
}

.page-new-user-guide__faq-item details {
  width: 100%;
}

.page-new-user-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--text-main-color);
  font-size: 1.1rem;
  list-style: none;
}

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

.page-new-user-guide__faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-new-user-guide__faq-item[open] .page-new-user-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-new-user-guide__faq-answer {
  padding-top: 15px;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Final CTA Section */
.page-new-user-guide__final-cta {
  background-color: var(--page-bg-color);
  text-align: center;
}

.page-new-user-guide__cta-content {
  max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-new-user-guide__financial-overview,
  .page-new-user-guide__promotions-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-new-user-guide__hero-section {
    padding: 10px 0 60px 0;
  }

  .page-new-user-guide__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-new-user-guide__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-new-user-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-new-user-guide__btn-primary,
  .page-new-user-guide__btn-secondary {
    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__section-description {
    padding: 0 15px;
  }

  .page-new-user-guide__features-grid,
  .page-new-user-guide__steps-grid,
  .page-new-user-guide__game-categories-grid,
  .page-new-user-guide__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-new-user-guide__financial-overview {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-new-user-guide__card {
    padding: 20px;
  }

  .page-new-user-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-new-user-guide__hero-image-wrapper,
  .page-new-user-guide__section,
  .page-new-user-guide__container,
  .page-new-user-guide__card,
  .page-new-user-guide__feature-item,
  .page-new-user-guide__step-item,
  .page-new-user-guide__financial-block,
  .page-new-user-guide__game-card,
  .page-new-user-guide__promotion-card,
  .page-new-user-guide__support-channel,
  .page-new-user-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* For sections that need padding, ensure it's applied here */
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

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

  .page-new-user-guide__faq-list {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-new-user-guide__game-image {
    height: auto; /* Allow auto height on mobile */
  }
}