/* Default Card Styling (For Laptop/Desktop) */
.custom-card {
    width: 120px;
    padding: 15px;
    background: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    color: #003366;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
    border: 1px solid white;
    flex: 0 0 auto;
}

/* Hover Effect */
.custom-card:hover {
    transform: translateY(-3px);
    background: #f8f9fa;
    color: #003366 !important;
}

/* Icon Styling */
.custom-card i {
    font-size: 30px;
    color: #003366;
    margin-bottom: 5px;
}

/* Title Styling */
.custom-card h4 {
    font-size: 1rem;
    font-weight: bold;
    margin: 3px 0;
}

/* Cards Container: Keep in a Single Row */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    white-space: nowrap;
}

/* 🔥 Mobile View: Icons in One Row */
@media (max-width: 600px) {
    .cards-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        overflow-x: auto;
        padding: 5px;
        flex-wrap: nowrap; /* Prevents wrapping */
    }

    .custom-card {
        width: 55px; /* Reduce size for smaller screens */
        height: 55px;
        padding: 5px;
        background: transparent;
        color: #003366;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        border: none;
        cursor: pointer;
        margin: 2px; /* Minimize spacing to fit all in one row */
    }

    .custom-card i {
        font-size: 18px; /* Reduce icon size */
        color: #003366;
        margin-bottom: 2px;
    }

    .custom-card h4 {
        font-size: 9px; /* Reduce text size further */
        font-weight: normal;
    }
}

/* 🔥 Extra Small Screens (Below 400px) */
@media (max-width: 400px) {
    .cards-container {
        gap: 5px; /* Reduce gaps */
        padding: 3px;
    }

    .custom-card {
        width: 50px; /* Even smaller for ultra-small screens */
        height: 50px;
        padding: 3px;
        margin: 1px; /* Reduce margins */
    }

    .custom-card i {
        font-size: 16px; /* Slightly smaller icon */
    }

    .custom-card h4 {
        font-size: 8px; /* Smallest text size */
    }
}
