/* style/game-strategies.css */

/* Base styles for the page content */
.page-game-strategies {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Explicitly set page background to white */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-game-strategies__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff; /* White text for hero content over image */
  overflow: hidden;
  display: flex; /* Use flex to center content vertically */
  align-items: center;
  justify-content: center;
  min-height: 550px; /* Minimum height for hero section */
}

.page-game-strategies__hero-image {
  width: 100%;
  height: 100%; /* Make image fill container */
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-game-strategies__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px; /* Adjusted padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 900px; /* Constrain content width */
  background-color: rgba(0, 0, 0, 0.4); /* Add a dark overlay for text readability */
  border-radius: 15px;
  padding: 40px;
}

.page-game-strategies__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); /* Stronger shadow for readability */
}

.page-game-strategies__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* Stronger shadow */
}

.page-game-strategies__hero-actions {
  display: flex;
  gap: 20px;
}

.page-game-strategies__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;
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-game-strategies__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000; /* Dark text for light background button */
  border: 2px solid #FFFFFF;
}

.page-game-strategies__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-game-strategies__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000; /* Dark text for light background button */
  border: 2px solid #FCBC45;
}

.page-game-strategies__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

/* General Section Styling */
.page-game-strategies__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-game-strategies__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

/* Strategy Breakdown Section */
.page-game-strategies__strategy-breakdown {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light grey background for contrast */
}

.page-game-strategies__game-strategy-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-strategies__game-strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-game-strategies__card-image {
  width: 100%;
  max-width: 800px; /* Max width for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-strategies__card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-game-strategies__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  text-align: justify;
}

.page-game-strategies__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-game-strategies__button--learn-more:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Responsible Gaming Section */
.page-game-strategies__responsible-gaming {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-game-strategies__button--responsible-gaming {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

.page-game-strategies__button--responsible-gaming:hover {
  background-color: #333333;
  border-color: #333333;
}

/* FAQ Section */
.page-game-strategies__faq {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-game-strategies__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-strategies__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-game-strategies__faq-question::after {
  content: '+';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-game-strategies__faq-question.active::after {
  transform: rotate(45deg);
}

.page-game-strategies__faq-answer {
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
}

.page-game-strategies__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
}

/* Call to Action Section */
.page-game-strategies__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #000000, #333333); /* Dark gradient background */
  color: #ffffff;
}

.page-game-strategies__cta-section .page-game-strategies__section-title,
.page-game-strategies__cta-section .page-game-strategies__paragraph {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-game-strategies__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-strategies__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-game-strategies__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-game-strategies__button--primary:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-game-strategies__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-game-strategies__button--secondary:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}


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

  .page-game-strategies__hero-description {
    font-size: 1.1em;
  }

  .page-game-strategies__section-title {
    font-size: 2em;
  }

  .page-game-strategies__card-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-game-strategies__hero-section {
    min-height: 450px;
  }
  .page-game-strategies__hero-content {
    padding: 30px 15px;
  }

  .page-game-strategies__hero-title {
    font-size: 2.2em;
  }

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

  .page-game-strategies__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-strategies__button {
    width: 80%; /* Adjust button width for mobile */
    margin: 0 auto;
  }

  .page-game-strategies__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-game-strategies__container {
    padding: 0 15px;
  }

  /* Ensure content images are responsive and don't overflow */
  .page-game-strategies img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensure images fit without cropping too much */
  }

  /* Specific rule to ensure content images are not small */
  .page-game-strategies__card-image,
  .page-game-strategies__cta-image {
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
    width: 100%; /* Ensure responsiveness */
  }
  
  /* Prevent horizontal scrolling for the main content area */
  .page-game-strategies {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-game-strategies__hero-content {
    padding: 20px 10px;
  }

  .page-game-strategies__hero-title {
    font-size: 1.8em;
  }

  .page-game-strategies__section-title {
    font-size: 1.5em;
  }

  .page-game-strategies__button {
    width: 90%;
  }

  .page-game-strategies__faq-question {
    font-size: 1.2em;
  }
}