/* style/game-guides.css */
/* Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); } */

:root {
  --page-game-guides-primary-color: #11A84E;
  --page-game-guides-secondary-color: #22C768;
  --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-game-guides-card-bg: #11271B;
  --page-game-guides-background: #08160F;
  --page-game-guides-text-main: #F2FFF6;
  --page-game-guides-text-secondary: #A7D9B8;
  --page-game-guides-border: #2E7A4E;
  --page-game-guides-glow: #57E38D;
  --page-game-guides-gold: #F2C14E;
  --page-game-guides-divider: #1E3A2A;
  --page-game-guides-deep-green: #0A4B2C;
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-guides-text-main); /* Default text color for dark background */
  background-color: var(--page-game-guides-background); /* Default background */
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: var(--page-game-guides-deep-green);
}

.page-game-guides__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 2; /* Ensure content is above image */
  padding: 0 20px;
  max-width: 900px;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-game-guides-text-main);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--page-game-guides-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-game-guides-glow);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--page-game-guides-primary-color);
  border: 2px solid var(--page-game-guides-primary-color);
}

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

.page-game-guides__introduction-section,
.page-game-guides__game-section,
.page-game-guides__benefits-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 60px 0;
}

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

.page-game-guides__dark-bg {
  background-color: var(--page-game-guides-background);
  color: var(--page-game-guides-text-main);
}

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

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--page-game-guides-text-main);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-game-guides__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__image-container {
  margin: 40px 0;
  text-align: center;
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

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

.page-game-guides__card {
  padding: 30px;
  border-radius: 12px;
  background-color: var(--page-game-guides-card-bg);
  color: var(--page-game-guides-text-main);
  border: 1px solid var(--page-game-guides-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 10px var(--page-game-guides-glow);
}

.page-game-guides__card-bg-light {
  background-color: #f9f9f9; /* Light background for cards in light sections */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-game-guides__card-bg-light:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 10px var(--page-game-guides-primary-color);
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__card-bg-light .page-game-guides__card-title {
  color: var(--page-game-guides-primary-color);
}

.page-game-guides__list {
  list-style: disc;
  margin-left: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-game-guides-text-secondary);
}

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

.page-game-guides__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(17, 168, 78, 0.1); /* Light transparent green */
  border-radius: 10px;
  border: 1px solid var(--page-game-guides-primary-color);
}

.page-game-guides__light-bg .page-game-guides__cta-block {
  background-color: rgba(17, 168, 78, 0.05);
  border: 1px solid var(--page-game-guides-secondary-color);
}

.page-game-guides__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-game-guides__benefits-list .page-game-guides__list-item {
  background-color: var(--page-game-guides-card-bg-light);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-game-guides-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #333333;
}

.page-game-guides__benefits-list .page-game-guides__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-game-guides-primary-color);
}

.page-game-guides__benefits-list .page-game-guides__text-block {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 0;
}

.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-card-bg);
  border: 1px solid var(--page-game-guides-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-game-guides-text-main);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-item summary:hover {
  background-color: rgba(17, 168, 78, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-game-guides-primary-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__faq-answer .page-game-guides__text-block {
  margin-bottom: 0;
}

.page-game-guides__cta-section {
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

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

.page-game-guides__cta-section .page-game-guides__text-block {
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-section {
    min-height: 400px;
    padding-top: 10px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-guides__subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-game-guides__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    min-height: 350px;
    padding: 10px 0 40px 0;
  }
  .page-game-guides__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-guides__subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 20px;
  }
  .page-game-guides__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: 12px 20px;
  }
  .page-game-guides__introduction-section,
  .page-game-guides__game-section,
  .page-game-guides__benefits-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__video-section { /* If video section existed */
    padding-top: 10px !important;
  }
  .page-game-guides__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-game-guides__subtitle {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-game-guides__card-title {
    font-size: 1.3rem;
  }
  .page-game-guides__text-block {
    font-size: 1rem;
  }
}