/* style/index-game-guides.css */
.page-index-game-guides {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on body background */
}

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

.page-index-game-guides__dark-bg {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-index-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-index-game-guides__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-index-game-guides__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-index-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image wrapper for consistent content width */
  margin-bottom: 30px;
}

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

.page-index-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-index-game-guides__main-title {
  font-size: clamp(30px, 4vw, 52px); /* Use clamp for H1 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.page-index-game-guides__btn-primary,
.page-index-game-guides__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-game-guides__btn-primary {
  background-color: #C30808; /* Custom color for register/login type buttons */
  color: #FFFF00; /* Custom text color */
  border: 2px solid #C30808;
}

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

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

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

/* Why Choose Section */
.page-index-game-guides__why-choose-section {
  padding: 80px 0;
}

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

.page-index-game-guides__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-index-game-guides__feature-item:hover {
  transform: translateY(-5px);
}

.page-index-game-guides__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-game-guides__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-index-game-guides__feature-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Game Guides Section */
.page-index-game-guides__game-guides-section {
  padding: 80px 0;
}

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

.page-index-game-guides__guide-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-index-game-guides__guide-card:hover {
  transform: translateY(-5px);
}

.page-index-game-guides__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-game-guides__guide-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: #ffffff;
}

.page-index-game-guides__guide-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-game-guides__guide-link:hover {
  color: #FFFF00; /* Custom highlight color */
}

.page-index-game-guides__guide-text {
  font-size: 15px;
  line-height: 1.5;
  padding: 0 20px;
  flex-grow: 1;
}

.page-index-game-guides__read-more {
  display: inline-block;
  margin: 20px;
  padding: 10px 15px;
  background-color: #C30808; /* Custom button color */
  color: #FFFF00; /* Custom text color */
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index-game-guides__read-more:hover {
  background-color: #e02a2a;
}

/* Strategy Section */
.page-index-game-guides__strategy-section {
  padding: 80px 0;
}

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

.page-index-game-guides__strategy-block {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
}

.page-index-game-guides__strategy-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-game-guides__strategy-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-index-game-guides__strategy-block p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Safety Section */
.page-index-game-guides__safety-section {
  padding: 80px 0;
}

.page-index-game-guides__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-index-game-guides__safety-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-index-game-guides__safety-icon {
  width: 100%;
  max-width: 250px; /* Smallest allowed for generation, but visual design can be smaller */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-game-guides__safety-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index-game-guides__safety-item p {
  font-size: 15px;
  line-height: 1.6;
}

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

.page-index-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-game-guides__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-index-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  color: #017439;
  list-style: none;
}

.page-index-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-index-game-guides__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-index-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

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

.page-index-game-guides__faq-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808; /* Custom button color */
  color: #FFFF00; /* Custom text color */
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index-game-guides__faq-btn:hover {
  background-color: #e02a2a;
}

/* CTA Bottom Section */
.page-index-game-guides__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-game-guides__container {
    padding: 0 15px;
  }
}

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

  .page-index-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-index-game-guides__main-title {
    font-size: clamp(26px, 6vw, 40px); /* Adjust clamp for smaller screens */
  }

  .page-index-game-guides__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

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

  .page-index-game-guides__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 30px;
  }

  .page-index-game-guides__why-choose-section,
  .page-index-game-guides__game-guides-section,
  .page-index-game-guides__strategy-section,
  .page-index-game-guides__safety-section,
  .page-index-game-guides__faq-section,
  .page-index-game-guides__cta-bottom {
    padding: 50px 0;
  }

  .page-index-game-guides__features-grid,
  .page-index-game-guides__guides-grid,
  .page-index-game-guides__strategy-content,
  .page-index-game-guides__safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-game-guides__feature-item,
  .page-index-game-guides__guide-card,
  .page-index-game-guides__strategy-block,
  .page-index-game-guides__safety-item {
    padding: 20px;
  }

  .page-index-game-guides__feature-icon,
  .page-index-game-guides__guide-image,
  .page-index-game-guides__strategy-image,
  .page-index-game-guides__safety-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  
  /* Ensure all image containers are responsive */
  .page-index-game-guides__hero-image-wrapper,
  .page-index-game-guides__feature-item,
  .page-index-game-guides__guide-card,
  .page-index-game-guides__strategy-block,
  .page-index-game-guides__safety-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-game-guides__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-index-game-guides__faq-answer {
    font-size: 15px;
    padding: 0 15px 15px;
  }
  
  /* Image and video containers must have overflow hidden */
  .page-index-game-guides__hero-section,
  .page-index-game-guides__why-choose-section,
  .page-index-game-guides__game-guides-section,
  .page-index-game-guides__strategy-section,
  .page-index-game-guides__safety-section,
  .page-index-game-guides__faq-section,
  .page-index-game-guides__cta-bottom,
  .page-index-game-guides__container {
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}