/* General container and overlay setup */
.container-cover {
    position: relative;
    /* text-align: center; */
    color: white;
}

.container-cover img {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    height: 250px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.overlay-text {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-40%, -50%);
    padding: 10px;
    font-family: Calibri !important
}

.overlay-text h1 {
    font-size: 40px;
    /* Responsive font size */
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin: 0 0 5px 0;
}

.overlay-text p {
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin: 10px 0;
    line-height: 1.5;

}

.overlay-text a {
    margin-top: 0px;
    display: inline-block;
    font-size: 1.3vw;
}

.custom-btn {
    padding: 12px 16px;

}

.custom-panel {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.thumbnail {
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
    width: auto !important;
    height: 400px !important;
}

/* Responsive adjustments with media queries */
@media (max-width: 1200px) {
    .overlay-text h1 {
        font-size: 3.5vw;
    }

    .overlay-text p {
        font-size: 1.2vw;
    }

    .overlay-text a {
        font-size: 1.1vw;
    }

    .custom-thumbnail-1 {
        width: 300px !important;
        height: 340px !important;
    }
}

/* For large screens (desktops) */
@media (max-width: 992px) {
    .overlay-text h1 {
        font-size: 3vw;
    }

    .overlay-text p {
        font-size: 15px;
    }

    .overlay-text a {
        font-size: 1vw;
    }
}

/* For medium screens (tablets) */
@media (min-width: 768px) and (max-width: 991px) {
    .overlay-text {
        width: 90%;
        position: absolute;
        top: 51%;
        left: 42%;
        transform: translate(-40%, -50%);
        /* text-align: center; */
        padding: 10px;
        font-family: Calibri !important
    }

    .overlay-text h1 {
        font-size: 30px;
    }

    .overlay-text p {
        font-size: 15px;
    }

    .overlay-text a {
        font-size: 1.8vw;
    }

    .container-cover img {
        width: 100%;
        height: 250px !important;
    }
}

/* For small screens (phones) */
@media (max-width: 767px) {
    .overlay-text {
        margin: 1%;
        width: 90%;
        position: absolute;
        top: 50%;
        left: 40%;
        transform: translate(-40%, -50%);
        /* text-align: center; */
        padding: 10px;
        font-family: Calibri !important
    }

    .overlay-text h1 {
        font-size: 18px;
    }

    .overlay-text p {
        font-size: 14px;
    }

    .overlay-text a {
        font-size: 2.3vw;
    }

    .container-cover img {
        width: 100%;
        height: 200px !important;
    }

    .custom-panel {
        background-color: #fcfdfd;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        /* margin: 0% 2%; */
    }

    .thumbnail {
        height: 410px !important;
    }

    .custom-thumbnail {
        width: 300px !important;
        height: 380px !important;
    }

}