/* style/game-guides.css */

/* Custom Colors & Body Background Adaptation */
.page-game-guides {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__text-main {
  color: #F2FFF6;
}

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

.page-game-guides__card {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
  border: 1px solid #2E7A4E; /* Border */
}

.page-game-guides__light-bg {
  background-color: #F2FFF6; /* Text Main as light background for contrast */
  color: #08160F; /* Dark text for light background */
}

.page-game-guides__light-bg .page-game-guides__section-title,
.page-game-guides__light-bg .page-game-guides__sub-title {
  color: #0A4B2C; /* Deep Green for titles on light background */
}

.page-game-guides__light-bg p,
.page-game-guides__light-bg a {
  color: #333333; /* Darker text for readability on light background */
}

.page-game-guides__light-bg a {
  text-decoration: underline;
  color: #13994A; /* Link color on light background */
}

.page-game-guides__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow for secondary button text */
  border: 2px solid #57E38D; /* Glow for secondary button border */
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-game-guides__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
}

.page-game-guides__btn-small {
  padding: 8px 20px;
  font-size: 0.9em;
}

.page-game-guides__btn-large {
  padding: 15px 35px;
  font-size: 1.1em;
}

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

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

.page-game-guides__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-game-guides__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #57E38D; /* Glow */
}

.page-game-guides__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for first section */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-game-guides__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Introduction Section */
.page-game-guides__introduction-section .page-game-guides__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Game Type Section (Grid Layout) */
.page-game-guides__game-type-section {
  background-color: #08160F;
}

.page-game-guides__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__grid-layout--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E; /* Gold */
}

.page-game-guides__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-game-guides__card .page-game-guides__btn-primary {
  width: auto;
  margin-top: auto; /* Push button to bottom */
}

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

.page-game-guides__tips-section .page-game-guides__text-block {
  color: #333333;
}

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

.page-game-guides__tips-section .page-game-guides__sub-title {
  color: #13994A;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: #08160F;
}

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

.page-game-guides__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: #1E3A2A; /* Divider for hover */
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #57E38D; /* Glow */
  margin-left: 15px;
  user-select: none;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  color: #F2C14E; /* Gold when open */
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
}

.page-game-guides__faq-answer a {
  color: #57E38D; /* Glow for links in FAQ answer */
  text-decoration: underline;
}

/* CTA Section */
.page-game-guides__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-game-guides__cta-section .page-game-guides__section-title {
  color: #F2FFF6;
  margin-bottom: 25px;
}

.page-game-guides__cta-section .page-game-guides__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #A7D9B8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2.2em;
  }

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

  .page-game-guides__grid-layout--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-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__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-game-guides__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-game-guides__grid-layout--two-cols {
    grid-template-columns: 1fr;
  }

  /* Mobile image and video responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides video,
  .page-game-guides__video {
    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__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }

  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-game-guides__cta-section {
    padding: 60px 15px;
  }
}

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

  .page-game-guides__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-game-guides__sub-title {
    font-size: 1.4em;
  }
}