/* style/game-guides.css */

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

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

/* Sections */
.page-game-guides__hero-section,
.page-game-guides__overview-section,
.page-game-guides__popular-games-section,
.page-game-guides__tips-strategy-section,
.page-game-guides__safety-section,
.page-game-guides__faq-section,
.page-game-guides__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-game-guides__light-bg {
  background-color: var(--k88-text-main);
  color: #333333; /* Dark text for light 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: clamp(2em, 4vw, 2.8em);
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit;
  line-height: 1.2;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-game-guides__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-game-guides__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(17, 168, 78, 0.4);
}

.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(2.5em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--k88-text-main);
  text-shadow: 0 0 10px rgba(17, 168, 78, 0.6);
}

.page-game-guides__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--k88-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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%; /* For responsive buttons */
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--k88-button-gradient);
  color: var(--k88-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--k88-secondary-color);
  color: var(--k88-text-main);
  transform: translateY(-3px);
}

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

.page-game-guides__game-card {
  background-color: var(--k88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--k88-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--k88-divider);
}

.page-game-guides__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: var(--k88-text-main);
}

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

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

.page-game-guides__card-text {
  font-size: 0.95em;
  color: var(--k88-text-secondary);
  padding: 0 20px;
  flex-grow: 1;
}

.page-game-guides__card-link {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background: var(--k88-button-gradient);
  color: var(--k88-text-main);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-game-guides__card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(42, 209, 111, 0.4);
}

/* Strategy and Safety Sections */
.page-game-guides__strategy-grid,
.page-game-guides__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-game-guides__strategy-item,
.page-game-guides__safety-item {
  background-color: var(--k88-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--k88-border);
}

.page-game-guides__light-bg .page-game-guides__strategy-item,
.page-game-guides__light-bg .page-game-guides__safety-item {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-game-guides__strategy-title,
.page-game-guides__safety-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--k88-secondary-color);
}

.page-game-guides__light-bg .page-game-guides__strategy-title,
.page-game-guides__light-bg .page-game-guides__safety-title {
  color: var(--k88-primary-color);
}

.page-game-guides__strategy-text,
.page-game-guides__safety-text {
  font-size: 1em;
  color: var(--k88-text-secondary);
}

.page-game-guides__light-bg .page-game-guides__strategy-text,
.page-game-guides__light-bg .page-game-guides__safety-text {
  color: #555555;
}

.page-game-guides__strategy-image,
.page-game-guides__safety-image,
.page-game-guides__faq-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-game-guides__light-bg .page-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--k88-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-game-guides__light-bg .page-game-guides__faq-question {
  color: #333333;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1);
}

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

.page-game-guides__faq-question::marker { /* Hide default arrow for Firefox */
  display: none;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--k88-secondary-color);
  margin-left: 15px;
}

.page-game-guides__light-bg .page-game-guides__faq-toggle {
  color: var(--k88-primary-color);
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.05em;
  color: var(--k88-text-secondary);
  line-height: 1.7;
}

.page-game-guides__light-bg .page-game-guides__faq-answer {
  color: #555555;
}

details[open] > .page-game-guides__faq-question {
  background-color: rgba(17, 168, 78, 0.05);
  border-bottom: 1px solid var(--k88-divider);
}

.page-game-guides__light-bg details[open] > .page-game-guides__faq-question {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #eee;
}

/* Copyright */
.page-game-guides__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: var(--k88-text-secondary);
  background-color: var(--k88-deep-green);
  border-top: 1px solid var(--k88-divider);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }
  .page-game-guides__description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section,
  .page-game-guides__overview-section,
  .page-game-guides__popular-games-section,
  .page-game-guides__tips-strategy-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom-section {
    padding: 40px 0;
  }

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

  /* Images responsive */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__hero-image-wrapper,
  .page-game-guides__game-card,
  .page-game-guides__strategy-item,
  .page-game-guides__safety-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__hero-image {
    border-radius: 0;
  }

  /* Buttons responsive */
  .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: 15px 10px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-game-guides__description {
    font-size: 1em;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.6em, 7vw, 2em);
  }
  .page-game-guides__card-title {
    font-size: 1.3em;
  }
  .page-game-guides__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-game-guides__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-game-guides__copyright {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important;
    min-height: 400px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-game-guides__description {
    font-size: 0.95em;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.4em, 8vw, 1.8em);
  }
}