.grid-container-top {
    display: grid;
    /* grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 20px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}
.grid-container {
    display: grid;
    /* grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 20px; /* Space between grid items */
    padding: 10px;
    margin: auto; /* Center the grid horizontally on the page */
}
.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    color: white;
    font-size: 50px;
    text-decoration: none; /* Remove underline from links */
    border: 2px solid black;
    border-radius: 20px;
    padding: 25px;
    background-size: cover; /* Ensure the image covers the entire grid entry */
    background-position: center; /* Center the image */
    position: relative; /* Enable layering */
    overflow: hidden; /* Prevent overlapping elements */
}
    .grid-item:hover {
        filter: brightness(100%); /* Brighten the background on hover */
        transform: scale(1.02); /* Slight zoom effect on hover */
    }
    .grid-item::before {
        content: ""; /* Create an overlay pseudo-element */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit; /* Use the same background image */
        filter: brightness(30%); /* Apply the darkening effect here */
        z-index: 0; /* Place the overlay below the text */
    }
    .grid-item:hover::before {
        filter: brightness(80%); /* Brighten the overlay on hover */
        transition: filter 0.1s ease; /* Smooth transition effect */
    }
    .grid-item b {
        position: relative; /* Place the text above the background layer */
        z-index: 1; /* Ensure text stays on top of the background */
    }

.first-row {
    grid-column: 2; /* Center the cell in the second column */
}

@media only screen and (max-width:1500px) {
    .grid-container-top {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .first-row {
        grid-column: 2; /* Center the cell in the second column */
        width: calc(40vw - 40px);
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }
}


@media only screen and (max-width:1000px) {
    .grid-container-top {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 1 column */
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 1 column */
        gap: 20px; /* Space between grid items */
        padding: 10px;
        margin: auto; /* Center the grid horizontally on the page */
    }

    .first-row {
        grid-column: 1; /* Move to 1st (and only) column */
        width: auto;
    }
}
