/* Scientific Journal CSS - 2 Column Layout */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000;
    background-color: #f5f5f5;
}

/* Journal Container - A4/Letter paper simulation */
.journal-container {
    max-width: 210mm; /* A4 width */
    margin: 20px auto;
    padding: 20mm 15mm;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header */
.journal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.journal-name {
    font-size: 10pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.paper-info {
    font-size: 9pt;
    color: #666;
    margin-top: 5px;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 30px;
}

.paper-title {
    font-size: 18pt;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #000;
}

.authors {
    margin-top: 15px;
}

.author-name {
    font-size: 12pt;
    font-weight: normal;
    margin-bottom: 5px;
}

.affiliation {
    font-size: 10pt;
    font-style: italic;
    color: #555;
}

/* Abstract - Full Width */
.abstract-section {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 3px solid #333;
}

.abstract-section h2 {
    font-size: 12pt;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.abstract-section p {
    text-align: justify;
    font-size: 10pt;
    line-height: 1.5;
}

.keywords {
    margin-top: 15px;
    font-size: 9pt;
    font-style: italic;
}

/* Two-Column Layout for Main Content */
.two-column-content {
    column-count: 2;
    column-gap: 8mm;
    column-rule: 1px solid #ddd;
    text-align: justify;
}

/* Section Headings */
h2 {
    font-size: 12pt;
    font-weight: bold;
    margin-top: 18px;
    margin-bottom: 8px;
    text-transform: uppercase;
    break-after: avoid;
}

h3 {
    font-size: 11pt;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
    font-style: italic;
    break-after: avoid;
}

h4 {
    font-size: 10.5pt;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    break-after: avoid;
}

/* Paragraphs */
p {
    margin-bottom: 10px;
    text-indent: 0;
}

/* Lists */
ul, ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 5px;
}

/* Equations */
.equation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 3px;
    break-inside: avoid;
}

.equation-number {
    font-size: 10pt;
    color: #666;
    margin-left: 10px;
}

/* Tables */
.table-wrapper {
    margin: 20px 0;
    break-inside: avoid;
    column-span: all; /* Span both columns for large tables */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px auto;
    font-size: 9pt;
}

table caption {
    text-align: left;
    font-size: 10pt;
    margin-bottom: 8px;
    font-weight: bold;
}

thead {
    border-top: 2px solid #000;
    border-bottom: 1px solid #000;
}

th {
    padding: 8px;
    text-align: left;
    font-weight: bold;
}

td {
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
}

tbody tr:last-child td {
    border-bottom: 2px solid #000;
}

.highlight-row {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* References */
.references p {
    text-indent: -20px;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 9pt;
}

/* Footer */
.journal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #333;
    text-align: center;
    font-size: 9pt;
    color: #666;
}

.journal-footer p {
    margin-bottom: 5px;
}

/* Strong and Emphasis */
strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

/* Subscripts and Superscripts */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* Print Styles */
@media print {
    body {
        background-color: #fff;
    }

    .journal-container {
        max-width: 100%;
        margin: 0;
        padding: 15mm;
        box-shadow: none;
    }

    .two-column-content {
        column-gap: 6mm;
    }
}

/* Mobile Responsive - Single Column */
@media (max-width: 768px) {
    .journal-container {
        max-width: 100%;
        margin: 0;
        padding: 15px;
    }

    .two-column-content {
        column-count: 1;
        column-rule: none;
    }

    .paper-title {
        font-size: 16pt;
    }

    h2 {
        font-size: 11pt;
    }

    h3 {
        font-size: 10pt;
    }
}
