.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-game-guides__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjust padding-top to account for fixed header */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background-image: url('[GALLERY:hero:1920x1080:bl_full,game_guides,hero_banner]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-game-guides__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: #FFFFFF;
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__highlight {
  color: #26A9E0;
  font-weight: bold;
}

.page-game-guides__dark-bg .page-game-guides__highlight {
  color: #FFFFFF;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-game-guides__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Intro Section */
.page-game-guides__intro-section,
.page-game-guides__game-types-section,
.page-game-guides__safety-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 60px 0;
}

/* Game Types Section */
.page-game-guides__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-guides__list {
  list-style: none;
  padding: 0 15px 15px;
  text-align: left;
  color: #555555;
}

.page-game-guides__list li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.page-game-guides__list li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
}

.page-game-guides__card .page-game-guides__btn-secondary {
  margin: 0 15px;
  width: calc(100% - 30px);
}

/* Strategy Section */
.page-game-guides__strategy-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-guides__strategy-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-game-guides__strategy-item h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-game-guides__strategy-item p {
  font-size: 1em;
  color: #f0f0f0;
}

.page-game-guides__strategy-cta {
  margin-top: 50px;
}

/* Safety Section */
.page-game-guides__safety-section {
  padding: 80px 0;
}

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

.page-game-guides__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #26A9E0;
}

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

.page-game-guides__feature-item p {
  color: #555555;
}

.page-game-guides__safety-cta {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Getting Started Section */
.page-game-guides__getting-started-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-game-guides__step-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-game-guides__step-image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-guides__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-game-guides__step-item p {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__step-item .page-game-guides__btn-primary {
  width: 100%;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 0;
}

.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  color: #333333;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #f0f0f0;
}

.page-game-guides__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #26A9E0;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: #555555;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px !important;
}

.page-game-guides__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__conclusion-section .page-game-guides__btn-primary {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.8em;
  }

  .page-game-guides__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    min-height: 300px;
    padding: 80px 15px 40px; /* Adjust padding-top for mobile header */
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-game-guides__hero-title {
    font-size: 2.2em;
  }

  .page-game-guides__hero-description {
    font-size: 1.1em;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
  }

  .page-game-guides__paragraph {
    font-size: 1em;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__grid-container,
  .page-game-guides__strategy-grid,
  .page-game-guides__safety-features,
  .page-game-guides__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-image,
  .page-game-guides__step-image {
    height: 200px;
  }

  .page-game-guides__container,
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__strategy-item,
  .page-game-guides__feature-item,
  .page-game-guides__step-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
  }

  .page-game-guides__faq-answer {
    padding: 0 20px;
  }

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 10px 20px 20px !important;
  }

  .page-game-guides__card .page-game-guides__btn-secondary,
  .page-game-guides__step-item .page-game-guides__btn-primary {
    margin: 0;
    width: 100%;
  }
}