/* style/game-guides.css */

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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--vila88-text-main); /* Default text color for dark body background */
  background-color: var(--vila88-bg); /* Ensure body background is dark */
}

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

/* 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(--vila88-bg);
  color: var(--vila88-text-main);
}

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

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

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

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--vila88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-game-guides__btn-primary {
  background: var(--vila88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

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

/* Section General Styles */
.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--vila88-gold);
}

.page-game-guides__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--vila88-text-secondary);
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  object-fit: cover;
}

/* Intro Section */
.page-game-guides__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__intro-section .page-game-guides__section-title {
  color: var(--vila88-primary);
}

.page-game-guides__intro-section .page-game-guides__text-block {
  color: #333333;
}

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 80px 0;
  background-color: var(--vila88-bg);
  color: var(--vila88-text-main);
}

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

.page-game-guides__card {
  background-color: var(--vila88-card-bg);
  border: 1px solid var(--vila88-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--vila88-text-main);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-game-guides__card-title a {
  color: var(--vila88-gold);
  text-decoration: none;
}

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

.page-game-guides__card-text {
  font-size: 0.95rem;
  color: var(--vila88-text-secondary);
  margin-bottom: 20px;
}

/* Detailed Guides Section */
.page-game-guides__detailed-guides-section {
  padding: 80px 0;
  background-color: #f5f5f5;
  color: #333333;
}

.page-game-guides__detailed-guides-section .page-game-guides__section-title {
  color: var(--vila88-primary);
}

.page-game-guides__guide-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-game-guides__guide-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.page-game-guides__guide-subtitle a {
  color: var(--vila88-deep-green);
  text-decoration: none;
}

.page-game-guides__guide-subtitle a:hover {
  text-decoration: underline;
}

.page-game-guides__guide-item .page-game-guides__text-block {
  color: #444444;
}

/* General Tips Section */
.page-game-guides__general-tips-section {
  padding: 80px 0;
  background-color: var(--vila88-bg);
  color: var(--vila88-text-main);
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__list-item {
  background-color: var(--vila88-card-bg);
  border: 1px solid var(--vila88-border);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease;
}

.page-game-guides__list-item:hover {
  transform: translateY(-5px);
}

.page-game-guides__list-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vila88-gold);
  margin-bottom: 15px;
}

.page-game-guides__list-text {
  font-size: 1rem;
  color: var(--vila88-text-secondary);
}

.page-game-guides__list-text a {
  color: var(--vila88-secondary);
  text-decoration: none;
}

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

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__faq-section .page-game-guides__section-title {
  color: var(--vila88-primary);
}

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

.page-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-game-guides__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--vila88-deep-green);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: #f0f0f0;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--vila88-primary);
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

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

.page-game-guides__faq-answer a {
  color: var(--vila88-primary);
  text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--vila88-deep-green);
  color: var(--vila88-text-main);
}

.page-game-guides__cta-bottom-section .page-game-guides__section-title {
  color: var(--vila88-gold);
}

.page-game-guides__cta-bottom-section .page-game-guides__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--vila88-text-secondary);
}

/* --- Dark/Light Background Classes for Contrast --- */
.page-game-guides__dark-section {
  background-color: var(--vila88-bg);
  color: var(--vila88-text-main);
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-guides__description {
    font-size: 1.05rem;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-game-guides__guide-subtitle {
    font-size: 1.6rem;
  }
}

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

  .page-game-guides__container,
  .page-game-guides__grid,
  .page-game-guides__list,
  .page-game-guides__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-content {
    padding: 0 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-guides__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 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-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-game-guides__text-block,
  .page-game-guides__card-text,
  .page-game-guides__list-text,
  .page-game-guides__faq-answer p {
    font-size: 0.95rem;
  }

  .page-game-guides__card,
  .page-game-guides__guide-item,
  .page-game-guides__list-item {
    padding: 20px;
  }

  .page-game-guides__card-image,
  .page-game-guides__content-image,
  .page-game-guides__hero-image,
  .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__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__grid,
  .page-game-guides__list,
  .page-game-guides__faq-list,
  .page-game-guides__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

  .page-game-guides__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .page-game-guides__description {
    font-size: 0.9rem;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .page-game-guides__guide-subtitle {
    font-size: 1.4rem;
  }
}