/* style/resources-latest-game-guide.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000000; /* Black */
  --accent-color: #DC3545; /* Red for emphasis */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212; /* From body background analysis */
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

/* Ensure page content has enough top padding to clear fixed header */
.page-resources-latest-game-guide {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  background-color: var(--background-dark);
  color: var(--text-light);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* General container for content alignment */
.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 {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-resources-latest-game-guide__hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: rotateBackground 20s linear infinite;
  z-index: 0;
}

.page-resources-latest-game-guide__hero-section > .page-resources-latest-game-guide__container {
  position: relative;
  z-index: 1;
}

@keyframes rotateBackground {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.page-resources-latest-game-guide__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.page-resources-latest-game-guide__subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Button */
.page-resources-latest-game-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-resources-latest-game-guide__cta-button:hover {
  background: #FFC107; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-resources-latest-game-guide__cta-button--large {
  padding: 18px 50px;
  font-size: 1.3em;
}

/* Content Sections */
.page-resources-latest-game-guide__content-section {
  padding: 60px 0;
}

.page-resources-latest-game-guide__content-section.page-resources-latest-game-guide__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with main body */
  color: var(--text-light);
}

.page-resources-latest-game-guide__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-resources-latest-game-guide__sub-section-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-latest-game-guide p {
  margin-bottom: 1em;
  color: rgba(255, 255, 255, 0.85);
}

.page-resources-latest-game-guide__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-resources-latest-game-guide__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Game Guide Cards */
.page-resources-latest-game-guide__game-guide-card {
  background-color: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-latest-game-guide__game-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources-latest-game-guide__card-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-resources-latest-game-guide__card-image-container {
  text-align: center;
  margin-bottom: 25px;
}

.page-resources-latest-game-guide__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-latest-game-guide__list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.8);
}

.page-resources-latest-game-guide__list li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-resources-latest-game-guide__list li strong {
  color: var(--primary-color);
}

.page-resources-latest-game-guide__card-button {
  display: block;
  width: fit-content;
  margin: 25px auto 0 auto;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.page-resources-latest-game-guide__card-button:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

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

.page-resources-latest-game-guide__benefits-list li {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  padding: 20px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources-latest-game-guide__benefits-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
}

.page-resources-latest-game-guide__benefits-list li:hover {
  transform: translateX(5px);
}

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

/* FAQ container style */
.page-resources-latest-game-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  background-color: var(--card-background-dark);
}

/* FAQ default state - answer hidden */
.page-resources-latest-game-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough */
  padding: 20px !important;
  opacity: 1;
  background: #1a1a1a; /* Slightly lighter dark for contrast */
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-resources-latest-game-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-latest-game-guide__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-resources-latest-game-guide__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Question title style */
.page-resources-latest-game-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color);
}

/* Toggle icon */
.page-resources-latest-game-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
}

.page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-toggle {
  color: var(--text-light);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect if using a single icon */
}

/* Bottom CTA Section */
.page-resources-latest-game-guide__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(45deg, #1a1a1a 0%, var(--secondary-color) 100%);
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-game-guide__main-title {
    font-size: 3em;
  }
  .page-resources-latest-game-guide__section-title {
    font-size: 2em;
  }
  .page-resources-latest-game-guide__sub-section-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-game-guide {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile shared header height */
    font-size: 15px;
  }

  .page-resources-latest-game-guide__container {
    padding: 0 15px;
  }

  .page-resources-latest-game-guide__hero-section {
    padding: 60px 0;
  }

  .page-resources-latest-game-guide__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources-latest-game-guide__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources-latest-game-guide__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%; /* Ensure button adapts to full width */
    max-width: 300px; /* Optional: limit max width on mobile for better aesthetics */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-game-guide__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1em;
    width: 100%;
    max-width: 300px; /* Optional: limit max width on mobile for better aesthetics */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-game-guide__content-section {
    padding: 40px 0;
  }

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

  .page-resources-latest-game-guide__sub-section-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-resources-latest-game-guide__game-guide-card {
    padding: 20px;
  }

  .page-resources-latest-game-guide__card-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-resources-latest-game-guide__list {
    margin-left: 20px;
  }

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

  .page-resources-latest-game-guide__benefits-list li {
    padding: 15px;
    font-size: 1em;
  }

  .page-resources-latest-game-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-latest-game-guide__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-latest-game-guide__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-resources-latest-game-guide__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-latest-game-guide__faq-item.active .page-resources-latest-game-guide__faq-answer {
    padding: 15px !important;
  }

  .page-resources-latest-game-guide__cta-bottom-section {
    padding: 60px 0;
  }

  /* Image responsive rules */
  .page-resources-latest-game-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-latest-game-guide__image-wrapper,
  .page-resources-latest-game-guide__card-image-container,
  .page-resources-latest-game-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure all images maintain original color */
.page-resources-latest-game-guide img {
  filter: none; /* Absolutely no color filters */
}