/* style/game-guides.css */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body background is #0a0a0a from shared.css */
}

.page-game-guides__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1A1A2E;
  color: #ffffff;
  padding-bottom: 60px;
}

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

.page-game-guides__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #E9C46A;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: #E9C46A;
  color: #1A1A2E;
  border: 2px solid #E9C46A;
}

.page-game-guides__btn-primary:hover {
  background-color: #f4a261;
  border-color: #f4a261;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #E9C46A;
  border: 2px solid #E9C46A;
}

.page-game-guides__btn-secondary:hover {
  background-color: #E9C46A;
  color: #1A1A2E;
}

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

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

.page-game-guides__section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-game-guides__dark-section {
  background-color: #1A1A2E;
  color: #ffffff;
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: #E9C46A;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  color: #E9C46A;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-game-guides__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-game-guides__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: #E9C46A;
  margin-bottom: 10px;
}

.page-game-guides__card-title a {
  color: #E9C46A;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.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-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-game-guides__strategy-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__strategy-title {
  font-size: 1.6em;
  color: #E9C46A;
  margin-bottom: 15px;
}

.page-game-guides__responsible-gaming-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-game-guides__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__responsible-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__text-wrapper {
  flex: 2;
}

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

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #E9C46A;
  cursor: pointer;
  background-color: #1A1A2E;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #2e2e4a;
}

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

.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 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

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

.page-game-guides__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

.page-game-guides__faq-answer a {
  color: #E9C46A;
  text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

.page-game-guides__cta-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-game-guides__cta-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__cta-text {
  flex: 1.5;
}

.page-game-guides__cta-text .page-game-guides__section-title {
  text-align: left;
  font-size: 2.2em;
}

.page-game-guides__cta-text .page-game-guides__text-block {
  text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.5em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__sub-title {
    font-size: 1.6em;
  }
  .page-game-guides__card-title {
    font-size: 1.3em;
  }
  .page-game-guides__strategy-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-game-guides__hero-title {
    font-size: 2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-game-guides__section {
    padding: 40px 15px;
  }
  .page-game-guides__container {
    padding: 0 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-guides__sub-title {
    font-size: 1.4em;
  }
  .page-game-guides__text-block,
  .page-game-guides__list-item,
  .page-game-guides__card-description,
  .page-game-guides__faq-answer p {
    font-size: 0.95em;
  }
  .page-game-guides__game-cards,
  .page-game-guides__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__card-image,
  .page-game-guides__strategy-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-game-guides__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-game-guides__image-wrapper {
    min-width: unset;
  }
  .page-game-guides__responsible-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 0 15px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px;
  }
  .page-game-guides__cta-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .page-game-guides__cta-text .page-game-guides__section-title {
    text-align: center;
    font-size: 1.8em;
  }
  .page-game-guides__cta-text .page-game-guides__text-block {
    text-align: center;
  }
  .page-game-guides__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Ensure all images 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.6em;
  }
  .page-game-guides__sub-title {
    font-size: 1.2em;
  }
  .page-game-guides__text-block,
  .page-game-guides__list-item,
  .page-game-guides__card-description,
  .page-game-guides__faq-answer p {
    font-size: 0.9em;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 0.9em;
  }
  .page-game-guides__card-title {
    font-size: 1.2em;
  }
  .page-game-guides__strategy-title {
    font-size: 1.3em;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
  }
}