.career-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    background-color: #074e8c;
}

.career-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #003c71;
    padding: 5px;
    border-radius: 8px;
    height: 800px;
    text-align: center;
    overflow: hidden;
}

.career-content:nth-child(even) {
    flex-direction: column-reverse;
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.career-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.after {
    z-index: 1;
}

.before {
    z-index: 2;
}

.img-wrapper:hover .before {
    opacity: 0;
}