.stacking-cards-section {
    padding: 40px 15px 80px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title-center {
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    color: #000;
}

.stack-card {
    position: sticky;
    top: 80px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 520px !important;
    background-color: #fff;
}

.stack-card:nth-of-type(1) {
    top: 80px;
}

.stack-card:nth-of-type(2) {
    top: 100px;
}

.stack-card:nth-of-type(3) {
    top: 120px;
}

.stack-card:nth-of-type(4) {
    top: 140px;
}

.stack-card:nth-of-type(5) {
    top: 160px;
}

.stack-card:nth-of-type(6) {
    top: 180px;
}

.card-blue {
    background-color: #4e81bb;
    color: #fff;
}

.card-yellow {
    background-color: #f3debb;
    color: #000;
}

.card-blue {
    background-color: #4e81bb;
    color: #fff;
}

.card-yellow {
    background-color: #f3debb;
    color: #000;
}

.card-header-text {
    padding: 30px 20px 10px 20px;
    text-align: center;
    flex-shrink: 0;
    height: 130px;
}

.card-yellow .brand-pill {
    color: #000;
}

.card-header-text h3 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.card-header-text p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    font-weight: 500;
}

.card-image-box {
    width: 100%;
    height: 390px;
    padding: 15px;
    box-sizing: border-box;
    display: block;
    flex: unset;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
}

@media (max-width: 700px) {
    .stacking-cards-section {
        padding: 0 15px 30px 15px;
    }

    .section-title-center {
        font-size: 26px;
        margin-bottom: 0;
    }

    .stack-card {
        height: 450px;
        top: 60px;
    }

    .card-header-text h3 {
        font-size: 22px;
    }

    .card-header-text p {
        font-size: 16px;
    }

    .card-image-box {
        margin-top: 0;
    }
}