/* style/game-guides.css */

/* Base styles and typography */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-game-guides__section-title,
.page-game-guides__main-title {
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  font-weight: bold;
}

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

.page-game-guides__hero-description {
  font-size: 1.2em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-game-guides__text-block {
  margin-bottom: 20px;
  color: #ffffff;
}

/* Sections */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  min-height: 70vh;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

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

.page-game-guides__introduction-section,
.page-game-guides__download-guide,
.page-game-guides__registration-guide,
.page-game-guides__game-categories,
.page-game-guides__tips-strategies,
.page-game-guides__promotions-section,
.page-game-guides__safety-security,
.page-game-guides__faq-section {
  padding: 60px 0;
}

.page-game-guides__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #1a1a1a; /* Slightly lighter background for contrast sections */
  color: #ffffff;
}

/* Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  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: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-game-guides__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__center-button {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Images */
.page-game-guides__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Lists */
.page-game-guides__ordered-list,
.page-game-guides__unordered-list {
  margin: 20px 0;
  padding-left: 25px;
  color: #ffffff;
}

.page-game-guides__ordered-list li,
.page-game-guides__unordered-list li {
  margin-bottom: 10px;
}

.page-game-guides__ordered-list strong {
  color: #26A9E0;
}

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

.page-game-guides__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__step-title {
  color: #26A9E0;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-game-guides__step-description {
  color: #f0f0f0;
}

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

.page-game-guides__card {
  background-color: #1a1a1a; /* Darker background for cards on dark section */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff; /* Text color for cards */
}

.page-game-guides__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

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

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

.page-game-guides__card-link {
  display: inline-block;
  margin-top: auto;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* Promotions List */
.page-game-guides__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__promo-item {
  background-color: #1a1a1a; /* Darker background for promo items on dark section */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-game-guides__promo-title {
  color: #26A9E0;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-game-guides__promo-description {
  color: #f0f0f0;
}

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

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-game-guides__faq-heading {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}


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

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

  .page-game-guides__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not covered by fixed header on mobile */
  }

  .page-game-guides__main-title {
    font-size: 2.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,
  .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: 12px 20px;
  }

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

  .page-game-guides__section-title {
    font-size: 1.8em;
  }

  .page-game-guides__steps-grid,
  .page-game-guides__cards-grid,
  .page-game-guides__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__content-image {
    max-width: 100% !important;
    height: auto !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;
  }

  .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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__faq-question {
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px;
  }
}