.page-resources-how-to-play-gem-win-safely {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background */
}

.page-resources-how-to-play-gem-win-safely__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-how-to-play-gem-win-safely__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  text-align: center;
  padding: 80px 0 40px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  overflow: hidden;
  color: #ffffff;
  background-color: #1E1E1E;
}

.page-resources-how-to-play-gem-win-safely__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
}

.page-resources-how-to-play-gem-win-safely__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-how-to-play-gem-win-safely__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-resources-how-to-play-gem-safely__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-how-to-play-gem-win-safely__btn-primary,
.page-resources-how-to-play-gem-win-safely__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources-how-to-play-gem-win-safely__btn-primary {
  background-color: #FFD700;
  color: #1E1E1E;
  border: 2px solid #FFD700;
}

.page-resources-how-to-play-gem-win-safely__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-resources-how-to-play-gem-win-safely__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-how-to-play-gem-win-safely__btn-secondary:hover {
  background-color: #FFD700;
  color: #1E1E1E;
}

.page-resources-how-to-play-gem-win-safely__introduction-video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #1E1E1E;
  color: #ffffff;
}

.page-resources-how-to-play-gem-win-safely__video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 30px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

.page-resources-how-to-play-gem-win-safely__video-link-overlay {
  display: block;
  position: relative;
  cursor: pointer;
}

.page-resources-how-to-play-gem-win-safely__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-resources-how-to-play-gem-win-safely__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  text-align: center;
}

.page-resources-how-to-play-gem-win-safely__section-subtitle {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-align: center;
}

.page-resources-how-to-play-gem-win-safely__content-section {
  padding: 60px 0;
}

.page-resources-how-to-play-gem-win-safely__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-how-to-play-gem-win-safely__dark-bg {
  background-color: #1E1E1E;
  color: #ffffff;
}

.page-resources-how-to-play-gem-win-safely__content-section h2 {
  color: #FFD700;
  text-align: left;
  font-size: 2em;
  margin-bottom: 25px;
}

.page-resources-how-to-play-gem-win-safely__content-section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-resources-how-to-play-gem-win-safely__content-section strong {
  color: #FFD700;
}

.page-resources-how-to-play-gem-win-safely__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  display: block;
}

.page-resources-how-to-play-gem-win-safely__ordered-list,
.page-resources-how-to-play-gem-win-safely__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources-how-to-play-gem-win-safely__ordered-list li,
.page-resources-how-to-play-gem-win-safely__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-how-to-play-gem-win-safely__ordered-list ul,
.page-resources-how-to-play-gem-win-safely__unordered-list ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-top: 5px;
}

.page-resources-how-to-play-gem-win-safely__faq-section {
  padding: 60px 0;
}

.page-resources-how-to-play-gem-win-safely__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-resources-how-to-play-gem-win-safely__faq-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-resources-how-to-play-gem-win-safely__faq-item.active {
  background-color: #fff;
}

.page-resources-how-to-play-gem-win-safely__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #FFD700;
  color: #1E1E1E;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-resources-how-to-play-gem-win-safely__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #1E1E1E;
}

.page-resources-how-to-play-gem-win-safely__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-resources-how-to-play-gem-win-safely__faq-item.active .page-resources-how-to-play-gem-win-safely__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-how-to-play-gem-win-safely__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-resources-how-to-play-gem-win-safely__faq-item.active .page-resources-how-to-play-gem-win-safely__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-resources-how-to-play-gem-win-safely__conclusion-section {
  padding: 60px 0;
  text-align: center;
  background-color: #1E1E1E;
  color: #ffffff;
}

.page-resources-how-to-play-gem-win-safely__conclusion-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-how-to-play-gem-win-safely__hero-title {
    font-size: 3em;
  }
  .page-resources-how-to-play-gem-win-safely__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-how-to-play-gem-win-safely {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-how-to-play-gem-win-safely__hero-section {
    padding: 60px 20px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 500px;
  }

  .page-resources-how-to-play-gem-win-safely__hero-title {
    font-size: 2.5em;
  }

  .page-resources-how-to-play-gem-win-safely__hero-description {
    font-size: 1em;
  }

  .page-resources-how-to-play-gem-win-safely__introduction-video-section,
  .page-resources-how-to-play-gem-win-safely__content-section,
  .page-resources-how-to-play-gem-win-safely__faq-section,
  .page-resources-how-to-play-gem-win-safely__conclusion-section {
    padding: 40px 0;
  }

  .page-resources-how-to-play-gem-win-safely__container {
    padding: 0 15px;
  }

  .page-resources-how-to-play-gem-win-safely__section-title {
    font-size: 2em;
  }

  .page-resources-how-to-play-gem-win-safely__section-subtitle {
    font-size: 0.9em;
  }

  .page-resources-how-to-play-gem-win-safely__content-section h2 {
    font-size: 1.8em;
  }

  .page-resources-how-to-play-gem-win-safely__content-section p,
  .page-resources-how-to-play-gem-win-safely__ordered-list li,
  .page-resources-how-to-play-gem-win-safely__unordered-list li {
    font-size: 1em;
  }

  .page-resources-how-to-play-gem-win-safely img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources-how-to-play-gem-win-safely__video,
  .page-resources-how-to-play-gem-win-safely__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-how-to-play-gem-win-safely__video-wrapper {
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
  }

  .page-resources-how-to-play-gem-win-safely__hero-cta-buttons,
  .page-resources-how-to-play-gem-win-safely__conclusion-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-how-to-play-gem-win-safely__btn-primary,
  .page-resources-how-to-play-gem-win-safely__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-how-to-play-gem-win-safely__faq-question,
  .page-resources-how-to-play-gem-win-safely__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-how-to-play-gem-win-safely__faq-question h3 {
    font-size: 1.1em;
  }

  .page-resources-how-to-play-gem-win-safely__faq-answer p {
    font-size: 0.95em;
  }

  .page-resources-how-to-play-gem-win-safely__faq-item {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}