/* style/resources-game-guides-tips.css */

/* Base styles for the page content */
.page-resources-game-guides-tips {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensures a consistent background */
}

/* Fixed header offset */
.page-resources-game-guides-tips__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply offset to the first section */
}

/* Section styling */
.page-resources-game-guides-tips__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-game-guides-tips__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-resources-game-guides-tips__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Hero Section */
.page-resources-game-guides-tips__hero-section {
  position: relative;
  background: linear-gradient(to right, #26A9E0, #4AD0FF); /* Gradient background with brand color */
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources-game-guides-tips__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-resources-game-guides-tips__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-resources-game-guides-tips__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-resources-game-guides-tips__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let background gradient show */
  overflow: hidden;
}

.page-resources-game-guides-tips__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) brightness(0.8); /* Slight filter to blend with background, not changing color */
}

/* Introduction Section */
.page-resources-game-guides-tips__introduction-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources-game-guides-tips__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-resources-game-guides-tips__text-block {
  flex: 2;
}

.page-resources-game-guides-tips__image-block {
  flex: 1;
  min-width: 300px;
}

.page-resources-game-guides-tips__image-block .page-resources-game-guides-tips__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Game Guides Section */
.page-resources-game-guides-tips__game-guides-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-resources-game-guides-tips__game-guides-section .page-resources-game-guides-tips__section-title,
.page-resources-game-guides-tips__game-guides-section .page-resources-game-guides-tips__section-description {
  color: #FFFFFF;
}

.page-resources-game-guides-tips__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-game-guides-tips__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for light card background */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-game-guides-tips__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.page-resources-game-guides-tips__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-game-guides-tips__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-game-guides-tips__card-title a {
  color: #26A9E0; /* Brand color for link in card title */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-game-guides-tips__card-title a:hover {
  color: #1a7fb3; /* Slightly darker shade on hover */
}

.page-resources-game-guides-tips__card-list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 15px;
}

.page-resources-game-guides-tips__card-list li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

/* Optimization Tips Section */
.page-resources-game-guides-tips__optimization-tips-section {
  padding: 60px 0;
  background-color: #F8F8F8; /* Light grey background */
  color: #333333;
}

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

.page-resources-game-guides-tips__tip-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-game-guides-tips__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.page-resources-game-guides-tips__tip-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-game-guides-tips__tip-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources-game-guides-tips__tip-item p {
  font-size: 0.95em;
  color: #555555;
}

.page-resources-game-guides-tips__tip-item p a {
  color: #26A9E0;
  text-decoration: underline;
}

/* FAQ Section */
.page-resources-game-guides-tips__faq-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color dark background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-resources-game-guides-tips__faq-section .page-resources-game-guides-tips__section-title {
  color: #FFFFFF;
}

.page-resources-game-guides-tips__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-resources-game-guides-tips__faq-item {
  background-color: #FFFFFF;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #333333; /* Dark text for light card background */
}

.page-resources-game-guides-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #F0F0F0;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0; /* Brand color for question */
  transition: background-color 0.3s ease;
}

.page-resources-game-guides-tips__faq-question:hover {
  background-color: #E0E0E0;
}

.page-resources-game-guides-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-game-guides-tips__faq-item.active .page-resources-game-guides-tips__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'X' or minus */
}

.page-resources-game-guides-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #FFFFFF;
  color: #555555;
}

/* IMPORTANT: Ensure max-height and padding are set for active state */
.page-resources-game-guides-tips__faq-item.active .page-resources-game-guides-tips__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px; /* Adjust padding as needed */
}

.page-resources-game-guides-tips__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* Call to Action Section */
.page-resources-game-guides-tips__cta-section {
  padding: 60px 0;
  background-color: #F8F8F8;
  text-align: center;
  color: #333333;
}

.page-resources-game-guides-tips__cta-content {
  max-width: 900px;
}

.page-resources-game-guides-tips__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Buttons */
.page-resources-game-guides-tips__btn-primary,
.page-resources-game-guides-tips__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-resources-game-guides-tips__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-resources-game-guides-tips__btn-primary:hover {
  background-color: #1e87b5;
  border-color: #1e87b5;
  transform: translateY(-2px);
}

.page-resources-game-guides-tips__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-game-guides-tips__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b5;
  border-color: #1e87b5;
  transform: translateY(-2px);
}

/* Dark background for sections where needed, ensuring contrast */
.page-resources-game-guides-tips__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Light background for sections where needed, ensuring contrast */
.page-resources-game-guides-tips__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-game-guides-tips__hero-title {
    font-size: 2.8em;
  }
  .page-resources-game-guides-tips__hero-description {
    font-size: 1.1em;
  }
  .page-resources-game-guides-tips__section-title {
    font-size: 2em;
  }
  .page-resources-game-guides-tips__sub-title {
    font-size: 1.5em;
  }
  .page-resources-game-guides-tips__content-wrapper {
    flex-direction: column;
  }
  .page-resources-game-guides-tips__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources-game-guides-tips {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-resources-game-guides-tips__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-game-guides-tips__hero-section {
    min-height: 400px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-game-guides-tips__hero-title {
    font-size: 2em;
  }

  .page-resources-game-guides-tips__hero-description {
    font-size: 1em;
  }

  .page-resources-game-guides-tips__section-title {
    font-size: 1.8em;
  }

  .page-resources-game-guides-tips__sub-title {
    font-size: 1.3em;
  }

  .page-resources-game-guides-tips__game-cards,
  .page-resources-game-guides-tips__tips-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-game-guides-tips__container {
    padding: 0 15px;
  }

  .page-resources-game-guides-tips__game-card,
  .page-resources-game-guides-tips__tip-item,
  .page-resources-game-guides-tips__faq-item {
    padding: 20px;
  }

  /* Mobile button responsiveness */
  .page-resources-game-guides-tips__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  .page-resources-game-guides-tips__btn-primary,
  .page-resources-game-guides-tips__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important; /* Adjust padding for smaller screens */
  }

  /* Image responsiveness */
  .page-resources-game-guides-tips img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-game-guides-tips__section,
  .page-resources-game-guides-tips__card,
  .page-resources-game-guides-tips__container,
  .page-resources-game-guides-tips__hero-section,
  .page-resources-game-guides-tips__introduction-section,
  .page-resources-game-guides-tips__game-guides-section,
  .page-resources-game-guides-tips__optimization-tips-section,
  .page-resources-game-guides-tips__faq-section,
  .page-resources-game-guides-tips__cta-section,
  .page-resources-game-guides-tips__content-wrapper,
  .page-resources-game-guides-tips__image-block,
  .page-resources-game-guides-tips__game-cards,
  .page-resources-game-guides-tips__tips-grid,
  .page-resources-game-guides-tips__faq-list,
  .page-resources-game-guides-tips__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Ensure no filter on images */
.page-resources-game-guides-tips img {
  filter: none;
}