/* Markdown Content Styling */
.content h1,
.content h2,
.content h3,
.content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

.content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
}

.content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.content h4 {
    font-size: 1.25rem;
}

.content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    line-height: 1.8;
}

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

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

.content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.content ul ul,
.content ol ul,
.content ul ol,
.content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left: 4px solid #555;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

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

.content a {
    color: #555;
    text-decoration: underline;
    transition: color 0.3s;
}

.content a:hover {
    color: #000;
}

.content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

.content strong {
    font-weight: 600;
    color: #333;
}

.content em {
    font-style: italic;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content table th,
.content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Primului element nu-i trebuie margin top */
.content > *:first-child {
    margin-top: 0;
}

/* Ultimului element nu-i trebuie margin bottom */
.content > *:last-child {
    margin-bottom: 0;
}