:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.authors {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.authors a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.affiliations {
    font-size: 1em;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.venue {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 20px;
}

.links {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* Main Content Styles */
section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

h3 {
    color: var(--primary-color);
    margin-top: 25px;
}

figure {
    margin: 20px 0;
    text-align: center;
}

figcaption {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4f6f8;
    color: var(--primary-color);
    border-top: 2px solid #2c3e50;
    border-bottom: 2px solid #2c3e50;
}

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

.bold {
    font-weight: bold;
}

.highlight-row {
    background-color: #fff0f0; /* Light red background to match LaTeX \rowcolor{red!5} */
}

/* Image Grids */
.image-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.image-grid-2x2 figure {
    margin: 0;
}

.image-grid-2x2 img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
}

.image-grid-1x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.image-grid-1x2 figure {
    margin: 0;
}

.image-grid-1x2 img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Findings Grid */
.findings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.finding-card {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 5px;
}

.finding-card h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 1.1em;
}

/* Citation Styles */
pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
}

code {
    font-family: "Courier New", Courier, monospace;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    .findings-grid, .image-grid-2x2, .image-grid-1x2 {
        grid-template-columns: 1fr;
    }
    .btn {
        margin-bottom: 10px;
    }
}
