/* School Editor Pro KB — стили блоков (в редакторе и на сайте).
   Названия классов (.sep-*) сохранены от прежней версии, чтобы старые статьи выглядели так же. */

/* Важное примечание */
.sep-important-note {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-family: sans-serif;
}

/* Цитата директора (голубой блок) */
.sep-director-quote {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.3em;
    background-color: #e7f3fe;
    border-left: 5px solid #2196F3;
    color: #0d47a1;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Обёртка для цитаты с аватаром */
.sep-quote-wrapper {
    text-align: center;
    margin: 30px auto;
    max-width: 80%;
}

.sep-quote-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2196F3;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Информационный блок (зелёный) */
.sep-info-box {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

/* Предупреждение (красный) */
.sep-warning {
    background-color: #fff5f5;
    border-left: 5px solid #dc3545;
    color: #721c24;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

/* Интересный факт (фиолетовый) */
.sep-interesting {
    background-color: #f3e5f5;
    border-left: 5px solid #9c27b0;
    color: #4a148c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

/* Анонс мероприятия (базовый — синий) */
.sep-event-box {
    border: 2px dashed #0073aa;
    padding: 20px;
    background: #f0f7fb;
    text-align: center;
    margin: 20px 0;
    border-radius: 10px;
}
.sep-event-title {
    font-size: 1.5em;
    color: #0073aa;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sep-event-box.sep-red { border-color: #dc3545; background: #fff5f5; }
.sep-event-box.sep-red .sep-event-title { color: #dc3545; }
.sep-event-box.sep-green { border-color: #28a745; background: #d4edda; }
.sep-event-box.sep-green .sep-event-title { color: #28a745; }
.sep-event-box.sep-orange { border-color: #fd7e14; background: #fff3cd; }
.sep-event-box.sep-orange .sep-event-title { color: #fd7e14; }

.sep-event-details p {
    font-size: 1.1em;
    color: #555;
    margin: 5px 0;
}

/* Две колонки (80% текст / 20% фото) */
.sep-two-columns {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    align-items: flex-start;
}
.sep-column-text { flex: 4; }
.sep-column-image { flex: 1; }
.sep-column-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
@media (max-width: 600px) {
    .sep-two-columns { flex-direction: column; }
    .sep-column-text, .sep-column-image { flex: auto; width: 100%; }
}

/* Списки с иконками */
ul.sep-checklist, ul.sep-checklist-question, ul.sep-checklist-cross, ul.sep-checklist-neutral {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
ul.sep-checklist li, ul.sep-checklist-question li, ul.sep-checklist-cross li, ul.sep-checklist-neutral li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
    font-size: 1.05em;
}
ul.sep-checklist li:before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}
ul.sep-checklist-question li:before {
    content: '?';
    position: absolute;
    left: 0;
    top: 0;
    color: #0073aa;
    font-weight: bold;
    font-size: 1.2em;
}
ul.sep-checklist-cross li:before {
    content: '✖';
    position: absolute;
    left: 0;
    top: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
}
ul.sep-checklist-neutral li:before {
    content: '●';
    position: absolute;
    left: 0;
    top: 2px;
    color: #6c757d;
    font-size: 1em;
}

/* Маркеры (выделение текста) */
.sep-marker-yellow { background-color: #fff3cd; padding: 2px 4px; border-radius: 3px; }
.sep-marker-green { background-color: #d4edda; padding: 2px 4px; border-radius: 3px; }
.sep-marker-pink { background-color: #f8d7da; padding: 2px 4px; border-radius: 3px; }

/* Спойлер (вопрос-ответ) */
details.sep-spoiler {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
details.sep-spoiler summary {
    padding: 15px 15px 15px 40px;
    cursor: pointer;
    font-weight: bold;
    background: #f9f9f9;
    border-bottom: 1px solid transparent;
    list-style: none;
    position: relative;
    transition: background 0.3s;
}
details.sep-spoiler summary:hover { background: #f0f0f0; }
details.sep-spoiler summary::-webkit-details-marker { display: none; }
details.sep-spoiler summary:before {
    content: '+';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #0073aa;
    font-weight: bold;
}
details.sep-spoiler[open] summary { border-bottom: 1px solid #e1e1e1; }
details.sep-spoiler[open] summary:before { content: '−'; color: #dc3545; }
.sep-spoiler-content { padding: 20px; background: #fff; }

/* Красивая таблица (класс sep-table; назначается автоматически новым таблицам) */
table.sep-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
table.sep-table th {
    background-color: #0073aa;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}
table.sep-table thead tr {
    background-color: #0073aa;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}
table.sep-table th, table.sep-table td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}
table.sep-table tbody tr:nth-of-type(even) { background-color: #f3f3f3; }
table.sep-table tbody tr:hover { background-color: #e9f5fb; }

/* На телефонах широкая таблица прокручивается по горизонтали, а не ломает страницу */
@media (max-width: 600px) {
    table.sep-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table.sep-table th, table.sep-table td { padding: 8px 10px; }
}

/* Разделители */
hr.sep-divider-stars {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 30px 0;
    position: relative;
    overflow: visible;
}
hr.sep-divider-stars:after {
    content: "★ ★ ★";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sep-bg, #fff);
    padding: 0 10px;
    color: #ccc;
    font-size: 14px;
}

hr.sep-divider-gradient {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 115, 170, 0), rgba(0, 115, 170, 0.75), rgba(0, 115, 170, 0));
    margin: 30px 0;
}

.sep-divider-book {
    text-align: center;
    margin: 30px 0;
    position: relative;
}
.sep-divider-book:before {
    content: "";
    display: block;
    border-top: 1px solid #ddd;
    width: 100%;
    height: 1px;
    position: absolute;
    top: 50%;
    z-index: 1;
}
.sep-divider-book span {
    background: var(--sep-bg, #fff);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #0073aa;
    font-size: 20px;
}

/* Структура статьи (обёртка) */
.sep-article-structure {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 820px) {
    .sep-article-structure { padding: 0 15px; }
}
