.research-overview {
    background: var(--bg-white);
    padding: 3rem 0 3rem 0;
}

.overview-content {
    max-width: 850px;
}

.overview-content h2 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.overview-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.research-areas-detail {
    padding: 6rem 0;
    background: var(--bg-white);
}

.research-areas-detail .container {
    max-width: 1400px;
}

/* Selected publications list (figure + description per item) */
.selected-publications {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1360px;
    margin: 0 auto;
    margin-left: -2rem;
    padding-left: 2rem;
}

.pub-highlight {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.pub-highlight:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.pub-figure-empty {
    min-height: 0;
    aspect-ratio: auto;
    background: transparent;
}

.pub-figure {
    width: calc(100% + 2rem);
    margin-left: -2rem;
    max-width: 520px;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.pub-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pub-body {
    min-width: 0;
}

.pub-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.pub-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.pub-description {
    color: var(--text-medium);
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.pub-links {
    font-size: 0.95rem;
    color: var(--text-light);
}

.pub-links a {
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .selected-publications {
        margin-left: 0;
        padding-left: 0;
    }
    .pub-highlight {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .pub-figure {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
    }
    .pub-figure-empty {
        display: none;
    }
}

.research-area-card {
    margin-bottom: 2rem;
}

.area-content h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.area-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: transparent;
    color: var(--text-light);
    padding: 0.2rem 0;
    font-size: 0.85rem;
    font-weight: 400;
}

.tools-resources {
    padding: 3rem 0;
    background: var(--bg-white);
}

.tools-resources.software-page-top {
    padding-top: 6rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.tool-card {
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tool-card h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.tool-logo {
    margin-bottom: 0.75rem;
    width: 200px;
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.tool-logo img {
    width: 200px;
    height: 80px;
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
}

.tool-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-link {
    display: inline-block;
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
} 

.tool-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .research-area-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .area-number {
        font-size: 2rem;
    }
    
    .area-content h3 {
        font-size: 1.15rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
