.icon-box {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    margin: 10px;
    text-align: center;
    background: #f8f9fa;
    border: 3px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    color: #000;
    font-size: 20px;
    text-transform: uppercase;
    overflow: hidden; /* Keeps the box clean */
}
.icon-box p {
    margin: 0;  /* Removes default margin */
    flex-grow: 1;  /* Allows the paragraph to take available space */
    display: flex;  /* Uses flexbox to align text */
    align-items: center;  /* Centers text vertically */
    justify-content: center;  /* Centers text horizontally */
}

.icon-box:hover, .icon-box:focus-within {
    text-decoration: none;
    background: #f1f1f1;
    color: #000;
    border-color: #000;
    -webkit-box-shadow: 0px 0px 37px -25px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 37px -25px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 37px -25px rgba(0, 0, 0, 1);
}
/* Mobile-specific adjustments */
@media (max-width: 992px) {
    .scroll-wrapper {
        position: relative;
        overflow: hidden;
        padding: 20px;
        background: #fff;
        margin: 0 auto;
    }
    .scroll-container {
        overflow-x: auto;
        white-space: nowrap;
        position: relative;
        display: block;
    }
    .icon-box {
        display: inline-flex;
        width: 150px;
        height: 170px;
    }
    .icon-box p {
        white-space: wrap;
        margin: 0;  /* Removes default margin */
        display: flex;  /* Uses flexbox to align text */
        align-items: center;  /* Centers text vertically */
        align-content: center;
        justify-content: center;  /* Centers text horizontally */
    }
    .shadow {
        position: absolute;
        top: 20px;
        bottom: 20px;
        width: 30px;
        z-index: 2;
        display: none; /* Initially hidden */
    }
    .shadow.left {
        left: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.25), transparent 100%);
    }
    .shadow.right {
        right: 0;
        background: linear-gradient(to left, rgba(0,0,0,0.25), transparent 100%);
    }
}

/* Desktop-specific adjustments */
@media (min-width: 992px) {
    .scroll-container {
        display: flex;
        flex-wrap: wrap;
        padding-left:15px;
        padding-right:15px;
        justify-content: center;
    }
    .icon-box {
        flex: 0 0 14%; /* Equivalent to col-2 in Bootstrap */
        max-width: 14%;
    }
    .shadow {
        display: none; /* Hide shadows on desktop */
    }
}