/* style/game-strategy.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-game-strategy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-game-strategy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
.page-game-strategy__hero-section,
.page-game-strategy__video-section,
.page-game-strategy__content-section,
.page-game-strategy__optimization-section,
.page-game-strategy__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-strategy__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #000000; /* Dark background for hero */
  background-image: url('[GALLERY:hero_main:1920x1080:tải app new88,chiến lược game,cá cược]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-game-strategy__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-game-strategy__hero-section .page-game-strategy__container {
    position: relative;
    z-index: 2;
}

.page-game-strategy__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-game-strategy__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-game-strategy__btn-primary,
.page-game-strategy__btn-secondary,
.page-game-strategy__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-game-strategy__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-game-strategy__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-game-strategy__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

.page-game-strategy__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-strategy__card-button {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-game-strategy__card-button:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

/* Section titles */
.page-game-strategy__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff; /* Default light text for dark sections */
  font-weight: bold;
}

.page-game-strategy__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Light text for dark sections */
}

/* Video section */
.page-game-strategy__video-section {
  background-color: #000000;
  color: #ffffff;
}

.page-game-strategy__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 0 auto 30px auto;
  background-color: #000000;
  box-sizing: border-box;
  overflow: hidden; /* Prevent video overflow */
}

.page-game-strategy__video {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* Ensure video is responsive */
}

.page-game-strategy__video-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #cccccc;
}

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

.page-game-strategy__game-card {
  background-color: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for light background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
}

.page-game-strategy__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-game-strategy__game-card .page-game-strategy__card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
}

.page-game-strategy__game-card .page-game-strategy__card-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-game-strategy__game-card .page-game-strategy__card-link:hover {
  text-decoration: underline;
}

.page-game-strategy__game-card .page-game-strategy__card-text {
  font-size: 0.95em;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-game-strategy__game-card .page-game-strategy__card-button {
  margin: 0 20px 20px 20px;
  align-self: flex-start; /* Align button to start of card */
}


/* Download section */
.page-game-strategy__download-section {
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-game-strategy__download-section .page-game-strategy__section-title {
  color: #333333; /* Dark title for light background */
}

.page-game-strategy__download-section .page-game-strategy__text-block {
  color: #555555; /* Darker text for light background */
}

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

.page-game-strategy__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-game-strategy__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-strategy__step-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin: 0;
  color: #555555;
}

.page-game-strategy__step-list li {
  margin-bottom: 10px;
}

.page-game-strategy__step-list ul {
    list-style-type: disc;
}

.page-game-strategy__download-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-game-strategy__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-game-strategy__download-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Optimization section */
.page-game-strategy__optimization-section {
  background-color: #000000;
  color: #ffffff;
}

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

.page-game-strategy__optimization-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-strategy__optimization-card .page-game-strategy__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-game-strategy__optimization-card .page-game-strategy__card-text {
  font-size: 0.95em;
  color: #555555;
}

.page-game-strategy__responsible-gaming-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-game-strategy__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* FAQ section */
.page-game-strategy__faq-section {
  background-color: #ffffff;
  color: #333333;
  padding-bottom: 80px; /* Add some extra padding for the FAQ image */
}

.page-game-strategy__faq-section .page-game-strategy__section-title {
  color: #333333;
}

.page-game-strategy__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-game-strategy__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-strategy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-game-strategy__faq-question:hover {
  background-color: #d0d0d0;
}

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

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

.page-game-strategy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

.page-game-strategy__faq-item.active .page-game-strategy__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px;
}

.page-game-strategy__faq-answer p {
  margin: 0;
}

.page-game-strategy__faq-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-game-strategy__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}


/* CTA Section */
.page-game-strategy__cta-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  padding: 80px 0;
}

.page-game-strategy__cta-section .page-game-strategy__section-title {
  color: #ffffff;
}

.page-game-strategy__cta-section .page-game-strategy__text-block {
  color: #f0f0f0;
}

.page-game-strategy__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-game-strategy__hero-title {
    font-size: 3em;
  }
  .page-game-strategy__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-game-strategy__hero-section,
  .page-game-strategy__video-section,
  .page-game-strategy__content-section,
  .page-game-strategy__download-section,
  .page-game-strategy__optimization-section,
  .page-game-strategy__faq-section,
  .page-game-strategy__cta-section {
    padding: 40px 0;
  }

  .page-game-strategy__hero-title {
    font-size: 2.5em;
  }
  .page-game-strategy__hero-description {
    font-size: 1em;
  }
  .page-game-strategy__section-title {
    font-size: 1.8em;
  }
  .page-game-strategy__text-block {
    font-size: 1em;
  }

  .page-game-strategy__game-grid,
  .page-game-strategy__download-steps,
  .page-game-strategy__optimization-grid {
    grid-template-columns: 1fr;
  }
  
  .page-game-strategy__download-steps {
    flex-direction: column;
    align-items: center;
  }

  /* Images responsive */
  .page-game-strategy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-strategy__container,
  .page-game-strategy__video-wrapper,
  .page-game-strategy__game-card,
  .page-game-strategy__step-item,
  .page-game-strategy__optimization-card,
  .page-game-strategy__faq-list,
  .page-game-strategy__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsive */
  .page-game-strategy video,
  .page-game-strategy__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-strategy__video-section .page-game-strategy__container {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset to video section on mobile */
  }
  
  /* Button responsive */
  .page-game-strategy__btn-primary,
  .page-game-strategy__btn-secondary,
  .page-game-strategy__card-button,
  .page-game-strategy a[class*="button"],
  .page-game-strategy a[class*="btn"] {
    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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .page-game-strategy__hero-cta,
  .page-game-strategy__download-cta,
  .page-game-strategy__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-strategy__faq-answer {
    padding: 0 20px;
  }
  .page-game-strategy__faq-item.active .page-game-strategy__faq-answer {
    padding: 15px 20px;
  }
}