/* style/game-guides.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-background: #1a1a2e;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --button-text-color: #FFFF00;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Inherited from shared.css body */
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  color: var(--light-text-color);
  background-color: var(--primary-color);
  overflow: hidden;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-game-guides__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* General Section Styles */
.page-game-guides__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Introduction Section */
.page-game-guides__introduction-section {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

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

/* Why Choose Section */
.page-game-guides__why-choose-section {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

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

.page-game-guides__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-game-guides__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-game-guides__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-guides__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-game-guides__feature-description {
  font-size: 1em;
  color: var(--dark-text-color);
}

/* Game Categories Section */
.page-game-guides__game-categories-section {
  background-color: var(--dark-background);
  color: var(--light-text-color);
}

.page-game-guides__game-categories-section .page-game-guides__section-title {
  color: var(--secondary-color);
}

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

.page-game-guides__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-game-guides__category-card:hover {
  transform: translateY(-5px);
}

.page-game-guides__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-game-guides__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-game-guides__category-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  padding: 15px 20px 5px;
}

.page-game-guides__category-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 20px 20px;
}

/* How To Start Section */
.page-game-guides__how-to-start-section {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-game-guides__how-to-start-section .page-game-guides__section-title {
  color: var(--primary-color);
}

.page-game-guides__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-game-guides__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-guides__step-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-game-guides__step-description {
  font-size: 1em;
  color: var(--dark-text-color);
  margin-bottom: 25px;
}

/* Tips Section */
.page-game-guides__tips-section {
  background-color: var(--dark-background);
  color: var(--light-text-color);
}

.page-game-guides__tips-section .page-game-guides__section-title {
  color: var(--secondary-color);
}

.page-game-guides__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__tips-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
}

.page-game-guides__tips-list li strong {
  color: var(--primary-color);
}

/* Video Section */
.page-game-guides__video-section {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  text-align: center;
}

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

.page-game-guides__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-game-guides__video-caption {
  font-style: italic;
  color: var(--dark-text-color);
  margin-top: 10px;
  margin-bottom: 30px;
}

/* Responsible Gaming Section */
.page-game-guides__responsible-gaming-section {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

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

.page-game-guides__responsible-gaming-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__responsible-gaming-list li {
  background-color: #f8f8f8;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
}

.page-game-guides__responsible-gaming-list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: var(--dark-background);
  color: var(--light-text-color);
}

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

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

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

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

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

.page-game-guides__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--secondary-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1em;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 20px;
}

/* Call To Action Section */
.page-game-guides__cta-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 60px 20px;
}

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

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  text-align: center;
}

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

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

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

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

/* Global Image Styles */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-game-guides__hero-description {
    font-size: 1em;
  }

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

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

  .page-game-guides__features-grid,
  .page-game-guides__category-grid,
  .page-game-guides__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__feature-item,
  .page-game-guides__category-card,
  .page-game-guides__step-item,
  .page-game-guides__tips-list li,
  .page-game-guides__responsible-gaming-list li,
  .page-game-guides__faq-item {
    padding: 15px;
  }

  .page-game-guides__feature-image,
  .page-game-guides__category-image {
    height: 200px;
  }

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

  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .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__cta-button,
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }

  .page-game-guides__faq-question h3 {
    font-size: 1em;
  }
  .page-game-guides__faq-answer {
    padding: 0 15px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 15px;
  }
}