/* Basic Reset */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}
main h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    text-align: center; /* Centers the text */
}

h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #222;
    text-align: center; /* Centers the text */
    font-style: italic; /* Makes the font italic */
}

/* Navigation Bar Styling */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

.nav-links li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.nav-links li a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    text-decoration-color: rgb(181, 181, 181);
}

.logo-img {
    width: 120px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Certificate Container */
.certificate-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Certificate Card Styling */
.certificate-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 350px; /* Increased width */
    padding: 20px; /* Increased padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.certificate-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-card p {
    font-size: 1.1rem; /* Slightly larger font */
    color: #555;
    margin: 0;
}

/* Modal Style */

/* Modal Style */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Modal Image */
.modal-content {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

