/* style/game-guides.css */

:root {
  --page-game-guides-primary-color: #FFD700; /* Gold */
  --page-game-guides-secondary-color: #8B0000; /* Dark Red */
  --page-game-guides-text-light: #ffffff;
  --page-game-guides-text-dark: #333333;
  --page-game-guides-bg-dark: #121212;
  --page-game-guides-card-bg: rgba(255, 255, 255, 0.08);
  --page-game-guides-border-color: rgba(255, 255, 255, 0.15);
}

.page-game-guides {
  color: var(--page-game-guides-text-light);
  background-color: var(--page-game-guides-bg-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--page-game-guides-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-game-guides__section-description {
  font-size: 1.1em;
  color: var(--page-game-guides-text-light);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-game-guides__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-game-guides__hero-title {
  font-size: 3.5em;
  color: var(--page-game-guides-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  color: var(--page-game-guides-text-light);
  margin-bottom: 40px;
}

/* Buttons */
.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;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: var(--page-game-guides-primary-color);
  color: var(--page-game-guides-text-dark);
  border: 2px solid var(--page-game-guides-primary-color);
  margin: 0 10px;
}

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

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

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

/* Video Section */
.page-game-guides__overview-section {
  background-color: var(--page-game-guides-bg-dark);
  padding-bottom: 80px;
}

.page-game-guides__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for the video container */
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.page-game-guides__video-link {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.page-game-guides__video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.3s ease;
}

.page-game-guides__video-link:hover .page-game-guides__video-play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.page-game-guides__video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-game-guides__play-button {
  font-size: 4em;
  color: var(--page-game-guides-primary-color);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  border: 3px solid var(--page-game-guides-primary-color);
}

.page-game-guides__video-caption {
  font-style: italic;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
}

/* Game Grid */
.page-game-guides__game-types {
  background-color: var(--page-game-guides-bg-dark);
}

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

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

.page-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--page-game-guides-primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-game-guides__card-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-game-guides__game-card .page-game-guides__btn-secondary {
  margin: 20px;
  align-self: flex-start;
}

/* Strategies Section */
.page-game-guides__strategies-section {
  background-color: var(--page-game-guides-bg-dark);
}

.page-game-guides__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-game-guides__strategy-item {
  background-color: var(--page-game-guides-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-game-guides-border-color);
}

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

.page-game-guides__strategy-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1em;
}

.page-game-guides__content-image {
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__responsible-list li {
  background-color: var(--page-game-guides-card-bg);
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--page-game-guides-text-light);
  border-left: 5px solid var(--page-game-guides-primary-color);
}

.page-game-guides__responsible-gaming-section .page-game-guides__btn-primary {
  margin-top: 40px;
}

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

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-game-guides-primary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.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;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

.page-game-guides__faq-answer a:hover {
  color: var(--page-game-guides-secondary-color);
}

/* CTA Section */
.page-game-guides__cta-section {
  background-color: var(--page-game-guides-secondary-color);
  padding: 80px 0;
}

.page-game-guides__cta-content {
  max-width: 900px;
}

.page-game-guides__cta-section .page-game-guides__section-title {
  color: var(--page-game-guides-text-light);
  margin-bottom: 30px;
}

.page-game-guides__cta-section .page-game-guides__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.page-game-guides__cta-section .page-game-guides__section-description a {
  color: var(--page-game-guides-primary-color);
  text-decoration: underline;
}

.page-game-guides__cta-section .page-game-guides__section-description a:hover {
  color: var(--page-game-guides-text-light);
}

.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.8em;
  }
  .page-game-guides__hero-description {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__strategy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    height: 60vh;
  }
  .page-game-guides__hero-title {
    font-size: 2.2em;
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__section-description {
    font-size: 0.95em;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
    margin: 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__game-grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }

  /* Responsive images */
  .page-game-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__video-wrapper,
  .page-game-guides__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-game-guides__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Adjust for fixed header */
  }
  .page-game-guides__video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.3s ease;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-game-guides__hero-description {
    font-size: 0.9em;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 10px 20px;
  }
}