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

.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-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-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

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

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold-color);
  margin-bottom: 15px;
  /* No fixed font-size, rely on clamp if absolutely needed, otherwise let responsive design handle */
}

.page-game-guides__subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.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 {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

.page-game-guides__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: var(--deep-green);
}

.page-game-guides__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-game-guides__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-main);
}

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

.page-game-guides__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-game-guides__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__card-button {
  align-self: flex-start;
}

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

.page-game-guides__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding: 0 25px 20px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 500px !important;
  padding: 0 25px 20px;
}

.page-game-guides__cta-block {
  padding: 50px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.page-game-guides__cta-block .page-game-guides__section-title {
  color: var(--deep-green);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 2.8rem;
  }
  .page-game-guides__section-title {
    font-size: 2rem;
  }
  .page-game-guides__text-block {
    font-size: 1rem;
  }
  .page-game-guides__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__main-title {
    font-size: 2.2rem;
  }
  .page-game-guides__subtitle {
    font-size: 1.1rem;
  }
  .page-game-guides__section-title {
    font-size: 1.8rem;
  }
  .page-game-guides__text-block {
    font-size: 0.95rem;
  }
  .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-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__cta-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

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

  .page-game-guides__card-image {
    height: 200px; /* Adjust height for smaller screens */
  }

  .page-game-guides__faq-question,
  .page-game-guides__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 1.8rem;
  }
  .page-game-guides__subtitle {
    font-size: 1rem;
  }
  .page-game-guides__section-title {
    font-size: 1.5rem;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}