﻿.nav-link svg path.st-0 {
    fill: white;
}

.nav-link:hover svg path.st-0 {
    fill: #006a53;
}

.nav-link:active svg path.st-0 {
    fill: #006a53;
}

.nav-link:hover .icon-label {
    color: #006a53;
}

.nav-link:active .icon-label {
    color: #006a53;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px;
}

.svg-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* This will ensure SVGs larger than the container will be clipped */
}

.svg-container svg {
    max-width: 100%;
    max-height: 100%;
    height: 100px;
}
.svg-container svg .cls-1,
.svg-container svg .st0 {
    fill: #fff;
}
.svg-container:hover svg .st0,
.svg-container:hover svg .cls-1 {
    fill: #006a53;
}
.icon-label {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #fff;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    font-size: 16px;
}

@media (max-width: 768px) {
    .svg-container {
        height: 80px; /* Reduced size */
    }

    .icon-label {
        font-size: 14px;
        height: 25px;
        line-height: 25px;
    }
    #resources-product-container .resource-item {
        justify-content: center;
        display: flex;
    }
    
    #resources-product-container .row {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    #resources-product-container .resource-item {
        justify-content: center;
        display: flex;
    }

    #resources-product-container .row {
        margin: 0 auto;
    }

    .svg-container {
        height: 60px; /* Further reduced size */
    }

    .icon-label {
        font-size: 12px;
        height: 20px;
        line-height: 20px;
    }

    .nav-link {
        padding: 8px; /* Smaller padding for mobiles */
    }
}
