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

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

.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: var(--rr88bet-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.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: var(--rr88bet-background);
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  order: 1;
}

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

.page-game-guides__hero-content {
  order: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--rr88bet-text-main);
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  color: var(--rr88bet-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

.page-game-guides__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--rr88bet-text-secondary);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-guides__btn-primary {
  background: var(--rr88bet-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
}

.page-game-guides__introduction-section,
.page-game-guides__login-register-section,
.page-game-guides__app-download-section,
.page-game-guides__faq-section {
  background-color: var(--rr88bet-background); /* Use deep green for light sections for contrast */
  color: var(--rr88bet-text-main);
  padding: 60px 0;
}

.page-game-guides__game-types-section,
.page-game-guides__tips-strategy-section,
.page-game-guides__promotions-section {
  background-color: var(--rr88bet-deep-green);
  color: var(--rr88bet-text-main);
  padding: 60px 0;
}

.page-game-guides__dark-bg {
  background-color: var(--rr88bet-deep-green);
  color: var(--rr88bet-text-main);
}

.page-game-guides__light-bg {
  background-color: var(--rr88bet-background);
  color: var(--rr88bet-text-main);
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-game-guides__game-card-list,
.page-game-guides__promo-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__game-card,
.page-game-guides__promo-card {
  background-color: var(--rr88bet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides__game-card:hover,
.page-game-guides__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-game-guides__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-game-guides__game-card p,
.page-game-guides__promo-card p {
  color: var(--rr88bet-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-game-guides__btn-text {
  display: inline-block;
  color: var(--rr88bet-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-game-guides__btn-text:hover {
  color: var(--rr88bet-gold);
  text-decoration: underline;
}

.page-game-guides__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-game-guides__guide-block {
  background-color: var(--rr88bet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--rr88bet-text-main);
}

.page-game-guides__guide-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-game-guides__guide-subtitle {
  font-size: 1.8em;
  color: var(--rr88bet-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-guides__guide-block ol {
  list-style-type: decimal;
  padding-left: 20px;
  color: var(--rr88bet-text-secondary);
}

.page-game-guides__guide-block ol li {
  margin-bottom: 10px;
}

.page-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__tip-item {
  background-color: var(--rr88bet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--rr88bet-text-main);
}

.page-game-guides__tip-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement, will scale down with object-fit: contain */
  min-height: 200px; /* Min size requirement */
}

.page-game-guides__tip-title {
  font-size: 1.6em;
  color: var(--rr88bet-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-game-guides__tip-item p {
  color: var(--rr88bet-text-secondary);
  font-size: 0.95em;
}

.page-game-guides__app-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-game-guides__app-text-content {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__app-image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-game-guides__app-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-game-guides__app-text-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 30px;
  color: var(--rr88bet-text-secondary);
}

.page-game-guides__app-text-content ul li {
  margin-bottom: 10px;
}

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

.page-game-guides__faq-item {
  background-color: var(--rr88bet-card-bg);
  border: 1px solid var(--rr88bet-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-item details {
  width: 100%;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--rr88bet-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-game-guides__faq-question:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--rr88bet-gold);
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: var(--rr88bet-text-secondary);
}

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

.page-game-guides__cta-buttons--center {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-game-guides__app-content-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-game-guides__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

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

  .page-game-guides__intro-text {
    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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons */
  }

  .page-game-guides__game-card-list,
  .page-game-guides__promo-card-list,
  .page-game-guides__guide-steps,
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-game-guides__game-card p,
  .page-game-guides__promo-card p,
  .page-game-guides__tip-item p,
  .page-game-guides__guide-block ol li,
  .page-game-guides__faq-answer p {
    font-size: 0.9em;
  }

  .page-game-guides__card-image,
  .page-game-guides__guide-image,
  .page-game-guides__tip-icon,
  .page-game-guides__app-image,
  .page-game-guides__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size even on mobile if content image */
    min-height: 200px !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__introduction-section,
  .page-game-guides__game-types-section,
  .page-game-guides__login-register-section,
  .page-game-guides__tips-strategy-section,
  .page-game-guides__app-download-section,
  .page-game-guides__promotions-section,
  .page-game-guides__faq-section,
  .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;
  }

  .page-game-guides__app-text-content,
  .page-game-guides__app-image-content {
    width: 100% !important;
    max-width: 100% !important;
  }
}

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

  .page-game-guides__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

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

  .page-game-guides__guide-subtitle,
  .page-game-guides__tip-title {
    font-size: 1.4em;
  }
}