.page-game-strategy-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background, #FFFFFF);
}

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

.page-game-strategy-guides__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-game-strategy-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-game-strategy-guides__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Adjust for header offset */
  text-align: center;
  overflow: hidden;
}

.page-game-strategy-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

.page-game-strategy-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-strategy-guides__hero-description {
  font-size: 1.25em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-game-strategy-guides__btn-primary,
.page-game-strategy-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-strategy-guides__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-strategy-guides__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-game-strategy-guides__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-strategy-guides__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2e;
  border-color: #005a2e;
}

/* General Section Styles */
.page-game-strategy-guides__introduction-section,
.page-game-strategy-guides__casino-strategies-section,
.page-game-strategy-guides__sports-betting-section,
.page-game-strategy-guides__management-section,
.page-game-strategy-guides__faq-section,
.page-game-strategy-guides__cta-section {
  padding: 60px 0;
}

.page-game-strategy-guides__section-title,
.page-game-strategy-guides__cta-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-game-strategy-guides__dark-bg .page-game-strategy-guides__section-title,
.page-game-strategy-guides__dark-bg .page-game-strategy-guides__cta-title {
  color: #ffffff;
}

.page-game-strategy-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-strategy-guides__text-block strong {
  color: #017439;
}

.page-game-strategy-guides__dark-bg .page-game-strategy-guides__text-block strong {
  color: #FFFF00;
}

/* Strategy Grid */
.page-game-strategy-guides__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-strategy-guides__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-game-strategy-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-game-strategy-guides__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Management Section */
.page-game-strategy-guides__management-section .page-game-strategy-guides__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-strategy-guides__management-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-game-strategy-guides__text-content {
  flex: 1;
}

.page-game-strategy-guides__management-section .page-game-strategy-guides__text-block {
  color: #f0f0f0;
}

.page-game-strategy-guides__management-section .page-game-strategy-guides__text-block a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-game-strategy-guides__management-section .page-game-strategy-guides__text-block a:hover {
  color: #fff;
}

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

.page-game-strategy-guides__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-game-strategy-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439;
  transition: background-color 0.3s ease;
}

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

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

.page-game-strategy-guides__faq-item.active .page-game-strategy-guides__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-game-strategy-guides__faq-answer p {
  margin-bottom: 10px;
  color: #555555;
}

.page-game-strategy-guides__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-game-strategy-guides__faq-answer a:hover {
  color: #005a2e;
}

/* CTA Section */
.page-game-strategy-guides__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-game-strategy-guides__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-strategy-guides__hero-title {
    font-size: 3em;
  }
  .page-game-strategy-guides__section-title,
  .page-game-strategy-guides__cta-title {
    font-size: 2em;
  }
}

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

  .page-game-strategy-guides__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

  .page-game-strategy-guides__btn-primary,
  .page-game-strategy-guides__btn-secondary {
    width: calc(100% - 30px) !important; /* Full width with padding */
    padding: 12px 15px;
    margin: 10px 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-strategy-guides__strategy-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-game-strategy-guides__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-game-strategy-guides__card-image {
    height: 200px;
    min-width: 200px;
    min-height: 200px;
  }

  .page-game-strategy-guides__management-section .page-game-strategy-guides__container {
    flex-direction: column;
    padding: 0 15px;
  }

  .page-game-strategy-guides__management-image {
    max-width: 100%;
    width: 100%;
  }

  .page-game-strategy-guides__section-title,
  .page-game-strategy-guides__cta-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-game-strategy-guides__text-block {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-game-strategy-guides__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Ensure all images are responsive */
  .page-game-strategy-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers */
  .page-game-strategy-guides__hero-section,
  .page-game-strategy-guides__introduction-section,
  .page-game-strategy-guides__casino-strategies-section,
  .page-game-strategy-guides__sports-betting-section,
  .page-game-strategy-guides__management-section,
  .page-game-strategy-guides__faq-section,
  .page-game-strategy-guides__cta-section,
  .page-game-strategy-guides__container,
  .page-game-strategy-guides__card,
  .page-game-strategy-guides__content-wrapper,
  .page-game-strategy-guides__text-content,
  .page-game-strategy-guides__faq-list,
  .page-game-strategy-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-game-strategy-guides__cta-section .page-game-strategy-guides__btn-primary,
  .page-game-strategy-guides__cta-section .page-game-strategy-guides__btn-secondary {
    display: block;
    margin: 10px auto;
  }
}