.graduate {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1em; /* Further reduced padding */
    border-radius: 8px;
    background: linear-gradient(45deg, purple, blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 70%; /* Further reduced max-width */
    width: 300px; /* Further reduced fixed width */
    z-index: 1000;
    transition: transform 0.3s ease;
}

.close-btn {
    align-self: flex-end;
    font-size: 20px; /* Reduced font size for close button */
    cursor: pointer;
    background-color: green;
    color: white;
    border-radius: 50%;
    padding: 0 8px; /* Adjusted padding for close button */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h2 {
    color: white;
    font-size: 20px; /* Reduced font size for the heading */
    margin-bottom: 0.8em;
}

ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    gap: 0.5em; /* Reduced gap between items */
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); /* Reduced min width for grid items */
}

li a {
    text-decoration: none;
    color: white;
    background: rgba(0, 255, 0, 0.3);
    padding: 8px; /* Reduced padding for list items */
    border-radius: 4px; /* Slight reduction in border radius for a modern look */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Reduced font size for list items */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.2s ease;
}

@media screen and (max-width: 768px) {
    .popup {
        width: 70%;
    }
}

@media screen and (max-width: 480px) {
    .popup {
        width: 90%;
    }
    h2 {
        font-size: 16px;
    }
    li a {
        font-size: 12px;
    }
}
