/* style/resources-latest-game-guide.css */

:root {
  --winvip-primary-color: #001F3F;
  --winvip-secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f8f8;
}

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

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

/* Hero Section */
.page-resources-latest-game-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-resources-latest-game-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-latest-game-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for better text contrast */
}

.page-resources-latest-game-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-latest-game-guide__hero-title {
  font-size: 3.2em;
  color: var(--winvip-secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-latest-game-guide__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* General Section Styling */
.page-resources-latest-game-guide__introduction-section,
.page-resources-latest-game-guide__how-to-play-section,
.page-resources-latest-game-guide__faq-section {
  padding: 60px 0;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-resources-latest-game-guide__game-categories-section,
.page-resources-latest-game-guide__tips-section,
.page-resources-latest-game-guide__cta-section {
  padding: 60px 0;
  color: var(--text-light);
  background-color: var(--winvip-primary-color);
}

.page-resources-latest-game-guide__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--winvip-secondary-color);
}

.page-resources-latest-game-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-resources-latest-game-guide__btn-primary,
.page-resources-latest-game-guide__btn-secondary,
.page-resources-latest-game-guide__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-latest-game-guide__btn-primary,
.page-resources-latest-game-guide__hero-button {
  background-color: var(--winvip-secondary-color);
  color: var(--winvip-primary-color);
  border: 2px solid var(--winvip-secondary-color);
}

.page-resources-latest-game-guide__btn-primary:hover,
.page-resources-latest-game-guide__hero-button:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-resources-latest-game-guide__btn-secondary {
  background-color: transparent;
  color: var(--winvip-secondary-color);
  border: 2px solid var(--winvip-secondary-color);
}

.page-resources-latest-game-guide__btn-secondary:hover {
  background-color: var(--winvip-secondary-color);
  color: var(--winvip-primary-color);
}

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

/* Game Grid */
.page-resources-latest-game-guide__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-latest-game-guide__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources-latest-game-guide__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources-latest-game-guide__game-card-title {
  font-size: 1.6em;
  color: var(--winvip-secondary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources-latest-game-guide__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources-latest-game-guide__game-card-title a:hover {
  text-decoration: underline;
}

.page-resources-latest-game-guide__game-card-description {
  font-size: 0.95em;
  color: var(--text-light);
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Steps List */
.page-resources-latest-game-guide__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-latest-game-guide__steps-list li {
  background-color: var(--text-light);
  border-left: 5px solid var(--winvip-secondary-color);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-resources-latest-game-guide__steps-list li p {
  color: var(--text-dark);
}

.page-resources-latest-game-guide__step-title {
  font-size: 1.8em;
  color: var(--winvip-primary-color);
  margin-bottom: 10px;
}

.page-resources-latest-game-guide__steps-list li .page-resources-latest-game-guide__btn-primary,
.page-resources-latest-game-guide__steps-list li .page-resources-latest-game-guide__btn-secondary {
  margin-top: 15px;
  align-self: flex-start;
}

/* Tips Section */
.page-resources-latest-game-guide__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-resources-latest-game-guide__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources-latest-game-guide__tip-title {
  font-size: 1.6em;
  color: var(--winvip-secondary-color);
  margin-bottom: 10px;
}

.page-resources-latest-game-guide__tips-list li p {
  font-size: 1em;
  color: var(--text-light);
  flex-grow: 1;
}

.page-resources-latest-game-guide__tips-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
}

/* FAQ Section */
.page-resources-latest-game-guide__faq-list {
  max-width: 900px;
  margin: 30px auto 0;
}

.page-resources-latest-game-guide__faq-item {
  background-color: var(--text-light);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-resources-latest-game-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--bg-light);
  border-bottom: 1px solid #e0e0e0;
}

.page-resources-latest-game-guide__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-latest-game-guide__faq-title {
  font-size: 1.25em;
  color: var(--winvip-primary-color);
  margin: 0;
  flex-grow: 1;
}

.page-resources-latest-game-guide__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--winvip-secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources-latest-game-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-resources-latest-game-guide__faq-answer p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources-latest-game-guide__faq-answer .page-resources-latest-game-guide__btn-secondary {
  margin-top: 10px;
  align-self: flex-start;
}

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

  .page-resources-latest-game-guide__hero-description {
    font-size: 1.1em;
  }

  .page-resources-latest-game-guide__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-game-guide__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-latest-game-guide__hero-title {
    font-size: 2.2em;
  }

  .page-resources-latest-game-guide__hero-description {
    font-size: 1em;
  }

  .page-resources-latest-game-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-latest-game-guide__container,
  .page-resources-latest-game-guide__game-card,
  .page-resources-latest-game-guide__steps-list li,
  .page-resources-latest-game-guide__tips-list li,
  .page-resources-latest-game-guide__faq-item,
  .page-resources-latest-game-guide__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-resources-latest-game-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .page-resources-latest-game-guide__btn-primary,
  .page-resources-latest-game-guide__btn-secondary,
  .page-resources-latest-game-guide__hero-button,
  .page-resources-latest-game-guide a[class*="button"],
  .page-resources-latest-game-guide 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-resources-latest-game-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-resources-latest-game-guide__cta-buttons .page-resources-latest-game-guide__btn-primary,
  .page-resources-latest-game-guide__cta-buttons .page-resources-latest-game-guide__btn-secondary {
    width: calc(100% - 30px) !important; /* Adjust for padding */
  }

  .page-resources-latest-game-guide__game-grid,
  .page-resources-latest-game-guide__tips-list {
    grid-template-columns: 1fr;
  }

  .page-resources-latest-game-guide__steps-list li {
    padding: 15px;
  }

  .page-resources-latest-game-guide__step-title {
    font-size: 1.5em;
  }

  .page-resources-latest-game-guide__faq-question {
    padding: 15px 20px;
  }

  .page-resources-latest-game-guide__faq-title {
    font-size: 1.1em;
  }

  .page-resources-latest-game-guide__faq-answer {
    padding: 0 20px;
  }

  .page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-answer {
    padding: 15px 20px;
    padding-bottom: 20px;
  }
}