/* 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: #1a1a2e; /* From shared.css body background */
}

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

.page-game-guides__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #005f2f);
}

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

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  color: #FFFFFF;
  padding: 20px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

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

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

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

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

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

.page-game-guides__btn-link {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

.page-game-guides__btn-link:hover {
  background-color: #005f2f;
  border-color: #005f2f;
}

/* Sections */
.page-game-guides__introduction-section,
.page-game-guides__gameplay-basics,
.page-game-guides__slot-types,
.page-game-guides__strategies-section,
.page-game-guides__promotions-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 60px 0;
}

.page-game-guides__dark-section {
  background-color: #0a0a1a;
  color: #f0f0f0;
}

.page-game-guides__light-bg {
  background-color: #2a2a3e;
  color: #ffffff;
}

.page-game-guides__light-bg .page-game-guides__text-block {
  color: #ffffff;
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: #FFFFFF;
}

/* Image Styling */
.page-game-guides__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Video Styling */
.page-game-guides__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

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

/* Lists */
.page-game-guides__ordered-list,
.page-game-guides__unordered-list {
  list-style-position: inside;
  padding-left: 0;
  margin: 20px 0;
}

.page-game-guides__ordered-list li,
.page-game-guides__unordered-list li {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: justify;
}

.page-game-guides__ordered-list li strong {
  color: #017439;
}

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

.page-game-guides__card,
.page-game-guides__promo-card {
  background-color: #2a2a3e;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-game-guides__card:hover,
.page-game-guides__promo-card:hover {
  transform: translateY(-10px);
}

.page-game-guides__card-image,
.page-game-guides__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-game-guides__card-title,
.page-game-guides__promo-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__card-text,
.page-game-guides__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-game-guides__faq-item {
  background-color: #2a2a3e;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-game-guides__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
  line-height: 1.4;
}

.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;
  background-color: #3a3a4e;
  color: #f0f0f0;
  font-size: 1.1em;
}

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

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

/* CTA Section */
.page-game-guides__cta-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__cta-section .page-game-guides__section-title {
  color: #FFFFFF;
}

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-game-guides__hero-title {
    font-size: 2.5em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides__btn-link {
    width: 100% !important;
    max-width: 300px !important; /* Constrain width for better look */
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Image and Video responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__container,
  .page-game-guides__card,
  .page-game-guides__promo-card,
  .page-game-guides__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__card-grid,
  .page-game-guides__promo-grid {
    grid-template-columns: 1fr;
  }

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

  .page-game-guides__text-block,
  .page-game-guides__ordered-list li,
  .page-game-guides__unordered-list li,
  .page-game-guides__card-text,
  .page-game-guides__promo-text,
  .page-game-guides__faq-answer p {
    font-size: 1em;
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
  }
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 2em;
  }
  .page-game-guides__hero-description {
    font-size: 0.9em;
  }
  .page-game-guides__section-title {
    font-size: 1.6em;
  }
  .page-game-guides__text-block,
  .page-game-guides__ordered-list li,
  .page-game-guides__unordered-list li,
  .page-game-guides__card-text,
  .page-game-guides__promo-text,
  .page-game-guides__faq-answer p {
    font-size: 0.95em;
  }
  .page-game-guides__card-title,
  .page-game-guides__promo-title {
    font-size: 1.4em;
  }
}