.habits {
    padding: 1rem 4vw;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.habits-content {
    margin-bottom: 2rem;
    flex: 1;
    max-width: 500px;
}

.habits-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #b71c1c;
}

.habits-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.habits-images {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    position: absolute;
    height: auto;
    
}

.habits-img-card {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
}

.habits-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.habits-img-card:hover img {
    transform: scale(1.05);
}

.habits-banner {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(183, 28, 28, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: rotate(5deg);
    z-index: 2;
}

/* Mobile Styles */
@media screen and (max-width: 900px) {
    .habits {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .habits-content {
        text-align: center;
        padding: 0;
        width: 100%;
    }

    .habits-images {
        padding: 0;
        width: 100%;
    }

    .habits-img-card {
        height: 400px;
    }

    .habits-banner {
        top: 15px;
        right: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 390px) {
    .habits {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }

    .habits-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .habits-content p {
        margin-bottom: 1.5rem;
    }

    .habits-img-card {
        height: 300px;
    }
}
