/* style/game-guides.css */

/* Custom Colors */
:root {
  --bj27-primary-color: #11A84E;
  --bj27-secondary-color: #22C768;
  --bj27-button-gradient-start: #2AD16F;
  --bj27-button-gradient-end: #13994A;
  --bj27-card-bg: #11271B;
  --bj27-background: #08160F;
  --bj27-text-main: #F2FFF6;
  --bj27-text-secondary: #A7D9B8;
  --bj27-border: #2E7A4E;
  --bj27-glow: #57E38D;
  --bj27-gold: #F2C14E;
  --bj27-divider: #1E3A2A;
  --bj27-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-game-guides {
  font-family: Arial, sans-serif;
  color: var(--bj27-text-main); /* Default text color for the main content area */
  background-color: var(--bj27-background); /* Overall background for the main content area */
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 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;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background: var(--bj27-deep-green); /* Using a custom dark green for hero background */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  color: var(--bj27-text-main);
  margin-bottom: 20px;
}

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

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--bj27-button-gradient-start);
  background: linear-gradient(180deg, var(--bj27-button-gradient-start) 0%, var(--bj27-button-gradient-end) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--bj27-border);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Styles */
.page-game-guides__section {
  padding: 40px 0;
}

.page-game-guides__section:nth-of-type(odd) {
  background-color: var(--bj27-background);
}

.page-game-guides__section:nth-of-type(even) {
  background-color: #0d1e16; /* Slightly lighter dark background for contrast */
}

.page-game-guides__heading {
  font-size: 2.2em;
  color: var(--bj27-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  padding-top: 20px;
}

.page-game-guides__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--bj27-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
}

/* Card like sections for alternating background */
.page-game-guides__card {
  background-color: var(--bj27-card-bg);
  color: var(--bj27-text-main);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--bj27-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__light-bg {
  background-color: var(--bj27-background);
  color: var(--bj27-text-main);
}

.page-game-guides__dark-section {
  background-color: var(--bj27-deep-green);
  color: var(--bj27-text-main);
}

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

.page-game-guides__faq-item {
  background-color: var(--bj27-card-bg);
  border: 1px solid var(--bj27-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--bj27-text-main);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--bj27-deep-green); /* Darker for question header */
  color: var(--bj27-text-main);
  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: var(--bj27-primary-color);
}

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

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

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

/* Conclusion Section */
.page-game-guides__conclusion .page-game-guides__heading {
  color: var(--bj27-text-main);
}

.page-game-guides__conclusion .page-game-guides__text-block {
  color: var(--bj27-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-game-guides__heading {
    font-size: 1.8em;
  }
}

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

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-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-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;
  }

  .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;
  }

  /* Images and Videos responsive */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__video,
  .page-game-guides video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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