.container1 {
    position: relative;
    text-align: center;
    color: white;
    width: 100%;
    overflow: hidden;
}
.container1 img {
    width: 100%;
    object-fit: cover; /* Ensure the image covers the container */
}
.container1 .text1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the text */
    width: 100%; /* Adjust width to fit nicely within the container */
    text-shadow: 2px 2px 4px #000000;
    font-size: 50px;
    font-weight: bolder;
    padding: 10px;
    
}

.container1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #c00000, transparent); /* Dark red to transparent gradient */
    z-index: 1;
}
.text, .text1 {
    position: relative;
    z-index: 2;
}




    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: transparent;
        border: none;
    }
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increased shadow depth on hover */
    }
