/* Base styles for the page container */
.page-baby-prototype-poppy-playtime {
  font-family: 'Arial', sans-serif;
  color: #e0e0e0; /* Light text for dark background */
  background-color: #1a1a2e; /* Primary dark background */
  line-height: 1.6;
  padding-top: 10px; /* Small padding top for hero, assuming body padding from shared */
  overflow-x: hidden; /* Prevent horizontal scroll from overflowing content */
}

/* General section styling */
.page-baby-prototype-poppy-playtime__section-title {
  font-size: 2.5em;
  color: #e94560; /* Accent red for titles */
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
  word-wrap: break-word; /* Ensure titles wrap */
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  padding: 0 15px;
  color: #cccccc;
}

/* Button general styling */
.page-baby-prototype-poppy-playtime__hero-cta-button,
.page-baby-prototype-poppy-playtime__access-button,
.page-baby-prototype-poppy-playtime__game-card-button,
.page-baby-prototype-poppy-playtime__promotion-card-button,
.page-baby-prototype-poppy-playtime__contact-button,
.page-baby-prototype-poppy-playtime__blog-card-button {
  display: inline-block;
  background-color: #e94560; /* Accent red */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-baby-prototype-poppy-playtime__hero-cta-button:hover,
.page-baby-prototype-poppy-playtime__access-button:hover,
.page-baby-prototype-poppy-playtime__game-card-button:hover,
.page-baby-prototype-poppy-playtime__promotion-card-button:hover,
.page-baby-prototype-poppy-playtime__contact-button:hover,
.page-baby-prototype-poppy-playtime__blog-card-button:hover {
  background-color: #ff6b81; /* Lighter red on hover */
  transform: translateY(-2px);
}

/* Image responsive base styles */
.page-baby-prototype-poppy-playtime img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-baby-prototype-poppy-playtime__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Minimum height for hero */
  text-align: center;
  padding: 80px 20px;
  background-color: #0f3460; /* Darker blue for hero background */
  overflow: hidden;
}

.page-baby-prototype-poppy-playtime__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-baby-prototype-poppy-playtime__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__hero-description {
  font-size: 1.3em;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-baby-prototype-poppy-playtime__introduction-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
}

.page-baby-prototype-poppy-playtime__introduction-content {
  max-width: 1200px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__introduction-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  color: #cccccc;
}

.page-baby-prototype-poppy-playtime__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-baby-prototype-poppy-playtime__feature-item {
  background-color: #0f3460;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-baby-prototype-poppy-playtime__feature-item:hover {
  transform: translateY(-5px);
}

.page-baby-prototype-poppy-playtime__feature-icon {
  width: 100px; /* Ensure minimum size */
  height: 100px;
  margin: 0 auto 20px auto;
  object-fit: cover;
  border-radius: 50%;
}

