/* style/resources-79-king-popular-games-guide.css */

/* Base styles for the page content */
.page-resources-79-king-popular-games-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--primary-color, #1A202C); /* Assuming body background is dark */
}

.page-resources-79-king-popular-games-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Text colors for different backgrounds */
.page-resources-79-king-popular-games-guide__dark-bg {
  background: #1A202C;
  color: #ffffff;
}

.page-resources-79-king-popular-games-guide__light-bg {
  background: #ffffff;
  color: #333333;
}

/* Headings */
.page-resources-79-king-popular-games-guide__heading {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section */
}

.page-resources-79-king-popular-games-guide__heading:first-child {
  padding-top: 120px; /* Spacing for fixed header */
}

.page-resources-79-king-popular-games-guide__dark-bg .page-resources-79-king-popular-games-guide__heading {
  color: #FFD700; /* Gold color for headings on dark background */
}

.page-resources-79-king-popular-games-guide__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

/* Buttons */
.page-resources-79-king-popular-games-guide__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-resources-79-king-popular-games-guide__btn--primary {
  background: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-resources-79-king-popular-games-guide__btn--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
}

.page-resources-79-king-popular-games-guide__btn--secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-79-king-popular-games-guide__btn--secondary:hover {
  background: #FFD700;
  color: #1A202C;
}

.page-resources-79-king-popular-games-guide__btn--small {
  padding: 8px 15px;
  font-size: 14px;
}

.page-resources-79-king-popular-games-guide__cta-group {
  text-align: center;
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-79-king-popular-games-guide__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Image responsiveness */
.page-resources-79-king-popular-games-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-resources-79-king-popular-games-guide__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0; /* No margin-top here, as it's the very first section */
}

.page-resources-79-king-popular-games-guide__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-resources-79-king-popular-games-guide__hero-image {
  width: 100%;
  margin: 0;
}

.page-resources-79-king-popular-games-guide__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Products Section */
.page-resources-79-king-popular-games-guide__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1A202C; /* Dark background */
}

.page-resources-79-king-popular-games-guide__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small products, 2 large products */
  gap: 20px;
}

.page-resources-79-king-popular-games-guide__products-grid {
  display: grid;
  gap: 20px;
}

.page-resources-79-king-popular-games-guide__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-resources-79-king-popular-games-guide__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-resources-79-king-popular-games-guide__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2D3748; /* Slightly lighter dark background */
  border: 3px solid #FFD700; /* Gold border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-79-king-popular-games-guide__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-resources-79-king-popular-games-guide__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources-79-king-popular-games-guide__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-resources-79-king-popular-games-guide__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-resources-79-king-popular-games-guide__intro-section {
  padding: 80px 0;
  /* Inherits dark-bg for background and text color */
}

/* Quick Links Section */
.page-resources-79-king-popular-games-guide__quick-links-section {
  padding: 80px 0;
}

.page-resources-79-king-popular-games-guide__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-resources-79-king-popular-games-guide__link-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.page-resources-79-king-popular-games-guide__link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-79-king-popular-games-guide__link-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-resources-79-king-popular-games-guide__link-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Games Section */
.page-resources-79-king-popular-games-guide__games-section {
  padding: 80px 0;
}

.page-resources-79-king-popular-games-guide__game-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-79-king-popular-games-guide__game-card {
  display: flex;
  align-items: center;
  background: #2D3748; /* Lighter dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-79-king-popular-games-guide__game-card:nth-child(even) {
  flex-direction: row-reverse;
}

.page-resources-79-king-popular-games-guide__game-card-image {
  flex: 1;
  min-width: 40%;
  height: 300px;
  overflow: hidden;
}

.page-resources-79-king-popular-games-guide__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources-79-king-popular-games-guide__game-card-content {
  flex: 1;
  padding: 30px;
  color: #ffffff;
}

.page-resources-79-king-popular-games-guide__game-card-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources-79-king-popular-games-guide__game-card-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-resources-79-king-popular-games-guide__promotions-section {
  padding: 80px 0;
}

.page-resources-79-king-popular-games-guide__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-79-king-popular-games-guide__promo-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-79-king-popular-games-guide__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-79-king-popular-games-guide__promo-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #1A202C;
}

.page-resources-79-king-popular-games-guide__promo-card p {
  font-size: 15px;
  margin-bottom: 25px;
  color: #555555;
}

/* Security Section */
.page-resources-79-king-popular-games-guide__security-section {
  padding: 80px 0;
}

.page-resources-79-king-popular-games-guide__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-79-king-popular-games-guide__feature-item {
  background: #2D3748;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  color: #ffffff;
}

.page-resources-79-king-popular-games-guide__feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-resources-79-king-popular-games-guide__feature-item p {
  font-size: 15px;
  margin-bottom: 0;
}

/* FAQ Section */
.page-resources-79-king-popular-games-guide__faq-section {
  padding: 80px 0;
}

.page-resources-79-king-popular-games-guide__faq-list {
  margin-top: 40px;
}

.page-resources-79-king-popular-games-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-79-king-popular-games-guide__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-79-king-popular-games-guide__faq-item.active .page-resources-79-king-popular-games-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources-79-king-popular-games-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-79-king-popular-games-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-79-king-popular-games-guide__faq-question:active {
  background: #eeeeee;
}

.page-resources-79-king-popular-games-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #1A202C;
}

.page-resources-79-king-popular-games-guide__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-resources-79-king-popular-games-guide__faq-item.active .page-resources-79-king-popular-games-guide__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

.page-resources-79-king-popular-games-guide__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

/* Blog Section */
.page-resources-79-king-popular-games-guide__blog-section {
  padding: 80px 0;
}

