/* style/game-guides.css */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared.css */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color for hero */
}

.page-game-guides__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-game-guides__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-game-guides__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-game-guides__btn-secondary:hover {
  background-color: #e0f7ff;
  color: #1a8cc2;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 30px;
}

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

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Explicitly set for content area */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-50px);
  position: relative;
  z-index: 2;
}

.page-game-guides__article {
  padding: 20px 0;
}

.page-game-guides__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-game-guides__guide-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.page-game-guides__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-game-guides__sub-title {
  font-size: 1.5em;
  color: #000000;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__paragraph {
  font-size: 1em;
  color: #333333;
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: left;
}

.page-game-guides__guide-block .page-game-guides__btn-primary {
  margin-top: 20px;
}

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

.page-game-guides__faq-item {
  background-color: #f0f8ff;
  border: 1px solid #d0e8ff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e6f3ff;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #333333;
  line-height: 1.7;
}

/* Ensure details summary styling */
.page-game-guides__faq-item summary {
  list-style: none;
}
.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__cta-footer {
  margin-top: 50px;
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 2.5em;
  }
  .page-game-guides__intro-text {
    font-size: 1.1em;
  }
  .page-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-game-guides__sub-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-game-guides__main-title {
    font-size: 2em;
  }
  .page-game-guides__intro-text {
    font-size: 1em;
  }
  .page-game-guides__content-area {
    padding: 20px 15px;
    transform: translateY(-30px);
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-game-guides__sub-title {
    font-size: 1.2em;
  }
  .page-game-guides__guide-block {
    padding: 15px;
  }
  .page-game-guides__paragraph {
    font-size: 0.95em;
  }
  
  /* Image responsiveness for content area */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/content are responsive */
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__guide-block,
  .page-game-guides__faq-list,
  .page-game-guides__cta-footer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Button responsiveness */
  .page-game-guides__cta-buttons,
  .page-game-guides__cta-footer {
    flex-direction: column;
    gap: 10px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* FAQ items */
  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 1.8em;
  }
  .page-game-guides__intro-text {
    font-size: 0.95em;
  }
  .page-game-guides__section-title {
    font-size: 1.3em;
  }
  .page-game-guides__sub-title {
    font-size: 1.1em;
  }
}