/* style/newbie-guide.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-card: rgba(255, 255, 255, 0.1);
  --bg-light-card: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-dark: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark (#111), so use light text */
  background-color: #111; /* Ensure consistency, though body is #111 from shared.css */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

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

.page-newbie-guide__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-newbie-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-newbie-guide__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-newbie-guide__content-block p,
.page-newbie-guide__content-block li {
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-newbie-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

/* Hero Section */
.page-newbie-guide__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:qq888,newbie_guide,main_banner]') no-repeat center center;
  background-size: cover;
  color: var(--text-light);
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-newbie-guide__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-newbie-guide__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-newbie-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  border: none;
  cursor: pointer;
}

.page-newbie-guide__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-newbie-guide__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

.page-newbie-guide__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-newbie-guide__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

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

.page-newbie-guide__cta-margin-top {
  margin-top: 30px;
}

/* List Styles */
.page-newbie-guide__step-list,
.page-newbie-guide__feature-list,
.page-newbie-guide__promo-list,
.page-newbie-guide__security-features,
.page-newbie-guide__contact-channels {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

.page-newbie-guide__step-list li,
.page-newbie-guide__feature-list li,
.page-newbie-guide__promo-list li,
.page-newbie-guide__security-features li,
.page-newbie-guide__contact-channels li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: var(--text-light);
}

.page-newbie-guide__step-list li::before,
.page-newbie-guide__feature-list li::before,
.page-newbie-guide__promo-list li::before,
.page-newbie-guide__security-features li::before,
.page-newbie-guide__contact-channels li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-newbie-guide__step-list li p,
.page-newbie-guide__feature-list li p,
.page-newbie-guide__promo-list li p,
.page-newbie-guide__security-features li p,
.page-newbie-guide__contact-channels li p {
  margin-bottom: 0;
}

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

.page-newbie-guide__card {
  background: var(--bg-dark-card);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-newbie-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

.page-newbie-guide__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: brightness(0.8); /* Slightly dim images for dark background */
}

.page-newbie-guide__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-newbie-guide__card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-newbie-guide__card-button {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

/* FAQ Section */
.page-newbie-guide__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-newbie-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-newbie-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(0, 123, 255, 0.2); /* Primary color with transparency */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-newbie-guide__faq-question:hover {
  background: rgba(0, 123, 255, 0.3);
}

.page-newbie-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-newbie-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

/* Conclusion Section */
.page-newbie-guide__conclusion {
  text-align: center;
  padding-bottom: 80px;
}

.page-newbie-guide__conclusion .page-newbie-guide__section-title {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-newbie-guide__main-title {
    font-size: 40px;
  }
  .page-newbie-guide__hero-description {
    font-size: 18px;
  }
  .page-newbie-guide__section-title {
    font-size: 30px;
  }
  .page-newbie-guide__sub-title {
    font-size: 22px;
  }
  .page-newbie-guide__card-title {
    font-size: 20px;
  }
  .page-newbie-guide__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-newbie-guide {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-newbie-guide__container {
    padding: 0 15px;
  }
  .page-newbie-guide__section {
    padding: 40px 0;
  }
  .page-newbie-guide__hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }
  .page-newbie-guide__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-newbie-guide__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-newbie-guide__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-newbie-guide__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-newbie-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-newbie-guide__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-newbie-guide__cta-center .page-newbie-guide__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-newbie-guide__content-block p,
  .page-newbie-guide__content-block li {
    font-size: 15px;
  }
  .page-newbie-guide__image {
    margin: 20px auto;
    border-radius: 4px;
  }
  .page-newbie-guide__game-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-newbie-guide__card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-newbie-guide__card-image {
    height: 150px;
    margin-bottom: 15px;
  }
  .page-newbie-guide__card-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .page-newbie-guide__card p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .page-newbie-guide__card-button {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-newbie-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-newbie-guide__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-newbie-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-newbie-guide__faq-answer {
    padding: 0 15px;
  }
  .page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
    padding: 15px !important;
  }
  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-newbie-guide__hero-section,
  .page-newbie-guide__introduction,
  .page-newbie-guide__registration,
  .page-newbie-guide__deposit-withdraw,
  .page-newbie-guide__games,
  .page-newbie-guide__promotions,
  .page-newbie-guide__security,
  .page-newbie-guide__support,
  .page-newbie-guide__faq-section,
  .page-newbie-guide__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-newbie-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}