/* style/game-guides.css */

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

/* Base styles for the page content */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--mm88-text-main); /* Default text color for dark background */
  background-color: var(--mm88-background-color); /* Matches body background */
}

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

/* Section Styling */
.page-game-guides__hero-section,
.page-game-guides__introduction-section,
.page-game-guides__getting-started-section,
.page-game-guides__game-types-section,
.page-game-guides__advanced-strategy-section,
.page-game-guides__safety-section,
.page-game-guides__faq-section,
.page-game-guides__call-to-action-section {
  padding: 80px 0;
  text-align: center;
}

.page-game-guides__dark-section {
  background-color: var(--mm88-background-color);
  color: var(--mm88-text-main);
}

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

.page-game-guides__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--mm88-gold-color);
  letter-spacing: 0.5px;
}

.page-game-guides__dark-section .page-game-guides__section-title {
  color: var(--mm88-gold-color);
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: var(--mm88-deep-green);
}

.page-game-guides__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--mm88-gold-color);
}

.page-game-guides__light-bg .page-game-guides__sub-title {
  color: var(--mm88-deep-green);
}

.page-game-guides__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--mm88-text-secondary);
}

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

/* Hero Section */
.page-game-guides__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--mm88-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

.page-game-guides__hero-description {
  font-size: 20px;
  color: var(--mm88-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-game-guides__btn-primary {
  background: var(--mm88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  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-color: transparent;
  color: var(--mm88-gold-color);
  border: 2px solid var(--mm88-gold-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--mm88-gold-color);
  color: var(--mm88-background-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card {
  background-color: var(--mm88-card-bg);
  color: var(--mm88-text-main);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--mm88-border-color);
  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.6);
}

.page-game-guides__light-bg .page-game-guides__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-game-guides__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
  display: block;
}

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--mm88-gold-color);
}

.page-game-guides__light-bg .page-game-guides__card-title {
  color: var(--mm88-deep-green);
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-game-guides__card p {
  font-size: 16px;
  color: var(--mm88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__light-bg .page-game-guides__card p {
  color: #555555;
}

.page-game-guides__card-link {
  font-size: 16px;
  color: var(--mm88-gold-color);
  text-decoration: none;
  border-bottom: 2px solid var(--mm88-gold-color);
  padding: 5px 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__light-bg .page-game-guides__card-link {
  color: var(--mm88-primary-color);
  border-color: var(--mm88-primary-color);
}

.page-game-guides__card-link:hover {
  color: var(--mm88-glow-color);
  border-color: var(--mm88-glow-color);
}

/* List Styling */
.page-game-guides__strategy-list,
.page-game-guides__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-guides__strategy-list li,
.page-game-guides__responsible-gaming-list li {
  background-color: var(--mm88-card-bg);
  color: var(--mm88-text-main);
  padding: 15px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 18px;
  border-left: 5px solid var(--mm88-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__light-bg .page-game-guides__strategy-list li,
.page-game-guides__light-bg .page-game-guides__responsible-gaming-list li {
  background-color: #f8f8f8;
  color: #333333;
  border-left-color: var(--mm88-primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-guides__strategy-list li strong,
.page-game-guides__responsible-gaming-list li strong {
  color: var(--mm88-gold-color);
}

.page-game-guides__light-bg .page-game-guides__strategy-list li strong,
.page-game-guides__light-bg .page-game-guides__responsible-gaming-list li strong {
  color: var(--mm88-deep-green);
}

/* Image content within sections */
.page-game-guides__image-content {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: var(--mm88-gold-color);
  background-color: var(--mm88-deep-green);
  border-bottom: 1px solid var(--mm88-border-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  background-color: var(--mm88-primary-color);
  color: #ffffff;
}

.page-game-guides__faq-question:hover {
  background-color: var(--mm88-primary-color);
}

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

.page-game-guides__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: inherit;
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 17px;
  color: var(--mm88-text-secondary);
}

.page-game-guides__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
  color: var(--mm88-text-secondary);
}

.page-game-guides__faq-answer a {
  color: var(--mm88-gold-color);
  text-decoration: none;
  border-bottom: 1px solid var(--mm88-gold-color);
}

.page-game-guides__faq-answer a:hover {
  color: var(--mm88-glow-color);
  border-color: var(--mm88-glow-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-section,
  .page-game-guides__introduction-section,
  .page-game-guides__getting-started-section,
  .page-game-guides__game-types-section,
  .page-game-guides__advanced-strategy-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__call-to-action-section {
    padding: 60px 0;
  }

  .page-game-guides__section-title {
    font-size: clamp(24px, 4vw, 40px);
  }

  .page-game-guides__main-title {
    font-size: clamp(32px, 5vw, 50px);
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 500px;
  }

  .page-game-guides__text-block,
  .page-game-guides__hero-description {
    font-size: 17px;
  }

  .page-game-guides__guide-cards,
  .page-game-guides__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-game-guides__card-title {
    font-size: 22px;
  }

  .page-game-guides__strategy-list li,
  .page-game-guides__responsible-gaming-list li {
    font-size: 17px;
  }
}

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

  .page-game-guides__hero-section,
  .page-game-guides__introduction-section,
  .page-game-guides__getting-started-section,
  .page-game-guides__game-types-section,
  .page-game-guides__advanced-strategy-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__call-to-action-section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .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: 12px 20px;
    font-size: 16px;
  }

  .page-game-guides__section-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 20px;
  }

  .page-game-guides__sub-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-game-guides__text-block {
    font-size: 16px;
  }

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

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

  .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__card p {
    font-size: 15px;
  }

  .page-game-guides__card-image,
  .page-game-guides__image-content,
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px; /* Ensure minimum size */
  }

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

  .page-game-guides__faq-answer {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-game-guides__strategy-list li,
  .page-game-guides__responsible-gaming-list li {
    font-size: 16px;
    padding: 12px 20px;
  }

  /* Ensure all video elements are responsive */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers for responsive behavior */
  .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;
  }
}

/* Color Contrast Fixes (if needed) */
.page-game-guides__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-game-guides__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}