.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.certificate-item {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
    width: 300px;
    height: 400px;
}

.certificate-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.certificate-item p {
    margin: 5px 0;
    color: #555;
}

.view-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-btn:hover {
    background-color: #45a049;
}

/* Modal styling for pop up PDF window */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    max-height: 100vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Make the grid flexible on small screens */
@media only screen and (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .certificate-item {
        flex: 1 1 100%;
    }
}

@media only screen and (max-width: 600px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        /* One item per row on very small screens */
    }
}

/* Education  */
.education-grid {
    display: inline-block;
    flex-direction: column;
    gap: 20px;
    width: auto;
    max-width: max-content;
}

.education-title {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    margin-right: 10px;
    color: #333;
    border-radius: 10px;
    text-align: left;
    font-size: 28px;
}

.education-item {
    border-left: 2px solid #333;
    padding-left: 20px;
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
}

.education-item p {
    text-align: left;
    font-size: larger;
}

.resume-item:before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    left: -15px;
    top: 10px;
}