/* style/game-strategies.css */

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

/* Base styles for the page content, ensuring contrast with body background (unknown, so assume dark based on custom colors) */
.page-game-strategies {
  color: var(--helo88-text-main); /* Light text for dark backgrounds */
  background: var(--helo88-background); /* Dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-game-strategies__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--helo88-deep-green); /* Fallback */
  overflow: hidden;
}

.page-game-strategies__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive image size */
  overflow: hidden;
  position: relative;
}

.page-game-strategies__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-game-strategies__hero-content {
  position: relative; /* Position relative to allow z-index, but not absolute over image */
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
  margin-top: 20px; /* Space between image and content */
}

.page-game-strategies__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--helo88-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

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

/* Buttons */
.page-game-strategies__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px;
  justify-content: center;
  width: 100%; /* Ensure container takes full width for responsive buttons */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-strategies__btn-primary,
.page-game-strategies__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block; /* Ensure padding works */
  text-align: center;
  max-width: 300px; /* Limit individual button width */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-game-strategies__btn-primary {
  background: var(--helo88-button-gradient);
  color: var(--helo88-text-main);
  border: 2px solid transparent;
}

.page-game-strategies__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-game-strategies__btn-secondary:hover {
  background: var(--helo88-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-game-strategies__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--helo88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-game-strategies__text-block {
  font-size: 1.1em;
  color: var(--helo88-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Introduction Section */
.page-game-strategies__introduction-section {
  padding: 80px 0;
  background-color: var(--helo88-background); /* Use background color */
  color: var(--helo88-text-main);
}

/* Game Strategies Section */
.page-game-strategies__game-strategies-section {
  padding: 80px 0;
  background-color: var(--helo88-card-bg); /* Use card background for this section */
  color: var(--helo88-text-main);
}

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

.page-game-strategies__strategy-card {
  background-color: var(--helo88-deep-green); /* A slightly darker green for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-strategies__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-game-strategies__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-game-strategies__card-title {
  font-size: 1.5em;
  color: var(--helo88-gold);
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-game-strategies__card-description {
  font-size: 1em;
  color: var(--helo88-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-game-strategies__btn-text-link {
  color: var(--helo88-glow);
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.page-game-strategies__btn-text-link:hover {
  color: #ffffff;
}

.page-game-strategies__icon-arrow {
  font-size: 1.2em;
}

.page-game-strategies__center-cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-game-strategies__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--helo88-background);
  color: var(--helo88-text-main);
}

.page-game-strategies__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum size */
}

.page-game-strategies__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 30px;
  color: var(--helo88-text-secondary);
}

.page-game-strategies__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--helo88-text-main); /* Ensure list items are readable */
}

.page-game-strategies__list li strong {
  color: var(--helo88-glow);
}

/* Why Helo88 Section */
.page-game-strategies__why-helo88-section {
  padding: 80px 0;
  background-color: var(--helo88-deep-green);
  color: var(--helo88-text-main);
}

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

.page-game-strategies__feature-item {
  background-color: var(--helo88-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-game-strategies__feature-title {
  font-size: 1.6em;
  color: var(--helo88-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-strategies__feature-description {
  font-size: 1em;
  color: var(--helo88-text-secondary);
}

/* FAQ Section */
.page-game-strategies__faq-section {
  padding: 80px 0;
  background-color: var(--helo88-background);
  color: var(--helo88-text-main);
}

.page-game-strategies__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-strategies__faq-item {
  background-color: var(--helo88-deep-green);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--helo88-border);
}

.page-game-strategies__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--helo88-text-main);
  background-color: var(--helo88-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-game-strategies__faq-item summary:hover {
  background-color: var(--helo88-deep-green);
}

.page-game-strategies__faq-qtext {
  flex-grow: 1;
  color: var(--helo88-gold);
}

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

.page-game-strategies__faq-answer {
  padding: 20px;
  background-color: var(--helo88-deep-green);
  border-top: 1px solid var(--helo88-divider);
  font-size: 1em;
  color: var(--helo88-text-secondary);
}

/* Final CTA Section */
.page-game-strategies__cta-final-section {
  padding: 80px 0;
  background-color: var(--helo88-primary); /* Use primary color for final CTA */
  color: #ffffff;
  text-align: center;
}

.page-game-strategies__cta-final-section .page-game-strategies__section-title {
  color: #ffffff;
}

.page-game-strategies__cta-final-section .page-game-strategies__text-block {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-strategies__hero-content {
    padding: 30px 15px;
  }
  .page-game-strategies__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-game-strategies__hero-description {
    font-size: 1.1em;
  }
  .page-game-strategies__section-title {
    font-size: clamp(1.6em, 3.8vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-game-strategies__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-game-strategies img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Enforce min size even on mobile */
  }

  .page-game-strategies__hero-image-wrapper,
  .page-game-strategies__strategy-card,
  .page-game-strategies__content-image,
  .page-game-strategies__feature-item,
  .page-game-strategies__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Section specific padding, small padding-top is important */
  .page-game-strategies__hero-section,
  .page-game-strategies__introduction-section .page-game-strategies__container,
  .page-game-strategies__game-strategies-section .page-game-strategies__container,
  .page-game-strategies__responsible-gaming-section .page-game-strategies__container,
  .page-game-strategies__why-helo88-section .page-game-strategies__container,
  .page-game-strategies__faq-section .page-game-strategies__container,
  .page-game-strategies__cta-final-section .page-game-strategies__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-game-strategies__hero-section {
    padding-top: 10px !important; /* body already has --header-offset */
  }

  /* Buttons responsive */
  .page-game-strategies__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-game-strategies__btn-primary,
  .page-game-strategies__btn-secondary {
    max-width: 100% !important;
    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-strategies__section-title {
    font-size: clamp(1.5em, 5vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-game-strategies__text-block,
  .page-game-strategies__list li,
  .page-game-strategies__card-description,
  .page-game-strategies__feature-description,
  .page-game-strategies__faq-answer {
    font-size: 1em;
  }

  .page-game-strategies__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-game-strategies__faq-qtext {
    font-size: 1em; /* Adjust for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-game-strategies__hero-content {
    padding: 20px 10px;
  }
  .page-game-strategies__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-game-strategies__hero-description {
    font-size: 0.95em;
  }
  .page-game-strategies__section-title {
    font-size: clamp(1.3em, 6vw, 2em);
  }
  .page-game-strategies__list {
    margin-left: 20px;
  }
}

/* Ensure no filter is used on images */
.page-game-strategies img {
  filter: none !important;
}

/* Ensure content area images are not too small */
.page-game-strategies__content-area img,
.page-game-strategies__strategy-card img {
  min-width: 200px;
  min-height: 200px;
}