/* style/newbie-guide.css */

/* --- Base Styles --- */
.page-newbie-guide {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

/* --- Layout & Reusables --- */
.page-newbie-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-newbie-guide__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F2C14E; /* Gold for main titles */
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-newbie-guide__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-newbie-guide__dark-bg {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-newbie-guide__dark-bg:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- Buttons --- */
.page-newbie-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Ensure responsiveness for multiple buttons */
}

.page-newbie-guide__cta-buttons--center {
  justify-content: center;
}

.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary,
.page-newbie-guide a[class*="button"],
.page-newbie-guide a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-newbie-guide__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-newbie-guide__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-newbie-guide__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* A lighter green from the gradient for contrast */
  border: 2px solid #2AD16F;
}

.page-newbie-guide__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-newbie-guide__link-text {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-newbie-guide__link-text:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-newbie-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Align content to the top initially */
  min-height: 500px;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-newbie-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-newbie-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 80px 20px; /* Adjust padding to ensure text is visible and not too high */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; /* Make content take full height for vertical centering if needed */
}

.page-newbie-guide__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-newbie-guide__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* --- Why Choose Us Section --- */
.page-newbie-guide__why-choose-us {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-newbie-guide__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-newbie-guide__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px; /* Ensure images are not tiny icons */
}

.page-newbie-guide__feature-title {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-newbie-guide__feature-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* --- Guide Sections (Registration, Deposit, Withdrawal) --- */
.page-newbie-guide__registration-guide,
.page-newbie-guide__deposit-guide,
.page-newbie-guide__withdrawal-guide {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #0A4B2C; /* Deep Green for alternating section */
}

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

.page-newbie-guide__step-card {
  text-align: left;
  padding: 30px;
}

.page-newbie-guide__step-title {
  font-size: 22px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-newbie-guide__step-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-newbie-guide__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* --- Game Types Section --- */
.page-newbie-guide__game-types {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-newbie-guide__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  text-decoration: none;
  height: 100%; /* Make cards same height */
}

.page-newbie-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-newbie-guide__game-title {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-newbie-guide__game-text {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1; /* Push button to bottom */
}

/* --- Promotions Section --- */
.page-newbie-guide__promotions {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #0A4B2C; /* Deep Green for alternating section */
}

.page-newbie-guide__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-newbie-guide__promo-card {
  text-align: left;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-newbie-guide__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-newbie-guide__promo-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-newbie-guide__promo-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Responsible Gambling Section --- */
.page-newbie-guide__responsible-gambling {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-newbie-guide__responsible-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-newbie-guide__list-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #F2FFF6; /* Text Main */
  display: flex;
  align-items: center;
}

.page-newbie-guide__list-item::before {
  content: '✓';
  color: #2AD16F; /* Lighter green */
  font-weight: bold;
  margin-right: 10px;
  font-size: 20px;
}

/* --- Customer Support Section --- */
.page-newbie-guide__customer-support {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #0A4B2C; /* Deep Green for alternating section */
}

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

.page-newbie-guide__channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-newbie-guide__channel-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-newbie-guide__channel-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-newbie-guide__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-newbie-guide__faq-item {
  margin-bottom: 15px;
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden; /* For details tag */
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  border-bottom: 1px solid #2E7A4E; /* Border */
  transition: background-color 0.3s ease;
}

.page-newbie-guide__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-newbie-guide__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-newbie-guide__faq-item[open] .page-newbie-guide__faq-toggle {
  content: '−';
}

.page-newbie-guide__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  background-color: #0A4B2C; /* Deep Green */
}

.page-newbie-guide__faq-answer p {
  margin: 0;
  color: #A7D9B8;
}

/* --- Conclusion Section --- */
.page-newbie-guide__conclusion {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #08160F; /* Background */
}

/* --- Image & Video Responsiveness (General) --- */
.page-newbie-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-newbie-guide video,
.page-newbie-guide__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-newbie-guide__video-section,
.page-newbie-guide__video-container,
.page-newbie-guide__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-newbie-guide {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-newbie-guide__section-title {
    font-size: 28px;
  }

  .page-newbie-guide__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-newbie-guide__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-newbie-guide__hero-content {
    padding: 60px 15px;
  }

  .page-newbie-guide__main-title {
    font-size: 32px;
  }

  .page-newbie-guide__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-newbie-guide__btn-primary,
  .page-newbie-guide__btn-secondary,
  .page-newbie-guide a[class*="button"],
  .page-newbie-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    min-width: unset;
  }

  .page-newbie-guide__features-grid,
  .page-newbie-guide__steps-flow,
  .page-newbie-guide__game-cards-grid,
  .page-newbie-guide__promo-cards-grid,
  .page-newbie-guide__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-newbie-guide__feature-card,
  .page-newbie-guide__step-card,
  .page-newbie-guide__game-card,
  .page-newbie-guide__promo-card,
  .page-newbie-guide__channel-card {
    padding: 20px;
  }

  .page-newbie-guide__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-newbie-guide__game-image,
  .page-newbie-guide__promo-image,
  .page-newbie-guide__step-image {
    height: auto; /* Allow height to adjust */
    min-width: 200px;
    min-height: 200px;
  }

  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-newbie-guide__video-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }

  .page-newbie-guide video,
  .page-newbie-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container mobile adaptation */
  .page-newbie-guide__video-section,
  .page-newbie-guide__video-container,
  .page-newbie-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Video wrapper must ensure not to overflow container on mobile */
  .page-newbie-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-newbie-guide__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-newbie-guide__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

  .page-newbie-guide__responsible-list {
    margin-top: 30px;
  }
  .page-newbie-guide__list-item {
    font-size: 15px;
    padding: 12px 15px;
  }
}