.research-groups-page {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.research-groups-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.research-group-compact-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(10, 43, 115, 0.1);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(14, 42, 104, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 0;
}

.research-group-compact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 43, 115, 0.18);
    box-shadow: 0 16px 28px rgba(14, 42, 104, 0.1);
}

.research-group-compact-media {
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 0.95rem 0.95rem 0 0;
    background: #eef3fb;
}

.research-group-compact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.research-group-compact-card:hover .research-group-compact-media img {
    transform: scale(1.05);
}

.research-group-compact-media-fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(84, 153, 255, 0.22), transparent 22%),
        linear-gradient(135deg, #071b49 0%, #0a2b73 100%);
}

.research-group-compact-symbol {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.research-group-compact-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem;
}

.research-group-compact-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.research-group-compact-focus,
.research-group-compact-featured,
.research-group-compact-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.research-group-compact-focus {
    padding: 0.34rem 0.62rem;
    background: #eef4ff;
    color: #123a99;
}

.research-group-compact-featured {
    padding: 0.34rem 0.62rem;
    background: #fdf4db;
    color: #8a6411;
}

.research-group-compact-body h2 {
    margin: 0;
    padding: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.32;
}

.research-group-compact-body h2::after {
    display: none;
}

.research-group-compact-title-link {
    color: #10233f !important;
    text-decoration: none;
}

.research-group-compact-title-link:hover,
.research-group-compact-title-link:focus {
    color: #0a2b73 !important;
}

.research-group-compact-text {
    margin: 0;
    color: #516178 !important;
    font-size: 0.9rem;
    line-height: 1.55;
}

.research-group-compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.research-group-compact-pill {
    padding: 0.34rem 0.62rem;
    background: #f5f7fb;
    color: #41556f;
    border: 1px solid rgba(10, 43, 115, 0.08);
}

.research-group-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-group-compact-actions .btn {
    min-width: 0;
    border-radius: 0.72rem;
    padding-inline: 0.85rem;
}

@media (max-width: 1199px) {
    .research-groups-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .research-groups-compact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .research-group-compact-card {
        border-radius: 0.9rem;
    }

    .research-group-compact-body h2 {
        font-size: 0.98rem;
    }

    .research-group-compact-text {
        font-size: 0.85rem;
    }

    .research-group-compact-body {
        padding: 0.8rem;
    }
}
