/* ========== Кнопка "Посмотрите программы" ========== */
.institute-programs-button {
    position: relative;
    overflow: hidden;
    padding: 10px 15px;
    font-size: var(--font-size-text-md);
    border-radius: 9px;
    transition: backdrop-filter 0.3s ease;
    z-index: 0;
    display: inline-block;
    text-align: center;
    color: #ffffff;
}

.institute-programs-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.institute-programs-button:hover::after {
    background: rgba(0, 0, 0, 0.150);
    backdrop-filter: blur(4px);
}

.institute-programs-button > * {
    position: relative;
    z-index: 2;
}

/* ========== Баннер и изображение ========== */
.institute-banner {
    width: 100%;
}

.institute-image {
    max-height: 14cm !important;
}

/* ========== Визуальный разделитель ========== */
.line {
    border-top: 1px solid var(--gray-200-light-mode);
    margin-top: 42px;
    margin-bottom: 42px;
}

/* ========== Кафедры ========== */
.kafedra-card {
    max-width: 380px;
    max-height: 390px;
    padding: 10px 25px 20px 20px;
    width: 47.5%;
    margin-bottom: 34px;
    display: flex;
    flex-direction: column;
}
@media only screen and (max-width: 768px) {
    .kafedra-card {
        width: 100%;
        margin: 15px auto;
    }
}

.kafedra-icon {
    width: 48px;
    height: 48px;
    margin: 20px 0 20px 0;
}

.kafedra-description {
    margin-top: 7px;
    margin-bottom: 15px;
}

.kafedra-link {
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}

.kafedra-link-arrow {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 4px;
}
