/* === Reset === */
body, html {
    width: 100%;
    box-sizing: border-box;
}

/* === Paper Card Container === */
.paper-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 16px;
    margin: 0.8rem 0;
    border-radius: 10px;
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.paper-container:hover {
    transform: translateY(-2px);
}

/* === Media (GIF / PNG) === */
.media-container {
    flex: 1 1 30%;
    padding-right: 3%;
    text-align: center;
    margin-bottom: 0.8rem;
}

.paper-image {
    height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* === Info Section === */
.info-container {
    flex: 1 1 70%;
    text-align: left;
}

.paper-title {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.4rem 0;
}

.authors, .journal, .url, .info {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #444;
    margin: 0 0 0.2rem 0;
}

.journal {
    font-style: italic;
    color: #666;
}

/* === Links === */
a {
    text-decoration: none;
    color: #66b3ff;
}

a:hover {
    text-decoration: underline;
    color: #3399ff;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .media-container {
        flex: 1 1 100%;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .info-container {
        flex: 1 1 100%;
        padding-left: 0;
    }

    .paper-image {
        height: 140px;
    }

    .paper-title {
        font-size: 1rem;
    }

    .authors, .journal, .url {
        font-size: 0.85rem;
    }
}
