/* style/game-guides.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --background-white: #FFFFFF;
  --font-register-login: #FFFF00;
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-white); /* Default body background */
}

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-game-guides__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-game-guides__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: var(--secondary-color);
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-game-guides__dark-bg .page-game-guides__sub-title {
  color: var(--secondary-color);
}

.page-game-guides__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-game-guides__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-game-guides__list--ordered {
  list-style: decimal;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-game-guides__btn-primary {
  background-color: var(--button-register);
  color: var(--font-register-login);
  border: 2px solid var(--button-register);
}

.page-game-guides__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-game-guides__light-bg .page-game-guides__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-game-guides__light-bg .page-game-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-game-guides__btn-inline {
  margin-top: 20px;
}

.page-game-guides__intro-section,
.page-game-guides__strategy-section,
.page-game-guides__registration-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
  padding: 60px 0;
}

.page-game-guides__game-categories {
  padding: 80px 0;
}

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

.page-game-guides__card {
  background-color: var(--background-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-game-guides__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
}

.page-game-guides__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-game-guides__card-description {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__card-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-game-guides__card-button:hover {
  background-color: #005a2b;
}

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

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

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--background-white);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #f0f0f0;
}

.page-game-guides__faq-title {
  margin: 0;
  color: inherit;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
  content: '−'; /* Visually change to minus sign */
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

.page-game-guides__faq-link {
  color: var(--primary-color);
  text-decoration: underline;
  margin-top: 10px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.8em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__sub-title {
    font-size: 1.5em;
  }
  .page-game-guides__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__hero-section {
    min-height: 400px;
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-game-guides__hero-title {
    font-size: 2.2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-game-guides__sub-title {
    font-size: 1.3em;
  }
  .page-game-guides__grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-game-guides__card-image {
    height: 180px;
  }
  .page-game-guides__card-title {
    font-size: 1.3em;
  }
  .page-game-guides__card-description {
    font-size: 0.95em;
  }
  .page-game-guides__cta-buttons,
  .page-game-guides__cta-final {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__intro-section,
  .page-game-guides__strategy-section,
  .page-game-guides__registration-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 40px 0;
  }
  .page-game-guides__game-categories {
    padding: 50px 0;
  }

  /* Image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific mobile adjustments */
  .page-game-guides__faq-question,
  .page-game-guides__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__sub-title {
    font-size: 1.2em;
  }
}