/* style/beginner-guide.css */

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

/* Base styles for the page */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the main content area */
  background-color: var(--background-color); /* Main page background */
}

/* Sections */
.page-beginner-guide__hero-section,
.page-beginner-guide__intro-section,
.page-beginner-guide__guide-section,
.page-beginner-guide__deposit-withdraw-section,
.page-beginner-guide__games-section,
.page-beginner-guide__promotions-section,
.page-beginner-guide__mobile-app-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__conclusion-section {
  padding: 60px 0;
  position: relative;
}

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

/* Color contrast classes */
.page-beginner-guide__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-beginner-guide__light-bg {
  background-color: #f8f8f8; /* A very light background to ensure dark text contrast */
  color: var(--light-bg-text);
}

/* Hero Section */
.page-beginner-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top spacing as body handles --header-offset */
  color: var(--text-main);
  background-color: var(--background-color);
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center; /* Ensure image content is centered */
}

.page-beginner-guide__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  background-color: rgba(8, 22, 15, 0.9); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-color);
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow-color);
}

.page-beginner-guide__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons adapt */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.page-beginner-guide__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--gold-color);
}

.page-beginner-guide__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 8px var(--glow-color);
}

.page-beginner-guide__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary);
}

.page-beginner-guide__text-block--note {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  margin-top: 30px;
}

.page-beginner-guide__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-beginner-guide__feature-item {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 50px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-beginner-guide__feature-item::before {
  content: '✅';
  position: absolute;
  left: 15px;
  font-size: 1.5em;
  top: 50%;
  transform: translateY(-50%);
}

/* Guide Steps */
.page-beginner-guide__guide-section {
  background-color: #f8f8f8;
  color: var(--light-bg-text);
}

.page-beginner-guide__guide-section .page-beginner-guide__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-beginner-guide__guide-section .page-beginner-guide__text-block {
  color: var(--light-bg-text);
}

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

.page-beginner-guide__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e0e0e0;
}

.page-beginner-guide__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
}

.page-beginner-guide__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-beginner-guide__step-description {
  font-size: 1em;
  color: var(--light-bg-text);
}

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

/* Deposit/Withdrawal Section */
.page-beginner-guide__deposit-withdraw-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-beginner-guide__deposit-withdraw-section .page-beginner-guide__section-title {
  color: var(--gold-color);
}

.page-beginner-guide__deposit-withdraw-section .page-beginner-guide__text-block {
  color: var(--text-secondary);
}

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

.page-beginner-guide__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-align: center;
}

.page-beginner-guide__card p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-beginner-guide__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px;
}

/* Games Section */
.page-beginner-guide__games-section {
  background-color: #f0f0f0; /* Light background for contrast */
  color: var(--light-bg-text);
}

.page-beginner-guide__games-section .page-beginner-guide__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-beginner-guide__games-section .page-beginner-guide__text-block {
  color: var(--light-bg-text);
}

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

.page-beginner-guide__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  border: 1px solid #e0e0e0;
}

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

.page-beginner-guide__game-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-beginner-guide__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-beginner-guide__game-title a:hover {
  color: var(--secondary-color);
}

.page-beginner-guide__game-description {
  font-size: 0.95em;
  color: var(--light-bg-text);
  padding: 0 15px 20px;
}

/* Promotions Section */
.page-beginner-guide__promotions-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-beginner-guide__promotions-section .page-beginner-guide__section-title {
  color: var(--gold-color);
}

.page-beginner-guide__promotions-section .page-beginner-guide__text-block {
  color: var(--text-secondary);
}

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

.page-beginner-guide__promo-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.page-beginner-guide__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 20px 15px 10px;
}

.page-beginner-guide__promo-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-beginner-guide__promo-title a:hover {
  color: var(--glow-color);
}

.page-beginner-guide__promo-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  padding: 0 15px 20px;
}

/* Mobile App Section */
.page-beginner-guide__mobile-app-section {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-beginner-guide__mobile-app-section .page-beginner-guide__section-title {
  color: var(--gold-color);
}

.page-beginner-guide__mobile-app-section .page-beginner-guide__text-block {
  color: var(--text-secondary);
}

.page-beginner-guide__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-beginner-guide__app-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-secondary);
}

.page-beginner-guide__app-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-beginner-guide__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-beginner-guide__app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-beginner-guide__app-features li::before {
  content: '📱';
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

.page-beginner-guide__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-beginner-guide__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color);
  min-height: 200px;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  background-color: #f8f8f8;
  color: var(--light-bg-text);
}

.page-beginner-guide__faq-section .page-beginner-guide__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-beginner-guide__faq-section .page-beginner-guide__text-block {
  color: var(--light-bg-text);
}

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

.page-beginner-guide__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-beginner-guide__faq-question:hover {
  background-color: #e5e5e5;
}

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

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

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

.page-beginner-guide__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--light-bg-text);
  border-top: 1px solid #f5f5f5;
  background-color: #ffffff;
}

.page-beginner-guide__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-beginner-guide__conclusion-section {
  background-color: var(--deep-green);
  color: var(--text-main);
  text-align: center;
}

.page-beginner-guide__conclusion-section .page-beginner-guide__section-title {
  color: var(--gold-color);
}

.page-beginner-guide__conclusion-section .page-beginner-guide__text-block {
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-section {
    padding-top: 10px !important;
  }

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

  .page-beginner-guide__main-title {
    font-size: 2.5em;
  }

  .page-beginner-guide__hero-description {
    font-size: 1em;
  }

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

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-beginner-guide__text-block {
    font-size: 0.95em;
  }

  .page-beginner-guide__feature-list,
  .page-beginner-guide__guide-steps,
  .page-beginner-guide__transaction-cards,
  .page-beginner-guide__game-categories,
  .page-beginner-guide__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-beginner-guide__app-text,
  .page-beginner-guide__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Image and video responsiveness */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginner-guide__container,
  .page-beginner-guide__hero-image-wrapper,
  .page-beginner-guide__hero-content,
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__promo-grid,
  .page-beginner-guide__game-categories,
  .page-beginner-guide__transaction-cards,
  .page-beginner-guide__guide-steps,
  .page-beginner-guide__feature-list,
  .page-beginner-guide__app-content,
  .page-beginner-guide__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-beginner-guide__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-beginner-guide__faq-answer {
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-beginner-guide__main-title {
    font-size: 2em;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8em;
  }

  .page-beginner-guide__hero-content {
    margin-top: -40px;
  }
}