  /* Card Left Overlay Right Text - Unique styling to avoid conflicts */
.card-lort-container {
    width: 100%;
    /* min-height: 384px; */
    padding-bottom: 96px;
}
.card-lort-content{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden; /* Guardrail: Contain overflow */
    flex-direction: column;
}

.card-lort-left {
    position: relative;
    max-width: 964px;
    /* min-height: 341px; */
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 94px auto 6px;
    text-align: center;
}
@media (min-width: 1024px) and (max-width: 1280px) {
    .card-lort-left, .card-lort-right {
        flex:1 !important;
    }
}
.card-lort-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(13, 13, 13, 1); */
    opacity: 0.52;
    z-index: 1;
}

.card-lort-subtitle {
    position: relative;
    z-index: 2;
    /* color: rgba(255, 255, 255, 1); */
    font-family: var(--font-family-medium);
    font-size: 34px;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 25px;
    line-height: 47px;
}

.card-lort-title {
    position: relative;
    z-index: 2;
    display: inline;
    font-family: var(--font-family-bold);
    font-size: 34px;
    font-weight: 700;
    font-style: normal;
    margin-top: 0;
    line-height: 1.2;
}

.card-lort-right {
    background-color: white;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 1;
    text-align: center;
    max-width: 890px;
    margin: auto;
}

.card-lort-description {
    color: rgba(0, 0, 0, 1);
    font-family: var(--font-family-medium);
    font-size: 15px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.6;
}

.card-lort-description p {
    margin-bottom: 28px;
}

.card-lort-description p:last-child {
    margin-bottom: 0;
}

/* Responsive design - stack columns on tablet and below */
@media (max-width: 1023px) {
    .card-lort-container {
        flex-direction: column;
    }
    .card-lort-content{
        display: flex;
        flex-direction: column;
    }
    .card-lort-left {
        min-width: auto;
        width: 548px !important;
        min-height: auto;
        margin: 57px auto 0 auto;
    }
    .card-lort-title{
        margin-top: 2px !important;
    }
    .card-lort-right {
        padding: 34px 0 32px 0 !important;
        min-height: auto;
        width: 600px !important;
    }
    .card-lort-description p {
        line-height: 25px !important;
    }
    .card-lort-subtitle, .card-lort-description p{
        text-align: center;
    }
    .card-lort-subtitle {
        font-size: 30px !important;
    }
    .card-lort-container{
        padding-bottom: 42px !important;
    }
    .card-lort-title{
        font-size: 28px !important;
    }
}

@media (max-width: 877px) {
    .card-lort-left {
        padding: 0;
        min-height: 300px;
        margin-top: 61px;
        margin-bottom: 2px !important;
    }
    
    .card-lort-subtitle,
    .card-lort-title {
        font-size: 24px !important;
        line-height: 32px !important;
        margin: 0 !important;
    }
        .card-lort-right {
            max-width: 600px !important;
        margin: 0 !important;
        width: 100% !important;
        }
    .card-lort-description {
        font-size: 14px !important;
    }
    .card-lort-description p{
        margin-bottom: 26px !important;
        font-size: 15px !important;
        line-height: 25px !important;
    }
    .card-lort-container{
        padding-bottom: 5px !important;
    }
    .card-lort-container{
        max-width: 332px !important;
        margin: 0 auto !important;
    }
}

/* Center container with white background on extra-large screens */
@media (min-width: 1418px) {
    .card-lort-container {
        /* background-color: black; */
    }
    .card-lort-content{
        max-width: 1418px;
        display: flex;
        flex-direction: column;
        margin: 0 auto;
    }
}

