/* style/game-strategy.css */

/* Base styles for the game strategy page */
.page-game-strategy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFFFFF; /* Default text color for dark backgrounds */
  background-color: var(--background-color, #0d0d0d); /* Assuming shared body background is dark */
}

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

.page-game-strategy__section {
  padding: 80px 0;
  text-align: center;
}

.page-game-strategy__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
}

.page-game-strategy__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light backgrounds */
}

.page-game-strategy__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: inherit;
  font-weight: bold;
}

.page-game-strategy__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-game-strategy__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-game-strategy__inline-link {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-game-strategy__inline-link:hover {
  color: #FFD700;
}

.page-game-strategy__highlight {
  font-weight: bold;
  color: #FFFF00;
}

/* Hero Section */
.page-game-strategy__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 70vh;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-game-strategy__hero-content {
  flex: 1;
  padding: 40px;
  z-index: 1;
  max-width: 600px;
}

.page-game-strategy__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-game-strategy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-game-strategy__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-game-strategy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Buttons */
.page-game-strategy__btn-primary,
.page-game-strategy__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;
  margin: 10px;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-game-strategy__btn-secondary:hover {
  background-color: #F0F0F0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Intro Video Section */
.page-game-strategy__intro-video-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-game-strategy__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Grid for principles */
.page-game-strategy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-game-strategy__card {
  background-color: #F9F9F9;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

.page-game-strategy__card-text {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

/* Tabs for game strategies */
.page-game-strategy__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.page-game-strategy__tab-button {
  background-color: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
  margin: 0 10px;
}

.page-game-strategy__tab-button.active {
  color: #FFFFFF;
  border-bottom: 2px solid #FFFF00; /* Active tab indicator */
}

.page-game-strategy__tab-button:hover {
  color: #FFFFFF;
}

.page-game-strategy__tab-content {
  display: none;
  text-align: left;
  padding: 30px 0;
  animation: fadeIn 0.5s ease-in-out;
}

.page-game-strategy__tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-game-strategy__content-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFF00;
  text-align: center;
}

.page-game-strategy__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Flex grid for features/tips */
.page-game-strategy__flex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-game-strategy__feature-item {
  background-color: #F9F9F9;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 1 calc(33% - 40px); /* Approx 3 items per row */
  min-width: 280px;
  box-sizing: border-box;
}

.page-game-strategy__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-game-strategy__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

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

/* Feature list / Mistake list */
.page-game-strategy__feature-list,
.page-game-strategy__mistake-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-game-strategy__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-strategy__mistake-list .page-game-strategy__list-item {
  background-color: #F9F9F9;
  color: #333333;
}

.page-game-strategy__mistake-list .page-game-strategy__list-item .page-game-strategy__list-title {
  color: #C30808; /* Error highlight */
}

.page-game-strategy__list-item p {
  color: inherit;
  font-size: 1em;
  margin-top: 10px;
}

.page-game-strategy__list-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-game-strategy__mistake-list .page-game-strategy__list-title {
  color: #C30808;
}

/* FAQ Section */
.page-game-strategy__faq-section {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-game-strategy__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-game-strategy__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-game-strategy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFFFFF;
}

.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);
}

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

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

.page-game-strategy__faq-answer p {
  margin-bottom: 10px;
  color: inherit;
}

/* CTA Section */
.page-game-strategy__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

@media (max-width: 768px) {
  .page-game-strategy__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-game-strategy__hero-content {
    padding: 30px 20px;
    max-width: 100%;
  }
  .page-game-strategy__hero-title {
    font-size: 2.5em;
  }
  .page-game-strategy__hero-description {
    font-size: 1.1em;
  }
  .page-game-strategy__hero-image-wrapper {
    order: -1; /* Move image above content on mobile */
    width: 100%;
  }
  .page-game-strategy__section {
    padding: 60px 0;
  }
  .page-game-strategy__section-title {
    font-size: 2em;
  }
  .page-game-strategy__section-description {
    font-size: 1em;
  }
  .page-game-strategy__grid,
  .page-game-strategy__flex-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-strategy__tab-button {
    padding: 10px 15px;
    font-size: 0.9em;
    margin: 5px;
  }
  .page-game-strategy__content-subtitle {
    font-size: 1.6em;
  }
  .page-game-strategy__feature-item {
    flex: 1 1 100%;
  }
  .page-game-strategy__list-item {
    padding: 20px;
  }
  .page-game-strategy__list-title {
    font-size: 1.4em;
  }
  .page-game-strategy__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile specific image, video, button responsive rules */
  .page-game-strategy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 56.25% !important; /* Keep aspect ratio */
    height: 0 !important;
    overflow: hidden !important;
  }
  .page-game-strategy__section,
  .page-game-strategy__card,
  .page-game-strategy__container,
  .page-game-strategy__cta-buttons,
  .page-game-strategy__video-section,
  .page-game-strategy__video-container,
  .page-game-strategy__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-game-strategy__btn-primary,
  .page-game-strategy__btn-secondary,
  .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;
    margin: 10px 0 !important;
  }
  .page-game-strategy__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}