.Explore_Hostels {
    margin: 50px 0 40px;
}

.Explore_Hostels .common_title .common_main_title::after {
    content: none;
}

.Explore_Hostels .hostel_grid .hostel_card .card_img_div {
    overflow: hidden;
    border-radius: 14px;
    height: 350px;
    aspect-ratio: 1/0;
}

.Explore_Hostels .hostel_grid .hostel_card .card_img_div .card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.Explore_Hostels .hostel_grid .hostel_card .hostel_content {
    position: relative;
    text-align: center;
    padding: 25px 80px 0;
    height: 100%;
    margin-top: -10px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* Keep content above background */
.Explore_Hostels .hostel_grid .hostel_card .hostel_content * {
    position: relative;
    z-index: 1;
}

/* Background layer */
.Explore_Hostels .hostel_grid .hostel_card .hostel_content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #EEEFFF;
    border-radius: 0 0 10px 10px;
    transition: transform 0.3s ease;
    z-index: -1;
}

.Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_title {
    font-size: 26px;
    font-weight: 600;
    color: #202020;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_desc {
    font-size: 16px;
    font-weight: 400;
    color: #202020;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Explore_Hostels .hostel_grid .hostel_card .hostel_content .view_btn {
    font-size: 14px;
    font-weight: 500;
    color: #153B89;
    transition: all 0.3s;
}

/* Hover effect */
.Explore_Hostels .hostel_grid .hostel_card:hover .hostel_content::before {
    transform: translateY(-100%);
}

.Explore_Hostels .hostel_grid .hostel_card:hover .card_img {
    transform: scale(1.1);
}

.Explore_Hostels .hostel_grid .hostel_card:hover .hostel_content {
    background: transparent;
}

.Explore_Hostels .hostel_grid .hostel_card:hover .view_btn {
    background: #202020;
    padding: 6px 15px;
    color: #fff;
    border-radius: 5px 5px 0px 0px;
    cursor: pointer;
}


/* ==================== Media Queries =================== */

@media (min-width:0px) and (max-width:767px) {
    .Explore_Hostels .hostel_grid .hostel_card .hostel_content {
        padding: 25px 25px 0;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_title {
        font-size: 18px;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_desc {
        font-size: 14px;
    }

    .Explore_Hostels {
        margin: 0;
    }

    .Explore_Hostels .hostel_grid .hostel_card .card_img_div {
        height: 260PX;
    }
}

@media (min-width:575px) and (max-width:767px) {
    .Explore_Hostels .hostel_grid .hostel_card .hostel_content {
        padding: 25px 25px 0;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_title {
        font-size: 18px;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_desc {
        font-size: 14px;
    }
}

@media (min-width:768px) and (max-width:991px) {
    .Explore_Hostels .hostel_grid .hostel_card .hostel_content {
        padding: 25px 25px 0;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_title {
        font-size: 20px;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_desc {
        font-size: 14px;
    }
}

@media (min-width:992px) and (max-width:1199px) {
    .Explore_Hostels .hostel_grid .hostel_card .hostel_content {
        padding: 25px 29px 0;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_title {
        font-size: 24px;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_desc {
        font-size: 15px;
    }
}

@media (min-width:1200px) and (max-width:1399px) {
    .Explore_Hostels .hostel_grid .hostel_card .hostel_content {
        padding: 25px 50px 0;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_title {
        font-size: 24px;
    }

    .Explore_Hostels .hostel_grid .hostel_card .hostel_content .card_desc {
        font-size: 15px;
    }
}