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

/* Base styles for the page */
.page-resources-game-guides {
  color: #f0f0f0; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Space for fixed header */
}

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

/* Dark background section for brand color */
.page-resources-game-guides__dark-section {
  background-color: #003366; /* Main brand color */
  color: #ffffff;
  padding: 60px 0;
}

/* Light background section for contrast */
.page-resources-game-guides__light-bg {
  background-color: #f9f9f9;
  color: #333333;
  padding: 60px 0;
}

.page-resources-game-guides__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-resources-game-guides__light-bg .page-resources-game-guides__section-title {
  color: #003366;
}

.page-resources-game-guides__dark-section .page-resources-game-guides__section-title {
  color: #FFCC00;
}

.page-resources-game-guides p {
  margin-bottom: 15px;
  color: inherit;
}

.page-resources-game-guides a {
  color: #FFCC00; /* Accent color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-game-guides a:hover {
  color: #e6b800;
}

/* Hero Banner Section */
.page-resources-game-guides__hero-banner {
  text-align: center;
  padding-top: calc(60px + 120px); /* Adjust for fixed header */
  padding-bottom: 60px;
}

.page-resources-game-guides__main-title {
  font-size: 48px;
  color: #FFCC00;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-game-guides__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

/* Buttons */
.page-resources-game-guides__btn-primary,
.page-resources-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.page-resources-game-guides__btn-primary {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-resources-game-guides__btn-primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  color: #003366;
}

.page-resources-game-guides__btn-secondary {
  background-color: #003366;
  color: #FFCC00;
  border-color: #FFCC00;
  margin-top: 20px;
}

.page-resources-game-guides__btn-secondary:hover {
  background-color: #002244;
  color: #e6b800;
  border-color: #e6b800;
}

/* Why KU Section */
.page-resources-game-guides__why-ku .page-resources-game-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-game-guides__why-ku .page-resources-game-guides__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-resources-game-guides__why-ku .page-resources-game-guides__card:hover {
  transform: translateY(-5px);
}

.page-resources-game-guides__card-icon {
  margin-bottom: 20px;
  width: 100%;
  height: 100px; /* Fixed height for icon container */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-resources-game-guides__card-icon img {
  max-width: 100px;
  max-height: 100px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

.page-resources-game-guides__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #003366;
}

.page-resources-game-guides__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Game Types Section */
.page-resources-game-guides__game-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-resources-game-guides__game-category-title {
  font-size: 32px;
  color: #FFCC00;
  margin-bottom: 25px;
  text-align: center;
}

.page-resources-game-guides__game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-game-guides__game-content img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-resources-game-guides__game-content p {
  font-size: 17px;
  text-align: justify;
  margin-bottom: 20px;
}

.page-resources-game-guides__game-subtitle {
  font-size: 22px;
  color: #FFCC00;
  margin-top: 20px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.page-resources-game-guides__game-content ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #ffffff;
  align-self: flex-start;
}

.page-resources-game-guides__game-content ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

/* Registration Guide Section */
.page-resources-game-guides__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-game-guides__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-resources-game-guides__guide-item img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-resources-game-guides__guide-item h3 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 15px;
}

.page-resources-game-guides__guide-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

/* App Download Section */
.page-resources-game-guides__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources-game-guides__app-content img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.page-resources-game-guides__app-info {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-resources-game-guides__app-info h3 {
  font-size: 30px;
  color: #FFCC00;
  margin-bottom: 20px;
}

.page-resources-game-guides__app-info ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources-game-guides__app-info ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFCC00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.98"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
}

/* Tips Section */
.page-resources-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-game-guides__tip-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-resources-game-guides__tip-card h3 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 15px;
}

.page-resources-game-guides__tip-card p {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-resources-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-resources-game-guides__faq-item.active .page-resources-game-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #ffffff;
}

.page-resources-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #002b54; /* Darker blue for question background */
  border: 1px solid #003d7a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-game-guides__faq-question:hover {
  background: #003d7a;
  border-color: #FFCC00;
}

.page-resources-game-guides__faq-question:active {
  background: #002244;
}

.page-resources-game-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* Light text for dark question background */
  pointer-events: none;
}

.page-resources-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-game-guides__faq-item.active .page-resources-game-guides__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Example for '+' to 'x' or just '-' */
}

/* CTA Section */
.page-resources-game-guides__cta {
  text-align: center;
  padding: 80px 0;
}

.page-resources-game-guides__cta-text {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-game-guides__main-title {
    font-size: 40px;
  }
  .page-resources-game-guides__section-title {
    font-size: 32px;
  }
  .page-resources-game-guides__hero-banner {
    padding-top: calc(40px + 120px);
  }
}

@media (max-width: 768px) {
  .page-resources-game-guides {
    padding-top: 100px; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-resources-game-guides__dark-section, .page-resources-game-guides__light-bg {
    padding: 40px 0;
  }

  .page-resources-game-guides__main-title {
    font-size: 32px;
  }

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

  .page-resources-game-guides__intro-text {
    font-size: 16px;
  }

  .page-resources-game-guides__btn-primary, .page-resources-game-guides__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-resources-game-guides__why-ku .page-resources-game-guides__grid {
    grid-template-columns: 1fr;
  }

  .page-resources-game-guides__card-title {
    font-size: 20px;
  }

  .page-resources-game-guides__game-category-title {
    font-size: 26px;
  }

  .page-resources-game-guides__game-content p {
    font-size: 15px;
  }

  .page-resources-game-guides__game-subtitle {
    font-size: 20px;
  }

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

  .page-resources-game-guides__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources-game-guides__app-content img {
    max-width: 300px;
  }

  .page-resources-game-guides__app-info h3 {
    font-size: 26px;
  }

  .page-resources-game-guides__app-info ul li {
    font-size: 15px;
  }

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

  .page-resources-game-guides__tip-card h3 {
    font-size: 20px;
  }

  .page-resources-game-guides__faq-question h3 {
    font-size: 16px;
  }

  .page-resources-game-guides__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-resources-game-guides__faq-item.active .page-resources-game-guides__faq-answer {
    padding: 15px !important;
  }

  .page-resources-game-guides__cta-text {
    font-size: 18px;
  }

  /* Force all images to be responsive and prevent overflow */
  .page-resources-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-game-guides__hero-banner,
  .page-resources-game-guides__why-ku,
  .page-resources-game-guides__game-types,
  .page-resources-game-guides__registration-guide,
  .page-resources-game-guides__app-download,
  .page-resources-game-guides__tips-section,
  .page-resources-game-guides__faq-section,
  .page-resources-game-guides__cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}