

.second_header{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(20px, 3vw, 3.5rem);
    font-weight: bold;
    color: #cadbdc;
    margin-top: 100px;
    margin-bottom: 30px;
}

.card{

    width: calc(100% - 50px);                     /* Занимает всю доступную ширину в колонке */
    padding: 10px;
    box-sizing: border-box;

    /* Визуальные стили */
    background: #FFFFFF;
    box-shadow: 5px 20px 50px rgba(16, 112, 177, 0.7);
    border-radius: 20px;


    /* Выравнивание содержимого внутри .colum */
    text-align: center;              /* Центрирует текст */
    display: flex;                  /* Делаем flex-контейнером для гибкого выравнивания */
    flex-direction: row;         /* Элементы идут сверху вниз */
    justify-content: flex-start;        /* Вертикальное центрирование (если есть свободное место) */
    align-items: start;            /* Горизонтальное центрирование дочерних элементов */
    font-size: clamp(13px, 2.3vw, 1.25rem);

      /* Дополнительно: отступы между колонками (если нужно) */
    margin: 20px;
}
div.card{
    height: 10vh;
}
article.card{
    height: auto;
    flex-direction: column;
}


.card header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 100%;
    /*margin-top: 5px;*/
}

article.card header{
    width: 100%;
    height: 10vh;
}

.img_box {
    width: 30%;
    height: 100%;
}
.img {
    border-radius: 50px;
    width: auto;
    height: 100%;
}


.skills {
    color: #333;
    font-weight: bold;
    line-height: 1.6;
    display: -webkit-box;
     /*-webkit-line-clamp: 2;     !* количество строк *!*/
     /*-webkit-box-orient: vertical;*/
    overflow: hidden;
    height: 100%;
    width: 70%;
    text-align: left;
    margin-left: 10px;


}
.card section {
    line-height: 1.6;
    color: #333;
    padding-left: 15px;
    display: -webkit-box;
     -webkit-line-clamp: 3;     /* количество строк */
     -webkit-box-orient: vertical;
    overflow: hidden;
    height: 100%;
    text-align: left;
    width: 50%;
}

.card article{
    height: 100vh;
}


@media(max-width: 768px) {

    .second_header {
        margin-top: 10px;
        text-align: center;
    }
    .card {
        flex-direction: column;
        width: calc(100% - 10px);
        margin: 10px;
    }
    div.card{
        height: 20vh;
    }

    .card header {
        width: 100%;
        height: 30%;
        justify-content: start;
    }
    .card section{
        -webkit-line-clamp: 5;
        padding-top: 10px;
        width: 100%;
    }
    article.card header {
        height: 10vh;
        flex-direction: column;
    }

    .skills {
        line-height: 1.4;
        -webkit-line-clamp: 4;
    }

    .card post {

        line-height: 1.4;
        -webkit-line-clamp: 6;
        width: 100%;
    }
    .img_box{
        display: flex;
        align-items: start;
        justify-content: start;
        width: auto;
        max-width: 30%;
    }

}