/* body{
    background-color: aqua;
} */

.main-body {
     /*height: 80vh; */
    /* background-image: url('/images/nature.jpg'); */
    background-color: aliceblue;
    background-size: cover;
    /* Cover the entire element */
    background-repeat: no-repeat;
    /* Prevent the image from repeating */
    /* background-position: center center;  */
    display: flex;

}
.content-div{
    /* color: white; */
    
    /* width: 53%; */
    margin: 12rem 2rem 2rem 2rem;
}
.content-div h1{
    font-size: 2rem;
    font-weight: 400;
}
.content-div h3,h5{
    font-size: 17px;
    font-weight: 400;
}
.content-div p{
    font-size: 0.8rem;
    font-family:'Nunito', sans-serif;
    text-align:justify;
}

.img-div {
    display: flex;
    width: 47%;
    /* margin-left: 55%; */
}

.card {
    position: relative;
    width: 250px;
    height: 300px;
    margin: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    /* Optional: To prevent overflow of the card content */
    transition: transform 0.3s;
    /* Smooth transition for hover effect */
}

.card:hover {
    transform: scale(1.05);
    /* Slightly scale up the card on hover */
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the card without stretching */
    border-radius: 10px;
    /* Match the border radius of the card */
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; /* Prevent text from being selected */
    transform: translateY(100%); /* Start from bottom */
}

.card:hover .card-body {
    opacity: 1; /* Show the content on hover */
    transform: translateY(0); /* Move to cover the image */
}

.card-body h3,
.card-body p {
    margin: 5px 0; /* Optional: Add some margin between the elements */
}