/**
 * Стили для корректного отображения контента, созданного в редакторе
 */
.editor-content {
    font-family: inherit;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.editor-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    padding-bottom: 0.5rem;
}

.editor-content h3 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e3a8a;
}

.editor-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    background-color: transparent !important;
}

.editor-content ul, 
.editor-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2.25rem;
}

.editor-content ul li, 
.editor-content ol li {
    margin-bottom: 0.625rem;
    padding-left: 0.25rem;
}

.editor-content ul {
    list-style-type: disc;
}

.editor-content ol {
    list-style-type: decimal;
}

.editor-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px dotted rgba(59, 130, 246, 0.5);
    transition: all 0.2s ease;
}

.editor-content a:hover {
    color: #1d4ed8;
    border-color: #1d4ed8;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.editor-content table th,
.editor-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.875rem;
}

.editor-content table th {
    background-color: #f3f4f6;
    font-weight: 600;
    text-align: left;
    color: #374151;
}

.editor-content table tr:nth-child(even) {
    background-color: #f9fafb;
}

.editor-content table tr:hover {
    background-color: #f3f4f6;
}

.editor-content blockquote {
    border-left: 4px solid #cbd5e1;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background-color: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #475569;
    font-style: italic;
}

.editor-content blockquote p:last-child {
    margin-bottom: 0;
}

.editor-content hr {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
    margin: 2rem 0;
}

.editor-content a.attached-file {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    margin: 0.75rem 0;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.editor-content a.attached-file:hover {
    background-color: #e0e7ff;
    border-color: #c7d2fe;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.editor-content a.attached-file i {
    margin-right: 0.75rem;
} 

/* Стили для FAQ блоков */
.editor-content .faq-block {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.editor-content .accordion {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.editor-content .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.editor-content .accordion-header {
    margin-bottom: 0;
}

.editor-content .accordion-button {
    background-color: #f8fafc;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    color: #1e40af;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.editor-content .accordion-button:not(.collapsed) {
    background-color: #e0e7ff;
    color: #1e3a8a;
}

.editor-content .accordion-button::after {
    content: "▼";
    margin-left: auto;
    transition: transform 0.2s ease;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.editor-content .accordion-button.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.editor-content .accordion-collapse {
    border-top: 1px solid #e5e7eb;
}

.editor-content .accordion-body {
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border-radius: 0 0 0.5rem 0.5rem;
    color: #374151;
}