/* style/resources-game-guides.css */

/* Base styles for the page */
.page-resources-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

/* Hero Section */
.page-resources-game-guides__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-resources-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-game-guides__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources-game-guides__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-game-guides__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Common Container */
.page-resources-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-resources-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color for titles */
}

/* Text Blocks */
.page-resources-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Background Colors */
.page-resources-game-guides__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

.page-resources-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Buttons */
.page-resources-game-guides__btn-primary,
.page-resources-game-guides__btn-secondary,
.page-resources-game-guides a[class*="button"],
.page-resources-game-guides a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-resources-game-guides__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  color: #ffffff;
}

.page-resources-game-guides__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-game-guides__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-resources-game-guides__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-resources-game-guides__card-title {
  font-size: 1.5em;
  padding: 15px;
  margin-bottom: 0;
  color: #FFFF00; /* Highlighted color for card titles */
}

.page-resources-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-resources-game-guides__card-description {
  padding: 0 15px 15px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-resources-game-guides__card-button {
  margin: 0 15px 15px;
  background-color: #017439;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-game-guides__card-button:hover {
  background-color: #028e4a;
}

/* Strategy Section */
.page-resources-game-guides__strategy-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources-game-guides__strategy-text {
  flex: 1;
}

.page-resources-game-guides__strategy-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources-game-guides__strategy-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-resources-game-guides__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for question background */
  transition: background-color 0.3s ease;
}

.page-resources-game-guides__faq-question:hover {
  background-color: #028e4a;
}

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

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

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

.page-resources-game-guides__faq-item.active .page-resources-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-resources-game-guides__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-resources-game-guides__cta-section {
  text-align: center;
  padding: 60px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-game-guides__hero-title {
    font-size: 3em;
  }
  .page-resources-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-resources-game-guides__section-title {
    font-size: 2em;
  }
  .page-resources-game-guides__strategy-content {
    flex-direction: column;
  }
  .page-resources-game-guides__strategy-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources-game-guides__hero-section {
    height: 450px;
  }
  .page-resources-game-guides__hero-title {
    font-size: 2.2em;
  }
  .page-resources-game-guides__hero-description {
    font-size: 1em;
  }
  .page-resources-game-guides__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-game-guides__btn-primary,
  .page-resources-game-guides__btn-secondary,
  .page-resources-game-guides a[class*="button"],
  .page-resources-game-guides 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;
  }
  .page-resources-game-guides__cta-buttons,
  .page-resources-game-guides__button-group,
  .page-resources-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources-game-guides__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-resources-game-guides__container {
    padding: 20px 15px;
  }
  .page-resources-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-game-guides__text-block {
    font-size: 1em;
  }
  .page-resources-game-guides__card-title {
    font-size: 1.3em;
  }
  .page-resources-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources-game-guides__faq-answer {
    padding: 0 20px;
  }
  .page-resources-game-guides__faq-item.active .page-resources-game-guides__faq-answer {
    padding: 10px 20px;
  }

  /* Image responsive for mobile */
  .page-resources-game-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-game-guides__section,
  .page-resources-game-guides__card,
  .page-resources-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-resources-game-guides__hero-section {
    height: 400px;
  }
  .page-resources-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-resources-game-guides__hero-description {
    font-size: 0.9em;
  }
  .page-resources-game-guides__card-image {
    height: 200px;
  }
}