.conditions-top {
    background-image: url(/wp-content/themes/nydnr/assets/images/condition-new/rehab-conditions.jpg);
    height: 645px;
    background-repeat: no-repeat;
    background-size: cover;
}
.conditions-top-title span {
    display: block;
    text-align: center;
    color: #fff;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    /*font-family: 'Roboto';*/
    /*font-size: 250px;*/
    font-size: 70px;
    font-weight: 400;
    /*padding-top: 185px;*/
    padding-top: 25%;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 5px;
}
.conditions-center-text {
    padding-top: 50px;
    padding-bottom: 95px;
}
.conditions-center-text span {
    color: #009be6;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 60px;
    font-weight: 300;
}
.conditions-center-text h2 {
    color: #009be6;
    font-size: 112px;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-weight: 700;
    margin-top: 0;
    line-height: 85px;
    padding-bottom: 40px;
}
.conditions-center-text p {
    color: #585858;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 36px;
    line-height:44px;
    font-weight: 400;
}
.conditions-about {
    background-image: url("/wp-content/themes/nydnr/assets/images/condition-new/conditions-about.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 688px;
    position: relative;
    margin-bottom:80px;
}
.conditions-about-caption {
    position: absolute;
    left:0;
    bottom:0;
    width:100%;
    background-color: #009be6;
    padding: 25px 0;
}
.conditions-about-caption span {
    color: #fff;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 59px;
    line-height:70px;
    font-weight: 700;
}
.conditions-txt {
    color: #000000;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    padding-bottom:20px;
}
.conditions-txt a {
    color: #007aff;
}
.st-head {
    position: relative;
    margin-bottom:15px;
    margin-top:60px;
}
.st-head:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 1px;
    background-color: #ff2d55;
    bottom: -10px;
    left:50%;
    margin-left:-150px;
}
.conditions-big-text {
    border-radius: 29px;
    background-color: #007aff;
    padding: 12px 30px;
    color: #fff;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 24px;
    display: inline-block;
    margin-top:45px;
    font-weight: 700;
}
.conditions-small-text {
    margin-top:25px;
}
.conditions-small-text li {
    display: inline-block;
    vertical-align: top;
    margin-bottom:12px;
    margin-left:10px;
}
.conditions-small-text li a {
    padding: 10px 20px;
    background-color: #eee;
    display: block;
    border-radius: 20px;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 18px;
    color: #007aff;
    text-decoration: none;
    transition: all .3s ease-out;
}
.conditions-small-text li a:hover {
    color: #fff;
    background-color: #007aff;
}

.conditions_content {
    padding: 95px 0 0;
}
.conditions_content p {
    color: #000;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 25px;
    text-align: justify;
}
.conditions_content p a {
    color: #007aff;
    text-decoration: none;
}
.conditions_content p a:hover {
    text-decoration: underline;
}
.conditions_content .wrap_text p:last-child {
    margin-bottom: 0;
}
.conditions_content .wrap_text {
    margin-bottom: 100px;
}
.conditions_content h2 {
    color: #000;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 65px;
    padding-bottom: 10px;
    position: relative;
    text-align: center;
}
.conditions_content h2::before {
    position: absolute;
    content: '';
    max-width: 300px;
    width: 100%;
    height: 1px;
    background-color: #ff2d55;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 0;
}

