/* style/user-stories.css */

/* Base styles for the user stories page */
.page-user-stories {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-user-stories__section {
  padding: 60px 0;
}

.page-user-stories__section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-user-stories__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-user-stories__hero {
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-user-stories__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFCC00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-user-stories__hero-description {
  font-size: 1.4em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

/* Buttons */
.page-user-stories__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-user-stories__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.page-user-stories__btn--primary:hover {
  background-color: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
}

.page-user-stories__btn--secondary {
  background-color: #003366;
  color: #FFCC00;
  border: 2px solid #FFCC00;
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
}

.page-user-stories__btn--secondary:hover {
  background-color: #002244;
  color: #FFEA80;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 51, 102, 0.5);
}

.page-user-stories__cta-buttons .page-user-stories__btn:first-child {
  margin-right: 20px;
}

/* Flex Wrapper for Content and Image */
.page-user-stories__flex-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-user-stories__flex-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-user-stories__flex-wrapper .page-user-stories__content {
  flex: 1;
}

.page-user-stories__flex-wrapper .page-user-stories__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-user-stories__img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Story List */
.page-user-stories__story-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-user-stories__story-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-user-stories__story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-user-stories__story-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-user-stories__story-card h3 {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 20px 10px;
}

.page-user-stories__story-card h3 a {
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-user-stories__story-card h3 a:hover {
  color: #FFCC00;
}

.page-user-stories__story-description {
  font-size: 1em;
  color: #555;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-user-stories__story-card .page-user-stories__btn {
  margin: 0 20px 20px;
}

/* Why kv999 Section */
.page-user-stories__why-kv999 h2 {
  margin-bottom: 30px;
}

.page-user-stories__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-user-stories__list li {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333;
  border-left: 5px solid #003366;
}

.page-user-stories__list li strong {
  color: #003366;
}

/* Testimonials */
.page-user-stories__testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-user-stories__testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #FFCC00;
}

.page-user-stories__testimonial-text {
  font-style: italic;
  color: #444;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-user-stories__testimonial-author {
  display: block;
  text-align: right;
  font-weight: bold;
  color: #003366;
}

/* Call to Action */
.page-user-stories__section--cta {
  background: linear-gradient(90deg, #003366, #004d99);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.page-user-stories__cta-content h2 {
  color: #FFCC00;
  margin-bottom: 20px;
}

.page-user-stories__cta-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

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

/* FAQ Section */
.page-user-stories__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-user-stories__faq-question {
  background-color: #003366;
  color: #FFCC00;
  padding: 18px 25px;
  margin: 0;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-user-stories__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-user-stories__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-user-stories__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  color: #444;
  background-color: #fcfcfc;
}

.page-user-stories__faq-answer.active {
  max-height: 300px; /* Adjust as needed */
  padding: 15px 25px 20px;
}

.page-user-stories__faq-answer p {
  margin-bottom: 10px;
}

.page-user-stories__faq-answer strong {
  color: #003366;
}

/* More Stories Section */
.page-user-stories__img--large-footer {
  margin-top: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-user-stories__link {
  color: #003366;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-user-stories__link:hover {
  color: #FFCC00;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-user-stories__hero-title {
    font-size: 2.8em;
  }

  .page-user-stories__hero-description {
    font-size: 1.2em;
  }

  .page-user-stories__section-title {
    font-size: 2em;
  }

  .page-user-stories__flex-wrapper {
    flex-direction: column;
  }

  .page-user-stories__flex-wrapper--reverse {
    flex-direction: column;
  }

  .page-user-stories__flex-wrapper .page-user-stories__content,
  .page-user-stories__flex-wrapper .page-user-stories__image-wrapper {
    flex: none;
    width: 100%;
  }
  .page-user-stories__flex-wrapper .page-user-stories__image-wrapper {
    order: -1; /* Image first on mobile for some sections */
  }
  .page-user-stories__flex-wrapper--reverse .page-user-stories__image-wrapper {
    order: 0; /* Image last on mobile for reverse sections */
  }

  .page-user-stories__story-list {
    grid-template-columns: 1fr;
  }

  .page-user-stories__testimonial-grid {
    grid-template-columns: 1fr;
  }

  .page-user-stories__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-user-stories__cta-buttons .page-user-stories__btn:first-child {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .page-user-stories__hero {
    padding: 80px 0;
  }

  .page-user-stories__hero-title {
    font-size: 2.2em;
  }

  .page-user-stories__hero-description {
    font-size: 1em;
  }

  .page-user-stories__section {
    padding: 40px 0;
  }

  .page-user-stories__section-title {
    font-size: 1.8em;
  }

  .page-user-stories__btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-user-stories__faq-question,
  .page-user-stories__list li {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-user-stories__faq-answer {
    padding: 10px 20px 15px;
  }
}

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

  .page-user-stories__section-title {
    font-size: 1.5em;
  }

  .page-user-stories__container {
    padding: 0 15px;
  }

  .page-user-stories__story-card h3 {
    font-size: 1.3em;
  }

  .page-user-stories__story-description,
  .page-user-stories__testimonial-text,
  .page-user-stories__faq-answer p {
    font-size: 0.95em;
  }
}