/* style/game-guides.css */
:root {
  --primary-color: #1A73E8;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --bg-light-card: #ffffff;
  --border-light: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Main content text color for dark body bg */
  background-color: var(--bg-dark);
}

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

.page-game-guides__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color), #0f4a8e);
  color: var(--text-light);
  border-bottom: 5px solid var(--secondary-color);
}

.page-game-guides__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-game-guides__hero-description {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-game-guides__highlight {
  color: var(--secondary-color);
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.page-game-guides__cta-button:hover {
  background: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-game-guides__section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-game-guides__introduction .page-game-guides__content-block,
.page-game-guides__promotions-gifts .page-game-guides__content-block,
.page-game-guides__latest-blog .page-game-guides__blog-card {
  background-color: var(--bg-light-card);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  margin-top: 30px;
}

.page-game-guides__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-game-guides__introduction .page-game-guides__section-title,
.page-game-guides__promotions-gifts .page-game-guides__section-title,
.page-game-guides__latest-blog .page-game-guides__section-title,
.page-game-guides__faq-section .page-game-guides__section-title {
  color: var(--text-light);
}

.page-game-guides__content-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-game-guides__core-guides {
  background-color: #1a1a1a;
}

.page-game-guides__core-guides .page-game-guides__section-title {
  color: var(--text-light);
}

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

.page-game-guides__card {
  background-color: var(--bg-light-card);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-game-guides__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__card-description {
  font-size: 15px;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 15px 20px;
  transition: all 0.3s ease;
}

.page-game-guides__button:hover {
  background: #155bb5;
  transform: translateY(-1px);
}

.page-game-guides__safety-tips {
  background: #0f4a8e; /* Darker background for contrast */
  color: var(--text-light);
}

.page-game-guides__safety-tips .page-game-guides__section-title {
  color: var(--text-light);
}

.page-game-guides__safety-tips .page-game-guides__content-block {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-game-guides__list-item {
  margin-bottom: 10px;
  font-size: 17px;
}

.page-game-guides__list-item strong {
  color: var(--secondary-color);
}

.page-game-guides__faq-section {
  background-color: var(--bg-dark);
  padding: 60px 0;
}

.page-game-guides__faq-section .page-game-guides__section-title {
  color: var(--text-light);
}

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

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

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

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  color: var(--text-dark);
  border-radius: 0 0 5px 5px;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-light-card);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  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:active {
  background: #eeeeee;
}

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

.page-game-guides__faq-question h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-game-guides__faq-item.active .page-game-guides__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-game-guides__latest-blog {
  background-color: #1a1a1a;
}

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

.page-game-guides__blog-card {
  background-color: var(--bg-light-card);
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-game-guides__blog-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__blog-title a:hover {
  text-decoration: underline;
}

.page-game-guides__blog-excerpt {
  font-size: 15px;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__view-all {
  text-align: center;
  margin-top: 40px;
}

.page-game-guides__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__link:hover {
  text-decoration: underline;
  color: #155bb5;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 40px;
  }
  .page-game-guides__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

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

  .page-game-guides__hero-description {
    font-size: 16px;
  }

  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

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

  .page-game-guides__content-block,
  .page-game-guides__promotions-gifts .page-game-guides__content-block,
  .page-game-guides__latest-blog .page-game-guides__blog-card {
    padding: 20px;
  }

  .page-game-guides__grid {
    gap: 20px;
  }

  .page-game-guides__card-title {
    font-size: 18px;
    margin: 15px 10px 8px;
  }

  .page-game-guides__card-description,
  .page-game-guides__blog-excerpt {
    font-size: 14px;
    padding: 0 10px;
  }

  .page-game-guides__button {
    padding: 8px 20px;
    font-size: 14px;
    margin: 0 10px 15px;
  }

  .page-game-guides__list {
    margin-left: 15px;
  }

  .page-game-guides__list-item {
    font-size: 15px;
  }

  .page-game-guides__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-game-guides__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-game-guides__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-game-guides__faq-answer {
    padding: 0 15px;
  }
  
  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px !important;
  }

  .page-game-guides__blog-grid {
    gap: 20px;
  }

  .page-game-guides__blog-title {
    font-size: 18px;
  }

  /* Force responsive image styles */
  .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,
  .page-game-guides__content-block,
  .page-game-guides__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}