body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    background-color: #f9fafe;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    background: #ffffff;
    padding: 100px 40px 40px;
    /* Ample space for absolute logos */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    border: 1px solid #eee;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

h2 {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 40px;
    color: #2c3e50;
    font-weight: 600;
}

p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.authors {
    margin-top: 15px;
    font-size: 1.1em;
}

.author-name {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

.author-name:hover {
    color: #3498db;
}

/* Reverted to text-friendly styles */
.affiliations {
    margin-top: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.affiliations a:hover {
    color: #3498db !important;
    border-bottom-color: #3498db !important;
}

/* TLDR Box */
.tldr-box {
    background-color: #e8f4f8;
    border-left: 5px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 1.05rem;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tldr-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

figure img {
    max-width: 75%;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Sophisticated shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

img:hover {
    transform: translateY(-5px) scale(1.02);
}

figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

.links {
    margin: 30px 0;
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.abstract {
    background-color: #fff;
    padding: 0;
}

pre {
    background-color: #f4f6f7;
    padding: 15px;
    overflow-x: auto;
    border-radius: 5px;
    font-size: 0.9em;
    border: 1px solid #ecf0f1;
}

/* Group Link Styles */
.group-link {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 0.75rem;
    /* Consistent smaller size */
    color: #95a5a6;
    font-weight: 400;
    line-height: 1.4;
}

.group-link a {
    color: #95a5a6;
    border-bottom: 1px dotted #95a5a6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.group-link a:hover {
    color: #3498db;
    border-bottom: 1px solid #3498db;
    text-decoration: none;
}

/* Corner Logos */
.corner-logos {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    display: flex;
    align-items: flex-start;
    /* Align to top like the text */
    gap: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.corner-logos:hover {
    opacity: 1;
}

.corner-logo {
    height: 40px;
    /* Fixed height for consistent alignment */
    width: auto;
    filter: grayscale(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    /* No rounded corners */
    padding: 0 !important;
}

.corner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
    opacity: 1;
}

/* Rich Visual Components */
.info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3498db;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    margin-top: 0;
    color: #0369a1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.finding-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.finding-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.finding-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

.finding-card p {
    font-size: 0.95rem;
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.accent-text {
    color: #3498db;
    font-weight: 700;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.stat-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Mobile: Move logos to bottom relative */
@media (max-width: 800px) {
    .corner-logos {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 40px;
        opacity: 1;
    }
}