/* style/game-strategies.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #f0f0f0;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --button-register-bg: #C30808;
  --button-register-text: #FFFF00;
}

.page-game-strategies {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default light text on dark body background */
  background-color: var(--bg-dark); /* Ensure main content respects body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-game-strategies__hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, var(--primary-color), #004d26);
  position: relative;
  overflow: hidden;
}

.page-game-strategies__hero-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-strategies__hero-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-game-strategies__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-strategies__btn-primary,
.page-game-strategies__btn-register,
.page-game-strategies__btn-login {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  font-size: 1.05em;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-game-strategies__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.page-game-strategies__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
}

.page-game-strategies__btn-register,
.page-game-strategies__btn-login {
  background-color: var(--button-register-bg);
  color: var(--button-register-text);
  border-color: var(--button-register-text);
}

.page-game-strategies__btn-register:hover,
.page-game-strategies__btn-login:hover {
  background-color: #a00606;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-game-strategies__section {
  padding: 60px 20px;
}

.page-game-strategies__dark-bg {
  background-color: var(--bg-dark);
}

.page-game-strategies__light-bg {
  background-color: var(--bg-light);
}

.page-game-strategies__text-dark {
  color: var(--text-dark);
}

.page-game-strategies__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-game-strategies__section-description {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-game-strategies__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-game-strategies__content-block--reverse {
  flex-direction: row-reverse;
}

.page-game-strategies__text-content {
  flex: 1;
  min-width: 300px;
}

.page-game-strategies__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-game-strategies__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

.page-game-strategies__paragraph {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0em;
  line-height: 1.7;
}

.page-game-strategies__light-bg .page-game-strategies__paragraph {
  color: var(--text-dark);
}

.page-game-strategies__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-game-strategies__list-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-light);
  font-size: 1.0em;
}

.page-game-strategies__light-bg .page-game-strategies__list-item {
  background: var(--secondary-color);
  color: var(--text-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-game-strategies__list-item strong {
  color: var(--secondary-color);
}

.page-game-strategies__light-bg .page-game-strategies__list-item strong {
  color: var(--primary-color);
}

.page-game-strategies__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1a1a1a; /* Slightly different dark background */
}

.page-game-strategies__video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 30px auto 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-strategies__video-link {
  display: block;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  cursor: pointer;
}

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

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

.page-game-strategies__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-game-strategies__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-strategies__card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-strategies__card-description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-strategies__card .page-game-strategies__btn-primary {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 25px;
  font-size: 0.95em;
}

.page-game-strategies__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-game-strategies__faq-section {
  padding: 60px 20px;
}

.page-game-strategies__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-strategies__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-game-strategies__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.page-game-strategies__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-game-strategies__faq-title {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.1em;
  font-weight: 600;
}

.page-game-strategies__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--button-register-text); /* Use specific yellow for contrast */
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-game-strategies__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Expanded state for FAQ */
.page-game-strategies__faq-item.active .page-game-strategies__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

.page-game-strategies__cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(45deg, #004d26, var(--primary-color));
}

.page-game-strategies__cta-section .page-game-strategies__section-title {
  color: var(--secondary-color);
}

.page-game-strategies__cta-section .page-game-strategies__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-game-strategies__hero-title {
    font-size: 2.2em;
  }

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

  .page-game-strategies__content-block {
    flex-direction: column;
  }

  .page-game-strategies__content-block--reverse {
    flex-direction: column-reverse;
  }

  .page-game-strategies__image-wrapper,
  .page-game-strategies__text-content {
    width: 100%;
    flex: none;
  }

  .page-game-strategies__card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-game-strategies {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-game-strategies__hero-section,
  .page-game-strategies__section,
  .page-game-strategies__video-section,
  .page-game-strategies__faq-section,
  .page-game-strategies__cta-section {
    padding: 40px 15px !important;
  }

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

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

  .page-game-strategies__section-title {
    font-size: 1.5em;
    margin-bottom: 25px;
  }

  .page-game-strategies__hero-description,
  .page-game-strategies__section-description,
  .page-game-strategies__paragraph,
  .page-game-strategies__list-item,
  .page-game-strategies__card-description,
  .page-game-strategies__faq-answer p {
    font-size: 0.95em;
  }

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

  .page-game-strategies__btn-primary,
  .page-game-strategies__btn-register,
  .page-game-strategies__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-game-strategies__image,
  .page-game-strategies__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-game-strategies__image-wrapper,
  .page-game-strategies__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-game-strategies__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 30px auto 0 !important;
    overflow: hidden !important;
  }

  .page-game-strategies__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-strategies__faq-question {
    padding: 15px 20px;
  }

  .page-game-strategies__faq-answer {
    padding: 0 20px;
  }

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

@media (max-width: 480px) {
  .page-game-strategies__hero-title {
    font-size: 1.6em;
  }

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

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