/* Base Styles for page-game-guides */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Default text color for dark background */
  background-color: #140C0C; /* Main background color */
}

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

.page-game-guides__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F3C54D; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-guides__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C61F1F; /* Main brand color */
  border-radius: 2px;
}

.page-game-guides__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-game-guides__list-item {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 4px solid #C61F1F;
  border-radius: 5px;
  font-size: 17px;
}

.page-game-guides__list-item strong {
  color: #F3C54D;
}

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

/* Hero Section */
.page-game-guides__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  background: linear-gradient(180deg, #140C0C 0%, #2A1212 100%);
  position: relative;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-game-guides__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 20px;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  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: #2A1212;
  color: #F3C54D;
  border: 2px solid #6A1E1E;
}

.page-game-guides__btn-secondary:hover {
  background: #6A1E1E;
  color: #FFF1E8;
  border-color: #F3C54D;
}

.page-game-guides__btn-margin-top {
  margin-top: 30px;
}

/* Section Backgrounds */
.page-game-guides__light-bg {
  background-color: #2A1212; /* Card BG for light-bg sections */
  color: #FFF1E8;
  padding: 60px 0;
}

.page-game-guides__dark-bg {
  background-color: #140C0C; /* Main BG for dark-bg sections */
  color: #FFF1E8;
  padding: 60px 0;
}

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

.page-game-guides__game-card {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #6A1E1E;
}

.page-game-guides__card-title {
  font-size: 24px;
  color: #F3C54D;
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-game-guides__card-description {
  font-size: 16px;
  color: #FFF1E8;
  padding: 0 15px 20px;
  text-align: justify;
}

/* FAQ Section */
details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212;
  color: #FFF1E8;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #6A1E1E;
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D;
}
.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C;
  border-radius: 0 0 8px 8px;
  color: #FFF1E8;
}

.page-game-guides__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* CTA Section */
.page-game-guides__cta-section {
  text-align: center;
  padding: 80px 0;
}

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

.page-game-guides__cta-section .page-game-guides__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__container {
    padding: 20px 30px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-game-guides__hero-description {
    font-size: 18px;
  }

  .page-game-guides__section-title {
    font-size: 32px;
  }

  .page-game-guides__text-block {
    font-size: 17px;
  }

  .page-game-guides__game-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 15px;
  }

  /* Hero Section */
  .page-game-guides__hero-section {
    padding-top: 10px;
  }
  .page-game-guides__hero-image-wrapper {
    max-height: 400px;
  }
  .page-game-guides__hero-image {
    object-fit: contain !important; /* Ensure image fits */
  }
  .page-game-guides__hero-content {
    padding: 30px 15px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-game-guides__hero-description {
    font-size: 16px;
  }

  /* Section Titles */
  .page-game-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Text Blocks */
  .page-game-guides__text-block {
    font-size: 16px;
    text-align: left;
  }

  /* Lists */
  .page-game-guides__list-item {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* Images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* Buttons */
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 14px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .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: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Game Cards */
  .page-game-guides__game-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__card-image {
    height: 180px;
  }
  .page-game-guides__card-title {
    font-size: 20px;
  }

  /* FAQ */
  details.page-game-guides__faq-item summary.page-game-guides__faq-question { padding: 15px; }
  .page-game-guides__faq-qtext { font-size: 16px; }
  .page-game-guides__faq-toggle { font-size: 24px; width: 24px; }
  details.page-game-guides__faq-item .page-game-guides__faq-answer { padding: 0 15px 15px; }

  /* CTA Section */
  .page-game-guides__cta-section {
    padding: 50px 0;
  }
  .page-game-guides__cta-section .page-game-guides__text-block {
    font-size: 18px;
  }
}