/* Enhanced Article Content Styles for Rich Text Display */

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

/* Quill size classes */
.article-content .ql-size-small {
    font-size: 0.875rem;
}

.article-content .ql-size-large {
    font-size: 1.25rem;
}

.article-content .ql-size-huge {
    font-size: 1.5rem;
}

/* Quill font classes */
.article-content .ql-font-Inter {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.article-content .ql-font-sans {
    font-family: 'Segoe UI', sans-serif;
}

.article-content .ql-font-serif {
    font-family: 'Georgia', serif;
}

.article-content .ql-font-mono {
    font-family: 'Courier New', monospace;
}

/* Paragraphs */
.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.85;
}

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

/* Headings */
.article-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 2.5rem 0 1.25rem;
    font-weight: 700;
    color: #0f172a;
    scroll-margin-top: 6rem;
}

.article-content h1:first-child {
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.875rem;
    line-height: 1.3;
    margin: 2rem 0 1rem;
    font-weight: 600;
    color: #1e293b;
    scroll-margin-top: 6rem;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 1.75rem 0 0.875rem;
    font-weight: 600;
    color: #334155;
    scroll-margin-top: 6rem;
}

/* Lists */
.article-content ul,
.article-content ol {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

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

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

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    padding-left: 0.375rem;
}

.article-content li p {
    margin-bottom: 0.5rem;
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
    margin: 0.75rem 0;
}

/* Links */
.article-content a {
    color: #0b62c9;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: all 0.2s;
}

.article-content a:hover {
    color: #ce1126;
    text-decoration-color: #fca5a5;
}

/* Strong/Bold */
.article-content strong {
    font-weight: 600;
    color: #1e293b;
}

/* Emphasis/Italic */
.article-content em {
    font-style: italic;
}

/* Blockquote */
.article-content blockquote {
    border-left: 4px solid #ce1126;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(to right, #fef2f2, #fff);
    border-radius: 0.5rem;
    font-style: italic;
    color: #475569;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.article-content blockquote p {
    margin-bottom: 0.75rem;
}

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

.article-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    font-style: normal;
}

/* Code - Inline */
.article-content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9em;
    color: #e11d48;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Code - Block */
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #334155;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    border: none;
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Horizontal Rule */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin: 3rem 0;
}

/* Tables (if used) */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.article-content th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-content tbody tr:hover {
    background: #f8fafc;
}

/* Alignment classes from Quill */
.article-content .ql-align-center {
    text-align: center;
}

.article-content .ql-align-right {
    text-align: right;
}

.article-content .ql-align-justify {
    text-align: justify;
}

/* Indent classes from Quill */
.article-content .ql-indent-1 {
    padding-left: 3rem;
}

.article-content .ql-indent-2 {
    padding-left: 6rem;
}

/* First letter styling for dramatic effect */
.article-content>p:first-of-type::first-letter {
    font-size: 3.5rem;
    line-height: 1;
    float: left;
    margin: 0.1rem 0.5rem 0 0;
    font-weight: 700;
    color: #ce1126;
}