.article-container {
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
}

.article-block {
    text-align: justify;
}

@media (max-width: 768px) {
    .article-block {
        flex-direction: column;
        align-items: center;
    }

    .article-container {
        width: 90%;
        padding: 10px;
    }
}

.history-university {
    width: 100%;
    height: 100vh;

}

.history-university .history-box.first {
    height: 80%;
    background: url('/files/images/image_background/ХХ_century.jpg');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: end;
    justify-content: end;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 20px;
}

.history-university .history-box.second {
    height: 80%;
    background: url('/files/images/image_background/university_2000.jpeg');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: end;
    justify-content: end;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 20px;

}

.history-university .history-box.third {
    height: 80%;
    background: url('/files/images/image_background/Университет сегодня1-min.jpg');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: end;
    justify-content: end;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 20px;

}

.history-box .element {
    backdrop-filter: blur(10px);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    background: #54545473;
    border-radius: 20px;
    overflow: hidden;
}


.title-history {
    /* font-size: 36px; */
    font-weight: 700;
    color: #ffffff;

}

.element button {
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
}

.history-box {
    flex: 0 0 30%;
    transition: flex 0.5s ease;
}

/* наведённый */
.history-box:hover {
    flex: 0 0 50%;
}

/* остальные, когда навели на контейнер
.history-university:hover .history-box:not(:hover) {
    flex: 0 0 10%;
} */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 20px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.mission-box {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: unset;
}

/* ВАЖНО: именно .mission */
.mission {
    flex: 0 0 30%;
    max-width: 40%;
    height: 500px;
    display: flex;
    justify-content: end;
    align-items: end;
    background: url('/files/images/image_background/Университет сегодня1-min.jpg');
    background-size: cover;
    background-position: center 20%;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: flex 0.5s ease;
    padding: 20px;
    opacity: 0;
    animation: appear 0.8s ease-out forwards;
    transform: translateX(100%);

}

.mission:nth-child(1) {
    animation-delay: 0.1s;
}

.mission:nth-child(2) {
    animation-delay: 0.25s;
}

.mission:nth-child(3) {
    animation-delay: 0.4s;
}

.mission:nth-child(4) {
    animation-delay: 0.55s;
}

.mission:nth-child(5) {
    animation-delay: 0.7s;
}

@keyframes appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission:hover {
    flex: 0 0 40%;
}

.mission:not(:hover) {
    flex: 0 0 30%;

}


.item {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    width: 80%;
}
.item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: end;
    color: #ffffff;
}
.item p {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-align: end;
}