/* style/game-guides.css */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

.page-game-guides__dark-bg {
  background-color: #26A9E0; /* Use brand primary color as background */
  color: #ffffff; /* White text for dark background */
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  background-color: #c46406;
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-guides__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a7fb0;
  transform: translateY(-2px);
}

.page-game-guides__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-game-guides__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video to make text readable */
}

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-game-guides__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-game-guides__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.05em;
  line-height: 1.8;
}

.page-game-guides__text-block p {
  margin-bottom: 20px;
}

.page-game-guides__featured-guides {
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.page-game-guides__card-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

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

.page-game-guides__card-text {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__card .page-game-guides__btn-secondary {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9em;
  border-color: #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.page-game-guides__card .page-game-guides__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-game-guides__strategy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  color: #ffffff;
}

.page-game-guides__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__strategy-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-game-guides__strategy-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-game-guides__image-wrapper {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

.page-game-guides__image-wrapper--center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-game-guides__faq-section {
  padding: 60px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

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

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

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

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

.page-game-guides__call-to-action {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__cta-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.7;
}

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

.page-game-guides__cta-buttons--center {
  justify-content: center;
}

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

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

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

  .page-game-guides__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-guides__content-area,
  .page-game-guides__featured-guides,
  .page-game-guides__advanced-strategies,
  .page-game-guides__faq-section,
  .page-game-guides__call-to-action {
    padding: 30px 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__text-block {
    font-size: 1em;
  }

  .page-game-guides__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__card {
    flex-direction: column;
  }

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

  .page-game-guides__card-image-wrapper {
    height: 200px;
  }

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

  .page-game-guides__card .page-game-guides__btn-secondary {
    width: 100%;
    text-align: center;
  }

  .page-game-guides__strategy-points {
    grid-template-columns: 1fr;
  }

  .page-game-guides__content-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Mobile image specific rules */
  .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,
  .page-game-guides__image-wrapper,
  .page-game-guides__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile video specific rules */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button responsive rules */
  .page-game-guides__cta-button,
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-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-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-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;
    flex-direction: column;
  }
}

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

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