/* style/game-guides.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
}

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

.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;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

.page-game-guides__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: var(--button-register); /* Custom color for register */
  color: var(--button-text-yellow); /* Custom color for register font */
  border: 2px solid var(--button-register);
}

.page-game-guides__btn-primary:hover {
  background-color: darken(var(--button-register), 10%);
  border-color: darken(var(--button-register), 10%);
}

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

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

/* Video Section */
.page-game-guides__video-section {
  background-color: var(--primary-color);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

.page-game-guides__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto 30px;
  background-color: #000;
  border-radius: 10px;
}

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

.page-game-guides__video-caption {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-game-guides__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

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

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: var(--text-light);
}

.page-game-guides__guide-section h3 {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-game-guides__dark-bg .page-game-guides__guide-section h3 {
  color: var(--text-light);
}

.page-game-guides__guide-section p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-game-guides__guide-section ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-game-guides__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

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

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

/* CTA Section */
.page-game-guides__cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

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

.page-game-guides__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-game-guides__hero-description,
  .page-game-guides__cta-description {
    font-size: 1.1em;
  }

  .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: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-game-guides__hero-buttons,
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-guides__video-section,
  .page-game-guides__guide-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 40px 0;
  }

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

  .page-game-guides__guide-section h3 {
    font-size: 1.3em;
  }

  /* Mobile responsive for images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure containers with images/videos/buttons do not overflow */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__hero-buttons,
  .page-game-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding-top for video section on mobile if needed */
  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important; 
  }

}

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

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

  .page-game-guides__guide-section h3 {
    font-size: 1.1em;
  }
}

/* Color Contrast Fixes (if needed, though design aims for good contrast) */
.page-game-guides__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-game-guides__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}