/* style/beginner-guide.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --btn-register: #C30808;
  --btn-login: #C30808;
  --font-login-register: #FFFF00;
}

.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color);
}

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

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

.page-beginner-guide__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header-offset */
  padding-bottom: 60px;
}

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

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly, but NOT over image */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__main-title {
  color: var(--text-light);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-beginner-guide__btn-primary {
  background-color: var(--btn-register);
  color: var(--font-login-register);
  border: 2px solid var(--btn-register);
}

.page-beginner-guide__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--font-login-register);
  color: var(--btn-login);
}

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

/* Section Titles & Intros */
.page-beginner-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
  font-weight: bold;
}

.page-beginner-guide__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

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

.page-beginner-guide__feature-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-beginner-guide__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-beginner-guide__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-beginner-guide__card-description {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
}

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

.page-beginner-guide__step-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-beginner-guide__step-number {
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

/* Content Grid (Deposit/Withdrawal) */
.page-beginner-guide__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.page-beginner-guide__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-beginner-guide__content-grid--reverse .page-beginner-guide__content-text {
  order: 2;
}

.page-beginner-guide__content-grid--reverse .page-beginner-guide__content-image {
  order: 1;
}

.page-beginner-guide__content-text {
  color: inherit;
}

.page-beginner-guide__image-full {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-beginner-guide__list,
.page-beginner-guide__ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: inherit;
}

.page-beginner-guide__list li,
.page-beginner-guide__ordered-list li {
  margin-bottom: 10px;
}

.page-beginner-guide__note {
  font-style: italic;
  margin-top: 20px;
  color: inherit;
}

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

.page-beginner-guide__game-card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-beginner-guide__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-beginner-guide__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-beginner-guide__game-description {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Tips & Strategies Grid */
.page-beginner-guide__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-beginner-guide__tip-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* FAQ Section */
.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-beginner-guide__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #eee;
  list-style: none;
}

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

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

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

.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(--text-dark);
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
}

.page-beginner-guide__faq-answer p {
  margin: 0;
}

/* Conclusion CTA */
.page-beginner-guide__conclusion-cta {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 2.8em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-beginner-guide__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-beginner-guide__hero-section {
    padding-bottom: 40px;
  }

  .page-beginner-guide__hero-image-wrapper {
    max-height: 400px;
  }

  .page-beginner-guide__hero-content {
    margin-top: -80px;
    padding: 20px;
  }

  .page-beginner-guide__main-title {
    font-size: 2.2em !important;
    max-width: 100% !important;
  }

  .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% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-beginner-guide__section-intro {
    font-size: 1em;
  }

  .page-beginner-guide__features-grid,
  .page-beginner-guide__steps-grid,
  .page-beginner-guide__game-cards-grid,
  .page-beginner-guide__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-beginner-guide__content-grid--reverse .page-beginner-guide__content-text {
    order: unset;
  }

  .page-beginner-guide__content-grid--reverse .page-beginner-guide__content-image {
    order: unset;
  }

  .page-beginner-guide__image-full,
  .page-beginner-guide__feature-icon,
  .page-beginner-guide__step-image,
  .page-beginner-guide__game-image,
  .page-beginner-guide__tip-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__hero-section,
  .page-beginner-guide__why-choose-us,
  .page-beginner-guide__registration-guide,
  .page-beginner-guide__deposit-guide,
  .page-beginner-guide__withdrawal-guide,
  .page-beginner-guide__game-types,
  .page-beginner-guide__tips-strategies,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__conclusion-cta,
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  
  .page-beginner-guide__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

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

@media (max-width: 480px) {
  .page-beginner-guide__main-title {
    font-size: 1.8em !important;
  }
  .page-beginner-guide__section-title {
    font-size: 1.6em;
  }
  .page-beginner-guide__hero-image-wrapper {
    max-height: 300px;
  }
}