.page-game-guides {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from body via shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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;
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Primary color as background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-game-guides__main-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-guides__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background-color: #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-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Video Section */
.page-game-guides__video-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
  text-align: center;
}

.page-game-guides__video-container {
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  border-radius: 10px;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-game-guides__video-description {
  color: #f0f0f0;
  margin-top: 20px;
  font-size: 1.1em;
}

/* Content Area */
.page-game-guides__content-area {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for content */
  color: #ffffff; /* Light text for dark background */
}

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

.page-game-guides__sub-title {
  font-size: 2em;
  color: #017439; /* Primary color for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-game-guides__content-block {
  margin-bottom: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for content blocks */
  border-radius: 10px;
}

.page-game-guides__content-block p {
  margin-bottom: 15px;
}

.page-game-guides__content-block ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__content-block li {
  margin-bottom: 8px;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-game-guides__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

.page-game-guides__card-title a:hover {
  color: #017439;
}

.page-game-guides__card p {
  color: #cccccc;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-game-guides__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-game-guides__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-game-guides__cta-buttons--bottom {
  margin-top: 60px;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-game-guides__faq-section {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

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

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

.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;
  color: #cccccc;
  font-size: 1.05em;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 20px;
}

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

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

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

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

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-guides__video-section {
    padding: 40px 0;
  }

  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-game-guides__content-area {
    padding: 40px 0;
  }

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

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

  .page-game-guides__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__content-block {
    padding: 15px;
  }

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

  .page-game-guides p,
  .page-game-guides li,
  .page-game-guides__card p {
    font-size: 15px;
  }

  .page-game-guides__faq-question {
    font-size: 1.1em;
    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 15px;
  }

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

  /* Ensure all img elements within .page-game-guides are responsive */
  .page-game-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images are responsive */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}