:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-game-guides {
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Section styling */
.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-game-guides__hero-image {
  width: 100%;
  max-height: 675px; /* Adjust as needed for aspect ratio */
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main); /* #F2FFF6 */
  font-size: clamp(2em, 5vw, 3.5em); /* Example clamp for responsive font size */
}

.page-game-guides__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  min-width: 180px;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid transparent;
}

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

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--main-color); /* #11A84E */
  border: 2px solid var(--main-color); /* #11A84E */
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--main-color); /* #11A84E */
  color: var(--text-main); /* #F2FFF6 */
  transform: translateY(-2px);
}

.page-game-guides__introduction,
.page-game-guides__detailed-guides,
.page-game-guides__responsible-gambling,
.page-game-guides__cta-bottom {
  padding: 60px 20px;
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-game-guides__game-categories,
.page-game-guides__strategies,
.page-game-guides__faq-section {
  padding: 60px 20px;
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* #F2FFF6 */
}

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-game-guides__category-card,
.page-game-guides__guide-card {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main); /* #F2FFF6 */
}

.page-game-guides__category-card:hover,
.page-game-guides__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--gold-color); /* #F2C14E */
}

.page-game-guides__card-title a {
  color: var(--gold-color); /* #F2C14E */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: var(--glow-color); /* #57E38D */
  text-decoration: underline;
}

.page-game-guides__category-card p,
.page-game-guides__guide-card p {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  flex-grow: 1; /* Allow paragraph to take available space */
  margin-bottom: 20px;
}

.page-game-guides__card-link {
  display: inline-block;
  background-color: var(--deep-green); /* #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push link to bottom of card */
}

.page-game-guides__card-link:hover {
  background-color: var(--main-color); /* #11A84E */
}

/* List styling */
.page-game-guides ul {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-game-guides ul li {
  background-color: var(--deep-green); /* #0A4B2C */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 40px;
}

.page-game-guides ul li::before {
  content: '✔';
  color: var(--glow-color); /* #57E38D */
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 15px;
}

/* FAQ Section */
.page-game-guides__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-game-guides__faq-item {
  background-color: var(--deep-green); /* #0A4B2C */
  border: 1px solid var(--divider-color); /* #1E3A2A */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main); /* #F2FFF6 */
}

.page-game-guides__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main); /* #F2FFF6 */
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-game-guides__faq-item summary:hover {
  background-color: var(--divider-color); /* #1E3A2A */
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color); /* #57E38D */
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.5;
}

/* Responsive Images, Videos, and Buttons (Mobile First) */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filter is applied */
}

.page-game-guides video,
.page-game-guides__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__video-section,
.page-game-guides__video-container,
.page-game-guides__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-guides__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__cta-buttons,
.page-game-guides__button-group,
.page-game-guides__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-game-guides__introduction,
  .page-game-guides__game-categories,
  .page-game-guides__detailed-guides,
  .page-game-guides__strategies,
  .page-game-guides__responsible-gambling,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom {
    padding: 40px 15px;
  }

  .page-game-guides__container,
  .page-game-guides__category-card,
  .page-game-guides__guide-card,
  .page-game-guides__category-grid,
  .page-game-guides__guide-grid,
  .page-game-guides__faq-list {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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