/* --- ЗАГАЛЬНІ СТИЛІ --- */
.contacts {
    padding: 20px 0;
}

.contact-head p {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: #333;
}

/* --- КАРТКА СПІВРОБІТНИКА (СПИСОК) --- */
.contact-item {
    margin-bottom: 30px;
}

.contact-item-about {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none; /* Прибираємо підкреслення посилання */
}

/* Робимо всю картку клікабельною без синього кольору тексту */
a.contact-item-about {
    color: inherit;
}

a.contact-item-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    color: inherit;
}

/* Фото в списку */
.contact-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

a.contact-item-about:hover .contact-image img {
    transform: scale(1.05);
}

/* Текст в списку */
.item-about-text {
    width: 100%;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #eee;
}

.item-about-text h6 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-about-text span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* --- СТОРІНКА СПІВРОБІТНИКА (VIEW) --- */
.team-view-section {
    padding-bottom: 60px;
}

.member-profile-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.member-photo-large {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
}

.member-info-content {
    padding: 20px;
}

.member-name {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.member-position {
    font-size: 18px;
    color: #FB5300;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.member-articles-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 20px;
    border-left: 5px solid #FB5300;
    padding-left: 15px;
}

/* Адаптив */
@media (max-width: 768px) {
    .contact-image {
        height: 300px;
    }
    .member-name {
        font-size: 28px;
    }
}


.breadcrumb { margin-top: 20px; }
.breadcrumb-item a, .breadcrumb-item + .breadcrumb-item::before { color: black; }
.breadcrumb-item.active { color: var(--mainColor); }