.accordion {
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    background: #f9f9f9;
    border: none;
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    color: black;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #fff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: black;
}


.accordion-content p a {
    color: #0da2e5; /* Цвет ссылок */
    text-decoration: none; /* Убираем подчеркивание */
    font-weight: normal; /* Обычный вес текста */
    display: inline-block; /* Чтобы расстояние между строками работало */
    margin-bottom: 30px; /* Расстояние между ссылками */
}

.accordion-content p a:hover {
    font-weight: bold; /* Жирный текст при наведении */
    text-decoration: underline; /* Добавить подчеркивание при наведении, если нужно */
}

.accordion-content.open {
    overflow-y: auto;
    padding: 15px 20px;
}

.staff-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    color: black;
}

.staff-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.staff-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-details h3 {
    margin: 0 0 10px;
    color: #2a5db0;
    font-size: 18px;
}

.staff-details p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.staff-details a {
    color: #2a5db0;
    text-decoration: none;
}

.staff-details a:hover {
    text-decoration: underline;
}

/*gallery*/
.photo-gallery {
    display: flex;
    flex-wrap: wrap; /* Чтобы изображения переходили на новую строку */
    gap: 10px; /* Расстояние между изображениями */
    justify-content: center; /* Центрирование галереи */
    padding: 10px;
}

.photo-gallery a {
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-gallery a:hover {
    transform: scale(1.05); /* Увеличение при наведении */
}

.photo-gallery img {
    width: 150px; /* Ширина миниатюры */
    height: 100px; /* Высота миниатюры */
    object-fit: cover; /* Кадрирование изображений */
    border-radius: 5px;
}
