/* style/game-strategy-guides.css */

/* Base Styles for the page-game-strategy-guides */
.page-game-strategy-guides {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure body padding-top is handled by shared.css */
/* No padding-top: var(--header-offset) here */

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

/* Hero Section */
.page-game-strategy-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for the first section */
  min-height: 500px;
  background-color: #08160F; /* Ensure dark background for contrast */
}

.page-game-strategy-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height */
  margin-bottom: 30px; /* Space between image and content */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-game-strategy-guides__hero-content {
  position: relative; /* Ensure content is above image if z-index is used, but not overlapping */
  z-index: 2; /* Just in case, but no overlapping is allowed */
  max-width: 800px;
  margin: 0 auto;
}

.page-game-strategy-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-game-strategy-guides__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-strategy-guides__btn-primary,
.page-game-strategy-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-game-strategy-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-game-strategy-guides__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-game-strategy-guides__btn-secondary:hover {
  background-color: #2E7A4E; /* Border color as background on hover */
  transform: translateY(-2px);
}

/* Section Common Styles */
.page-game-strategy-guides__introduction,
.page-game-strategy-guides__game-categories,
.page-game-strategy-guides__why-choose,
.page-game-strategy-guides__how-to-start,
.page-game-strategy-guides__faq-section,
.page-game-strategy-guides__cta-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-game-strategy-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-game-strategy-guides__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-game-strategy-guides__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-game-strategy-guides__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-game-strategy-guides__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-game-strategy-guides__card-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
  text-align: left;
}

/* Why Choose Section */
.page-game-strategy-guides__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-strategy-guides__feature-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-game-strategy-guides__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #57E38D; /* Glow color for highlights */
  margin-bottom: 15px;
}

/* How To Start Section */
.page-game-strategy-guides__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-strategy-guides__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-game-strategy-guides__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2C14E; /* Gold for steps */
  margin-bottom: 15px;
}

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

.page-game-strategy-guides__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #1E3A2A; /* Divider color */
  overflow: hidden; /* For details tag transition */
}

.page-game-strategy-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  user-select: none; /* Prevent text selection */
}

.page-game-strategy-guides__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover */
}

.page-game-strategy-guides__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-game-strategy-guides__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-game-strategy-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 25px;
  text-align: center;
  color: #57E38D; /* Glow color */
}

.page-game-strategy-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-game-strategy-guides__faq-item[open] .page-game-strategy-guides__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-game-strategy-guides__faq-item[open] .page-game-strategy-guides__faq-question {
  background-color: #0A4B2C; /* Deep Green when open */
}

.page-game-strategy-guides__faq-item[open] .page-game-strategy-guides__faq-toggle {
  content: "−"; /* Change to minus sign */
}

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

.page-game-strategy-guides__cta-section .page-game-strategy-guides__btn-primary {
  margin-top: 30px;
  font-size: 1.2rem;
  padding: 18px 40px;
}


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

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

  .page-game-strategy-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for the first section */
  }

  .page-game-strategy-guides__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .page-game-strategy-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-game-strategy-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-game-strategy-guides__introduction,
  .page-game-strategy-guides__game-categories,
  .page-game-strategy-guides__why-choose,
  .page-game-strategy-guides__how-to-start,
  .page-game-strategy-guides__faq-section,
  .page-game-strategy-guides__cta-section {
    padding: 50px 0;
  }

  .page-game-strategy-guides__category-grid,
  .page-game-strategy-guides__feature-list,
  .page-game-strategy-guides__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-strategy-guides__card,
  .page-game-strategy-guides__feature-item,
  .page-game-strategy-guides__step-item {
    padding: 20px;
  }

  .page-game-strategy-guides__card-image {
    height: auto; /* Allow height to adjust */
    max-width: 100% !important;
    width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover;
  }

  /* Responsive images */
  .page-game-strategy-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-strategy-guides__section,
  .page-game-strategy-guides__card,
  .page-game-strategy-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive buttons */
  .page-game-strategy-guides__cta-button,
  .page-game-strategy-guides__btn-primary,
  .page-game-strategy-guides__btn-secondary,
  .page-game-strategy-guides a[class*="button"],
  .page-game-strategy-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-strategy-guides__cta-buttons,
  .page-game-strategy-guides__button-group,
  .page-game-strategy-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-strategy-guides__cta-section .page-game-strategy-guides__btn-primary {
    display: block; /* Ensure it takes full width */
  }
  .page-game-strategy-guides__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}