.grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* 5 columns on large screens */
        gap: 10px;
        padding: 20px;
    }

    /* Styling for Each Card */
    .card {
        width: 100%;
        padding: 0; /* Removed padding around the card */
        border: 1px solid #ccc;
        border-radius: 8px;
        text-align: center;
        background-color: #f9f9f9;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .photo {
        width: 100%;
        height: 200px; /* Fixed height */
        object-fit: contain;
        border-radius: 8px;
    }

    .name {
        font-weight: bold;
        font-size: 16px;
        margin-top: 10px;
    }

    .college, .course {
        font-size: 14px;
        color: #555;
    }

    /* Media Queries for Mobile Responsiveness */
    @media screen and (max-width: 768px) {
        .grid {
            grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets and smaller screens */
            padding: 10px;
        }

        .card {
            padding: 10px; /* Add some padding around cards */
        }

        .photo {
            height: 150px; /* Reduce height of the image on smaller screens */
        }

        .name {
            font-size: 14px; /* Slightly smaller font on smaller screens */
        }

        .college, .course {
            font-size: 12px; /* Slightly smaller font on smaller screens */
        }
    }

    @media screen and (max-width: 480px) {
        .grid {
            grid-template-columns: 1fr; /* 1 column for very small screens (mobile phones) */
            padding: 5px;
        }

        .card {
            padding: 8px; /* Reduce padding further */
        }

        .photo {
            height: 120px; /* Reduce image height even further for very small screens */
        }

        .name {
            font-size: 12px; /* Even smaller font for mobile phones */
        }

        .college, .course {
            font-size: 10px; /* Smaller font for mobile */
        }
    }