/* Стили для Expert People */
.expert-people {
    margin-bottom: 30px;

}
.expert-people h2 {
    font-size: 24px;
    margin-bottom: 20px;
}
.expert-people .person {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
}
.expert-people .person img {
    margin-bottom: 15px;
    border-radius: 50%;
    width:100%;
}
.expert-people .person h3 {
    font-size: 15px;
    margin-bottom: 0;
    margin-top: 0;

}

.expert-people .person  a {
    color: #000;
    text-decoration: none;
}

.featured-item-info {
   display: flex;
    align-items: center;
    gap: 20px;
    width: 266px;
}
.expert-people .person p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
    color: #075ba2;
}

.expert-people-wrapp {
    display: flex;
    gap: 78px;
    flex-wrap: wrap;
}

.expert-people-container {
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
    gap: 25px

}
.last-mod {
    margin-left: auto;
}
.last-mod-info {
    display: flex;
    gap: 9px;
    align-items: center;
}
.last-mod > p {
    margin-bottom: -5px;
    margin-top: 0;
}
/* Стили для Expert List */
.expert-list {
    margin-bottom: 30px;
}
.expert-list .list-item {
    margin-bottom: 40px;
}
.expert-list .list-item img {
    width: 100%;
    max-width: 200px;
    margin: 5px auto;
    display: block;
    padding: 5px 0;
    text-align: center;
}
.expert-list .list-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.expert-list .list-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
}
.expert-list .list-item a {
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.02em;
    padding: 12px;
    white-space: nowrap;
    width: 100%;
    background: transparent;
    border-top: 2px solid rgba(238, 49, 36, .1);
    color: #ee3124;
    display:block;
    text-align: center;
}
.expert-list .list-item a:hover {
    background: #ee3124;
    border-radius: 6px;
    color: #fff;
}

/* Стили для Expert Social Media */
.expert-social-media,
.expert-featured,
.expert-list{
    max-width: 900px;
    margin: 20px 0;
}
.expert-people {
    max-width:850px;
}
.expert-social-media {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #edf4f7;
    border-radius: 10px;
    z-index: 3;
    cursor: pointer;
}
.expert-social-media h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #005c7a;
}

.expert-social-media-container-info {
    dispay:flex;
}


.expert-social-media-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.expert-social-media-container img {
    border-radius: 50%;
}
.expert-social-media .social-media-item {
    margin-bottom: 20px;
}
.expert-social-media .social-media-item a {
    display: flex;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    gap: 7px;
    width: 200px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.expert-social-media .social-media-item a:hover {
    background-color: #333;
}
.card-image {
    margin: 0 auto;
}
/* Стили для Expert Featured */
.expert-featured {
    margin-bottom: 30px;
    padding: 0 9px;
}
.expert-featured .featured-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaecf0;
    padding: 6px 0;

}
.expert-featured .featured-item img {
    height: auto;
}
.expert-featured .featured-item span {
    font-size: 18px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}
.expert-featured .featured-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.featured-select p {
    color: #1e7497;

}
.expert-featured .featured-item a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    background-color: #333;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.expert-featured .featured-item a:hover {
    background-color: #555;
}

.featured-select {
    display: flex;
    min-width: 250px;
    gap: 10px;
    align-items: center;
}

/* Стили для карточек */
.expert-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.expert_link {
    background: #1c449b;
    border-radius: 12px;
}

.list-item {
    width: 23%; /* Ширина карточки */
}

.card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
    position: relative;

    background: #fff;
    border: 1px solid rgba(9, 71, 116, .1);
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px); /* Эффект подъема при наведении */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; /* Закругление верхних углов */
    object-fit: cover;
}
.experience {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(9, 71, 116, .1);
    border-radius: 6px;
    color: #094774;
    display: flex;
    flex-direction: column;
    left: 10px;
    min-width: 50px;
    padding: 8px 10px;
    position: absolute;
    text-align: center;
    top: 10px;
    width: 50px;
}

.experience span {
    border-bottom: 1px solid rgba(1, 72, 116, .2);
}
.card-body {
    padding: 1.25rem;
}

.card-title {
    color: #094774;
    display: block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.4;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #094774cc;
    font-weight: 500;
    line-height: 1.6;
}

.btn-primary {
    color: #fff;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #007bff; /* Цвет кнопки при наведении */
}
.social-media-item .icon {
    display:flex;
}

@media (max-width: 826px) {
    .expert-people-wrapp {
        flex-direction: column;
    }

    .expert-social-media {
        flex-direction: column;
    }

    .expert-social-media-container {
        flex-direction: column;
    }

    .expert-social-media-container {
        margin-bottom: 20px;
    }
    .list-item {
        width: 45%;
    }
}

@media (max-width: 554px) {
.expert-people-container {
    flex-direction: column;
}
    .expert-social-media,
    .expert-people,
    .expert-list{
        padding: 10px;
        margin: 10px
    }


    .expert-social-media {
        align-items: flex-start;
    }
    .expert-social-media .social-media-item a {
        width: auto;
    }


    .expert-social-media-links {
        display: flex;
        gap: 5px;
    }
    /*.expert-social-media-container img {*/
    /*    display:none;*/
    /*}*/



    .expert-featured .featured-item h3 {
        display:none;
    }
    .expert-people-container >p {
        margin-left: 0;
    }



    .list-item {
        width: 80%;
        margin: 0 auto;
    }

    .featured-item-info {
        width: 47%;
    }

    .featured-select {
        min-width: auto;
        width:50%;
    }
    .expert-featured .featured-item {
        margin-bottom: 5px;
    }
    .expert-featured .featured-item p {
        font-size: 14px;
    }

    .expert-featured .featured-item p {
        font-size: 12px;
    }
    .featured-select {

        justify-content: end;
    }

    .last-mod {
        margin-left: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .expert-people .person {
        margin-bottom: 0;
    }
    .expert-people-wrapp {
        gap: 5px;
    }
    .last-mod-info {
        display: contents;
    }

    .expert-social-media-wrapp {
        margin: 0 auto;
        display:block;
        max-width: 100px;
        max-height: 100px;
    }

    .expert-social-media-container {
        width:100%;
    }

    .expert-social-media-container img {
        border-radius: 0;

    }

    .expert-people .person p {
        font-size: 14px;
    }
}
