/* style/game-guides.css */

/* Base styles for the page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark sections */
  background-color: #08160F; /* Overall background */
}

/* Container for content sections */
.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section spacing */
.page-game-guides section {
  padding: 60px 0;
  text-align: center;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background: #08160F; /* Deep Green background */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and text */
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* General Titles and Paragraphs */
.page-game-guides__section-title {
  font-size: 2.5em;
  color: #F2FFF6;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  color: #F2FFF6;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Background variations */
.page-game-guides__dark-section {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

/* Text colors for specific backgrounds */
.page-game-guides__text-main {
  color: #F2FFF6;
}

.page-game-guides__text-secondary {
  color: #A7D9B8;
}

.page-game-guides__text-contrast-fix {
  color: #333333; /* Ensure dark text on light background */
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #57E38D;
  border: 2px solid #57E38D;
  margin-left: 20px;
}

.page-game-guides__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F;
  transform: translateY(-2px);
}

.page-game-guides__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Game Categories Section */
.page-game-guides__game-categories .page-game-guides__section-title {
  margin-bottom: 40px;
}

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

.page-game-guides__game-card {
  background-color: #11271B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #2E7A4E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #2E7A4E;
}

.page-game-guides__card-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin: 20px 20px 10px 20px;
  min-height: 3em;
  font-weight: bold;
}

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

.page-game-guides__card-title a:hover {
  color: #57E38D;
}

.page-game-guides__card-description {
  font-size: 0.95em;
  color: #A7D9B8;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
  text-align: left;
}

.page-game-guides__game-card .page-game-guides__btn-secondary {
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  width: auto; /* Override default button width */
}

/* Content Section - Guide Blocks */
.page-game-guides__content-section {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  text-align: left;
}

.page-game-guides__content-section .page-game-guides__section-title {
  color: #08160F; /* Dark title for light background */
  margin-bottom: 50px;
}

.page-game-guides__guide-block {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.page-game-guides__guide-block:last-child {
  border-bottom: none;
}

.page-game-guides__guide-block .page-game-guides__sub-title {
  color: #11A84E; /* Brand color for sub-titles */
}

.page-game-guides__guide-block .page-game-guides__paragraph {
  color: #333333;
}

.page-game-guides__list {
  list-style-type: disc;
  margin: 20px 0 20px 40px;
  color: #333333;
  text-align: left;
}

.page-game-guides__list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-game-guides__list li strong {
  color: #11A84E;
}

.page-game-guides__guide-block .page-game-guides__btn-primary {
  margin-top: 20px;
}

/* Tips Section */
.page-game-guides__tips-section {
  background-color: #11271B;
  color: #F2FFF6;
}

.page-game-guides__tips-section .page-game-guides__section-title {
  color: #F2FFF6;
}

.page-game-guides__list-dark {
  list-style-type: none;
  margin: 40px 0 0 0;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-game-guides__list-dark li {
  background-color: rgba(17, 168, 78, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #F2FFF6;
  border-left: 4px solid #57E38D;
  font-size: 1.1em;
}

.page-game-guides__list-dark li strong {
  color: #57E38D;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  text-align: left;
}

.page-game-guides__faq-section .page-game-guides__section-title {
  color: #08160F;
  margin-bottom: 40px;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.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: #11A84E;
  cursor: pointer;
  background-color: #eaf7ed;
  border-bottom: 1px solid #e0e0e0;
}

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

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

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #11A84E;
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px 25px;
  background-color: #ffffff;
  color: #333333;
  font-size: 1.05em;
  text-align: justify;
}

.page-game-guides__faq-answer .page-game-guides__paragraph {
  color: #333333;
  margin-bottom: 0;
}

.page-game-guides__faq-answer a {
  color: #11A84E;
  text-decoration: underline;
}

/* CTA Section */
.page-game-guides__cta-section {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-game-guides__section-title {
    font-size: 2em;
  }
  .page-game-guides__sub-title {
    font-size: 1.5em;
  }
  .page-game-guides__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-game-guides section {
    padding: 40px 0;
  }
  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-game-guides__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__sub-title {
    font-size: 1.3em;
  }
  .page-game-guides__paragraph,
  .page-game-guides__list li,
  .page-game-guides__faq-answer .page-game-guides__paragraph {
    font-size: 1em;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-game-guides__btn-secondary {
    margin-left: 0;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-game-guides__game-list {
    grid-template-columns: 1fr;
  }
  .page-game-guides__list-dark {
    grid-template-columns: 1fr;
  }

  /* Mobile button responsiveness */
  .page-game-guides__cta-button,
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides 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-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__hero-image-wrapper {
    max-height: 200px;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}