/* style/game-guides.css */
.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 handled by shared.css */
}

.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-game-guides__section-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__text-block a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__text-block a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-game-guides__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  z-index: -1;
}

.page-game-guides__hero-content {
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
  padding: 0 15px;
}

.page-game-guides__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

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

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

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-read-more {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: #FFD700;
  color: #121212;
}

.page-game-guides__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-game-guides__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
  transform: translateY(-3px);
}

.page-game-guides__btn-read-more {
  background-color: #8B0000;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-game-guides__btn-read-more:hover {
  background-color: #6a0000;
}

/* Dark Background Section */
.page-game-guides__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Game Types Section */
.page-game-guides__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 450px; /* Ensure cards have a minimum height */
}

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

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

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

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

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

/* Advanced Strategy Section */
.page-game-guides__strategy-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__strategy-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

.page-game-guides__strategy-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-game-guides__strategy-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-game-guides__strategy-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__strategy-description a:hover {
  text-decoration: underline;
}

/* Video Section */
.page-game-guides__video-section {
  background-color: #0d0d0d;
  padding-top: var(--header-offset, 120px);
}

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

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

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

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

.page-game-guides__support-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-game-guides__support-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slight brightness adjustment for visibility */
}

.page-game-guides__support-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-game-guides__support-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-game-guides__support-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__support-description a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: #121212;
}

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

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

.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: #FFD700;
  cursor: pointer;
  background-color: #2a2a2a;
  transition: background-color 0.3s ease;
}

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

.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;
  color: #f0f0f0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

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

.page-game-guides__faq-answer a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-game-guides__cta-section {
  background-color: #8B0000;
  color: #ffffff;
  padding: 80px 20px;
}

.page-game-guides__cta-section .page-game-guides__section-title {
  color: #FFD700;
}

.page-game-guides__cta-section .page-game-guides__text-block {
  color: #f0f0f0;
}

.page-game-guides__cta-section .page-game-guides__text-block a {
  color: #FFD700;
}

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

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

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

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

  .page-game-guides__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .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,
  .page-game-guides__btn-read-more {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__section {
    padding: 40px 15px;
  }

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

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

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

  .page-game-guides__game-cards,
  .page-game-guides__strategy-items,
  .page-game-guides__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card,
  .page-game-guides__strategy-item,
  .page-game-guides__support-item {
    padding: 20px;
  }

  .page-game-guides__card-image,
  .page-game-guides__strategy-image {
    height: 150px;
  }

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

  .page-game-guides__strategy-title {
    font-size: 1.3em;
  }

  .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: 15px 20px 20px;
  }

  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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: hidden !important;
  }

  .page-game-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 15px;
  }

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

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__game-cards,
  .page-game-guides__strategy-items,
  .page-game-guides__support-grid,
  .page-game-guides__faq-list,
  .page-game-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    height: 400px;
  }

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

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