.page-baby-prototype-poppy-playtime__feature-title {
  font-size: 1.5em;
  color: #e94560;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__feature-description {
  font-size: 1em;
  color: #cccccc;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Quick Access Section */
.page-baby-prototype-poppy-playtime__quick-access-section {
  padding: 60px 20px;
  background-color: #2a2a4a; /* Slightly different dark background */
  text-align: center;
}

.page-baby-prototype-poppy-playtime__access-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.page-baby-prototype-poppy-playtime__access-button {
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-baby-prototype-poppy-playtime__app-image {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-baby-prototype-poppy-playtime__games-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
}

.page-baby-prototype-poppy-playtime__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__game-category-card {
  background-color: #0f3460;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-baby-prototype-poppy-playtime__game-category-card:hover {
  transform: translateY(-5px);
}

.page-baby-prototype-poppy-playtime__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 3px solid #e94560;
}

.page-baby-prototype-poppy-playtime__game-card-title {
  font-size: 1.4em;
  color: #e94560;
  margin: 20px 15px 10px 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__game-card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px 20px 15px;
  flex-grow: 1; /* Allows description to take available space */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__game-card-button {
  margin: 0 15px 20px 15px;
  width: calc(100% - 30px);
  padding: 12px 20px;
  font-size: 1em;
}

/* Promotions Section */
.page-baby-prototype-poppy-playtime__promotions-section {
  padding: 60px 20px;
  background-color: #2a2a4a;
}

.page-baby-prototype-poppy-playtime__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__promotion-card {
  background-color: #0f3460;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-baby-prototype-poppy-playtime__promotion-card:hover {
  transform: translateY(-5px);
}

.page-baby-prototype-poppy-playtime__promotion-card-image {
  width: 100%;
  height: 220px; /* Fixed height for images */
  object-fit: cover;
  border-bottom: 3px solid #e94560;
}

.page-baby-prototype-poppy-playtime__promotion-card-title {
  font-size: 1.4em;
  color: #e94560;
  margin: 20px 15px 10px 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__promotion-card-description {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__promotion-card-button {
  margin: 0 15px 20px 15px;
  width: calc(100% - 30px);
  padding: 12px 20px;
  font-size: 1em;
}

/* Security & Customer Service Section */
.page-baby-prototype-poppy-playtime__security-customer-service-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
}

.page-baby-prototype-poppy-playtime__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-baby-prototype-poppy-playtime__security-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-baby-prototype-poppy-playtime__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-baby-prototype-poppy-playtime__contact-button {
  margin-top: 20px;
}

/* FAQ Section */
.page-baby-prototype-poppy-playtime__faq-section {
  padding: 60px 20px;
  background-color: #2a2a4a;
}

.page-baby-prototype-poppy-playtime__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__faq-item {
  background-color: #0f3460;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-baby-prototype-poppy-playtime__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  background-color: #0f3460;
  transition: background-color 0.3s ease;
}

.page-baby-prototype-poppy-playtime__faq-question:hover {
  background-color: #0b274a;
}

.page-baby-prototype-poppy-playtime__faq-question-text {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
  pointer-events: none; /* Prevent text from blocking click event */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__faq-toggle {
  font-size: 1.8em;
  color: #e94560;
  margin-left: 15px;
  line-height: 1;
  pointer-events: none; /* Prevent toggle icon from blocking click event */
  transition: transform 0.3s ease;
}

.page-baby-prototype-poppy-playtime__faq-item.active .page-baby-prototype-poppy-playtime__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

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

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

.page-baby-prototype-poppy-playtime__faq-answer p {
  margin: 0;
  font-size: 1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Blog Section */
.page-baby-prototype-poppy-playtime__blog-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
}

.page-baby-prototype-poppy-playtime__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-baby-prototype-poppy-playtime__blog-card {
  background-color: #0f3460;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-baby-prototype-poppy-playtime__blog-card:hover {
  transform: translateY(-5px);
}

.page-baby-prototype-poppy-playtime__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid #e94560;
}

.page-baby-prototype-poppy-playtime__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-baby-prototype-poppy-playtime__blog-card-title {
  font-size: 1.3em;
  color: #e94560;
  margin-bottom: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__blog-card-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-baby-prototype-poppy-playtime__blog-card-button {
  align-self: flex-start; /* Align button to start within flex column */
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-baby-prototype-poppy-playtime__hero-title {
    font-size: 2.5em;
  }

  .page-baby-prototype-poppy-playtime__hero-description {
    font-size: 1.1em;
  }

  .page-baby-prototype-poppy-playtime__section-title {
    font-size: 2em;
  }

  .page-baby-prototype-poppy-playtime__introduction-content p,
  .page-baby-prototype-poppy-playtime__section-description,
  .page-baby-prototype-poppy-playtime__security-text p,
  .page-baby-prototype-poppy-playtime__faq-answer p,
  .page-baby-prototype-poppy-playtime__blog-card-excerpt {
    font-size: 1em;
  }

  /* List item responsive (features grid, game categories, promotions grid, blog grid) */
  .page-baby-prototype-poppy-playtime__feature-item,
  .page-baby-prototype-poppy-playtime__game-category-card,
  .page-baby-prototype-poppy-playtime__promotion-card,
  .page-baby-prototype-poppy-playtime__blog-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-baby-prototype-poppy-playtime__features-grid,
  .page-baby-prototype-poppy-playtime__game-categories,
  .page-baby-prototype-poppy-playtime__promotion-grid,
  .page-baby-prototype-poppy-playtime__blog-grid {
    grid-template-columns: 1fr; /* Single column layout */
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-baby-prototype-poppy-playtime__access-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-baby-prototype-poppy-playtime__access-button {
    width: calc(100% - 40px); /* Adjust for padding */
    max-width: 300px; /* Limit button width */
  }

  .page-baby-prototype-poppy-playtime__faq-question,
  .page-baby-prototype-poppy-playtime__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-baby-prototype-poppy-playtime__faq-item.active .page-baby-prototype-poppy-playtime__faq-answer {
    padding: 15px !important;
  }

  .page-baby-prototype-poppy-playtime__faq-question-text {
    font-size: 1.1em;
  }
  
  .page-baby-prototype-poppy-playtime__faq-toggle {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-baby-prototype-poppy-playtime__hero-title {
    font-size: 2em;
  }

  .page-baby-prototype-poppy-playtime__section-title {
    font-size: 1.8em;
  }

  .page-baby-prototype-poppy-playtime__hero-cta-button,
  .page-baby-prototype-poppy-playtime__access-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}