/* style/gaming-guides.css */
.page-gaming-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #1a1a1a (dark), so use light text */
  background-color: transparent; /* inherited from body */
}

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

/* Hero Section */
.page-gaming-guides__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-gaming-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for better text contrast */
}

.page-gaming-guides__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
}

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

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

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

/* General Section Styles */
.page-gaming-guides__introduction-section,
.page-gaming-guides__how-to-play-section,
.page-gaming-guides__promotions-section,
.page-gaming-guides__faq-section {
  padding: 80px 0;
  color: #333333; /* Light background, dark text */
}

.page-gaming-guides__game-types-section,
.page-gaming-guides__tips-strategies-section,
.page-gaming-guides__security-section,
.page-gaming-guides__cta-section {
  padding: 80px 0;
  color: #ffffff; /* Dark background, light text */
}

.page-gaming-guides__dark-bg {
  background-color: #017439; /* Main brand color */
}

.page-gaming-guides__light-bg {
  background-color: #ffffff; /* Auxiliary color */
}

.page-gaming-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
}

.page-gaming-guides__dark-bg .page-gaming-guides__section-title {
  color: #ffffff;
}

.page-gaming-guides__light-bg .page-gaming-guides__section-title {
  color: #017439;
}

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

.page-gaming-guides__dark-bg .page-gaming-guides__text-block {
  color: #f0f0f0;
}

.page-gaming-guides__light-bg .page-gaming-guides__text-block {
  color: #333333;
}

.page-gaming-guides__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-gaming-guides__btn-primary,
.page-gaming-guides__btn-secondary {
  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;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-gaming-guides__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

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

/* Game Cards Grid */
.page-gaming-guides__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-gaming-guides__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-gaming-guides__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-gaming-guides__card-title a {
  color: #ffffff;
  text-decoration: none;
}

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

.page-gaming-guides__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How To Play Steps */
.page-gaming-guides__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-gaming-guides__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  margin-bottom: 25px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-gaming-guides__step-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-gaming-guides__step-item p {
  font-size: 1em;
  color: #555555;
}

/* Tips & Strategies */
.page-gaming-guides__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-gaming-guides__strategy-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-gaming-guides__strategy-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-gaming-guides__strategy-item p {
  color: #f0f0f0;
}

/* Promotions */
.page-gaming-guides__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-gaming-guides__promo-item {
  background: #f0f0f0; /* Light background for promo cards */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-gaming-guides__promo-item .page-gaming-guides__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-gaming-guides__promo-item .page-gaming-guides__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-gaming-guides__promo-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

/* CTA Section */
.page-gaming-guides__cta-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
  min-height: 400px;
  overflow: hidden;
}

.page-gaming-guides__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text contrast */
}

.page-gaming-guides__cta-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
}

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

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

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

.page-gaming-guides__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

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

.page-gaming-guides__faq-question:hover {
  background-color: #dcece0;
}

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

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

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

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

.page-gaming-guides__faq-answer p {
  margin-bottom: 10px;
}

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

  .page-gaming-guides__section-title,
  .page-gaming-guides__cta-title {
    font-size: 2em;
  }
}

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

  .page-gaming-guides__hero-section,
  .page-gaming-guides__introduction-section,
  .page-gaming-guides__game-types-section,
  .page-gaming-guides__how-to-play-section,
  .page-gaming-guides__tips-strategies-section,
  .page-gaming-guides__promotions-section,
  .page-gaming-guides__security-section,
  .page-gaming-guides__faq-section,
  .page-gaming-guides__cta-section {
    padding: 60px 0;
  }

  .page-gaming-guides__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-gaming-guides__btn-primary,
  .page-gaming-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-gaming-guides__hero-buttons,
  .page-gaming-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-gaming-guides__text-block,
  .page-gaming-guides__card-description,
  .page-gaming-guides__step-item p,
  .page-gaming-guides__strategy-item p,
  .page-gaming-guides__promo-item p,
  .page-gaming-guides__faq-answer p {
    font-size: 1em;
  }

  .page-gaming-guides__game-cards-grid,
  .page-gaming-guides__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gaming-guides__card {
    padding: 20px;
  }

  .page-gaming-guides__card-image {
    height: 180px;
  }

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

  .page-gaming-guides__step-item,
  .page-gaming-guides__strategy-item,
  .page-gaming-guides__promo-item {
    padding: 20px;
  }

  .page-gaming-guides__step-title,
  .page-gaming-guides__strategy-title,
  .page-gaming-guides__promo-title {
    font-size: 1.5em;
  }

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

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

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

  /* Images and Video Responsive */
  .page-gaming-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gaming-guides__image-content,
  .page-gaming-guides__hero-image,
  .page-gaming-guides__cta-image,
  .page-gaming-guides__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-gaming-guides__container,
  .page-gaming-guides__hero-section,
  .page-gaming-guides__introduction-section,
  .page-gaming-guides__game-types-section,
  .page-gaming-guides__how-to-play-section,
  .page-gaming-guides__tips-strategies-section,
  .page-gaming-guides__promotions-section,
  .page-gaming-guides__security-section,
  .page-gaming-guides__faq-section,
  .page-gaming-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-gaming-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

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

  .page-gaming-guides__section-title,
  .page-gaming-guides__cta-title {
    font-size: 1.5em;
  }

  .page-gaming-guides__hero-buttons {
    flex-direction: column;
  }
}