

.project-card {
    width: 20em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}



.project-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


.project-card-header h2 {
    display: flex;
    flex-direction: row;
}

.project-card-header img{
    width: 100%;
    height: auto;
    border-radius: 15px;
}




a {
    text-decoration: none;
    color : black;
}

button{
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.work-card {
    width: 20em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 10px;

}

.work-card:hover {
    transform: scale(1.05);
}

.work-card-header {
    display: flex;
    flex-direction: row;
}

.work-card-header .logo {
    width: 100%;
    height: auto;

    margin-right: 1rem;
    margin-bottom: 1rem;
}

.work-card-body{
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.company, .date, .localisation {
    font-size: 0.8em;
    line-height: 0;
    gap: 0.5rem;
}


.education{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.educationContainer{
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    justify-content: center;
}

.education-card {
    width: 20em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 10px;
}
.education-card:hover {
    transform: scale(1.05);
}


.education-card-header .logo{
    width: 100%;
    height: auto;

    margin-right: 1rem;
    margin-bottom: 1rem;
}

.education-card-body{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.volunteers-card {
    width: 20em;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 10px;
}


.volunteers-card:hover {
    transform: scale(1.05);
}

.volunteers-card-header {
    display: flex;
    flex-direction: row;
}

.volunteers-card-header .logo {
    width: 100%;
    height: auto;

    margin-right: 1rem;
    margin-bottom: 1rem;
}




/* Responsive styles for cards */
@media (max-width: 768px) {
    .project-card,
    .work-card,
    .education-card,
    .volunteers-card {
        width: 18em;
        padding: 8px;
        margin: 8px;
    }
}

@media (max-width: 480px) {
    .project-card,
    .work-card,
    .education-card,
    .volunteers-card {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 10px;
        margin: 10px 0;
    }

    .work-card-header,
    .volunteers-card-header,
    .project-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .work-card-header .logo,
    .volunteers-card-header .logo,
    .project-card-header img {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 90%;
    }

    /* Prevent cards from growing too large on hover in mobile view */
    .project-card:hover,
    .work-card:hover,
    .education-card:hover,
    .volunteers-card:hover {
        transform: scale(1.03);
    }
}
