.accomplishments {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    width: 15%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 20px;
}

.sidebar img {
    width: 65px;
    height: 60px;
    display: block;
}

.sidebar p {
    color: darkblue;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.content {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card, .card1 {
    position: relative;
    width: 45%;
    height: 300px;
    border: 2px solid black;
    border-radius: 15px;
    overflow: hidden;
}

.card img, .card1 img {
    width: 100%;
    height: 70%;
    display: block;
}

.card h2, .card p, .card1 h2, .card1 p {
    position: absolute;
    left: 0;
    width: 100%;
    padding: 10px;
    margin: 0;
    font-family: arial, sans-serif;
}

.card h2{
    bottom: 45px;
    font-size:18px;
    height: 85px;
    text-shadow: 2px 2px 5px grey;
}

.card1 h2{
    bottom: 45px;
    font-size:18px;
    height: 85px;
    text-shadow: 2px 2px 5px white;
}

.card p, .card1 p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 115px;
    padding: 10px;
    margin: 0;
    font-size: 14px;
    background-color: lightgray;
    box-sizing: border-box;
}

@media (max-width: 430px) {
    .sidebar {
        display: none;
    }

    .content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .card, .card1 {
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow: hidden;
    }

    .card img, .card1 img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card h2, .card1 h2 {
        position: absolute;
        top: 2px;
        left: 2px;
        right: 10px;
        bottom: auto;
        width: auto;
        margin: 0;
    }

    .card p, .card1 p {
        position: static;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
}