/* ── Main Container ───────────────────────────────────────── */
.stacking-services-container-af914401 {
    position: relative;
    width: 100%;
}

/* ── Sticky Card ──────────────────────────────────────────── */
.st-card {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    /* Calculate height to fill viewport but allow header offsets in Elementor if needed. 
       We use 100vh for a full immersive effect. */
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    background-color: #f8f5ee;
}

/* Add shadow to top of card so it looks like it's sliding over the previous one */
.st-card.has-shadow {
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
}

/* ── Alternating Layout ───────────────────────────────────── */
/* Even items: image on right, text on left */
.st-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* ── Split Halves ─────────────────────────────────────────── */
.st-image, .st-content {
    flex: 1;
    width: 50%;
    height: 100%;
}

/* Image styling */
.st-image {
    position: relative;
}
.st-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Content styling */
.st-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10%;
    box-sizing: border-box;
}

.st-content-inner {
    max-width: 500px;
    width: 100%;
}

.st-subtitle {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.st-title {
    font-size: 52px;
    font-weight: 400;
    margin: 0 0 30px 0;
    line-height: 1.1;
}

.st-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 300;
}

/* ── Details Table ────────────────────────────────────────── */
.st-details {
    display: flex;
    flex-direction: column;
}

.st-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
}
.st-detail-row:last-child {
    border-bottom: none;
}

.st-detail-label {
    font-weight: 600;
}

.st-detail-value {
    font-weight: 300;
    text-align: right;
}

/* ── Responsive ───────────────────────────────────────────── */
@media screen and (max-width: 992px) {
    .st-title { font-size: 40px; }
    .st-subtitle { font-size: 22px; }
}

@media screen and (max-width: 768px) {
    /* Stack vertically on mobile, remove row-reverse alternating */
    .st-card, .st-card:nth-child(even) {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .st-image, .st-content {
        width: 100%;
        flex: none;
    }
    
    .st-image {
        height: 50vh;
    }
    
    .st-content {
        padding: 40px 20px;
        min-height: 50vh;
    }
    
    .st-title { font-size: 32px; }
    .st-subtitle { font-size: 18px; }
}
