/* style/game-guides.css */

/* Base styles for the page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Default background color */
}

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

.page-game-guides__section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-game-guides__dark-section {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-main-color, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-game-guides__list-item strong {
  color: var(--text-main-color, #F2FFF6);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding, this is for internal spacing */
  min-height: 500px;
  overflow: hidden;
  text-align: center;
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* CTA Buttons */
.page-game-guides__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary {
  background: var(--card-bg-color, #11271B);
  color: var(--glow-color, #57E38D);
  border: 2px solid var(--glow-color, #57E38D);
}

.page-game-guides__btn-secondary:hover {
  background: var(--glow-color, #57E38D);
  color: var(--card-bg-color, #11271B);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Image styles */
.page-game-guides__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  max-width: 800px; /* Constrain content images */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
}

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

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

.page-game-guides__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

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

.page-game-guides__faq-question:hover {
  background-color: rgba(var(--primary-color-rgb, 17, 168, 78), 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--glow-color, #57E38D);
}

.page-game-guides__faq-answer {
  padding: 0 25px 18px;
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
  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; /* Sufficient height for content */
  padding-top: 10px; /* Add padding for open state */
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 500px; /* For JS fallback */
  padding-top: 10px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-question {
  background-color: rgba(var(--primary-color-rgb, 17, 168, 78), 0.1);
}

.page-game-guides__faq-item p {
  margin-bottom: 10px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-game-guides__faq-item a {
  color: var(--glow-color, #57E38D);
  text-decoration: none;
}

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

/* Conclusion Section */
.page-game-guides__conclusion .page-game-guides__text-block {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__conclusion .page-game-guides__cta-buttons {
  margin-top: 40px;
}

.page-game-guides__conclusion .page-game-guides__cta-button {
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-game-guides__description {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-game-guides__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
  }

  .page-game-guides__sub-title {
    font-size: clamp(20px, 2.8vw, 26px);
  }
}

@media (max-width: 768px) {
  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-game-guides__hero-content {
    padding: 10px;
  }

  .page-game-guides__main-title {
    font-size: clamp(28px, 6vw, 38px);
  }

  .page-game-guides__description {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-game-guides__section-title {
    font-size: clamp(22px, 5vw, 30px);
  }

  .page-game-guides__sub-title {
    font-size: clamp(18px, 4vw, 24px);
  }

  .page-game-guides__text-block, .page-game-guides__list-item {
    font-size: 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-game-guides__cta-button,
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-game-guides__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-game-guides__description {
    font-size: clamp(14px, 4vw, 16px);
  }

  .page-game-guides__cta-button {
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-game-guides__section-title {
    font-size: clamp(20px, 6vw, 26px);
  }

  .page-game-guides__sub-title {
    font-size: clamp(16px, 5vw, 20px);
  }
}