/* style/game-guides.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --dark-bg-color: #1a1a2e; /* From body background info */
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --btn-text-color: #FFFF00;
}

.page-game-guides {
  color: var(--text-on-dark-bg); /* Default text color for the page content on dark body background */
  background-color: var(--dark-bg-color);
}

.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 decorative top padding, body handles header offset */
  background-color: var(--primary-color);
  color: var(--text-on-dark-bg);
  overflow: hidden;
}

.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: 8px;
  object-fit: cover;
}

.page-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-on-dark-bg);
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive font size for H1 */
}

.page-game-guides__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-on-dark-bg);
}

/* General Section Styling */
.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-on-dark-bg);
}

.page-game-guides__intro-section,
.page-game-guides__getting-started,
.page-game-guides__responsible-gaming {
  padding: 60px 0;
  background-color: var(--dark-bg-color);
  color: var(--text-on-dark-bg);
}

.page-game-guides__dark-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark-bg);
}

.page-game-guides__intro-section p,
.page-game-guides__getting-started p,
.page-game-guides__responsible-gaming p,
.page-game-guides__dark-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

/* Lists */
.page-game-guides__benefit-list,
.page-game-guides__tip-list,
.page-game-guides__faq-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-game-guides__benefit-item,
.page-game-guides__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 6px;
  color: var(--text-on-dark-bg);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-game-guides__benefit-item strong,
.page-game-guides__tip-item strong {
  color: var(--secondary-color);
}

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

.page-game-guides__grid--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styling */
.page-game-guides__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-on-dark-bg);
}

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

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-game-guides__card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-game-guides__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-game-guides__btn-register {
  background-color: var(--register-btn-color);
  border-color: var(--register-btn-color);
  color: var(--btn-text-color);
}

.page-game-guides__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-game-guides__btn-login {
  background-color: var(--login-btn-color);
  border-color: var(--login-btn-color);
  color: var(--btn-text-color);
}

.page-game-guides__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-on-dark-bg);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 15px 25px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-on-dark-bg);
}

.page-game-guides__faq-answer p {
  margin: 0;
  text-align: left;
}

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

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

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

@media (max-width: 768px) {
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__dark-section,
  .page-game-guides__getting-started,
  .page-game-guides__responsible-gaming,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-game-guides__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__grid--three-cols {
    grid-template-columns: 1fr;
  }

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

  .page-game-guides__card-image {
    height: 180px;
  }

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

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

  .page-game-guides__benefit-item,
  .page-game-guides__tip-item {
    padding: 12px 18px;
    font-size: 0.95rem;
  }

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

  .page-game-guides__faq-answer {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Mobile button responsiveness */
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .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;
  }

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* No specific video element in this page, but include the general rule */
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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__video-section {
    padding-top: 10px !important;
  }

  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}