/* style/game-guides.css */

/* Base styles for the page content */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default text color, fallback to #333333 */
  background-color: var(--background-color, #F5F7FA); /* Default background, fallback to #F5F7FA */
}

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

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

.page-game-guides__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-game-guides__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared */
  background-color: #F5F7FA; /* Light background for the section */
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit hero image height */
}

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

.page-game-guides__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 800px; /* Constrain width for better readability */
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button takes full width */
  box-sizing: border-box;
  flex-shrink: 0; /* Prevent shrinking too much */
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-game-guides__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-game-guides__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-game-guides__btn-large {
  min-width: 250px;
  padding: 18px 35px;
  font-size: 20px;
}

/* Intro Section */
.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-game-guides__list-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  font-size: 16px;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__list-item::before {
  content: "✅"; /* Checkmark icon */
  font-size: 20px;
  color: #E53935;
  flex-shrink: 0;
}

.page-game-guides__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Guides Section - Cards */
.page-game-guides__light-bg {
  background-color: #F5F7FA; /* Light background as per custom color */
  color: #333333; /* Dark text for light background */
}

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

.page-game-guides__guide-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #333333;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #E0E0E0;
}

.page-game-guides__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

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

.page-game-guides__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-guides__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-game-guides__card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-guides__read-more {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #FF5A4F;
  text-decoration: none;
  border-bottom: 2px solid #FF5A4F;
  padding-bottom: 3px;
  align-self: flex-start;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__read-more:hover {
  color: #E53935;
  border-color: #E53935;
}

/* CTA Section */
.page-game-guides__dark-bg {
  background-color: #E53935; /* Primary brand color for dark background */
  color: #ffffff; /* White text for dark background */
}

.page-game-guides__text-center {
  text-align: center;
}

.page-game-guides__title-white {
  color: #ffffff;
}

.page-game-guides__paragraph-white {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* FAQ Section */
details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background-color: #ffffff;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #f5f5f5;
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Universal Image Responsive Styles */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 40px;
  }
  .page-game-guides__section-title {
    font-size: 30px;
  }
  .page-game-guides__hero-image {
    max-height: 400px;
  }
  .page-game-guides__hero-content {
    padding: 30px 15px;
  }
  .page-game-guides__section-padding {
    padding: 50px 0;
  }
  .page-game-guides__guide-card {
    height: auto; /* Allow height to adjust */
  }
  .page-game-guides__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* 1. Hero/first section padding */
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding-top from shared */
  }

  /* 2. Universal image and container responsive rules */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__container,
  .page-game-guides__intro-section,
  .page-game-guides__guides-section,
  .page-game-guides__cta-section,
  .page-game-guides__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-game-guides__section-padding {
    padding: 40px 0;
  }

  /* 3. Button and button container responsive rules */
  .page-game-guides__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px;
  }
  .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;
  }

  /* 4. Inner page FAQ and content modules */
  .page-game-guides__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-game-guides__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-game-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-game-guides__paragraph {
    font-size: 15px;
  }
  .page-game-guides__feature-list {
    grid-template-columns: 1fr; /* Single column for list items */
  }
  .page-game-guides__list-item {
    font-size: 15px;
    padding: 15px;
  }
  .page-game-guides__grid-cards {
    grid-template-columns: 1fr; /* Single column for cards */
  }
  .page-game-guides__card-image {
    height: 160px;
  }
  .page-game-guides__card-title {
    font-size: 20px;
  }
  .page-game-guides__card-description {
    font-size: 14px;
  }

  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px;
  }
  .page-game-guides__faq-qtext {
    font-size: 15px;
  }
  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }
}