/* Стили для текстовых блоков */
.text-block {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: default; /* Запрещаем изменение курсора */
}

/* Убираем все hover-эффекты для текстовых блоков */
.text-block:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.text-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.text-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.text-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.text-date i {
    font-size: 0.8rem;
}

.text-content {
    flex: 1;
    color: #555;
    line-height: 1.6;
    overflow: hidden;
}

.text-content p {
    margin-bottom: 12px;
}

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

.text-content h1, 
.text-content h2, 
.text-content h3, 
.text-content h4, 
.text-content h5, 
.text-content h6 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.text-content h1 { font-size: 1.5rem; }
.text-content h2 { font-size: 1.4rem; }
.text-content h3 { font-size: 1.3rem; }
.text-content h4 { font-size: 1.2rem; }
.text-content h5 { font-size: 1.1rem; }
.text-content h6 { font-size: 1rem; }

.text-content ul, 
.text-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 5px;
}

.text-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: #666;
}

.text-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.text-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.text-content pre code {
    background: none;
    padding: 0;
}

.text-content a {
    color: #007bff;
    text-decoration: none;
}

.text-content a:hover {
    text-decoration: underline;
}

.text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.text-content th,
.text-content td {
    padding: 10px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.text-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Адаптивность для текстовых блоков */
@media (max-width: 768px) {
    .text-block {
        padding: 20px;
    }
    
    .text-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .text-block {
        padding: 15px;
    }
    
    .text-title {
        font-size: 1.2rem;
    }
}