/* style/game-guides.css */

/* Base styles for the page content, ensuring text contrast with dark body background */
.page-game-guides {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding to the bottom of the main content */
}

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

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

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

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative; /* Changed to relative for simpler stacking below image */
  z-index: 1;
  max-width: 800px;
  padding: 30px 20px;
  margin-top: -100px; /* Pull content up slightly over image */
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-game-guides__main-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-game-guides__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main for button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__cta-button--wide {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0 auto;
    display: block;
}

/* Section Titles */
.page-game-guides__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  border-bottom: 2px solid #2E7A4E; /* Border */
  padding-bottom: 15px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

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

.page-game-guides__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

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

/* Cards */
.page-game-guides__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin: 0 20px 10px;
  font-weight: bold;
}

.page-game-guides__card-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-game-guides__card .page-game-guides__cta-button {
  margin: 0 20px;
  width: auto;
  text-align: center;
}

/* Feature Cards */
.page-game-guides__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__feature-card:hover {
  transform: translateY(-5px);
}

.page-game-guides__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #57E38D); /* Glow */
}

.page-game-guides__feature-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__feature-text {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-game-guides__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E;
}

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

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.5;
}

.page-game-guides__faq-answer p {
    margin: 0;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__grid--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__container {
    padding: 0 15px;
  }

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

  .page-game-guides__hero-content {
    margin-top: -80px;
    padding: 20px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-game-guides__main-description {
    font-size: 1em;
  }

  .page-game-guides__cta-button {
    padding: 12px 20px;
    font-size: 0.95em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__cta-button--wide {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-game-guides__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: 1.5em;
  }

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

  .page-game-guides__card-image {
    height: 200px;
  }

  .page-game-guides__card-title {
    font-size: 1.3em;
  }

  .page-game-guides__card-text {
    font-size: 0.9em;
  }

  /* 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-section,
  .page-game-guides__introduction-section,
  .page-game-guides__guides-section,
  .page-game-guides__tips-section,
  .page-game-guides__why-choose-us-section,
  .page-game-guides__faq-section,
  .page-game-guides__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

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

  /* Button group mobile adaptation */
  .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;
    display: flex;
    flex-direction: column;
  }

  .page-game-guides__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    margin-top: -60px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
  }
}