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

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

.page-game-guides__container--center {
  text-align: center;
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
}

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

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-game-guides__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-game-guides__section-title--white {
  color: #ffffff;
}

.page-game-guides__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
}

.page-game-guides__text-block--white {
  color: #f0f0f0;
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-game-guides__dark-bg {
  background-color: #017439;
  padding: 60px 0;
  color: #ffffff;
}

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

.page-game-guides__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

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

.page-game-guides__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

.page-game-guides__btn-register {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  border: 2px solid #C30808;
  margin-right: 15px;
}

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

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

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

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 30px;
}

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

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-game-guides__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-guides__image-right,
.page-game-guides__image-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-game-guides__image-right .page-game-guides__image-content {
  flex: 1;
  min-width: 300px;
  order: 2;
}

.page-game-guides__image-right .page-game-guides__text-content {
  flex: 2;
  min-width: 300px;
  order: 1;
}

.page-game-guides__image-left .page-game-guides__image-content {
  flex: 1;
  min-width: 300px;
  order: 1;
}

.page-game-guides__image-left .page-game-guides__text-content {
  flex: 2;
  min-width: 300px;
  order: 2;
}

.page-game-guides__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-game-guides__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.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-question {
  background-color: #e0e0e0;
}

.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;
  background-color: #ffffff;
  color: #555555;
}

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

.page-game-guides__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-game-guides__floating-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-game-guides__floating-btn:hover {
  transform: translateY(-2px);
}

.page-game-guides__floating-btn--register {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
}

.page-game-guides__floating-btn--login {
  background-color: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Login font color */
}

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

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-game-guides__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides__btn-register,
  .page-game-guides__btn-login {
    padding: 12px 20px;
    font-size: 0.9em;
    width: 100% !important; /* Ensure full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-game-guides__btn-register {
    margin-right: 0;
  }

  .page-game-guides__image-right,
  .page-game-guides__image-left {
    flex-direction: column;
    gap: 20px;
  }

  .page-game-guides__image-right .page-game-guides__image-content,
  .page-game-guides__image-left .page-game-guides__image-content {
    order: unset;
  }

  .page-game-guides__image-right .page-game-guides__text-content,
  .page-game-guides__image-left .page-game-guides__text-content {
    order: unset;
  }

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

  .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,
  .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;
    overflow: hidden !important;
  }

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

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

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

  .page-game-guides__floating-buttons {
    flex-direction: row;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    gap: 15px;
  }

  .page-game-guides__floating-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: none;
  }
}

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

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