/* style/game-guides.css */

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

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

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

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2; /* Subtle background image */
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 8px;
}

.page-game-guides__hero-title {
  font-size: 2.8em;
  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__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

.page-game-guides__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__intro-section p {
  text-align: justify;
  margin-bottom: 20px;
  font-size: 1.05em;
}

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

.page-game-guides__card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: #007bff; /* A slightly different blue for hover */
}

.page-game-guides__card-text {
  font-size: 1em;
  color: var(--text-dark);
  padding: 0 15px;
  flex-grow: 1;
}

.page-game-guides__btn-text {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #007bff;
}

.page-game-guides__registration-guide-section,
.page-game-guides__deposit-withdraw-guide-section,
.page-game-guides__game-strategy-section,
.page-game-guides__promotions-section,
.page-game-guides__faq-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-game-guides__dark-bg .page-game-guides__section-title,
.page-game-guides__dark-bg .page-game-guides__step-title {
  color: var(--text-light);
}

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

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

.page-game-guides__step-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
}

.page-game-guides__dark-bg .page-game-guides__step-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-game-guides__step-icon {
  background: var(--primary-color);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-game-guides__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-game-guides__dark-bg .page-game-guides__step-title {
  color: var(--text-light);
}

.page-game-guides__step-item p {
  font-size: 1em;
  color: var(--text-dark);
}

.page-game-guides__dark-bg .page-game-guides__step-item p {
  color: var(--text-light);
}

.page-game-guides__strategy-list,
.page-game-guides__promo-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-game-guides__strategy-list li,
.page-game-guides__promo-list li {
  background: var(--secondary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-game-guides__light-bg .page-game-guides__strategy-list li,
.page-game-guides__light-bg .page-game-guides__promo-list li {
  background: var(--secondary-color);
}

.page-game-guides__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

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

.page-game-guides__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background: var(--secondary-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-game-guides__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1em;
  color: var(--text-dark);
}

.page-game-guides__final-cta-section {
  text-align: center;
  color: var(--text-light);
}

.page-game-guides__center-align {
  text-align: center;
}

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

.page-game-guides__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-game-guides__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-game-guides__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__hero-cta-buttons,
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Image responsive base */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.5em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .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 {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-game-guides__hero-title {
    font-size: 2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
  }
  .page-game-guides__section {
    padding: 40px 15px;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__game-cards {
    grid-template-columns: 1fr;
  }
  .page-game-guides__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-game-guides__step-item,
  .page-game-guides__card {
    padding: 25px;
  }
  .page-game-guides__card-image {
    height: 180px;
  }
  .page-game-guides__strategy-list li,
  .page-game-guides__promo-list li,
  .page-game-guides__faq-item {
    padding: 15px;
  }
  .page-game-guides__faq-question {
    font-size: 1.05em;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  /* Mobile specific image adaptation */
  .page-game-guides img {
    max-width: 100% !important;
    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;
  }
  /* Ensure button containers also adapt */
  .page-game-guides__cta-buttons,
  .page-game-guides__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-game-guides__cta-buttons a,
  .page-game-guides__hero-cta-buttons a {
    width: 100%;
  }
}

@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__step-title {
    font-size: 1.2em;
  }
  .page-game-guides__card-title {
    font-size: 1.3em;
  }
}