:root {
  --ngonclub-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --ngonclub-card-bg: #11271B;
  --ngonclub-background: #08160F;
  --ngonclub-text-main: #F2FFF6;
  --ngonclub-text-secondary: #A7D9B8;
  --ngonclub-border: #2E7A4E;
  --ngonclub-glow: #57E38D;
  --ngonclub-gold: #F2C14E;
  --ngonclub-divider: #1E3A2A;
  --ngonclub-deep-green: #0A4B2C;
}

.page-game-library {
  background-color: var(--ngonclub-background);
  color: var(--ngonclub-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

/* Hero Section */
.page-game-library__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--ngonclub-background);
  overflow: hidden;
}

.page-game-library__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-game-library__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-game-library__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Adjust as needed for visual flow, but no overlap on image */
  background-color: var(--ngonclub-background); /* Ensure contrast */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-library__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--ngonclub-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-game-library__subtitle {
  font-size: 1.1em;
  color: var(--ngonclub-text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-game-library__btn-primary,
.page-game-library__btn-secondary,
.page-game-library__card-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-game-library__btn-primary {
  background: var(--ngonclub-button-gradient);
  color: var(--ngonclub-text-main); /* White-ish text on dark gradient */
  border: none;
}

.page-game-library__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-library__btn-secondary {
  background: transparent;
  color: var(--ngonclub-gold); /* Gold text on dark background */
  border: 2px solid var(--ngonclub-gold);
  margin-top: 20px;
}

.page-game-library__btn-secondary:hover {
  background: var(--ngonclub-gold);
  color: var(--ngonclub-background); /* Dark text on gold hover */
}

/* Section Titles */
.page-game-library__section-title {
  font-size: 2.5em;
  color: var(--ngonclub-gold);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-game-library__text-block {
  font-size: 1.05em;
  color: var(--ngonclub-text-secondary);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Categories Grid */
.page-game-library__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-game-library__card-title {
  font-size: 1.5em;
  color: var(--ngonclub-gold);
  margin: 20px 20px 10px;
}

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

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

.page-game-library__card-description {
  color: var(--ngonclub-text-secondary);
  font-size: 0.95em;
  padding: 0 20px;
  flex-grow: 1;
}

.page-game-library__card-btn {
  background: var(--ngonclub-button-gradient);
  color: var(--ngonclub-text-main);
  border: none;
  margin: 20px;
  text-align: center;
}

.page-game-library__card-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Advantages Section */
.page-game-library__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-library__advantage-item {
  background-color: var(--ngonclub-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-library__advantage-icon {
  width: 200px; /* Min size for source, will be scaled by object-fit/max-width */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-game-library__advantage-title {
  font-size: 1.3em;
  color: var(--ngonclub-gold);
  margin-bottom: 10px;
}

.page-game-library__advantage-description {
  color: var(--ngonclub-text-secondary);
  font-size: 0.9em;
}

.page-game-library__cta-bottom {
  margin-top: 50px;
}

/* Guide Section */
.page-game-library__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-game-library__guide-list li {
  background-color: var(--ngonclub-card-bg);
  border-left: 5px solid var(--ngonclub-gold);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-library__guide-step-title {
  font-size: 1.4em;
  color: var(--ngonclub-gold);
  margin-bottom: 10px;
}

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

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

.page-game-library__guide-list p {
  color: var(--ngonclub-text-secondary);
  font-size: 1em;
}

.page-game-library__guide-list p a {
  color: var(--ngonclub-gold);
  text-decoration: none;
}

.page-game-library__guide-list p a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-game-library__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-game-library__faq-item {
  background-color: var(--ngonclub-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-library__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--ngonclub-text-main);
  font-weight: bold;
  list-style: none; /* For details/summary */
}

.page-game-library__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-library__faq-question:hover {
  background-color: var(--ngonclub-deep-green);
}

.page-game-library__faq-qtext {
  flex-grow: 1;
}

.page-game-library__faq-toggle {
  font-size: 1.5em;
  color: var(--ngonclub-gold);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-game-library__faq-item[open] .page-game-library__faq-toggle {
  transform: rotate(45deg);
}

.page-game-library__faq-answer {
  padding: 0 20px 20px;
  color: var(--ngonclub-text-secondary);
  font-size: 1em;
  line-height: 1.5;
}

.page-game-library__faq-answer p a {
  color: var(--ngonclub-gold);
  text-decoration: none;
}

.page-game-library__faq-answer p a:hover {
  text-decoration: underline;
}

/* Final CTA */
.page-game-library__cta-final {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-library__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-game-library__hero-section {
    padding-top: 10px !important;
  }

  .page-game-library__hero-content {
    padding: 30px 15px;
    margin-top: -70px; /* Adjust for smaller screens */
  }

  .page-game-library__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-game-library__section {
    padding: 40px 0;
  }

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

  .page-game-library__text-block {
    font-size: 0.95em;
  }

  /* Images, Videos, Buttons must be responsive */
  .page-game-library img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-library video,
  .page-game-library__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-library__section,
  .page-game-library__container,
  .page-game-library__category-card,
  .page-game-library__advantage-item,
  .page-game-library__faq-item,
  .page-game-library__hero-image-wrapper,
  .page-game-library__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }

  .page-game-library__btn-primary,
  .page-game-library__btn-secondary,
  .page-game-library__card-btn,
  .page-game-library a[class*="button"],
  .page-game-library a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  .page-game-library__cta-bottom {
    display: flex;
    justify-content: center;
    padding: 0 15px;
  }

  .page-game-library__category-grid,
  .page-game-library__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-library__advantage-icon {
    width: 80px; /* Set a specific size for display, but min 200px for source */
    height: 80px;
  }

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

  .page-game-library__faq-question {
    font-size: 1em;
  }

  .page-game-library__faq-answer {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-game-library__hero-content {
    margin-top: -50px;
  }
  .page-game-library__main-title {
    font-size: 1.8em;
  }
  .page-game-library__section-title {
    font-size: 1.8em;
  }
  .page-game-library__hero-image-wrapper {
    max-height: 400px;
  }
}