.page-game-guides {
  font-family: 'Arial', sans-serif;
  background-color: #0A0A0A;
  color: #FFF6D6;
  line-height: 1.6;
}

.page-game-guides__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-game-guides__hero-section {
  padding-top: 10px; /* Adhere to 10px top padding for first section */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(10, 10, 10, 1) 100%);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop, will change to contain for mobile */
  filter: brightness(0.7);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image for visual flow */
  background: linear-gradient(0deg, #0A0A0A 50%, rgba(10, 10, 10, 0.8) 100%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-50px);
}

.page-game-guides__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #FFD36B;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-game {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6AE2D 100%);
  box-shadow: 0 7px 20px rgba(242, 193, 78, 0.6);
}

.page-game-guides__btn-secondary {
  background: #111111;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
}

.page-game-guides__btn-secondary:hover {
  background: #222222;
  color: #FFE080;
  border-color: #FFE080;
  box-shadow: 0 7px 20px rgba(255, 211, 107, 0.4);
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-game-guides__section-text {
  font-size: 1.05em;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.page-game-guides__image-card {
  flex: 1;
  min-width: 300px;
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
}

.page-game-guides__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8);
}

.page-game-guides__text-content {
  flex: 2;
}

.page-game-guides__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-game-guides__numbered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-game-guides__numbered-list strong {
  color: #FFD36B;
}

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

.page-game-guides__game-tile {
  background-color: #111111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1/1; /* Ensure square aspect ratio */
}

.page-game-guides__game-tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1; /* Ensure image also has square aspect ratio */
  filter: brightness(0.8);
}

.page-game-guides__game-title {
  font-size: 1.4em;
  color: #FFD36B;
  margin: 15px 10px 10px;
}

.page-game-guides__btn-game {
  margin: 0 15px;
  width: calc(100% - 30px);
  box-sizing: border-box;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-game-guides__btn-game:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6AE2D 100%);
  box-shadow: 0 7px 20px rgba(242, 193, 78, 0.6);
}

.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.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: #FFD36B;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker, /* Hide default marker */
.page-game-guides__faq-question::marker {
  display: none;
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD36B;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.0em;
  color: #FFF6D6;
  border-top: 1px solid #3A2A12;
  background-color: #111111;
}

/* General image responsiveness */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General container responsiveness */
.page-game-guides__section,
.page-game-guides__content-wrapper,
.page-game-guides__hero-content,
.page-game-guides__image-card,
.page-game-guides__text-content,
.page-game-guides__game-grid,
.page-game-guides__game-tile,
.page-game-guides__faq-list,
.page-game-guides__faq-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .page-game-guides {
    font-size: 15px;
  }

  /* Hero Section */
  .page-game-guides__hero-section {
    padding-top: 10px !important;
  }

  .page-game-guides__hero-image {
    object-fit: contain !important; /* Contain for mobile hero */
    aspect-ratio: unset !important; /* Unset aspect ratio for mobile hero */
    max-height: none !important;
    filter: brightness(0.6);
  }

  .page-game-guides__hero-content {
    padding: 20px 15px;
    margin-top: -50px; /* Adjust margin for mobile */
    transform: translateY(-25px);
  }

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides__btn-game {
    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;
  }

  /* General Section Title */
  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Content Wrapper - for sections with image & text */
  .page-game-guides__content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-game-guides__image-card {
    min-width: unset;
  }

  .page-game-guides__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Game Grid */
  .page-game-guides__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 2 columns for mobile */
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__game-tile {
    aspect-ratio: 1/1;
  }

  .page-game-guides__game-tile img {
    aspect-ratio: 1/1;
  }

  .page-game-guides__game-title {
    font-size: 1.2em;
  }

  .page-game-guides__btn-game {
    padding: 10px 15px;
  }

  /* FAQ Section */
  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-game-guides__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-game-guides__section,
  .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

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

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

  .page-game-guides__game-grid {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }
}