.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000000, so text should be light */
  background-color: #000000;
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #000000; /* Ensure dark background */
  color: #ffffff;
}

.page-game-guides__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-game-guides__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-game-guides__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Above video, below content */
  cursor: pointer;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

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

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  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;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

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

.page-game-guides__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

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

/* General Section Styling */
.page-game-guides__section {
  padding: 60px 0;
  background-color: #000000;
  color: #ffffff;
}

.page-game-guides__section:nth-of-type(odd) {
  background-color: #0d0d0d;
}

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

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

/* Image Styling */
.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px 0;
  display: block;
  object-fit: cover;
}

.page-game-guides__image-right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 50%; /* Adjust as needed */
  height: auto;
  object-fit: cover;
}

.page-game-guides__image-left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 50%; /* Adjust as needed */
  height: auto;
  object-fit: cover;
}

/* Clearfix for floated images */
.page-game-guides__container::after {
  content: "";
  display: table;
  clear: both;
}

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

.page-game-guides__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-game-guides__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-game-guides__card-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-game-guides__btn-text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.page-game-guides__btn-text-link:hover {
  text-decoration: underline;
}

.page-game-guides__arrow {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-game-guides__btn-text-link:hover .page-game-guides__arrow {
  margin-left: 10px;
}

/* Benefits Section */
.page-game-guides__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-game-guides__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #26A9E0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-game-guides__benefit-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-game-guides__benefit-description {
  color: #e0e0e0;
}

/* Optimization List */
.page-game-guides__optimization-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-game-guides__optimization-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  border-left: 3px solid #EA7C07; /* Login color for highlight */
  color: #f0f0f0;
}

.page-game-guides__list-item-title {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.page-game-guides__optimization-list li p {
  color: #e0e0e0;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-game-guides__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

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

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

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

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(0deg); /* + to - */
}

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

.page-game-guides__cta-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

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

  .page-game-guides__image-right,
  .page-game-guides__image-left {
    max-width: 100%;
    float: none;
    margin: 20px auto;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    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-footer {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-game-guides img,
  .page-game-guides video,
  .page-game-guides__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .page-game-guides__hero-video-wrapper,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__category-grid,
  .page-game-guides__benefits-grid,
  .page-game-guides__optimization-list,
  .page-game-guides__faq-list,
  .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;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__category-grid,
  .page-game-guides__benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Color Contrast Fixes (as per requirements) */
/* Main page content should be light text on dark background */
.page-game-guides__section {
  background-color: #000000; /* Default dark background */
  color: #ffffff;
}

.page-game-guides__section:nth-of-type(odd) {
  background-color: #0d0d0d; /* Slightly different dark background */
}

.page-game-guides__text-block, .page-game-guides__hero-description, .page-game-guides__card-description, .page-game-guides__benefit-description, .page-game-guides__optimization-list li p, .page-game-guides__faq-answer p {
  color: #e0e0e0; /* Lighter white for readability on dark background */
}

.page-game-guides__hero-title, .page-game-guides__section-title, .page-game-guides__card-title, .page-game-guides__benefit-title, .page-game-guides__list-item-title, .page-game-guides__faq-title {
  color: #ffffff; /* Ensure white text for titles on dark background, except where brand color is used for links */
}

.page-game-guides__card-title a, .page-game-guides__btn-text-link, .page-game-guides__faq-toggle {
  color: #26A9E0; /* Brand primary color for interactive elements/highlights */
}

/* Specific color for Login button if used */
.page-game-guides__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border-color: #EA7C07;
}

.page-game-guides__btn-login:hover {
  background-color: #c76706;
  border-color: #c76706;
}