/* style/game-guides.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-gray: #f8f9fa;
  --border-light: #e0e0e0;
}

/* Ensure the main content area has top padding to clear the fixed header */
.page-game-guides {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light-gray); /* Overall page background */
}

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

.page-game-guides__main-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-game-guides__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-game-guides__section-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 60px 0;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.page-game-guides__intro-text {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-dark);
  text-align: justify;
}

.page-game-guides__intro-text strong {
  color: var(--secondary-color);
}

.page-game-guides__intro-image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-game-guides__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* CTA Button */
.page-game-guides__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), #FFC107);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-game-guides__cta-button:hover {
  background: linear-gradient(135deg, #FFC107, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 60px 0;
  background-color: var(--bg-light-gray);
}

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

.page-game-guides__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-game-guides__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-guides__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  padding: 20px 20px 10px 20px;
  text-align: center;
}

.page-game-guides__game-card-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
  line-height: 1.7;
  flex-grow: 1;
  text-align: justify;
}

.page-game-guides__game-card-button {
  display: block;
  margin: 0 20px 20px 20px;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-game-guides__game-card-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Promotions Section */
.page-game-guides__promotions-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-game-guides__promotion-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-game-guides__promotion-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-guides__promotion-card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  padding: 20px 20px 10px 20px;
  text-align: center;
}

.page-game-guides__promotion-card-description {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
  line-height: 1.7;
  flex-grow: 1;
  text-align: justify;
}

.page-game-guides__promotion-card-description a {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-game-guides__promotion-card-description a:hover {
  text-decoration: underline;
}

.page-game-guides__promotion-card-button {
  display: block;
  margin: 0 20px 20px 20px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary-color), #FFC107);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.page-game-guides__promotion-card-button:hover {
  background: linear-gradient(135deg, #FFC107, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 60px 0;
  background-color: var(--bg-light-gray);
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-game-guides__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-game-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 32px;
  height: 32px;
}

.page-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 25px;
  opacity: 0;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-light);
  border-top: none;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-game-guides__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-game-guides__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

/* News Section */
.page-game-guides__news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-game-guides__news-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-game-guides__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-guides__news-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  padding: 20px 20px 10px 20px;
  text-align: left;
  flex-grow: 1;
}

.page-game-guides__news-card-link {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__news-card-link:hover {
  text-decoration: underline;
}

.page-game-guides__news-card-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 15px 20px;
  line-height: 1.6;
  text-align: justify;
}

.page-game-guides__news-card-date {
  font-size: 13px;
  color: #777;
  padding: 0 20px 20px 20px;
  text-align: right;
}

.page-game-guides__view-all-news-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.page-game-guides__view-all-news-button:hover {
  background: #a01010;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: 32px;
  }
  .page-game-guides__section-title {
    font-size: 28px;
  }
  .page-game-guides__intro-text {
    font-size: 16px;
  }
  .page-game-guides__game-card-title, .page-game-guides__promotion-card-title, .page-game-guides__news-card-title {
    font-size: 20px;
  }
  .page-game-guides__game-card-description, .page-game-guides__promotion-card-description, .page-game-guides__news-card-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    padding-top: 100px !important; /* Mobile: Adjust based on actual mobile header height */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-game-guides__container {
    padding: 15px;
  }
  .page-game-guides__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-game-guides__section-title {
    font-size: 24px;
    padding-top: 30px;
  }
  .page-game-guides__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-game-guides__intro-section, .page-game-guides__game-types-section, .page-game-guides__promotions-section, .page-game-guides__faq-section, .page-game-guides__news-section {
    padding: 40px 0;
  }
  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-game-guides__game-list, .page-game-guides__promotion-list, .page-game-guides__news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__game-card-image, .page-game-guides__promotion-card-image, .page-game-guides__news-card-image {
    height: 180px;
  }
  .page-game-guides__game-card-title, .page-game-guides__promotion-card-title, .page-game-guides__news-card-title {
    font-size: 18px;
    padding: 15px 15px 8px 15px;
  }
  .page-game-guides__game-card-description, .page-game-guides__promotion-card-description, .page-game-guides__news-card-excerpt {
    font-size: 13px;
    padding: 0 15px 15px 15px;
  }
  .page-game-guides__game-card-button, .page-game-guides__promotion-card-button {
    padding: 10px 20px;
    font-size: 15px;
    margin: 0 15px 15px 15px;
  }
  .page-game-guides__faq-question {
    padding: 15px 20px;
  }
  .page-game-guides__faq-question h3 {
    font-size: 16px;
  }
  .page-game-guides__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px !important;
  }
  .page-game-guides__faq-answer p {
    font-size: 14px;
  }
  .page-game-guides__news-card-date {
    font-size: 12px;
    padding: 0 15px 15px 15px;
  }
  .page-game-guides__view-all-news-button {
    padding: 10px 25px;
    font-size: 16px;
    margin-top: 30px;
  }
  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__section, .page-game-guides__card, .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}