/* style/resources-game-strategy-guide.css */

/* Base styles for the page content */
.page-resources-game-strategy-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Section styling */
.page-resources-game-strategy-guide__hero-section,
.page-resources-game-strategy-guide__intro-section,
.page-resources-game-strategy-guide__game-strategies-section,
.page-resources-game-strategy-guide__bankroll-psychology-section,
.page-resources-game-strategy-guide__promotions-section,
.page-resources-game-strategy-guide__video-section,
.page-resources-game-strategy-guide__faq-section,
.page-resources-game-strategy-guide__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-game-strategy-guide__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources-game-strategy-guide__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Headings */
.page-resources-game-strategy-guide__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White text on dark background */
}

.page-resources-game-strategy-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section, either #333333 or #FFFFFF */
}

.page-resources-game-strategy-guide__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources-game-strategy-guide__card-title,
.page-resources-game-strategy-guide__faq-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333333; /* Dark text on light card background */
}

/* Paragraphs and Lists */
.page-resources-game-strategy-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFFFFF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-game-strategy-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-resources-game-strategy-guide__list {
  list-style: disc;
  max-width: 800px;
  margin: 20px auto;
  text-align: left;
  padding-left: 40px;
  color: inherit;
}

.page-resources-game-strategy-guide__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Buttons */
.page-resources-game-strategy-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources-game-strategy-guide__btn-primary,
.page-resources-game-strategy-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons don't overflow on mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-resources-game-strategy-guide__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-resources-game-strategy-guide__btn-primary:hover {
  background-color: #d46f00;
  border-color: #d46f00;
}

.page-resources-game-strategy-guide__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-game-strategy-guide__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Images */
.page-resources-game-strategy-guide__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-resources-game-strategy-guide__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-resources-game-strategy-guide__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

/* Video Section */
.page-resources-game-strategy-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-game-strategy-guide__video-link {
  display: block; /* Make the entire link clickable */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-resources-game-strategy-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* FAQ Section */
.page-resources-game-strategy-guide__faq-list {
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-resources-game-strategy-guide__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-game-strategy-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-resources-game-strategy-guide__faq-question:hover {
  background-color: #eef;
}

.page-resources-game-strategy-guide__faq-title {
  margin: 0;
  color: #26A9E0; /* Brand color for questions */
  font-size: 1.2em;
  flex-grow: 1;
  text-align: left;
}

.page-resources-game-strategy-guide__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-game-strategy-guide__faq-item.active .page-resources-game-strategy-guide__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-game-strategy-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  color: #333333;
}

.page-resources-game-strategy-guide__faq-item.active .page-resources-game-strategy-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources-game-strategy-guide__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-game-strategy-guide__hero-title {
    font-size: 2.8em;
  }

  .page-resources-game-strategy-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-game-strategy-guide {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

  .page-resources-game-strategy-guide__hero-section,
  .page-resources-game-strategy-guide__intro-section,
  .page-resources-game-strategy-guide__game-strategies-section,
  .page-resources-game-strategy-guide__bankroll-psychology-section,
  .page-resources-game-strategy-guide__promotions-section,
  .page-resources-game-strategy-guide__video-section,
.page-resources-game-strategy-guide__faq-section,
.page-resources-game-strategy-guide__cta-bottom-section {
    padding: 40px 0;
  }

  .page-resources-game-strategy-guide__container {
    padding: 0 15px;
  }

  .page-resources-game-strategy-guide__hero-title {
    font-size: 2em;
  }

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

  .page-resources-game-strategy-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-game-strategy-guide__sub-title,
  .page-resources-game-strategy-guide__card-title,
  .page-resources-game-strategy-guide__faq-title {
    font-size: 1.3em;
  }

  .page-resources-game-strategy-guide__text-block,
  .page-resources-game-strategy-guide__list-item {
    font-size: 1em;
  }

  .page-resources-game-strategy-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-game-strategy-guide__btn-primary,
  .page-resources-game-strategy-guide__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-game-strategy-guide__image,
  .page-resources-game-strategy-guide__card-image,
  .page-resources-game-strategy-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  /* Ensure video wrapper doesn't overflow */
  .page-resources-game-strategy-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Handled by container padding */
    padding-right: 0; /* Handled by container padding */
  }

  .page-resources-game-strategy-guide__card-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-game-strategy-guide__card-image {
    height: 250px; /* Adjust height for mobile cards */
  }

  .page-resources-game-strategy-guide__faq-question {
    padding: 15px;
  }

  .page-resources-game-strategy-guide__faq-answer {
    padding: 0 15px;
  }

  .page-resources-game-strategy-guide__faq-item.active .page-resources-game-strategy-guide__faq-answer {
    padding: 15px;
  }
}

/* CSS for color contrast fix (if needed, though I'm trying to avoid it by design) */
.page-resources-game-strategy-guide__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-game-strategy-guide__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Content area image CSS dimensions lower bound */
.page-resources-game-strategy-guide img {
  /* This rule applies to all images within the main content area */
  /* Enforcing minimum display size for content images */
  min-width: 200px;
  min-height: 200px;
}