/* General styling for all cards */
.sostc {
    display: flex;
    flex-wrap: wrap; /* Ensures proper layout on smaller screens */
    gap: 16px; /* Adds some spacing between elements */
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    color: #111;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.sostc * {
    box-sizing: border-box;
}

.sostc .sostc-content h3 {
    font-size: 24px;
    color: #111;
}

.sostc .sostc-content p {
    color: #111;
    font-size: 16px;
}

/* Default sostc-card layout (image on top, content below) */
.sostc-card {
    display: block;
}

.sostc-card .sostc-image img {
    width: 100%; /* Ensure the image spans the container */
    height: auto;
}

.sostc-card .sostc-content {
    margin-top: 16px;
    padding: 16px;
    text-align: center;
}

/* sostc-left layout (image left, content right) */
.sostc-left {
    flex-direction: row; /* Align items horizontally */
    align-items: center;
}

.sostc-left .sostc-image {
    flex: 1 1 33.33%; /* 1/3 of the width */
    flex-grow: 0;
}

.sostc-left .sostc-content {
    flex: 2 1 calc(66.67% - 16px); /* 2/3 of the width */
    flex-grow: 0;
    padding: 16px;
}

/* sostc-right layout (content first, image second) */
.sostc-right {
    flex-direction: row-reverse; /* Reverse the order of items */
    align-items: center;
}

.sostc-right .sostc-image {
    flex: 1 1 33.33%; /* 1/3 of the width */
    flex-grow: 0;
}

.sostc-right .sostc-content {
    flex: 2 1 calc(66.67% - 16px); /* 2/3 of the width */
    flex-grow: 0;
    padding: 16px;
}

/* General styling for images */
.sostc-left .sostc-image img,
.sostc-right .sostc-image img {
    display: block;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

@media (max-width: 768px) {
    .sostc-left, .sostc-right {
        display: block;
    }

    .sostc-image img {
        width: 100%; /* Ensure the image spans the container */
        height: auto;
    }

    .sostc-left .sostc-content, .sostc-right .sostc-content {
        margin-top: 16px;
        padding: 16px;
        text-align: center;
    }
}