/* style/game-guides.css */

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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--page-game-guides-text-main);
  background-color: var(--page-game-guides-background);
}

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

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

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-game-guides-gold);
}

.page-game-guides__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--page-game-guides-button-gradient);
  color: #ffffff;
  border: none;
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--page-game-guides-text-main);
  border: 2px solid var(--page-game-guides-border);
  margin-left: 15px;
}

.page-game-guides__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-game-guides__introduction-section,
.page-game-guides__optimization-section {
  background-color: var(--page-game-guides-background);
  padding: 60px 0;
}

.page-game-guides__strategy-section,
.page-game-guides__faq-section,
.page-game-guides__cta-bottom-section {
  background-color: var(--page-game-guides-card-bg);
  padding: 60px 0;
}

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

.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--page-game-guides-gold);
  position: relative;
}

.page-game-guides__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--page-game-guides-glow);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-game-guides__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides ul,
.page-game-guides ol {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides ul li,
.page-game-guides ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-game-guides__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__strategy-card {
  background-color: var(--page-game-guides-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-game-guides-border);
  display: flex;
  flex-direction: column;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure min size */
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px 20px 10px 20px;
  color: var(--page-game-guides-text-main);
  line-height: 1.4;
}

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

.page-game-guides__card-content p {
  margin-bottom: 10px;
}

.page-game-guides__card-sub-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--page-game-guides-text-main);
}

.page-game-guides__btn-text-link {
  display: inline-block;
  margin-top: auto; /* Pushes link to bottom */
  padding-top: 15px;
  color: var(--page-game-guides-glow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text-link:hover {
  color: var(--page-game-guides-gold);
  text-decoration: underline;
}

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

.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--page-game-guides-background);
  border: 1px solid var(--page-game-guides-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-item details > summary {
  list-style: none;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-game-guides-text-main);
  cursor: pointer;
  background-color: var(--page-game-guides-card-bg);
  border-bottom: 1px solid var(--page-game-guides-divider);
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-game-guides-glow);
}

.page-game-guides__faq-answer {
  padding: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-game-guides-text-secondary);
}

.page-game-guides__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    max-width: 768px;
  }
  .page-game-guides__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }

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

  .page-game-guides__description {
    font-size: 1rem;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-game-guides p,
  .page-game-guides ul li,
  .page-game-guides ol li {
    font-size: 0.95rem;
  }

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

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

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

  .page-game-guides__card-sub-title {
    font-size: 1.05rem;
  }

  .page-game-guides__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

  /* Ensure all images and containers are responsive */
  .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__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-game-guides__hero-section .page-game-guides__hero-image-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    padding: 0 15px;
  }

  .page-game-guides__section-title {
    margin-bottom: 25px;
  }
}