.stacked-case-studies {
  max-width: 800px; /* Limits the text width so it's easy to read */
  margin: 0 auto;   /* Centers the whole list on the screen */
  padding: 20px;
}

.case-row {
  margin-bottom: 10px;
}

.case-title {
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(90deg, #0B3C5D 0%, #328CC1 100%);
  color: #F1F1F2; 
  padding: 12px 20px;       
  
  /* 1. Change this to 0 to remove the whitespace below the title */
  margin-bottom: 0;      
  
  /* 2. Flatten only the bottom corners so it sits flush against the image */
  border-radius: 6px 6px 0 0;       
  
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
}

.case-img-full {
  width: 100%;        
  height: auto;       
  
  /* 3. Ensure there is absolutely no margin pushing it away from the title */
  margin-top: 0;      
  margin-bottom: 15px; /* Keeps the spacing below the image for the description text */
  
  /* 4. Round only the bottom corners of the image */
  border-radius: 0 0 8px 8px; 
  
  box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
}
/* The "..." Clamping Logic */
.case-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.case-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Limits to exactly part of the first line */
  -webkit-box-orient: vertical;
  overflow: hidden;      /* Automatically adds the "..." */
}
.desc-label {
  font-weight: 800;        /* Makes the text extra bold */
  font-size: 18px;         /* Bumps it up (the rest of the text is 16px) */
  color: #0B3C5D;          /* Optional: Matches your dark blue theme color to make it pop! */
  margin-right: 5px;       /* Adds a tiny bit of breathing room before the normal text starts */
}

.read-more-btn {
  background: none;
  border: none;
  color: #0066cc;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

/* A clean, subtle dividing line between your cases */
.case-separator {
  border: 0;
  border-top: 1px solid #ebeeef;
  margin: 15px 0 20px 0;
}
