/* Success Stories Page Styles - Narrative Design
   Fully responsive for all device sizes */

/* ===== GENERAL SECTION STYLING ===== */
.section-padding {
  padding-top: 70px;
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 100px;
    padding-bottom: 50px;
  }
}

.intro-section {
  position: relative;
  overflow: hidden;
}

.intro-section .content-box p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bg-pattern {
  background-color: var(--background-secondary);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ef721f' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== SUCCESS STORY BLOCK STYLING ===== */
.success-stories-section {
  position: relative;
  padding-top: 30px;
}

.success-story-block {
  position: relative;
  margin-bottom: 40px;
  padding: 10px 0;
  transition: all 0.4s ease;
}

.success-story-block:last-child {
  margin-bottom: 15px;
}

.success-story-block:last-child::after {
  display: none;
}

/* Story Image Styling */
.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  height: 580px;
  transition: all 0.4s ease;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.success-story-block:hover .story-image img {
  transform: scale(1.05);
}

.story-image .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(239, 114, 31, 0.3), transparent);
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.success-story-block:hover .story-image .image-overlay {
  opacity: 0.9;
}

.story-image .region-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: var(--hrv-orange);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Story Content Styling */
.story-content {
  position: relative;
  padding: 20px 15px;
}

@media (min-width: 992px) {
  .story-content {
    padding: 20px 30px;
  }
  
  .alternate .story-content {
    padding-left: 50px;
  }
  
  .success-story-block:not(.alternate) .story-content {
    padding-right: 50px;
  }
}

.gradient-title {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
  display: inline-block;
}

.gradient-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: var(--theme-gradient);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.success-story-block:hover .gradient-title::after {
  width: 120px;
}

.description {
  margin-bottom: 25px;
}

.description p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.description p:last-child {
  margin-bottom: 0;
}

/* Stats Row Styling */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  margin-top: 30px;
}

.stat-item {
  flex: 1;
  min-width: 100px;
  padding: 15px 10px;
  text-align: center;
  border-radius: 10px;
  margin: 0 10px 10px;
  background-color: var(--background-secondary);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== CTA SECTION STYLING ===== */
.cta-section {
  position: relative;
  border-radius: 0;
}

.cta-section h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-section p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1199px) {
  .gradient-title {
    font-size: 28px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .cta-section h2 {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .success-story-block {
    margin-bottom: 60px;
    padding: 30px 0;
  }
  
  .success-story-block::after {
    bottom: -30px;
  }
  
  .story-image {
    margin-bottom: 30px;
    height: 240px;
  }
  
  .story-content {
    padding: 0;
  }
  
  .gradient-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  
  .gradient-title::after {
    bottom: -8px;
    width: 60px;
  }
  
  .success-story-block:hover .gradient-title::after {
    width: 100px;
  }
  
  .description p {
    font-size: 15px;
  }
  
  .stats-row {
    margin-top: 20px;
  }
  
  .stat-item {
    padding: 12px 8px;
  }
  
  .cta-section h2 {
    font-size: 28px;
  }
  
  .cta-section p {
    font-size: 16px;
  }
  
  /* Fix order for mobile devices */
  .alternate .order-lg-1 {
    order: 2;
  }
  
  .alternate .order-lg-2 {
    order: 1;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .page-title {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  
  .success-story-block {
    margin-bottom: 50px;
    padding: 20px 0;
  }
  
  .success-story-block::after {
    bottom: -25px;
    width: 90%;
  }
  
  .story-image {
    height: 340px;
  }
  
  .story-image .region-badge {
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .gradient-title {
    font-size: 24px;
    margin-bottom: 18px;
  }
  
  .description p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .stat-number {
    font-size: 22px;
  }
  
  .stat-text {
    font-size: 13px;
  }
  
  .cta-section h2 {
    font-size: 24px;
  }
  
  .cta-section p {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .success-story-block {
    margin-bottom: 40px;
  }
  
  .gradient-title {
    font-size: 22px;
  }
  
  .stats-row {
    flex-direction: row;
  }
  
  .stat-item {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .sec-title h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  
  .intro-section .content-box p {
    font-size: 15px;
  }
  
  .story-image {
    height: 340px;
  }
}


.creative-intro {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .creative-intro {
    font-size: 18px;
    padding: 0 15px;
    margin-bottom: 30px;
  }
}

/* ===== DARK THEME COMPATIBILITY ===== */
[data-theme="dark"] .success-story-block::after {
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

[data-theme="dark"] .stat-item {
  background-color: var(--background-tertiary);
}

[data-theme="dark"] .story-image {
  box-shadow: var(--shadow-heavy);
}

/* ===== ANIMATION ADJUSTMENTS ===== */
@media (max-width: 767px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}