.dashboardTitle {
    font-size: 20px;
    font-weight: bold;
    color: black;
    width: 100%;
    box-sizing: border-box;
    padding: 8px !important;
    margin-top: 0;
    border-radius: 0 0 20px 20px;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal !important;
    line-height: 1.2 !important;
}


.dashboardItem>a:hover,
.dashboardItem:hover {
    color: black !important;
    text-decoration: underline !important;
}

.dashboardItem>a:active,
.dashboardItem:active {
    color: black !important;
    text-decoration: underline !important;
}

#dashboardTitlePopn {
    background-color: #C8CCEE;
}

#dashboardTitleLF {
    background-color: #B8F2CF;
}

#dashboardTitleCCPI {
    background-color: #B6E3E9;
}

#dashboardTitleMRS {
    background-color: #FFEDB9;
}

#dashboardTitleTrade {
    background-color: #FFBAC9;
}

.dashboardsContainer {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboardsGrid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1115px;
    align-items: center;
    justify-content: center;
}

.dashboardRow1,
.dashboardRow2 {
    display: grid;
    gap: 30px;
    justify-content: center;
    justify-items: center;
    width: 100%;
}

.dashboardRow1 {
    grid-template-columns: repeat(3, 1fr);
}

.dashboardRow2 {
    grid-template-columns: repeat(2, 1fr);
}

.dashboardItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 345px;
    margin: 0 !important;
}

.dashboardGridImg {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 100%;
    height: 180px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.dashboardGridImg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px 20px 0 0;
}

.dashboardGridImg img {
    transition: opacity 0.5s ease-in-out;
}

.dashboardGridImg img:hover {
    opacity: 0.9;
}

.dashboardGridImg img:focus:not(:focus-visible) {
    -webkit-user-drag: none;
}

.dashboardItem:has(#dashboardTitlePopn) .dashboardGridImg {
    background-color: #eff0fa;
}

.dashboardItem:has(#dashboardTitleLF) .dashboardGridImg {
    background-color: #e3faec;
}

.dashboardItem:has(#dashboardTitleCCPI) .dashboardGridImg {
    background-color: #ddf2f5;
}

.dashboardItem:has(#dashboardTitleMRS) .dashboardGridImg {
    background-color: #FFFAEC;
}

.dashboardItem:has(#dashboardTitleTrade) .dashboardGridImg {
    background-color: #ffedf1;
}

.dashboardItem:hover {
    transform: scale(1.03);
}

.dashboardGridImg:focus:not(:focus-visible) {
    outline: none;
    -webkit-user-drag: none;

}

.dashboardTitle:focus:not(:focus-visible) {
    outline: none;
    -webkit-user-drag: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .dashboardsGrid {
        max-width: 100%;
        padding: 0;
    }

    .dashboardRow1,
    .dashboardRow2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboardGridImg {
        width: 100%;
    }

    .dashboardGridImg img {
        width: 100%;
    }

    .dashboardTitle {
        height: 50px !important;
    }

    .dashboardItem>a:hover,
    .dashboardItem:hover {
        color: black !important;
        text-decoration: underline !important;
    }

    .dashboardItem>a:active,
    .dashboardItem:active {
        color: black !important;
        text-decoration: underline !important;
    }
}


@media (min-width: 1039px) {
    .dashboardTitle {
        height: 50px !important;
        padding: 8px !important;
    }

    .dashboardRow1 {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px !important;
    }

    .dashboardRow2 {
        grid-template-columns: repeat(2, calc((100% - 30px) / 3)) !important;
        /* Match Row1 width */
        gap: 30px !important;
        justify-content: center;
    }

    .dashboardItem {
        max-width: none !important;
        /* Fill column width */
    }

    .dashboardGridImg {
        width: 100%;
    }

    .dashboardGridImg img {
        width: 100%;
    }

    .dashboardItem>a:hover,
    .dashboardItem:hover {
        color: black !important;
        text-decoration: underline !important;
    }

    .dashboardItem>a:active,
    .dashboardItem:active {
        color: black !important;
        text-decoration: underline !important;
    }
}