/* style/news-popular-game-guides.css */
.page-news-popular-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #0a0a0a, so use light text */
  background-color: transparent; /* Inherit from body or shared.css */
}

.page-news-popular-game-guides__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

.page-news-popular-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-news-popular-game-guides__hero-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom color for register/login font, applied here for prominence */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-popular-game-guides__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-news-popular-game-guides__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-news-popular-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-news-popular-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news-popular-game-guides__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news-popular-game-guides__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-news-popular-game-guides__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFFF00;
  margin: 15px auto 0;
}

.page-news-popular-game-guides__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  text-align: justify;
}

.page-news-popular-game-guides__game-categories,
.page-news-popular-game-guides__game-guides-grid,
.page-news-popular-game-guides__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-news-popular-game-guides__category-card,
.page-news-popular-game-guides__guide-article,
.page-news-popular-game-guides__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for light text */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-news-popular-game-guides__category-card:hover,
.page-news-popular-game-guides__guide-article:hover,
.page-news-popular-game-guides__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news-popular-game-guides__category-image,
.page-news-popular-game-guides__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news-popular-game-guides__category-title,
.page-news-popular-game-guides__article-title,
.page-news-popular-game-guides__promo-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom color for important titles */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news-popular-game-guides__category-title a,
.page-news-popular-game-guides__article-title a,
.page-news-popular-game-guides__promo-title a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news-popular-game-guides__category-title a:hover,
.page-news-popular-game-guides__article-title a:hover,
.page-news-popular-game-guides__promo-title a:hover {
  color: #017439;
}

.page-news-popular-game-guides__category-description,
.page-news-popular-game-guides__article-excerpt,
.page-news-popular-game-guides__promo-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news-popular-game-guides__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 60px;
}

.page-news-popular-game-guides__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-news-popular-game-guides__tip-item strong {
  color: #FFFF00;
}

.page-news-popular-game-guides__tip-item a {
  color: #FFFF00;
  text-decoration: none;
  border-bottom: 1px solid #FFFF00;
}

.page-news-popular-game-guides__tip-item a:hover {
  color: #017439;
  border-color: #017439;
}

.page-news-popular-game-guides__faq-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-news-popular-game-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news-popular-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-news-popular-game-guides__faq-question:hover {
  background-color: #005f2b;
}

.page-news-popular-game-guides__faq-title {
  margin: 0;
  color: #ffffff;
}

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

.page-news-popular-game-guides__faq-item.active .page-news-popular-game-guides__faq-toggle {
  transform: rotate(45deg); /* Change to 'x' or rotate for '−' */
}

.page-news-popular-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-news-popular-game-guides__faq-item.active .page-news-popular-game-guides__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-news-popular-game-guides__cta-section {
  background: linear-gradient(90deg, #017439, #005f2b);
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: 60px;
}

.page-news-popular-game-guides__cta-title {
  font-size: 2.8em;
  color: #FFFF00;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news-popular-game-guides__cta-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
}

/* Buttons */
.page-news-popular-game-guides__btn-primary,
.page-news-popular-game-guides__btn-secondary,
.page-news-popular-game-guides__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.page-news-popular-game-guides__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news-popular-game-guides__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
}

.page-news-popular-game-guides__btn-secondary {
  background-color: transparent;
  color: #FFFF00;
  border: 2px solid #FFFF00;
}

.page-news-popular-game-guides__btn-secondary:hover {
  background-color: #FFFF00;
  color: #0a0a0a;
  transform: translateY(-2px);
}

.page-news-popular-game-guides__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-news-popular-game-guides__btn-tertiary:hover {
  background-color: #005f2b;
  border-color: #005f2b;
  transform: translateY(-2px);
}

/* Image Specific Styles */
.page-news-popular-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure minimum size for content images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news-popular-game-guides__hero-title {
    font-size: 2.8em;
  }
  .page-news-popular-game-guides__section-title {
    font-size: 2em;
  }
  .page-news-popular-game-guides__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news-popular-game-guides__hero-section {
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
  }
  .page-news-popular-game-guides__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 20px;
    opacity: 0.2;
  }
  .page-news-popular-game-guides__hero-content {
    order: 1;
    padding-top: 0; /* Header offset already handled by main section */
  }
  .page-news-popular-game-guides__hero-title {
    font-size: 2.2em;
  }
  .page-news-popular-game-guides__hero-description {
    font-size: 1em;
  }
  .page-news-popular-game-guides__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news-popular-game-guides__btn-primary,
  .page-news-popular-game-guides__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news-popular-game-guides__section {
    padding: 40px 15px;
  }
  .page-news-popular-game-guides__section-title {
    font-size: 1.8em;
  }
  .page-news-popular-game-guides__text-block {
    font-size: 0.95em;
  }
  .page-news-popular-game-guides__game-categories,
  .page-news-popular-game-guides__game-guides-grid,
  .page-news-popular-game-guides__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news-popular-game-guides__category-card,
  .page-news-popular-game-guides__guide-article,
  .page-news-popular-game-guides__promo-card {
    padding: 20px;
  }
  .page-news-popular-game-guides__category-title,
  .page-news-popular-game-guides__article-title,
  .page-news-popular-game-guides__promo-title {
    font-size: 1.3em;
  }
  .page-news-popular-game-guides__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news-popular-game-guides__faq-answer {
    padding: 0 20px;
  }
  .page-news-popular-game-guides__faq-item.active .page-news-popular-game-guides__faq-answer {
    padding: 15px 20px;
  }
  .page-news-popular-game-guides__cta-title {
    font-size: 1.8em;
  }
  .page-news-popular-game-guides__cta-description {
    font-size: 1em;
  }
  /* Mobile image and container responsiveness */
  .page-news-popular-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news-popular-game-guides__section,
  .page-news-popular-game-guides__card,
  .page-news-popular-game-guides__container,
  .page-news-popular-game-guides__game-categories,
  .page-news-popular-game-guides__game-guides-grid,
  .page-news-popular-game-guides__promotions-grid,
  .page-news-popular-game-guides__faq-container,
  .page-news-popular-game-guides__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-news-popular-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news-popular-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-news-popular-game-guides__hero-title {
    font-size: 1.8em;
  }
  .page-news-popular-game-guides__section-title {
    font-size: 1.6em;
  }
  .page-news-popular-game-guides__cta-title {
    font-size: 1.6em;
  }
  .page-news-popular-game-guides__btn-primary,
  .page-news-popular-game-guides__btn-secondary {
    padding: 12px 20px;
  }
}