/* ===== Страница «Обучение» ===== */
.obychenie-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.obychenie-page .page-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a3c34;
    margin-bottom: 10px;
}
.obychenie-page .page-subtitle {
    color: #7c6b59;
    font-size: 1.05rem;
    margin-bottom: 40px;
}

/* Уведомления */
.oc-alert {
    padding: 12px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.oc-alert--ok    { background: #e6ffe6; color: #006600; border: 1px solid #b7e4b7; }
.oc-alert--error { background: #ffe6e6; color: #b00020; border: 1px solid #f3bcbc; }

.oc-empty {
    padding: 30px 0;
    color: #7c6b59;
    font-style: italic;
    text-align: center;
}

/* Блок «рабочая программа» внутри карточки */
.course-program {
    margin: 14px 0;
    font-size: 0.9rem;
}
.oc-program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9b2f2f;
    text-decoration: none;
    font-weight: 600;
}
.oc-program-link:hover { text-decoration: underline; }
.oc-program-link .fa-file-pdf { color: #b00020; font-size: 1.1rem; }

.oc-program-missing {
    color: #9a8a77;
    font-style: italic;
    font-size: 0.85rem;
}

/* Админ-панель внутри карточки */
.oc-admin-actions {
    margin: 14px 0 16px;
    padding: 12px 14px;
    background: #fbf8f2;
    border: 1px dashed #d9c6b0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.oc-upload-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.oc-file-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd2c4;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2c3e3a;
    overflow: hidden;
    max-width: 100%;
}
.oc-file-label:hover { border-color: #9b2f2f; color: #9b2f2f; }
.oc-file-label input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.oc-file-label span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.oc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: 0.25s;
}
.oc-btn--primary { background: #1a2c3c; color: #fff; }
.oc-btn--primary:hover { background: #9b2f2f; }
.oc-btn--danger {
    background: transparent;
    border-color: #e0b4b4;
    color: #b00020;
}
.oc-btn--danger:hover { background: #b00020; color: #fff; border-color: #b00020; }

.oc-inline-form { display: inline; }

/* Адаптив */
@media (max-width: 768px) {
    .obychenie-page { padding: 30px 20px; }
    .obychenie-page .page-title { font-size: 2.2rem; }
    .oc-file-label span { max-width: 140px; }
}