/* CSS for page-stella-from-poppy-playtime */
.page-stella-from-poppy-playtime {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: #1a1a2e;
  line-height: 1.6;
}

.page-stella-from-poppy-playtime__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-stella-from-poppy-playtime__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: 10px; /* Assuming body has padding-top for fixed header */
  background: linear-gradient(135deg, #2a0a5e, #1a1a2e);
}

.page-stella-from-poppy-playtime__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
  overflow: hidden;
}

.page-stella-from-poppy-playtime__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-stella-from-poppy-playtime__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
}

.page-stella-from-poppy-playtime__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #e0b0ff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-stella-from-poppy-playtime__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ccc;
}

.page-stella-from-poppy-playtime__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-stella-from-poppy-playtime__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.page-stella-from-poppy-playtime__btn--primary {
  background-color: #ff4d4d;
  color: #ffffff;
  border: 2px solid #ff4d4d;
}

.page-stella-from-poppy-playtime__btn--primary:hover {
  background-color: #e60000;
  transform: translateY(-3px);
}

.page-stella-from-poppy-playtime__btn--secondary {
  background-color: transparent;
  color: #ff4d4d;
  border: 2px solid #ff4d4d;
}

.page-stella-from-poppy-playtime__btn--secondary:hover {
  background-color: #ff4d4d;
  color: #ffffff;
  transform: translateY(-3px);
}

.page-stella-from-poppy-playtime__btn--accent {
  background-color: #6a0572;
  color: #ffffff;
  border: 2px solid #6a0572;
}

.page-stella-from-poppy-playtime__btn--accent:hover {
  background-color: #4a0352;
  transform: translateY(-3px);
}

.page-stella-from-poppy-playtime__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
}


/* General Section Styling */
.page-stella-from-poppy-playtime__section-title {
  font-size: 2.5em;
  color: #e0b0ff;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  position: relative;
}

.page-stella-from-poppy-playtime__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ff4d4d;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-stella-from-poppy-playtime__text-content {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #ccc;
}

/* Character Spotlight Section */
.page-stella-from-poppy-playtime__character-spotlight {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-stella-from-poppy-playtime__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-stella-from-poppy-playtime__grid-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.page-stella-from-poppy-playtime__grid-image:hover {
  transform: translateY(-5px);
}

/* Game Categories Section */
.page-stella-from-poppy-playtime__game-categories {
  padding: 80px 0;
  background-color: #240a45;
}

.page-stella-from-poppy-playtime__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-stella-from-poppy-playtime__category-item {
  background-color: #1a1a2e;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-stella-from-poppy-playtime__category-item:hover {
  transform: translateY(-10px);
  background-color: #2a0a5e;
}

.page-stella-from-poppy-playtime__category-icon {
  width: 200px; /* Enforcing minimum size 200x200 */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-stella-from-poppy-playtime__category-title {
  font-size: 1.8em;
  color: #ff4d4d;
  margin-bottom: 15px;
}

.page-stella-from-poppy-playtime__category-description {
  color: #aaa;
  font-size: 1em;
  flex-grow: 1; /* Ensures text fills space */
}

/* Why Choose Section */
.page-stella-from-poppy-playtime__why-choose {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.page-stella-from-poppy-playtime__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-stella-from-poppy-playtime__feature-item {
  background-color: #2a0a5e;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-stella-from-poppy-playtime__feature-icon {
  width: 200px; /* Enforcing minimum size 200x200 */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-stella-from-poppy-playtime__feature-title {
  font-size: 1.6em;
  color: #e0b0ff;
  margin-bottom: 10px;
}

.page-stella-from-poppy-playtime__feature-description {
  color: #ccc;
  font-size: 0.95em;
}

/* FAQ Section */
.page-stella-from-poppy-playtime__faq-section {
  padding: 80px 0;
  background-color: #240a45;
}

.page-stella-from-poppy-playtime__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-stella-from-poppy-playtime__faq-item {
  background-color: #1a1a2e;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-stella-from-poppy-playtime__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #2a0a5e;
  color: #e0b0ff;
  font-size: 1.2em;
  font-weight: bold;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-stella-from-poppy-playtime__faq-question:hover {
  background-color: #3d0d70;
}

.page-stella-from-poppy-playtime__faq-question h3 {
  margin: 0;
  flex-grow: 1;
  pointer-events: none; /* Prevents text selection from interfering with click */
  color: inherit; /* Ensure color from parent */
}

.page-stella-from-poppy-playtime__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Prevents icon from interfering with click */
  transition: transform 0.3s ease;
}

.page-stella-from-poppy-playtime__faq-item.active .page-stella-from-poppy-playtime__faq-toggle {
  transform: rotate(45deg);
}

.page-stella-from-poppy-playtime__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #1a1a2e;
  color: #ccc;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.page-stella-from-poppy-playtime__faq-item.active .page-stella-from-poppy-playtime__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-stella-from-poppy-playtime__faq-answer p {
  margin: 0;
}

/* Call to Action Section */
.page-stella-from-poppy-playtime__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e, #2a0a5e);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-stella-from-poppy-playtime__hero-title {
    font-size: 3em;
  }
  .page-stella-from-poppy-playtime__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-stella-from-poppy-playtime__hero-section {
    min-height: 500px;
    padding: 20px 0;
  }

  .page-stella-from-poppy-playtime__hero-title {
    font-size: 2.5em;
  }

  .page-stella-from-poppy-playtime__hero-description {
    font-size: 1.1em;
  }

  .page-stella-from-poppy-playtime__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-stella-from-poppy-playtime__btn {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-stella-from-poppy-playtime__section-title {
    font-size: 1.8em;
    padding-top: 40px;
    margin-bottom: 30px;
  }

  .page-stella-from-poppy-playtime__text-content {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-stella-from-poppy-playtime__character-spotlight,
  .page-stella-from-poppy-playtime__game-categories,
  .page-stella-from-poppy-playtime__why-choose,
  .page-stella-from-poppy-playtime__faq-section,
  .page-stella-from-poppy-playtime__cta-section {
    padding: 50px 0;
  }

  .page-stella-from-poppy-playtime__image-grid {
    grid-template-columns: 1fr;
  }

  .page-stella-from-poppy-playtime__category-list,
  .page-stella-from-poppy-playtime__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-stella-from-poppy-playtime__category-item,
  .page-stella-from-poppy-playtime__feature-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important; /* Adjust padding to avoid too narrow content */
    padding-right: 15px !important; /* Adjust padding to avoid too narrow content */
  }

  .page-stella-from-poppy-playtime__category-list,
  .page-stella-from-poppy-playtime__feature-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Container padding */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-stella-from-poppy-playtime__category-description,
  .page-stella-from-poppy-playtime__feature-description {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}