/* style/game-guides.css */

/* General Styles */
.page-game-guides {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

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

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

.page-game-guides__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__card-bg {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__description,
.page-game-guides__text-block,
.page-game-guides__list-item {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-game-guides__list {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

/* 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: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for button */
  border: none;
  margin-right: 15px;
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main for button */
  border: 2px solid #2E7A4E; /* Border */
}

.page-game-guides__btn-secondary:hover {
  background: #2E7A4E; /* Border color on hover */
  transform: translateY(-2px);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-game-guides__hero-content {
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

/* Image & Video Styles */
.page-game-guides__image-content {
  width: 100%;
  max-width: 800px; /* Recommended content image size */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #2E7A4E; /* Border */
}

.page-game-guides__video-wrapper {
  width: 100%; /* Desktop width */
  max-width: 800px;
  margin: 30px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
}

.page-game-guides__video-wrapper .page-game-guides__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block; /* Make the whole area clickable */
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Ensure it's treated as a block element */
}

/* Call to Action Section */
.page-game-guides__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
}

.page-game-guides__cta-content {
  max-width: 800px;
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-game-guides__cta-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.page-game-guides__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

/* FAQ Section */
.page-game-guides__faq-section {
  text-align: left;
}

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

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

.page-game-guides__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: #F2FFF6; /* Text Main */
  position: relative;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    margin-top: 30px;
  }
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__section-title {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__container {
    padding: 0 15px; /* Add padding for mobile content */
    max-width: 100% !important; /* Ensure full width */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile H1/H2 sizes */
  .page-game-guides__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .page-game-guides__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  /* Image, Video, Button Mobile Adaptations */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__video-wrapper,
  .page-game-guides__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-game-guides__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
  .page-game-guides video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .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;
    margin-right: 0 !important; /* Remove margin for stacked buttons */
  }

  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Adjust gap for stacked buttons */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }

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

  .page-game-guides__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-game-guides__list {
    padding-left: 25px;
  }

  .page-game-guides__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
  }

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