Original css

.section--header img {
    margin-bottom: 30px;
}
.aniversare-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.aniversare-moments {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    min-height: 600px;
    overflow: hidden;
}
.aniversare-moment {
    display: flex;
    flex-direction: column;
    transition: width .3s;
    width: 10%;
    height: 100%;
    min-height: 600px;
    overflow:hidden;
}
.aniversare-moment.selected {
    flex-grow: 1;
    width: 100%;
}
.aniversare-moment-image {
    background-color: #000;
    border-radius: 40px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, .2);
    display: flex;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
    height: 357px;
}
.aniversare-moment.selected .aniversare-moment-image {
    aspect-ratio: 16/9;
    height: auto;
}
.aniversare-moment-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 16/9;
}

.aniversare-moment.selected .aniversare-content {
    display: block;
}

.aniversare-content {
    max-width: 100%;
    padding: 30px 40px;
    transition: .2s;
    display: none;
}

.aniversare-content h3 {
    font-size: 28px;
    font-weight: bold;
    line-height: 30px;
    color: #000;
    margin: 0;
    text-transform: none;
    transform: translateY(-5px);
    transition: transform .3s;
}

.aniversare-mai-mult {
    background-color: #D4DCFB;
    border-radius: 50px;
    padding: 10px 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 180px;
    align-items: center;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}
.aniversare-mai-mult a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 21px;
    line-height: 26px;
    color: #2A50EA;
    display: flex;
    gap: 10px;
}
.aniversare-mai-mult a:visited {
    color: #2A50EA;
}
.aniversare-mai-mult:hover {
    background-color: #051b65;
}
.aniversare-mai-mult:hover a {
    color: #fff;
}
.aniversare-mai-mult:hover .icon-mai-mult {
    background-color: #051b65;
    border-radius: 50%;
    border: 1px solid #fff;
}
.aniversare-mai-mult:hover .icon-mai-mult svg {
    fill: #051b65!important;
}
.icon-mai-mult {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #051C66;
    border-radius: 50%;
    width: 28px;
    height: 28px;
}
.title-alte-povesti h2 {
    color: #051C66;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.container-alte-povesti {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}
.card-wrapper-povesti {
    border-radius: 8px;
    border: 1px solid rgba(42, 80, 234, 0.35);
    background: #FFF;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15);
    width: 30%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    flex: initial;
    transition: background-color 0.3s ease-in-out;
    overflow: hidden;    
}
.card-wrapper-povesti:nth-child(3n + 1):hover {
    background-color: #DD050A;
}
.card-wrapper-povesti:nth-child(3n + 2):hover {
    background-color: #3CB500;
}
.card-wrapper-povesti:nth-child(3n + 3):hover {
    background-color: #0072FF;
}
.card-wrapper-povesti::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: .4rem;
    top: 0;
    left: 0;
    background: #109e49;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.card-wrapper-povesti:nth-child(3n + 1)::before {
    background-color: #DD050A;
} 
.card-wrapper-povesti:nth-child(3n + 2)::before {
    background-color: #3CB500;
} 
.card-wrapper-povesti:nth-child(3n + 3)::before {
    background-color: #0072FF;
} 
.card-wrapper-povesti img {
    border-radius: 10px;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    margin-top: 10px;
}
.card-wrapper-povesti .wrapper-link-povesti .article-img {
    overflow: hidden;
    border-radius: 10px;
}
.card-wrapper-povesti .wrapper-link-povesti img {
    transition: transform 0.4s ease-in-out;
}
.card-wrapper-povesti:hover .wrapper-link-povesti img {
    transform: scale(1.2);
}
.wrapper-title-povesti {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    flex: 1;
}
.wrapper-title-povesti h3 {
    font-size: 1.375rem;
    font-weight: 400;
    color: hsl(0, 0%, 0%);
    line-height: 1.25;
    transition: color 0.3s ease-in-out;
}
.wrapper-title-povesti h3 a {
    cursor: pointer;
    color: hsl(0, 0%, 0%);
    text-decoration: none;
}
.card-wrapper-povesti:hover .wrapper-title-povesti h3 a {
    color: #fff;
}
.card-wrapper-povesti .aniversare-mai-mult a {
    transition: color 0.3s ease-in-out;
    display: flex;
    gap: 10px;
}
.card-wrapper-povesti:hover .aniversare-mai-mult {
    background-color: rgba(0, 0, 0, .2);
}
.card-wrapper-povesti:hover .aniversare-mai-mult a {
    color: #fff;
}
.card-wrapper-povesti:hover .aniversare-mai-mult svg path {
    fill: #fff;
}
@media (max-width: 600px) {
    .aniversare-moments {
        gap: 10px;
    }
    .aniversare-moment-image {
        border-radius: 25px;
    }
    .aniversare-moment.selected .aniversare-moment-image {
        aspect-ratio: 1/1;
    }
    .aniversare-moment-image svg {
        width: 18px;
        height: 18px;
    }
    .aniversare-content {
        padding: 20px 5px;
    }
    .aniversare-content h3 {
        font-size: 20px;
        line-height: 24px;
    }
    .aniversare-mai-mult {
        width: 160px;
    }
    .aniversare-mai-mult a {
        font-size: 16px;
    }
    .container-alte-povesti {
        flex-direction: column;
    }
    .card-wrapper-povesti {
        width: 100%;
    }
    .title-alte-povesti h2 {
        margin-bottom: 20px;
    }
}

