.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
}

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

.page-game-guides__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0 60px 0;
  overflow: hidden;
  background-color: var(--bg-primary);
}

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

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  color: var(--text-main);
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-game-guides__introduction-section,
.page-game-guides__how-to-play-section,
.page-game-guides__seamless-access-section,
.page-game-guides__conclusion-section {
  padding: 80px 0;
  background-color: #ffffff; /* Default light background for text readability */
  color: #333333;
}

.page-game-guides__game-types-section,
.page-game-guides__maximize-winnings-section,
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

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

.page-game-guides__introduction-section .page-game-guides__section-title,
.page-game-guides__how-to-play-section .page-game-guides__section-title,
.page-game-guides__seamless-access-section .page-game-guides__section-title,
.page-game-guides__conclusion-section .page-game-guides__section-title {
  color: #333333;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__introduction-section .page-game-guides__text-block,
.page-game-guides__how-to-play-section .page-game-guides__text-block,
.page-game-guides__seamless-access-section .page-game-guides__text-block,
.page-game-guides__conclusion-section .page-game-guides__text-block {
  color: #333333;
}

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

.page-game-guides__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

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

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

.page-game-guides__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-guides__btn-text {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 5px 15px;
  border-radius: 5px;
}

.page-game-guides__btn-text:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-game-guides__guide-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-game-guides__how-to-play-section .page-game-guides__guide-card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.page-game-guides__how-to-play-section .page-game-guides__guide-card .page-game-guides__card-title {
  color: var(--main-color);
}

.page-game-guides__how-to-play-section .page-game-guides__guide-card .page-game-guides__card-description {
  color: #555555;
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-game-guides__how-to-play-section .page-game-guides__list {
  color: #555555;
}

.page-game-guides__list-item-strong {
  color: var(--text-main);
}

.page-game-guides__how-to-play-section .page-game-guides__list-item-strong {
  color: #333333;
}

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

.page-game-guides__grid-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding-bottom: 20px;
  text-align: center;
  overflow: hidden;
}

.page-game-guides__grid-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-game-guides__grid-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__grid-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-guides__login-process {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-game-guides__login-step {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-game-guides__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-guides__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 10px;
}

.page-game-guides__step-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: var(--main-color);
}

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

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

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

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-game-guides__faq-answer a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-game-guides__cta-buttons--bottom {
  margin-top: 50px;
}

/* Color palette overrides for specific sections for contrast */
.page-game-guides__dark-section .page-game-guides__section-title,
.page-game-guides__dark-section .page-game-guides__text-block,
.page-game-guides__dark-section .page-game-guides__card-title,
.page-game-guides__dark-section .page-game-guides__card-description,
.page-game-guides__dark-section .page-game-guides__grid-title,
.page-game-guides__dark-section .page-game-guides__grid-description,
.page-game-guides__dark-section .page-game-guides__btn-text {
  color: var(--text-main);
}

.page-game-guides__dark-section .page-game-guides__btn-text:hover {
  color: var(--gold-color);
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__text-block,
.page-game-guides__light-bg .page-game-guides__card-title,
.page-game-guides__light-bg .page-game-guides__card-description,
.page-game-guides__light-bg .page-game-guides__grid-title,
.page-game-guides__light-bg .page-game-guides__grid-description,
.page-game-guides__light-bg .page-game-guides__btn-text {
  color: #333333;
}

.page-game-guides__light-bg .page-game-guides__btn-text:hover {
  color: var(--main-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 30px 15px;
  }

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

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

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

  .page-game-guides__text-block {
    font-size: 1em;
  }

  .page-game-guides__game-cards,
  .page-game-guides__content-grid,
  .page-game-guides__login-process {
    gap: 20px;
  }

  .page-game-guides__game-card,
  .page-game-guides__grid-item,
  .page-game-guides__login-step {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

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

  .page-game-guides__hero-content {
    padding: 20px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__how-to-play-section,
  .page-game-guides__seamless-access-section,
  .page-game-guides__conclusion-section,
  .page-game-guides__game-types-section,
  .page-game-guides__maximize-winnings-section,
  .page-game-guides__faq-section {
    padding: 40px 0;
  }

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

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

  .page-game-guides__text-block {
    font-size: 0.95em;
  }

  .page-game-guides__game-cards,
  .page-game-guides__content-grid,
  .page-game-guides__login-process {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-guides__card-image,
  .page-game-guides__grid-image {
    height: 180px;
  }

  .page-game-guides__game-card,
  .page-game-guides__grid-item,
  .page-game-guides__login-step {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Restrict width for single column layout */
  }

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

  .page-game-guides__faq-answer {
    font-size: 0.9em;
    padding: 15px 20px;
  }

  /* 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,
  .page-game-guides__cta-buttons,
  .page-game-guides__login-process {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }

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

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

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

  .page-game-guides__card-title,
  .page-game-guides__grid-title,
  .page-game-guides__step-title {
    font-size: 1.2em;
  }

  .page-game-guides__card-description,
  .page-game-guides__grid-description,
  .page-game-guides__step-description {
    font-size: 0.85em;
  }
}