/* style/game-guides.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --login-color: #EA7C07;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--bg-light);
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  min-height: 500px;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
  background-color: var(--bg-dark);
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-game-guides__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-game-guides__btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--primary-color);
  box-sizing: border-box;
}

.page-game-guides__btn-primary:hover {
  background-color: #208ac2;
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-color);
  margin-left: 15px;
  box-sizing: border-box;
}

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

.page-game-guides__section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-game-guides__section--intro {
  background-color: #f9f9f9;
}

.page-game-guides__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-game-guides__heading {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-game-guides__dark-section .page-game-guides__heading {
  color: var(--text-light);
}

.page-game-guides__sub-heading {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-guides__dark-section .page-game-guides__sub-heading {
  color: var(--text-light);
}

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

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

.page-game-guides__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
}

.page-game-guides__game-category {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e0e0e0;
}

.page-game-guides__game-category:last-child {
  border-bottom: none;
}

.page-game-guides__game-category a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-game-guides__game-category a:hover {
  text-decoration: underline;
}

.page-game-guides__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-game-guides__image-wrapper--inline {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
  max-width: 50%;
}

.page-game-guides__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it respects width/height */
}

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

.page-game-guides__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

.page-game-guides__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--secondary-color);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-question {
  background-color: #e0f7fa;
}

.page-game-guides__faq-answer .page-game-guides__paragraph {
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-game-guides__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.8em;
  }

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-game-guides__hero-title {
    font-size: 2.2em;
  }

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

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

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

  .page-game-guides__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__sub-heading {
    font-size: 1.3em;
  }

  .page-game-guides__paragraph,
  .page-game-guides__list-item {
    font-size: 1em;
  }

  .page-game-guides__image-wrapper--inline {
    float: none;
    margin-left: 0;
    max-width: 100%;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__hero-image {
    filter: brightness(0.5) !important; /* Slightly darker on mobile for readability */
  }

  /* Mobile button responsiveness */
  .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;
    margin-left: 0 !important; /* Reset margin for stacking */
  }

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

  /* Ensure content areas do not cause horizontal scroll */
  .page-game-guides__section,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__image-wrapper,
  .page-game-guides__faq-list,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }

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

  .page-game-guides__sub-heading {
    font-size: 1.2em;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
  }
}