.experience-carditem {
    height: 100%;
}

.card-item {
    height: 100%;
    background-color: #F8F5F0;
}

.card-item.border-radius .card-image img {
    border-radius: 1rem 1rem 0 0;
}

.card-image {
    aspect-ratio: 1;
}

.card-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.card-text p,
.card-text a {
    display: block;
}

p.card-suptitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
}

p.card-maintitle {
    font-family: 'DM Serif Display';
    font-size: 2.5rem;
    line-height: 2.6rem;
    font-weight: 600;
    color: #333D28;
}

p.card-subtitle {
    font-size: 1.4rem;
    line-height: 1.5;
}

.card-link {
    margin-top: 3rem;
}

.card-link a {
    display: inline;
    font-size: 1.7rem;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    overflow: visible;
}

.card-link a::before {
    content: "";
    position: absolute;
    height: 0.2rem;
    width: 5rem;
    background-color: #333D28;
    top: 50%;
    transition: width 0.2s ease-out;
}

.card-link a:hover {
    text-decoration: none;
}

.card-link a:hover::before {
    width: 6rem;
}

.card-link a:hover span {
    margin-left: 7rem;
}

.card-link span {
    margin-left: 6rem;
    transition: all 0.2s ease-out;
    color: #333D28;
}

@media (max-width: 768px) {
    .card-text,
    .card-image {
        width: 100%;
    }

    .card-text {
        width: 100%;
        padding: 2rem;
    }

    .card-suptitle {
        margin-bottom: 3rem;
    }

    .card-link a {
        display: block;
        text-align: left;
    }
}
