/* style/index-top-games-showcase.css */
.page-index-top-games-showcase {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Inherited from body, ensure contrast */
}

.page-index-top-games-showcase__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #000080, #000050);
  color: #ffffff;
  overflow: hidden;
  min-height: 600px;
}

.page-index-top-games-showcase__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.page-index-top-games-showcase__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-index-top-games-showcase__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-index-top-games-showcase__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-top-games-showcase__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-top-games-showcase__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index-top-games-showcase__btn-primary,
.page-index-top-games-showcase__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index-top-games-showcase__btn-primary {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-index-top-games-showcase__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index-top-games-showcase__btn-secondary {
  background-color: #000080;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index-top-games-showcase__btn-secondary:hover {
  background-color: #000050;
  transform: translateY(-2px);
}

.page-index-top-games-showcase__section {
  padding: 80px 20px;
  text-align: center;
}

.page-index-top-games-showcase__light-bg {
  background-color: #f0f0f0;
  color: #333333;
}

.page-index-top-games-showcase__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-index-top-games-showcase__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-top-games-showcase__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-index-top-games-showcase__light-bg .page-index-top-games-showcase__section-title {
  color: #000080;
  text-shadow: none;
}

.page-index-top-games-showcase__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-top-games-showcase__sub-title {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-index-top-games-showcase__light-bg .page-index-top-games-showcase__sub-title {
  color: #000080;
}

.page-index-top-games-showcase__content-paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: left;
}

.page-index-top-games-showcase__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-index-top-games-showcase__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-top-games-showcase__light-bg .page-index-top-games-showcase__feature-item {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-index-top-games-showcase__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-top-games-showcase__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-top-games-showcase__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-index-top-games-showcase__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #FFD700;
}

.page-index-top-games-showcase__game-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-top-games-showcase__game-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-top-games-showcase__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-top-games-showcase__promotion-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-top-games-showcase__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index-top-games-showcase__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #000080;
}

.page-index-top-games-showcase__promotion-title {
  font-size: 1.6em;
  color: #000080;
  margin-bottom: 15px;
}

.page-index-top-games-showcase__promotion-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-top-games-showcase__full-promo-cta {
  margin-top: 50px;
}

.page-index-top-games-showcase__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-top-games-showcase__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-index-top-games-showcase__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-top-games-showcase__step-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-index-top-games-showcase__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index-top-games-showcase__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-top-games-showcase__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #000080;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-index-top-games-showcase__faq-question:hover {
  background-color: #e6e6e6;
}

.page-index-top-games-showcase__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #000080;
}

.page-index-top-games-showcase__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-index-top-games-showcase__faq-item.active .page-index-top-games-showcase__faq-toggle {
  transform: rotate(45deg);
  color: #000080;
}

.page-index-top-games-showcase__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-index-top-games-showcase__faq-item.active .page-index-top-games-showcase__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

.page-index-top-games-showcase__faq-text {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

.page-index-top-games-showcase__cta-bottom {
  background: linear-gradient(135deg, #FFD700, #e6c200);
  color: #000080;
  padding: 80px 20px;
}

.page-index-top-games-showcase__cta-bottom .page-index-top-games-showcase__section-title {
  color: #000080;
  text-shadow: none;
}

.page-index-top-games-showcase__cta-bottom .page-index-top-games-showcase__section-description {
  color: #333333;
}

.page-index-top-games-showcase__cta-bottom .page-index-top-games-showcase__btn-primary {
  background-color: #000080;
  color: #FFD700;
  border: 2px solid #000080;
}

.page-index-top-games-showcase__cta-bottom .page-index-top-games-showcase__btn-primary:hover {
  background-color: #000050;
  color: #FFD700;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-top-games-showcase__hero-title {
    font-size: 2.8em;
  }
  .page-index-top-games-showcase__section-title {
    font-size: 2.2em;
  }
  .page-index-top-games-showcase__sub-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-index-top-games-showcase__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 500px;
  }
  .page-index-top-games-showcase__hero-title {
    font-size: 2em;
  }
  .page-index-top-games-showcase__hero-description {
    font-size: 1em;
  }
  .page-index-top-games-showcase__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
  }
  .page-index-top-games-showcase__btn-primary,
  .page-index-top-games-showcase__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-index-top-games-showcase__section {
    padding: 50px 15px;
  }
  .page-index-top-games-showcase__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-index-top-games-showcase__section-title {
    font-size: 1.8em;
  }
  .page-index-top-games-showcase__sub-title {
    font-size: 1.5em;
  }
  .page-index-top-games-showcase__feature-list,
  .page-index-top-games-showcase__game-grid,
  .page-index-top-games-showcase__promotion-grid,
  .page-index-top-games-showcase__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-top-games-showcase__game-image,
  .page-index-top-games-showcase__promotion-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
  }
  .page-index-top-games-showcase__game-card,
  .page-index-top-games-showcase__promotion-card,
  .page-index-top-games-showcase__step-card {
    padding: 20px;
  }
  .page-index-top-games-showcase__faq-question {
    padding: 15px 20px;
  }
  .page-index-top-games-showcase__faq-answer {
    padding: 0 20px;
  }
  .page-index-top-games-showcase__faq-item.active .page-index-top-games-showcase__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-top-games-showcase__hero-title {
    font-size: 1.8em;
  }
  .page-index-top-games-showcase__section-title {
    font-size: 1.6em;
  }
  .page-index-top-games-showcase__sub-title {
    font-size: 1.3em;
  }
  .page-index-top-games-showcase__hero-description,
  .page-index-top-games-showcase__section-description,
  .page-index-top-games-showcase__content-paragraph,
  .page-index-top-games-showcase__game-description,
  .page-index-top-games-showcase__promotion-description,
  .page-index-top-games-showcase__step-description,
  .page-index-top-games-showcase__faq-text {
    font-size: 0.95em;
  }
}