/* Container for the Boxes using CSS Grid */
.box-container {
    display: grid;
    gap: 20px;
    width: 90%;
    grid-template-columns: 1fr;
    /* Default: 1 column */
    max-width: 1000px;
    /* Set a max-width for the container */
    margin: 0 auto;
    /* Center the container horizontally */

}

/* Each Box */
.box {
    display: block;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    min-height: 200px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: scale(1.03);
}

/* Box Content (Text Overlay) */
.box-content {
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 10px 15px;
    /* Remove the grey background */
    background: none;
}

/* Heading and paragraph styling with drop shadow */
.box-content h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
    /* Add a drop shadow for better legibility */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
}

.box-content p {
    font-size: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Media Queries */

/* For screens at least 768px wide, show 2 boxes per row */
@media (min-width: 400px) {
    .box-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens at least 1024px wide, show 4 boxes per row */
@media (min-width: 1024px) {
    .box-container {
        grid-template-columns: repeat(4, 1fr);
    }
}