/* ==========================================================================
   Single Research Group Page Styles
   ========================================================================== */

.research-group-page .research-group-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.research-group-article {
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.research-group-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.research-group-header .entry-title {
    margin: 0 0 0.25rem 0;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    color: #1d2327;
}

.research-group-header .group-institution {
    margin: 0;
    font-size: 1.1em;
    color: #50575e;
    font-weight: 500;
}

.research-group-header .group-institution a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}
.research-group-header .group-institution a:hover {
    text-decoration: underline;
}

.research-group-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.group-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.group-section h2 {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #1d2327;
}

/* Grid for Author Summaries */
.author-summaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* List for Projects */
.group-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-item-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dotted #ddd;
    font-size: 1.1em;
}

.group-item-list li:last-child {
    border-bottom: none;
}

.group-item-list a {
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}
.group-item-list a:hover {
    text-decoration: underline;
}

.group-item-list .item-meta {
    font-size: 0.9em;
    color: #777;
    margin-left: 0.5rem;
    font-style: italic;
}

/* Styling for Thematic Area pills on Research Group page */
.research-group-header .group-thematic-areas {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.group-thematic-areas strong {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.group-thematic-areas .term-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.group-thematic-areas .term-link:hover {
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
}