/* style/game-guides.css */

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

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

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

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

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

.page-game-guides__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-game-guides__sub-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-guides__paragraph {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-game-guides a {
  color: var(--glow-color);
  text-decoration: none;
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles header offset, this is decorative top padding */
  min-height: 600px;
  text-align: center;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-top: 100px; /* Adjust to ensure content is below the image in normal flow */
}

.page-game-guides__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-guides__hero-description {
  font-size: 20px;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-game-guides__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--page-bg-color);
  transform: translateY(-3px);
}

.page-game-guides__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Image Text Block */
.page-game-guides__image-text-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-game-guides__content-image {
  flex-shrink: 0;
  width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-game-guides__text-content {
  flex-grow: 1;
}

/* Grid Container for Cards */
.page-game-guides__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-game-guides__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

.page-game-guides__list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  font-size: 16px;
}

.page-game-guides__list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-weight: bold;
}

.page-game-guides__list-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
  text-align: left;
}

.page-game-guides__list-columns li {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__info-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-game-guides__info-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-game-guides__info-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

/* FAQ Section */
.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-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

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

.page-game-guides__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(var(--deep-green-color), 0.8);
}

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

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

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

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

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 500px !important; /* For JS-driven accordion */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__image-text-block {
    flex-direction: column;
    align-items: center;
  }

  .page-game-guides__content-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
    min-height: 450px;
  }

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

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

  .page-game-guides__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

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

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

  .page-game-guides__paragraph {
    font-size: 16px;
  }

  .page-game-guides__content-image,
  .page-game-guides__info-image {
    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;
  }

  .page-game-guides__grid-container,
  .page-game-guides__list-columns,
  .page-game-guides__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__list li {
    font-size: 15px;
  }

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

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