/* style/user-stories.css */
.page-user-stories {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-user-stories__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-user-stories__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #017439, #0a0a0a);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 0; /* shared.css handles body padding-top for header offset */
  min-height: 500px;
}

.page-user-stories__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-user-stories__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-user-stories__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-user-stories__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00;
}

.page-user-stories__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-user-stories__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-user-stories__btn-primary,
.page-user-stories__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-user-stories__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
}

.page-user-stories__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-user-stories__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-user-stories__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* Introduction Section */
.page-user-stories__introduction-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-user-stories__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #FFFF00;
}

.page-user-stories__section-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-user-stories__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Stories Grid */
.page-user-stories__stories-grid {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
  text-align: center;
}

.page-user-stories__story-card {
  display: flex;
  flex-direction: row;
  background-color: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-user-stories__story-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-user-stories__story-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-user-stories__story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-user-stories__story-content {
  flex: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-user-stories__story-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-user-stories__story-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-user-stories__btn-link {
  display: inline-block;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFFF00;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-user-stories__btn-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Why Love Section */
.page-user-stories__why-love-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-user-stories__why-love-section .page-user-stories__section-title {
  color: #017439;
}

.page-user-stories__why-love-section .page-user-stories__section-subtitle {
  color: #555555;
}

.page-user-stories__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-user-stories__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-user-stories__feature-item:hover {
  transform: translateY(-5px);
}

.page-user-stories__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-user-stories__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* CTA Section */
.page-user-stories__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #0a0a0a);
  color: #ffffff;
}

.page-user-stories__cta-section .page-user-stories__section-title {
  color: #FFFF00;
}

.page-user-stories__cta-section .page-user-stories__section-subtitle {
  color: #f0f0f0;
}

.page-user-stories__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-user-stories__faq-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-user-stories__faq-section .page-user-stories__section-title {
  color: #FFFF00;
}

.page-user-stories__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-user-stories__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-user-stories__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details summary */
}

.page-user-stories__faq-question::-webkit-details-marker {
  display: none; /* For details summary */
}

.page-user-stories__faq-qtext {
  flex-grow: 1;
}

.page-user-stories__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-user-stories__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
  /* Removed max-height, overflow, transition for native <details> behavior */
}

.page-user-stories__faq-item[open] .page-user-stories__faq-answer {
  padding-top: 15px; /* Only padding adjustment when open */
}

/* Conclusion Section */
.page-user-stories__conclusion-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a, #017439);
  color: #ffffff;
}

.page-user-stories__conclusion-section .page-user-stories__section-title {
  color: #FFFF00;
}

.page-user-stories__conclusion-section .page-user-stories__text-block {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-user-stories__hero-title {
    font-size: 3em;
  }
  .page-user-stories__story-card {
    flex-direction: column !important;
  }
  .page-user-stories__story-card:nth-child(even) {
    flex-direction: column !important;
  }
  .page-user-stories__story-image-wrapper {
    min-width: unset;
    height: 300px; /* Fixed height for mobile story images */
  }
  .page-user-stories__story-image {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .page-user-stories__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-user-stories__hero-title {
    font-size: 2.5em;
  }
  .page-user-stories__hero-description {
    font-size: 1.1em;
  }
  .page-user-stories__hero-cta-buttons,
  .page-user-stories__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-user-stories__btn-primary,
  .page-user-stories__btn-secondary,
  .page-user-stories a[class*="button"],
  .page-user-stories a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-user-stories__section-title {
    font-size: 2em;
  }
  .page-user-stories__section-subtitle {
    font-size: 1em;
  }
  .page-user-stories__text-block {
    font-size: 0.95em;
    text-align: justify;
  }
  .page-user-stories__story-content {
    padding: 20px;
  }
  .page-user-stories__story-title {
    font-size: 1.5em;
  }
  .page-user-stories__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-user-stories__faq-answer {
    padding: 0 20px 15px;
  }

  /* Image responsiveness for all images within .page-user-stories */
  .page-user-stories img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-user-stories__section,
  .page-user-stories__card,
  .page-user-stories__container,
  .page-user-stories__story-card,
  .page-user-stories__feature-item,
  .page-user-stories__introduction-section,
  .page-user-stories__stories-grid,
  .page-user-stories__why-love-section,
  .page-user-stories__cta-section,
  .page-user-stories__faq-section,
  .page-user-stories__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific adjustments for hero section padding-top if needed, but shared.css handles body */
  .page-user-stories__hero-section {
    padding-top: 0 !important; /* Ensure no double padding if body already has it */
  }
}

@media (max-width: 480px) {
  .page-user-stories__hero-title {
    font-size: 2em;
  }
  .page-user-stories__section-title {
    font-size: 1.8em;
  }
  .page-user-stories__story-title {
    font-size: 1.3em;
  }
}