/* style/game-guides.css */

/* Body background is handled by shared.css var(--background-color) which is #08160F (Deep Green) */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--background-color); /* #08160F */
}

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

.page-game-guides__dark-bg {
  background-color: var(--background-color); /* #08160F */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-game-guides__light-bg {
  background-color: #11271B; /* Card BG color for contrast */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding for content */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit hero image height */
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px 0;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

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

.page-game-guides__description {
  font-size: 1.15rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--gold-color); /* #F2C14E */
  color: var(--background-color); /* #08160F */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  color: var(--gold-color); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.3;
}

.page-game-guides__sub-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: bold;
  color: var(--main-color); /* #11A84E */
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-game-guides__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-game-guides__ordered-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-secondary-color); /* #A7D9B8 */
  position: relative;
  padding-left: 25px;
}

.page-game-guides__list-item::before {
  content: '✔';
  color: var(--main-color); /* #11A84E */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-game-guides__ordered-list .page-game-guides__list-item::before {
  content: none;
}

.page-game-guides__intro-section,
.page-game-guides__guide-section,
.page-game-guides__games-section,
.page-game-guides__payment-section,
.page-game-guides__download-section,
.page-game-guides__promotions-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
}

.page-game-guides__game-category {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--divider-color); /* #1E3A2A */
}

.page-game-guides__game-category:last-child {
  border-bottom: none;
}

.page-game-guides__image-block {
  margin: 30px 0;
  text-align: center;
}

.page-game-guides__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 30px;
}

.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;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main-color); /* #F2FFF6 */
  background-color: var(--card-bg-color); /* #11271B */
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: #1a3325; /* Slightly lighter for hover */
}

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

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

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

.page-game-guides__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  color: var(--text-secondary-color); /* #A7D9B8 */
  background-color: var(--background-color); /* #08160F */
}

.page-game-guides__faq-answer p {
  margin: 0;
  padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    margin-top: -60px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-guides__description {
    font-size: 1.05rem;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
  .page-game-guides__sub-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-game-guides__hero-content {
    margin-top: -40px;
    padding: 30px 15px 0;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-game-guides__description {
    font-size: 1rem;
  }
  .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: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-game-guides__sub-title {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    margin-top: 20px;
    margin-bottom: 15px;
  }
  .page-game-guides__text-block,
  .page-game-guides__list-item {
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__guide-section,
  .page-game-guides__games-section,
  .page-game-guides__payment-section,
  .page-game-guides__download-section,
  .page-game-guides__promotions-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section,
  .page-game-guides__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* FAQ specific mobile styles */
  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    margin-top: -30px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}