/* style/game-guides.css */
/* Custom colors from requirements */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --button-text-color: #ffffff;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

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

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles --header-offset, small top padding for aesthetic */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image for visual effect, but text is below image in DOM */
  z-index: 1; /* Ensure content is above any background elements */
}

.page-game-guides__main-title {
  color: var(--gold-color);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  color: var(--text-main-color);
  font-size: 1.1rem;
  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 {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--button-text-color);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-game-guides__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--page-bg-color);
  transform: translateY(-2px);
}

.page-game-guides__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-game-guides__section-title {
  color: var(--gold-color);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.page-game-guides__subsection-title {
  color: var(--glow-color);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
}

.page-game-guides__paragraph {
  color: var(--text-main-color);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-game-guides__list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  color: var(--text-main-color);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 1.05rem;
}

.page-game-guides__list-item::before {
  content: '⚡'; /* Custom bullet point */
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-size: 1.1rem;
  line-height: 1;
}

.page-game-guides__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
}

.page-game-guides__numbered-list .page-game-guides__list-item::before {
  content: none; /* Remove custom bullet for numbered list */
}

.page-game-guides__sub-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-game-guides__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__game-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  padding: 15px 20px 10px;
  font-weight: 600;
}

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

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

.page-game-guides__card-description {
  color: var(--text-secondary-color);
  padding: 0 20px 15px;
  font-size: 0.95rem;
  flex-grow: 1;
  text-align: justify;
}

.page-game-guides__btn-text {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px 20px;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-game-guides__cta-buttons--centered {
  margin-top: 40px;
}

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

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

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gold-color);
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

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

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-item summary {
  list-style: none;
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color);
  text-align: justify;
}

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

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-game-guides__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-game-guides__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-game-guides__subsection-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-game-guides__paragraph,
  .page-game-guides__list-item,
  .page-game-guides__card-description {
    font-size: 0.95rem;
  }

  .page-game-guides__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0;
    margin: 20px auto;
  }

  .page-game-guides__game-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__card-title {
    font-size: 1.3rem;
    padding: 12px 15px 8px;
  }

  .page-game-guides__card-description {
    padding: 0 15px 12px;
  }

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

  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

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

/* Ensure no image filters are used */
.page-game-guides img {
  filter: none; /* Explicitly ensure no filter is applied */
}

/* Content area images minimum size enforcement */
.page-game-guides__container img,
.page-game-guides__game-card img {
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__hero-image {
  min-width: unset;
  min-height: unset;
}

/* Specific override for hero image filter, only for dimming for text readability */
.page-game-guides__hero-image {
  filter: brightness(0.7); /* This is an allowed filter for visual effect, not color change */
}

/* Ensure images within content areas are not smaller than 200px (desktop) */
.page-game-guides__introduction-section img,
.page-game-guides__registration-download-section img,
.page-game-guides__tips-section img,
.page-game-guides__faq-section img {
    min-width: 200px; 
    min-height: 200px;
}

/* Card images should also adhere to minimum size */
.page-game-guides__game-card-grid .page-game-guides__card-image {
    min-width: 200px;
    min-height: 200px;
}