/* ===== МОДАЛЬНОЕ ОКНО ===== */
.business-school-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.business-school-modal-overlay.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

.business-school-modal-container {
    position: relative;
    /* Учитываем padding оверлея (20px сверху/снизу, слева/справа),
       чтобы контент не "вылезал" за экран и не выглядел обрезанным */
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.business-school-modal-content {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Если фото/подпись выше доступного места, даём скролл внутри модалки
       (body при открытии модалки становится overflow:hidden) */
    max-height: calc(100vh - 40px);
    overflow: auto;
    box-sizing: border-box;
}

.business-school-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 11;
}

.business-school-modal-close:hover {
    background: #c1121f;
    transform: rotate(90deg);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .business-school-modal-container {
        max-width: 95%;
        padding: 0;
    }

    .business-school-modal-content {
        padding: 1rem;
    }

    .business-school-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

