/* style/game-guides.css */

/* Base Styles */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Color Contrast Enforcement */
.page-game-guides__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow */
}

.page-game-guides__hero-image {
  width: 100%;
  max-width: 100%; /* Ensure image fits container */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and content */
}

.page-game-guides__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any potential background elements */
  padding: 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff; /* White text on dark hero background */
}

.page-game-guides__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #ffffff; /* White text on dark hero background */
}

/* General Section Styles */
.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #017439; /* Brand color for titles on light background */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-game-guides__dark-bg .page-game-guides__section-title {
  color: #ffffff; /* White text on dark background */
}

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

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

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-game-guides__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-guides__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-game-guides__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text on dark hero background */
  border: 2px solid #ffffff;
}

.page-game-guides__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439; /* Brand color on hover */
}

/* Specific to game types section */
.page-game-guides__game-types-section {
  padding-bottom: 60px;
}

.page-game-guides__guide-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-game-guides__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439; /* Brand color */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-game-guides__card-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-game-guides__btn-text {
  color: #017439; /* Brand color */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #017439;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #005a2e; /* Darker brand color on hover */
  border-color: #005a2e;
}

/* Tips Section */
.page-game-guides__tips-section {
  padding: 60px 20px;
}

.page-game-guides__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 40px;
  object-fit: cover;
}

.page-game-guides__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__tip-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-game-guides__tip-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-game-guides__tip-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 20px;
}

.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: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  background-color: #e5e5e5;
  border-bottom-color: transparent;
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #017439;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: "−"; /* Change to minus sign when open */
}

.page-game-guides__faq-answer {
  padding: 15px 20px;
  font-size: 0.95rem;
  color: #555555;
  background-color: #ffffff;
}

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


/* Responsive Design */
@media (max-width: 992px) {
  .page-game-guides__hero-content {
    padding: 0 15px;
  }

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

  .page-game-guides__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .page-game-guides__guide-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Global image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image containers */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__introduction-section,
  .page-game-guides__game-types-section,
  .page-game-guides__tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Video section top padding (small amount, body handles header offset) */
  .page-game-guides__hero-section { /* Using hero-section as first section */
    padding-top: 10px !important;
  }

  /* Button responsiveness */
  .page-game-guides__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .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 !important;
    padding-right: 15px !important;
  }

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px; /* Still maintain minimal top padding */
  }

  .page-game-guides__guide-card {
    padding-bottom: 15px;
  }

  .page-game-guides__card-image {
    height: 200px; /* Smaller fixed height for mobile */
  }

  .page-game-guides__tips-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-game-guides__hero-description {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .page-game-guides__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}