@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import "cssreset.css";
@import "nav.css";

/* Adjust scroll position for sections targeted by anchor links */
#latest-section {
    scroll-margin-top: 4rem;
}

html {
    scroll-padding-top: 4rem;
}

/* Main layout container */
.latest-section {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 20px;
}

.latest-section h1 {
    font-size: 2.5rem;
    font-style: underline;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

/* Paper container styling */
.paper-container {
    display: flex;
    margin-bottom: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.paper-container.reverse {
    flex-direction: row-reverse;
}

.paper-content {
    flex: 3;
    padding: 25px;
}

.paper-image {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.paper-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Typography for paper content */
.paper-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.paper-content h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 15px;
}

/* Abstract container and collapsible functionality */
.abstract-container {
    position: relative;
    margin-bottom: 20px;
}

.abstract-preview {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.abstract-full {
    display: none;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 10px;
}

.read-more-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background-color: #2980b9;
}

.paper-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
}

.paper-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .paper-container, 
    .paper-container.reverse {
        flex-direction: column;
    }
    
    .paper-image {
        order: +1; /* Always show image afterwards on mobile */
        min-height: 200px;
    }
    
    .paper-content h2 {
        font-size: 1.5rem;
    }
}
