/* style/game-guides.css */

/* Base styles for page content, assuming body has a dark background */
.page-game-guides {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-game-guides__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-game-guides__text-block {
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-game-guides__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-game-guides__hero-description {
  font-size: clamp(1.1em, 2vw, 1.3em);
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* CTA Button Styles */
.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-game-guides__center-cta {
  text-align: center;
  margin-top: 50px;
}

.page-game-guides__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Section Backgrounds for Contrast */
.page-game-guides__dark-section .page-game-guides__section-title,
.page-game-guides__dark-section .page-game-guides__text-block,
.page-game-guides__dark-section .page-game-guides__sub-title {
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__sub-title {
  color: #333333;
}

.page-game-guides__light-bg .page-game-guides__text-block {
  color: #555555;
}

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

.page-game-guides__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styles */
.page-game-guides__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark body bg */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* Default for dark background */
}

.page-game-guides__light-bg .page-game-guides__card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-game-guides__light-bg .page-game-guides__card-title {
  color: #26A9E0;
}

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

.page-game-guides__light-bg .page-game-guides__card-text {
  color: #555555;
}

.page-game-guides__card .page-game-guides__cta-button {
  margin-top: auto;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 0;
}

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Remove default marker for details summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
}

/* Ensure all images are responsive and avoid small icons */
.page-game-guides img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

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

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

  .page-game-guides__grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__grid--2-col {
    grid-template-columns: 1fr;
  }

  .page-game-guides__card {
    padding: 20px;
  }

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

  .page-game-guides__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
  }

  /* Mobile specific image handling */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important;
  }

  .page-game-guides__hero-image-wrapper,
  .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,
  .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; /* Ensure no overflow */
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }
}

/* No CSS filters allowed on images */
.page-game-guides img {
  filter: none; /* Ensure no filter is applied */
}