/* Main Layout */
body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1024px;
    padding: 20px;
    background-color: #243c79;
    color: #ffffff;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Helvetica', Arial, sans-serif;
    color: #eeeeee;
    border-bottom: 1px solid #5577bb;
    padding-bottom: 5px;
    padding-left: 15px;
}

h1 {
    text-align: center;
    font-size: 2.2em;
    border-bottom: 2px solid #5577bb;
    margin-bottom: 1em;
    padding-left: 0; 
}

h2 {
    font-size: 1.6em;
    margin-top: 1.8em;
}

h3 {
    font-size: 1.3em;
    margin-top: 1.5em;
    border-bottom: none;
    font-style: italic;
}

/* Text Content Indentation */
p, ul, ol, blockquote {
    padding-left: 15px;
}

/* Lists */
ul, ol {
    padding-left: 40px; 
}

li {
    margin-bottom: 0.7em;
}

/* Inline Emphasis */
strong {
    color: #ffffff;
    font-weight: bold;
}

blockquote {
    font-style: italic;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 3px solid #7799dd;
    color: #cccccc;
}

/* Special Sections */
.section-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 2em 0 1em 0;
    border-radius: 8px;
}

.abstract, .keywords {
    margin: 2em 0;
    padding: 1em;
    padding-left: 30px; 
    background-color: #1e3263;
    border-left: 5px solid #5577bb;
}

.authors {
    text-align: center;
    margin: 1.5em 0;
}

.equation {
    text-align: center;
    margin: 1.2em auto;
    padding: 0.8em;
    font-family: 'Courier New', Courier, monospace;
    background-color: #1a2a5a;
    border: 1px solid #5577bb;
    color: #e0e0e0;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 1.1em;
}

.proof {
    padding: 1em 1em 1em 2em;
    border-left: 3px solid #6688cc;
    margin-top: 1em;
    background-color: #2a4282;
}

/* --- FIXED IMAGE ALIGNMENT --- */

/* STRICT 0px MARGIN FIX */
/* This resets the left margin to exactly 0, preventing indentation AND preventing negative overflow */
div:has(> img) {
    margin-left: 0 !important; 
    padding-left: 0 !important;
    text-align: left !important;
}

/* Ensure the image itself has no margin/padding and displays as a block */
div:has(> img) > img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    max-width: 100%;
}