/* Short Code Css  */

.nbp-project-container {
    margin-bottom: 20px;
    padding: 10px 10px;
    border-radius: 15px;
    border: 1px solid #4646463d;
    margin-left: 2rem;
    margin-right: 2rem;
    background-color: #ffffff;
}

.nbp-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    margin-left: 1rem;
}

.nbp-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px;
    width: 95%;
    /* margin: auto; */
    margin-top: 10px;
}

.nbp-carousel::-webkit-scrollbar {
    display: none;
}

.nbp-card {
    width: 100%;
    max-width: 400px;
    min-width: 280px;
    display: block;
    overflow: visible;
    border-radius: 16px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.nbp-card:hover {
    box-shadow: 0px 4px 12px #00000040;
}

.nbp-img-container {
    height: 320px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #f2f2f2;
    position: relative;
}

.nbp-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.nbp-card:hover .nbp-img {
    transform: scale(1.03);
}

.nbp-card_content {
    position: absolute;
    left: 0px;
    top: 160px;
    padding: 14px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.nbp_price_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #787878;
    padding-bottom: 6px;
}

.nbp-card_title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333333;
}

.nbp-card_location {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbp-card_price {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.nbp_btn {
    background-color: #D31831;
    border: 1px solid #D31831;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 420px) {

    .nbp-carousel {
        width: 100%;
        margin: 10px 0 0 0;
        padding-bottom: 10px;
    }

    .nbp-project-container {
        margin: 10px 0;
        padding: 15px 0px 10px 10px;
    }

    .nbp-title {
        margin-left: 0px;
    }

    .nbp-card {
        min-width: 250px;
    }
}