.waqf__section {
    padding: 4rem  0;
    background-color: #F6F5F2;
    direction: rtl;
    position: relative;
}
.waqf_container{
    padding: 0 5rem;
}
.waqf__text{
    position:relative;
}
.waqf__text:before{
    position: absolute;
    content:"";
    top:10%;
    left:0;
    width: 1px;
    height: 80%;
    background-image: linear-gradient(to bottom, #000 30%, transparent 30%, transparent 70%, #000 70%);
    background-size: 1px 16px;
    background-repeat: repeat-y;
}
.waqf__text h3 {
     line-height: 45px;
}

.waqf__text p {
    margin-top: 15px;
    line-height: 40px;
    text-align: justify;
    max-width: 90%;
}

.btn-gray {
    background-color: #fff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.7rem;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 20px #00000017;
}

.btn-gray:hover {
    background-color: #d3d3d3;
    transform: translateY(-2px);
}

.waqf__divider {
   
    position: relative;
}

.decor-top,
.decor-bottom {
    position: absolute;
    width: 8px;
    height: 90px;
    background-color: #000;
    right: -20px;
    top: 10%;
}

.decor-top {
    top: 0;
}

.decor-bottom {
    bottom: 0;
    left: 0;
    right: auto;
}

.properties_container {
    margin-top: 50px;
}

.waqf__card {
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 0 0.4rem;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.4s;
}

.card-image:hover {
    filter: brightness(1.05);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    color: #fff;
    padding: 20px 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    transition: 0.3s;
}

.overlay h4 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 6px;
    /*max-width: 100px;*/
    padding-bottom: 1rem;
}

.overlay p {
    font-size: 2rem;
    color: #fff;
    font-weight: normal;
    border-top: 1px solid #fff;
    padding-top: 1rem;
}
/*.overlay-bottom  .overlay{*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), #F6F5F2);*/
/*    padding: 20px;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: flex-end;*/
/*    color: #fff;*/
/*    text-align: right;*/
/*}*/


/* ===== Responsive ===== */
@media (max-width: 991px) {
    .waqf__text {
        text-align: center;
    }

    .btn-gray {
        margin-top: 15px;
    }

    .waqf__divider {
        height: 1px;
        width: 60%;
        margin: 40px auto;
        background-size: 16px 1px;
        background-image: linear-gradient(to right, #000 30%, transparent 30%, transparent 70%, #000 70%);
    }

    .decor-top,
    .decor-bottom {
        display: none;
    }

    .properties-slider .waqf__card {
        height: 300px;
    }
}

@media(max-width:768px) {
    .waqf__card {
        height: 250px;
    }
    .waqf__text p {
    line-height: 30px;
    max-width: 90%;
}
    .properties-slider .waqf__card {
        height: 250px;
    }
.waqf__text h3 {
    line-height: 25px;
}
    .overlay h4 {
        font-size: 18px;
    }

    .overlay p {
        font-size: 13px;
    }
}