.page-resources-79-king-popular-games-guide__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-79-king-popular-games-guide__blog-card {
  background: #2D3748;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-resources-79-king-popular-games-guide__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-resources-79-king-popular-games-guide__blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-resources-79-king-popular-games-guide__blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-resources-79-king-popular-games-guide__blog-card-content {
  padding: 20px;
}

.page-resources-79-king-popular-games-guide__blog-card-title-link {
  text-decoration: none;
  color: inherit;
}

.page-resources-79-king-popular-games-guide__blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-resources-79-king-popular-games-guide__blog-card-title-link:hover .page-resources-79-king-popular-games-guide__blog-card-title {
  text-decoration: underline;
}

.page-resources-79-king-popular-games-guide__blog-card-excerpt {
  font-size: 15px;
  margin-bottom: 15px;
  color: #cccccc;
}

.page-resources-79-king-popular-games-guide__blog-card-date {
  font-size: 13px;
  color: #aaaaaa;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-79-king-popular-games-guide__heading {
    font-size: 32px;
  }
  .page-resources-79-king-popular-games-guide__game-card-image {
    height: 250px;
  }
  .page-resources-79-king-popular-games-guide__game-card-title {
    font-size: 24px;
  }
  .page-resources-79-king-popular-games-guide__products-container {
    grid-template-columns: 1fr; /* Stack products grid on smaller desktops/tablets */
  }
  .page-resources-79-king-popular-games-guide__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-resources-79-king-popular-games-guide__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-resources-79-king-popular-games-guide__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources-79-king-popular-games-guide__heading:first-child {
    padding-top: 100px; /* Adjust for mobile fixed header */
  }
  .page-resources-79-king-popular-games-guide__paragraph {
    font-size: 16px;
  }
  .page-resources-79-king-popular-games-guide__btn {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-resources-79-king-popular-games-guide__intro-section,
  .page-resources-79-king-popular-games-guide__quick-links-section,
  .page-resources-79-king-popular-games-guide__games-section,
  .page-resources-79-king-popular-games-guide__promotions-section,
  .page-resources-79-king-popular-games-guide__security-section,
  .page-resources-79-king-popular-games-guide__faq-section,
  .page-resources-79-king-popular-games-guide__blog-section {
    padding: 50px 0;
  }
  .page-resources-79-king-popular-games-guide__container {
    padding: 0 15px;
  }
  .page-resources-79-king-popular-games-guide__products-section {
    padding: 40px 15px;
  }
  .page-resources-79-king-popular-games-guide__products-container {
    grid-template-columns: 1fr; /* Stack products grid vertically */
    gap: 15px;
  }
  .page-resources-79-king-popular-games-guide__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-resources-79-king-popular-games-guide__products-grid--small .page-resources-79-king-popular-games-guide__product-card {
    aspect-ratio: 1 / 1; /* Square for small cards */
  }
  .page-resources-79-king-popular-games-guide__products-grid--small .page-resources-79-king-popular-games-guide__product-card-image {
    height: 100%;
    aspect-ratio: 1 / 1; /* Square for small card images */
  }
  .page-resources-79-king-popular-games-guide__products-grid--large {
    grid-template-columns: 1fr; /* Each large card takes full width */
    gap: 15px;
  }
  .page-resources-79-king-popular-games-guide__products-grid--large .page-resources-79-king-popular-games-guide__product-card {
    aspect-ratio: 1 / 1; /* Square for large cards */
  }
  .page-resources-79-king-popular-games-guide__products-grid--large .page-resources-79-king-popular-games-guide__product-card-image {
    height: 100%;
    aspect-ratio: 1 / 1; /* Square for large card images */
  }
  .page-resources-79-king-popular-games-guide__link-card-title {
    font-size: 18px;
  }
  .page-resources-79-king-popular-games-guide__game-card {
    flex-direction: column;
  }
  .page-resources-79-king-popular-games-guide__game-card:nth-child(even) {
    flex-direction: column;
  }
  .page-resources-79-king-popular-games-guide__game-card-image {
    width: 100%;
    min-width: unset;
    height: 200px;
  }
  .page-resources-79-king-popular-games-guide__game-card-content {
    padding: 20px;
  }
  .page-resources-79-king-popular-games-guide__game-card-title {
    font-size: 22px;
  }
  .page-resources-79-king-popular-games-guide__promo-card-title {
    font-size: 20px;
  }
  .page-resources-79-king-popular-games-guide__feature-title {
    font-size: 18px;
  }
  .page-resources-79-king-popular-games-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources-79-king-popular-games-guide__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-resources-79-king-popular-games-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources-79-king-popular-games-guide__faq-answer {
    padding: 0 15px;
  }
  .page-resources-79-king-popular-games-guide__faq-item.active .page-resources-79-king-popular-games-guide__faq-answer {
    padding: 15px !important;
  }
  .page-resources-79-king-popular-games-guide__blog-card-image {
    height: 180px;
  }
  .page-resources-79-king-popular-games-guide__blog-card-title {
    font-size: 18px;
  }
  /* Ensure all images and their containers are responsive */
  .page-resources-79-king-popular-games-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-79-king-popular-games-guide__section,
  .page-resources-79-king-popular-games-guide__card,
  .page-resources-79-king-popular-games-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure proper contrast for all elements */
.page-resources-79-king-popular-games-guide p,
.page-resources-79-king-popular-games-guide li {
  color: inherit; /* Inherit from parent, which is set for dark/light backgrounds */
}

/* Specific contrast fixes if needed */
.page-resources-79-king-popular-games-guide__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-79-king-popular-games-guide__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}