/* style/game-guides.css */
/* body is assumed to be dark from shared.css, so main content text color is light */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-bg-dark: #111111;
  --text-light: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
  color: var(--text-light);
  background-color: var(--background-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-game-guides__section-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

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

.page-game-guides__lead-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 246, 214, 0.9);
}

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

.page-game-guides__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Adjust height as needed, for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-game-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

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

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  opacity: 0.9;
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.2);
}

.page-game-guides__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

/* Common styles for text blocks and images */
.page-game-guides__text-block {
  text-align: left;
  padding: 20px;
}

.page-game-guides__text-block h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__text-block p {
  color: rgba(255, 246, 214, 0.85);
  margin-bottom: 15px;
}

.page-game-guides__image-block {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Grid for two columns */
.page-game-guides__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

/* Card styles */
.page-game-guides__card {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in grid have equal height */
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-game-guides__card h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__card p {
  color: rgba(255, 246, 214, 0.8);
}

.page-game-guides__card--transparent {
  background-color: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(58, 42, 18, 0.7);
}

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

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

/* Feature List */
.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  color: var(--text-light);
}

.page-game-guides__feature-list li {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__feature-list li strong {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.1em;
}

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

.page-game-guides__benefit-cards .page-game-guides__card h3 {
  color: var(--primary-color);
}

/* Responsible Gaming List */
.page-game-guides__responsible-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  color: var(--text-light);
}

.page-game-guides__responsible-list li {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  padding: 18px 25px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.page-game-guides__responsible-list li strong {
  color: var(--secondary-color);
  margin-right: 8px;
}

/* FAQ Section */
.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 1.8em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

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

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 246, 214, 0.8);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px 20px;
}

/* Dark background sections */
.page-game-guides__dark-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-game-guides__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

/* CTA Block */
.page-game-guides__cta-block {
  margin-top: 50px;
  padding: 30px;
  background-color: var(--card-bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-game-guides__section-title {
    font-size: 2.2em;
  }

  .page-game-guides__hero-image-wrapper {
    height: 450px;
  }

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

  .page-game-guides__grid-two-cols {
    grid-template-columns: 1fr;
  }

  .page-game-guides__text-block, .page-game-guides__image-block {
    padding: 15px;
  }
}

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

  .page-game-guides__section {
    padding: 40px 15px;
  }

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

  .page-game-guides__lead-text {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  .page-game-guides__hero-image-wrapper {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    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-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__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__image-block,
  .page-game-guides__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__card {
    padding: 25px;
  }

  .page-game-guides__card h3 {
    font-size: 1.4em;
  }

  .page-game-guides__feature-list li,
  .page-game-guides__responsible-list li {
    padding: 15px 20px;
  }

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

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

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 12px 20px 15px;
  }
}