.success-stories-wrapper {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.success-stories-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0078d7;
}

#successStoriesContainer {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.story-body{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}

.story-title{
  font-size:16px;
  font-weight:700;
  color:black;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.story-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 2px;
  max-width: 820px;
  margin: 0 auto;
  border: solid 0.5px #E5E5E5;
}

.story-content {
  flex: 1;
  margin-top:0;
  padding-top:0;
}

.story-content h3 {
  font-size: 12px !important;
  color: black;
  font-weight: 700 !important;
}

.story-content p{
  margin-top:0 !important;
  font-size:13px;
  line-height:1.3;
  color:black;
}

.story-content a {
  font-size: 15px;
  color: #0a8f86;
  text-decoration: none;
  font-weight: 500;
}

.story-content a:hover {
  text-decoration: underline;
}

.story-image {
  width: 220px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center; 
  
}

.story-image img {
  width: 200px;
  height: 200px;
  object-fit: contain; 
}

@media (max-width: 768px) {

  .story-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .story-body{
    flex-direction:column;
  }

  .story-image {
    width: 100%;
    height:auto;

  }

  .story-image img{
    width:100%;
    height:auto;
    object-fit:cover;
    display:block;
  }

  .story-content{
    order:2;
    text-align:left;
  }

  .story-image{
    order:1;
  }

}

button:hover{
  background:#0a8f86;
  color:white;
}