.delivery {
    display: flex;
    flex-direction: column;
}

.delivery_card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.delivery_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.delivery_card:nth-child(even) {
    flex-direction: row-reverse;
}

.delivery_card img {
    width: 40%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.delivery_card .text {
    width: 55%;
    padding: 0 20px;
}

.delivery_card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.delivery_card p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.delivery_card a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.2s;
}

.delivery_card a:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

@media (max-width: 992px) {
    .delivery_card {
        flex-direction: column !important;
        text-align: center;
        padding: 30px 20px;
    }
    
    .delivery_card:nth-child(even) {
        flex-direction: column !important;
    }

    .delivery_card img {
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .delivery_card .text {
        width: 100%;
        padding: 0;
    }
    
    .delivery_card h3 {
        font-size: 20px;
    }
}