.before-after-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.before-after-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef2f5; /* light border for every details */
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.images-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.image-col {
    flex: 1 1 50%; /* 50-50 column format */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.before-after-label {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.before-after-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e6e9ec;
    background: #f8f9fb;
}
.before-after-details {
    width: 100%;
    border-top: 1px solid #f0f2f4;
    padding: 0.75rem 1rem;
    background: #fbfdff;
    border-radius: 0 0 6px 6px;
    text-align: center; /* center heading and description */
}
.details-heading {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255,249,230,1) 0%, rgba(255,243,224,1) 100%);
    padding: 6px 10px;
    border-radius: 4px;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #333;
}
.details-body {
    padding: 0.5rem 0;
    color: #444;
    line-height: 1.45;
    max-width: 900px; /* optional: limit width for better readability */
    margin: 0.25rem auto 0 auto; /* center the body text block */
}
/* Responsive tweaks */
@media (max-width: 768px) {
    .images-row { flex-direction: column; }
    .before-after-img { height: 220px; }
}
