/* Success Stories Section */
.success-stories-section {
  padding: 80px 0;
  background: #ffffff;
  overflow: hidden;
}
.container{
  max-width: calc(100% - 40px) ;
  margin: 0 auto ;

}
.news-cta{
  color: #ff6b35;
}
.container.success-stories{
  max-width: calc(100% - 40px)  !important;
  margin: 0 auto  !important;

}
.container.tab{
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;

}
.success-stories-content {
  display: flex;
  align-items: stretch;
  overflow: hidden;;
  padding: 0 20px;
}

/* Left Panel - Section Info */
.success-stories-info {
  flex: 0 0 33.333%;
  padding: 0px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;}

.success-stories-info .section-title {
  border:none !important;
  color: #2c3e50;
  margin-bottom: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;            /* 32px = 2rem (với base 16px) */
  line-height: 1.5;           /* 150% = 1.5 */
  letter-spacing: 0rem;       /* 0% = 0rem, có thể bỏ nếu là mặc định */
  text-align: left;

}

.success-stories-info .section-description {
  margin-bottom: 35px;
}

.success-stories-info .section-description p {

  color: #5a6c7d;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: justify;

}

.success-stories-info .section-cta {
  margin-top: 30px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  border: none;
  cursor: pointer;
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background: linear-gradient(45deg, #f7931e, #ff6b35);
}

.view-all-btn::after {
  content: "→";
  transition: transform 0.3s ease;
}

.view-all-btn:hover::after {
  transform: translateX(5px);
}

/* Right Panel - Stories Slider */
.success-stories-slider {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0px 40px;
  justify-content: center;
  flex-direction: column;
}
.stories-prev{
  margin-left: -100px;
}
.stories-next{
  margin-right: -50px;
}
.stories-slider-wrapper {

  width: 100%;
  position: relative;
  overflow: visible;
  max-width: 600px;
}

.stories-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.stories-track {
  display: flex;
  gap: 20px;
  width: fit-content;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-card {
  flex: 0 0 calc(50% - 10px);
  width: 280px; /* Fixed width */
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f8f9fa;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #bdc3c7;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.story-content {
  padding: 25px;
}
.story-content.success {
  padding: 25px !important;
  display: block !important;
}

.story-title.success {
  color: #2c3e50;
  margin-bottom: 15px;
  display: -webkit-box;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;      /* 12px = 0.75rem */
  line-height: 1.5;        /* 150% = 1.5 */
  letter-spacing: 0rem;    /* 0% = 0rem (có thể bỏ nếu không cần) */

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.container.success{
  width: 100%;
  max-width: calc(100% - 40px);
}
.section-title.success {
  font-family: 'Montserrat' !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;       /* 24px */
  line-height: 1.2 !important;
  border: none !important;/* 120% */
  letter-spacing: 0 !important;       /* 0% = 0em/rem */
  text-align: center !important;
  color: #6D6C7B !important;
}

.story-description.success{
  margin-bottom: 20px;
}

.story-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #7f8c8d;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-actions {
  margin-top: 20px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.read-more-btn:hover {
  color: #e55a2b;
  border-bottom-color: #e55a2b;
  transform: translateX(3px);
}

.read-more-btn svg {
  transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
  transform: translateX(3px);
}

/* Navigation Arrows */
.stories-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.stories-nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  pointer-events: all;
  transform: translateX(0);
}

.stories-prev {
  transform: translateX(-25px);
}

.stories-next {
  transform: translateX(25px);
}

.stories-nav-arrow:hover {
  background: #ff6b35;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.stories-prev:hover {
  transform: translateX(-25px) scale(1.1);
}

.stories-next:hover {
  transform: translateX(25px) scale(1.1);
}

.stories-nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateX(0);
}

.stories-nav-arrow:disabled:hover {
  background: white;
  color: #2c3e50;
  transform: translateX(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stories-nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.stories-nav-arrow.disabled:hover {
  background: white;
  color: #2c3e50;
  transform: translateX(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .success-stories-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .success-stories-info {
    text-align: center;
    padding-right: 0;
  }

  .success-stories-info .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .success-stories-section {
    padding: 60px 0;
  }

  .success-stories-content {
    padding: 0 15px;
  }

  .success-stories-info .section-title {
    font-size: 1.8rem;
  }

  .success-stories-info .section-description p {
    font-size: 1rem;
  }

  .story-card {
    flex: 0 0 100%;
  }

  .stories-nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stories-prev {
    transform: translateX(-10px);
  }

  .stories-next {
    transform: translateX(10px);
  }

  .story-card {
    width: calc(100vw - 60px); /* Full width minus padding on mobile */
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .story-image {
    height: 150px;
  }

  .story-content {
    padding: 20px;
  }

  .story-title {
    font-size: 1.1rem;
  }

  .view-all-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Loading Animation */
.success-stories-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.stories-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: storiesSpinLoading 1s linear infinite;
}

@keyframes storiesSpinLoading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility */
.stories-nav-arrow:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

.read-more-btn:focus,
.view-all-btn:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .success-stories-section {
    background: white;
    padding: 20px 0;
  }

  .stories-navigation {
    display: none;
  }

  .success-stories-content {
    grid-template-columns: 1fr;
  }

  .story-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