.listing_conditions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
}
.listing_conditions_item {
    width: 32%;
    margin: 0 0 17px;
    box-sizing: border-box;
    position: relative;
    height: 459px;
}
.listing_conditions_item:nth-child(3n+2) {
    margin: 0 2% 17px;
}
.listing_conditions_item:hover .conditions_item_wrapper {
    z-index: 100;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
    width: calc(100% + 12px);
    left: -6px;
}
.conditions_item_wrapper {
    left: 0;
    right: 0;
    position: absolute;
    top: 0;
    min-height: 459px;
    border: 1px solid #adadad;
    background-color: #fff;
    box-sizing: border-box;
    z-index: 99;
}
.conditions_item_wrapper .wrap_img {
    width: calc( 100% + 2px);
    overflow: hidden;
    position: relative;
    left: -1px;
    top: -1px;
    max-height: 225px;
}
.conditions_item_wrapper .wrap_img a {
    display: block;
    text-decoration: none;
    height: 100%;
}
.conditions_item_wrapper .wrap_img a img {
    max-width: 100%;
    display: block;
    width: 100%;
    margin: auto;
    height: 100%;
    object-fit: cover;
}
.conditions_item_wrapper .wrap_descr {
    padding: 40px 12px 20px;
    position: relative;
}
.conditions_item_wrapper .wrap_descr::before {
    width: 100%;
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    right: 0;
    height: 142px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
    -webkit-background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
    -moz-background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
    -o-background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 100%);
}
.listing_conditions_item:hover .conditions_item_wrapper .wrap_descr::before {
    opacity: 0;
    visibility: hidden;
}
.conditions_item_wrapper .wrap_descr .title_block {
    text-align: center;
    display: block;
    color: #000;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 25px;
   /* pointer-events: none;*/
}
.conditions_item_wrapper .wrap_descr .title_block:hover {
    text-decoration: none;
}
.conditions_item_wrapper .wrap_descr ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 122px;
    overflow: hidden;
}
.conditions_item_wrapper .wrap_descr ul li {
    list-style-type: none;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-left: 0;
    font-size: 18px;
    color: #000;
    font-family: 'Segoe UI', 'Tajawal', sans-serif;
    font-weight: 400;
}
.conditions_item_wrapper .wrap_descr ul li:last-child {
    margin-bottom: 0;
}
.conditions_item_wrapper .wrap_descr ul li a {
    color: #000;
    text-decoration: none;
}
.conditions_item_wrapper .wrap_descr ul li a:hover {
    text-decoration: underline;
}
.listing_conditions_item:hover .conditions_item_wrapper .wrap_descr ul {
    max-height: 100%;
    overflow: visible;
}




@media (max-width: 992px) {
    .conditions-top-title span {
        /*font-size:110px;*/
        font-size: 40px;
    }
    .conditions-top {
        height: 500px;
    }
    .listing_conditions_item {
        width: 48%;
    }
    .listing_conditions_item:nth-child(3n+2) {
        margin: 0 0 17px;
    }
    .listing_conditions {
        justify-content: space-between;
    }
    .conditions_content .wrap_text {
        margin-bottom: 50px;
    }
    .conditions_content {
        padding-top: 50px;
    }
    .conditions_item_wrapper .wrap_descr .title_block {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .conditions_item_wrapper .wrap_descr {
        padding: 20px 12px;
    }
    .conditions_item_wrapper .wrap_descr ul li {
        margin-bottom: 10px;
    }
    .listing_conditions_item {
        height: 450px;
    }
    .conditions_item_wrapper {
        min-height: 450px;
    }
}
@media (max-width: 767px) {
    .conditions-top {
        height: 370px;
    }
    .conditions-top-title span {
        /*font-size: 70px;*/
        /*padding-top: 145px;*/
     }
    .conditions-center-text span {
        font-size:33px;
    }
    .conditions-center-text h2 {
        font-size: 60px;
        line-height: 75px;
        padding-bottom: 10px;
    }
    .conditions-center-text p {
        font-size: 24px;
        line-height: 33px;
    }
    .conditions-about {
        height: 550px;
    }
    .conditions-about-caption span {
        font-size: 33px;
        line-height: 44px;
    }
    .conditions-big-text {
        font-size:20px;
    }
    .conditions_content p {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    .conditions_content h2 {
        font-size: 22px;
        margin-bottom: 40px;
    }
    .conditions_item_wrapper .wrap_descr ul li {
        font-size: 16px;
    }
    .conditions_item_wrapper .wrap_descr ul {
        max-height: 83px;
    }
    .listing_conditions_item {
        height: 400px;
    }
    .conditions_item_wrapper {
        min-height: 400px;
    }

}
@media (max-width: 600px) {
    .listing_conditions_item {
        height: 360px;
    }
    .conditions_item_wrapper {
        min-height: 360px;
    }
    .conditions-top-title span {
        padding-top: 25%;
    }
}
@media (max-width: 480px) {
    .listing_conditions_item {
        height: auto;
    }
    .listing_conditions_item:hover .conditions_item_wrapper {
        height: auto;
    }
    .conditions_item_wrapper {
        min-height: auto;
    }
    .listing_conditions_item {
        width: 100%;
    }
    .listing_conditions_item:hover .conditions_item_wrapper {
        width: 100%;
        left: 0;
    }
    .conditions_item_wrapper {
        position: relative;
    }
    .conditions_item_wrapper .wrap_descr ul {
        max-height: 100%;
    }
    .conditions_item_wrapper .wrap_descr:before {
        display: none;
    }
    .listing_conditions_item {
        margin-bottom: 15px;
    }
    .listing_conditions_item:last-child {
        margin-bottom: 0;
    }
    .conditions-top-title span {
        padding-top: 35%;
    }
}