body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif; /* Apply the Poppins font */
}

.main-content {
    flex: 1;
    margin: 100px 12vw 0px 8vw;
    padding: 20px;
}

.main-content h1 {
    font-size: 2.8rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 1000;
    margin-bottom: 10vh;
}


.main-content h2 {
    font-size: 2.2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    margin-top: 40px;
    text-align: center;
    font-weight: 1000;
}

.main-content h3 {
    font-size: 1.6rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    margin-top: 60px;
    text-align: center;
    font-weight: 1000;
}

.image-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: calc(100vw - 25vw);
    margin: 0 20vw 0 0;
    padding: 0;
    box-sizing: border-box;
}

.image-item {
    position: relative;
    flex: 1;
    height: 33vh;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    filter: grayscale(100%);
    margin-bottom: 10vh;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 10px;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease; /* Smooth transition for text scaling */
    text-shadow: -3px 3px 1px #000b1b;
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 20px #000b1b;
    filter: grayscale(0%); /* Remove grayscale effect when hovered */
}

.image-item:hover .image-text {
    transform: translate(-50%, -50%) scale(1.3); /* Scale up text on hover */
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

#section-1 {
    position: relative;
    color: #000b1b; /* Ensures text is white for readability */
    overflow: hidden; /* Prevents background from spilling out */
}

.docs h2 {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 600;
    margin-top: 5vh;
    font-weight: 1000;
}

.docs {
    text-align: center;
    z-index: 100;
}

.cert-images-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-images-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.cert-image {
    margin: 5vh 2%;
    height: 15%;
    width: 15%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.5);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 200%;
    height: 100vh;
}

.close {
    position: fixed;
    top: 5vh;
    right: 5vw;
    color: red;
    font-size: 5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 10px;
        margin-top: 120px;
    }

    .main-content h1 {
        font-size: 1.6rem;
    }

    .main-content h2 {
        font-size: 1.4rem;
    }

    .main-content h3 {
        font-size: 1.2rem;
    }

    .image-item {
        position: relative;
        flex: 0 1 auto;           /* Prevents flex-grow and flex-shrink */
        width: 25vw;              /* Sets width to 25% of the viewport width */
        height: 20vh;             /* Sets height to 20% of the viewport height */
        margin: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        filter: grayscale(100%);  /* Default grayscale on images */
        cursor: pointer;
    }
    
    .image-item img {
        width: 100%;              /* Makes image fill the width of the .image-item */
        height: 100%;             /* Makes image fill the height of the .image-item */
        object-fit: cover;        /* Ensures images are scaled properly */
    }
    
    .image-text {
        padding: 5px;
        font-size: 1rem;
    }
}
