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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: #fff;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Institution Logos */
.institution-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.institution-logos .logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Authors Section */
.authors {
    margin: 25px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.author {
    display: inline;
    margin-right: 4px;
}

.author a {
    color: #3498db;
    text-decoration: none;
}

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

.author sup {
    font-size: 0.75em;
}

/* Affiliations */
.affiliations {
    margin: 20px 0 30px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.affiliation {
    display: inline-block;
    margin-right: 15px;
}

.affiliation sup {
    font-size: 0.75em;
}

.contribution-note {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

/* Links/Buttons */
.links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;       /* more horizontal padding → more oval */
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;   /* makes pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #34495e;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Make buttons pill-shaped */
.btn.rounded {
    border-radius: 9999px;      /* full pill */
    padding: 12px 18px;         /* a touch more breathing room */
}

/* Keep icons crisp and white by inheriting the text color */
.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;         /* inherits from .btn color (white) */
    flex-shrink: 0;             /* prevents icon from squishing */
}

/* Content Sections */
.content-section {
    padding: 50px 20px;
    border-top: 1px solid #e0e0e0;
}

.content-section.gray-bg {
    background-color: #f8f9fa;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: #444;
}

.section-content ul {
    margin: 15px 0 15px 30px;
}

.section-content li {
    margin-bottom: 10px;
    color: #444;
}

/* Findings Grid */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.finding-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gray-bg .finding-item {
    background-color: #fff;
}

.finding-item h4 {
    margin-bottom: 12px;
    color: #2c3e50;
}

.finding-item p {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Code Blocks */
pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

footer p {
    margin: 10px 0;
    font-size: 0.95rem;
}

footer .license {
    font-weight: 500;
    margin-top: 20px;
}

footer .copyright {
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.6rem;
    }
    
    .institution-logos {
        gap: 20px;
    }
    
    .institution-logos .logo {
        height: 45px;
    }
    
    .authors {
        font-size: 0.95rem;
    }
    
    .affiliations {
        font-size: 0.85rem;
    }
    
    .links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .findings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }
    
    .institution-logos .logo {
        height: 35px;
    }
    
    .content-section {
        padding: 30px 15px;
    }
}
