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

.page-gameplay-guides__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-gameplay-guides__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
}

.page-gameplay-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-gameplay-guides__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gameplay-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-gameplay-guides__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-gameplay-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-gameplay-guides__btn-primary,
.page-gameplay-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;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-gameplay-guides__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-gameplay-guides__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-gameplay-guides__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #C30808;
}

.page-gameplay-guides__section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
}

.page-gameplay-guides__section:last-of-type {
  border-bottom: none;
}

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

.page-gameplay-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-gameplay-guides__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gameplay-guides__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #333333;
}

.page-gameplay-guides__list,
.page-gameplay-guides__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-gameplay-guides__ordered-list {
  list-style-type: decimal;
}

.page-gameplay-guides__list li,
.page-gameplay-guides__ordered-list li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-gameplay-guides__image-card {
  margin: 25px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15px;
}

.page-gameplay-guides__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-gameplay-guides__image-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
  padding: 0 15px;
  text-align: center;
}

.page-gameplay-guides__button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gameplay-guides__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-gameplay-guides__btn-link:hover {
  background-color: #005f2c;
}

.page-gameplay-guides__game-category {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e0e0e0;
}

.page-gameplay-guides__game-category:last-of-type {
  border-bottom: none;
}

.page-gameplay-guides__app-guide-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-gameplay-guides__app-image {
  max-width: 400px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gameplay-guides__app-steps {
  flex-grow: 1;
}

/* FAQ styles */
details.page-gameplay-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-gameplay-guides__faq-item summary.page-gameplay-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-gameplay-guides__faq-item summary.page-gameplay-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gameplay-guides__faq-item summary.page-gameplay-guides__faq-question:hover {
  background: #f5f5f5;
}
.page-gameplay-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-gameplay-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gameplay-guides__faq-item .page-gameplay-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gameplay-guides__hero-image-wrapper {
    max-height: 400px;
  }
  .page-gameplay-guides__hero-content {
    padding: 15px;
    width: 95%;
  }
  .page-gameplay-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-gameplay-guides__hero-description {
    font-size: 1.1rem;
  }
  .page-gameplay-guides__section {
    padding: 30px 0;
  }
  .page-gameplay-guides__container {
    padding: 0 15px;
  }
  .page-gameplay-guides__section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 25px;
  }
  .page-gameplay-guides__sub-title {
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    margin-top: 25px;
  }
  .page-gameplay-guides__app-guide-content {
    flex-direction: column;
    align-items: center;
  }
  .page-gameplay-guides__app-image {
    max-width: 300px;
  }
  .page-gameplay-guides__app-steps {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-gameplay-guides__hero-section {
    padding-top: 10px; /* Ensure small top padding on mobile */
    margin-bottom: 30px;
  }
  .page-gameplay-guides__hero-image-wrapper {
    max-height: 300px;
  }
  .page-gameplay-guides__hero-image {
    object-fit: contain !important; /* Mobile hero image must contain, not cover */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    filter: none; /* Remove darkening for better visibility on mobile */
  }
  .page-gameplay-guides__hero-content {
    position: static; /* Remove absolute positioning on mobile */
    transform: none; /* Remove transform on mobile */
    padding: 20px 15px;
    width: 100%;
    max-width: 100%;
    background-color: #017439; /* Add background to text area for contrast */
    text-shadow: none;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
    margin-top: -10px; /* Pull up to overlap image slightly */
  }
  .page-gameplay-guides__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-gameplay-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-gameplay-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    padding: 0 15px;
  }
  .page-gameplay-guides__btn-primary,
  .page-gameplay-guides__btn-secondary,
  .page-gameplay-guides__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-gameplay-guides__section {
    padding: 20px 0;
    margin-bottom: 15px;
  }
  .page-gameplay-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gameplay-guides__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  .page-gameplay-guides__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-gameplay-guides__text-block,
  .page-gameplay-guides__list li,
  .page-gameplay-guides__ordered-list li {
    font-size: 0.95rem;
  }
  .page-gameplay-guides__image-card {
    margin: 15px 0;
    padding-bottom: 10px;
  }
  .page-gameplay-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gameplay-guides__app-image {
    max-width: 250px !important;
    width: 100% !important;
  }
  details.page-gameplay-guides__faq-item summary.page-gameplay-guides__faq-question {
    padding: 15px;
  }
  .page-gameplay-guides__faq-qtext {
    font-size: 15px;
  }
  details.page-gameplay-guides__faq-item .page-gameplay-guides__faq-answer {
    padding: 0 15px 15px;
  }
  .page-gameplay-guides__app-guide-content {
    gap: 20px;
  }
}