.page-resources-jollyph-game-guide {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop and mobile */
}

.page-resources-jollyph-game-guide__hero-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero for contrast */
  color: #FFFFFF;
}

.page-resources-jollyph-game-guide__hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-jollyph-game-guide__hero-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-jollyph-game-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-jollyph-game-guide__hero-image img {
  display: block;
  width: 100%;
  height: auto; /* Ensure aspect ratio is maintained */
  max-width: 1200px; /* Max width for the image container */
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-resources-jollyph-game-guide__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-jollyph-game-guide__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-resources-jollyph-game-guide__button--register {
  background-color: #FFFFFF; /* Register button background */
  color: #000000; /* Register button text */
  border: 2px solid #FFFFFF;
}

.page-resources-jollyph-game-guide__button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-resources-jollyph-game-guide__button--explore {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-resources-jollyph-game-guide__button--explore:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-resources-jollyph-game-guide__button--login {
  background-color: #FCBC45; /* Login button background */
  color: #000000; /* Login button text */
  border: 2px solid #FCBC45;
}

.page-resources-jollyph-game-guide__button--login:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.page-resources-jollyph-game-guide__content-area {
  max-width: 800px; /* Content width for comfortable reading */
  margin: 0 auto;
  padding: 40px 20px;
}

.page-resources-jollyph-game-guide__section-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-jollyph-game-guide__subsection-title {
  font-size: 1.5em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-jollyph-game-guide__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

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

.page-resources-jollyph-game-guide__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-jollyph-game-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-resources-jollyph-game-guide__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources-jollyph-game-guide__card-title {
  font-size: 1.3em;
  color: #000000;
  margin: 20px 15px 10px;
}

.page-resources-jollyph-game-guide__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-resources-jollyph-game-guide__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-bottom: 20px;
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-resources-jollyph-game-guide__button--small:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-resources-jollyph-game-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-jollyph-game-guide__list-item {
  margin-bottom: 10px;
}

.page-resources-jollyph-game-guide__button-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-resources-jollyph-game-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-jollyph-game-guide__return-link-wrapper {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
}

.page-resources-jollyph-game-guide__return-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-jollyph-game-guide__return-link:hover {
  color: #FCBC45;
}

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

  .page-resources-jollyph-game-guide__hero-description {
    font-size: 1em;
  }

  .page-resources-jollyph-game-guide__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-jollyph-game-guide__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-resources-jollyph-game-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-jollyph-game-guide__subsection-title {
    font-size: 1.3em;
  }

  .page-resources-jollyph-game-guide__paragraph,
  .page-resources-jollyph-game-guide__list {
    font-size: 1em;
  }

  .page-resources-jollyph-game-guide__game-categories {
    grid-template-columns: 1fr;
  }

  .page-resources-jollyph-game-guide__content-area {
    padding: 20px 15px;
  }

  /* Ensure all content area images are responsive and not too small */
  .page-resources-jollyph-game-guide__content-area img {
    max-width: 100%;
    height: auto; /* Important for preventing overflow */
    min-width: 200px; /* Enforce minimum size if not already naturally larger */
    min-height: 200px;
    object-fit: cover;
  }

  .page-resources-jollyph-game-guide__game-card img {
    height: 200px; /* Adjust height for mobile card images */
  }
}