/* style/index-beginner-guide.css */

/* Base styles for the beginner guide page */
.page-index-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, which is dark */
}

/* Ensure main content text is readable on dark body background */
.page-index-beginner-guide__dark-section {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for dark background */
  padding: 60px 20px;
}

.page-index-beginner-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
}

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

.page-index-beginner-guide__hero-section {
  position: relative;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index-beginner-guide__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-index-beginner-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index-beginner-guide__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-index-beginner-guide__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-index-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index-beginner-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-index-beginner-guide__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-index-beginner-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Steps Section */
.page-index-beginner-guide__steps-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index-beginner-guide__step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index-beginner-guide__step-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-index-beginner-guide__step-card:hover {
  transform: translateY(-5px);
}

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

.page-index-beginner-guide__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-index-beginner-guide__step-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Game Overview Section */
.page-index-beginner-guide__game-overview-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index-beginner-guide__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-index-beginner-guide__game-card:hover {
  transform: translateY(-5px);
}

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

.page-index-beginner-guide__game-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #ffffff;
}

.page-index-beginner-guide__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-beginner-guide__game-title a:hover {
  text-decoration: underline;
}

.page-index-beginner-guide__game-text {
  font-size: 0.95em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Responsible Gambling Section */
.page-index-beginner-guide__responsible-gambling-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index-beginner-guide__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-index-beginner-guide__responsible-list li {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  font-size: 1.1em;
  color: #333333;
}

.page-index-beginner-guide__responsible-list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-index-beginner-guide__responsible-list li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-index-beginner-guide__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index-beginner-guide__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-index-beginner-guide__faq-item {
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-index-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-index-beginner-guide__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-index-beginner-guide__faq-item.active .page-index-beginner-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-index-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-index-beginner-guide__faq-item.active .page-index-beginner-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px !important;
}

.page-index-beginner-guide__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-index-beginner-guide__call-to-action {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

/* General text styles */
.page-index-beginner-guide p {
  margin-bottom: 1em;
}

.page-index-beginner-guide a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index-beginner-guide a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index-beginner-guide__hero-title {
    font-size: 2em;
  }

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

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

  .page-index-beginner-guide__section-description {
    font-size: 0.95em;
  }

  .page-index-beginner-guide__hero-section,
  .page-index-beginner-guide__steps-section,
  .page-index-beginner-guide__game-overview-section,
  .page-index-beginner-guide__responsible-gambling-section,
  .page-index-beginner-guide__faq-section,
  .page-index-beginner-guide__call-to-action {
    padding: 40px 15px !important;
  }

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

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

  .page-index-beginner-guide__step-card,
  .page-index-beginner-guide__game-card {
    padding: 20px;
  }

  .page-index-beginner-guide__step-image,
  .page-index-beginner-guide__game-image {
    height: auto;
  }

  /* Button responsiveness */
  .page-index-beginner-guide__btn-primary,
  .page-index-beginner-guide__btn-secondary,
  .page-index-beginner-guide a[class*="button"],
  .page-index-beginner-guide a[class*="btn"] {
    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-index-beginner-guide__hero-cta,
  .page-index-beginner-guide__cta-buttons,
  .page-index-beginner-guide__button-group,
  .page-index-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    overflow: hidden !important;
  }

  /* Video responsiveness */
  .page-index-beginner-guide video,
  .page-index-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-beginner-guide__video-section,
  .page-index-beginner-guide__video-container,
  .page-index-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-beginner-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-index-beginner-guide__hero-title {
    font-size: 2.5em;
  }

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

  .page-index-beginner-guide__step-grid,
  .page-index-beginner-guide__game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}