style>
/* General styling for the thumbnail containers */
.thumbnail-box {
    border: 1px solid #ddd;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Default box shadow */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px; /* Adds space between thumbnails */
}

/* Separators between thumbnails */
.col-4 {
    margin-bottom: 20px; /* Adds space between rows */
    padding-left: 15px; /* Adds spacing between columns */
    padding-right: 15px;
}

/* Image background styling */
.thumbnail-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid #ccc; /* Creates a separator between the image and text */
    padding-bottom: 10px;
}

/* Hover effect for the thumbnail box */
.thumbnail-box:hover {
    transform: translateY(-5px); /* Lifts the thumbnail slightly on hover */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Hover effect for the image */
.thumbnail-box:hover .thumbnail-img {
    opacity: 0.9; /* Slightly dims the image on hover */
}

/* Styling for the text */
.thumbnail-text {
    margin-top: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Hover effect for text */
.thumbnail-box:hover .thumbnail-text {
    color: #007BFF; /* Changes text color on hover */
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .col-4 {
        width: 100%; /* Stacks the images vertically on smaller screens */
        padding-left: 0;
        padding-right: 0;
    }
}
