.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000) */
}

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

.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); /* Ensure space for fixed header */
  text-align: center;
  background: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register and Login font color for hero title */
  font-weight: bold;
  line-height: 1.2;
}

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

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-game-guides__btn-primary:hover {
  background: #9c0606;
  border-color: #9c0606;
}

.page-game-guides__btn-secondary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-game-guides__btn-secondary:hover {
  background: #005a2d;
  border-color: #005a2d;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for titles */
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #ffffff; /* Default for dark background */
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__introduction-section,
.page-game-guides__optimization-section,
.page-game-guides__conclusion-section {
  padding: 80px 0;
  background: #000; /* Dark background from shared.css */
  color: #ffffff; /* Light text for dark background */
}

.page-game-guides__game-types-section,
.page-game-guides__faq-section {
  padding: 80px 0;
  background: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-game-guides__game-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
  color: #FFFF00; /* Custom font color for titles */
  flex-grow: 1;
}

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

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

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

.page-game-guides__card-button {
  display: inline-block;
  background: #C30808; /* Custom color for buttons */
  color: #FFFF00; /* Custom font color for buttons */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: calc(100% - 40px);
  align-self: center;
}

.page-game-guides__card-button:hover {
  background: #9c0606;
}

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

.page-game-guides__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-game-guides__feature-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color for titles */
}

.page-game-guides__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-game-guides__cta-buttons--center {
  margin-top: 50px;
  text-align: center;
}

.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFFF00; /* Custom font color for FAQ questions */
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
}

.page-game-guides__faq-answer {
  padding: 15px 20px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 300px;
  }

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

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

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__paragraph,
  .page-game-guides__feature-description,
  .page-game-guides__faq-answer {
    font-size: 0.95em;
  }

  .page-game-guides__game-grid,
  .page-game-guides__features-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__hero-buttons,
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides 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-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  .page-game-guides__game-card .page-game-guides__card-image {
    height: auto; /* Allow image height to adjust on mobile */
  }

  .page-game-guides__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-game-guides__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 2em;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
  }
}

/* Ensure content images are not smaller than 200px */
.page-game-guides img:not([class*="logo"]):not([class*="icon"]):not([class*="small"]) {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-game-guides img {
  filter: none;
}