/* style/game-guides.css */

/* Custom Colors */
:root {
  --luck8333-green-main: #11A84E;
  --luck8333-green-secondary: #22C768;
  --luck8333-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --luck8333-card-bg: #11271B;
  --luck8333-bg-dark: #08160F;
  --luck8333-text-main: #F2FFF6;
  --luck8333-text-secondary: #A7D9B8;
  --luck8333-border: #2E7A4E;
  --luck8333-glow: #57E38D;
  --luck8333-gold: #F2C14E;
  --luck8333-divider: #1E3A2A;
  --luck8333-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-game-guides {
  background-color: var(--luck8333-bg-dark); /* Use custom dark background */
  color: var(--luck8333-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--luck8333-gold); /* Gold for titles */
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.page-game-guides__section p {
  font-size: 1.1em;
  color: var(--luck8333-text-secondary);
  margin-bottom: 20px;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--luck8333-deep-green); /* Darker green background for hero */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container width */
  margin-bottom: 30px; /* Space between image and content */
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--luck8333-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-game-guides__tagline {
  font-size: 1.3em;
  color: var(--luck8333-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-game-guides__btn-primary {
  background: var(--luck8333-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-game-guides__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

/* Introduction Section */
.page-game-guides__introduction {
  background-color: var(--luck8333-bg-dark);
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

/* Game Categories Grid */
.page-game-guides__game-categories {
  background-color: var(--luck8333-deep-green);
}

.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(--luck8333-card-bg); /* Card background */
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--luck8333-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push link to bottom */
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-game-guides__card-title {
  font-size: 1.4em;
  color: var(--luck8333-gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: var(--luck8333-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: var(--luck8333-glow);
}

.page-game-guides__card p {
  font-size: 1em;
  color: var(--luck8333-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-game-guides__card-link {
  display: inline-block;
  color: var(--luck8333-green-secondary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-game-guides__card-link:hover {
  color: var(--luck8333-glow);
  text-decoration: underline;
}

/* Advanced Tips Section */
.page-game-guides__advanced-tips {
  background-color: var(--luck8333-bg-dark);
}

.page-game-guides__content-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-game-guides__list li {
  background-color: var(--luck8333-card-bg);
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: var(--luck8333-text-main);
  font-size: 1.05em;
  border-left: 5px solid var(--luck8333-green-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__list li strong {
  color: var(--luck8333-gold);
}

/* Promotions Section */
.page-game-guides__promotions {
  background-color: var(--luck8333-deep-green);
}

/* Get Started Section */
.page-game-guides__get-started {
  background-color: var(--luck8333-bg-dark);
}

.page-game-guides__steps {
  margin-top: 40px;
}

.page-game-guides__step-card {
  background-color: var(--luck8333-card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--luck8333-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__step-title {
  font-size: 1.5em;
  color: var(--luck8333-gold);
  margin-bottom: 20px;
}

.page-game-guides__step-card p {
  color: var(--luck8333-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-game-guides__faq {
  background-color: var(--luck8333-deep-green);
}

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

.page-game-guides__faq-item {
  background-color: var(--luck8333-card-bg);
  border: 1px solid var(--luck8333-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--luck8333-gold);
  cursor: pointer;
  background-color: var(--luck8333-card-bg);
  border-bottom: 1px solid var(--luck8333-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-game-guides__faq-question:hover {
  background-color: var(--luck8333-deep-green);
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--luck8333-green-secondary);
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--luck8333-text-secondary);
  text-align: left;
}

.page-game-guides__faq-answer a {
  color: var(--luck8333-green-secondary);
  text-decoration: underline;
}

/* Contact CTA Section */
.page-game-guides__contact-cta {
  background-color: var(--luck8333-bg-dark);
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-image-wrapper {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__container,
  .page-game-guides__section,
  .page-game-guides__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-game-guides__cta-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__grid {
    grid-template-columns: 1fr;
  }

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

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

  .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__hero-section,
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container,
  .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;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

  /* Specific padding for sections if needed to avoid full width content touching edges */
  .page-game-guides__section:not(.page-game-guides__hero-section) {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 10px 20px 15px;
  }
}