/* Fellows list */

.fellow-list-hero {
    --fellow-fs: 1rem;
    font-size: var(--fellow-fs);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 5rem 0 3.75rem 0;
    position: relative;
    overflow: hidden;
}

.fellow-list-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 31.25rem;
    height: 31.25rem;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.fellow-list-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 25rem;
    height: 25rem;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-1.25rem) translateX(0.625rem);
    }
}

.fellow-list-hero .hero-content {
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fellow-list-hero .hero-icon {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.4);
    animation: floatIcon 3s ease-in-out infinite;
}

.fellow-list-hero .hero-icon i {
    font-size: 2.5em;
    color: #ffffff;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.625rem);
    }
}

.fellow-list-hero .hero-title {
    font-size: 3em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.fellow-list-hero .hero-subtitle {
    font-size: 1.2em;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.fellow-list-hero .hero-link {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.4rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0.5rem 1.25rem rgba(102, 126, 234, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fellow-list-hero .hero-link:hover {
    color: #ffffff;
    opacity: 0.92;
    transform: translateY(-0.125rem);
}

.fellow-notice {
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: #ffffff;
    border-left: 0.25rem solid #667eea;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
}

.fellow-notice p {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

.fellow-list-section {
    --fellow-fs: 1rem;
    font-size: var(--fellow-fs);
    padding: 3.125rem 0 5rem 0;
    background-color: #f8f9fa;
}

.fellow-list-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.fellow-list-section .section-title {
    font-size: 2.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
}

.fellow-list-section .section-title::after {
    content: '';
    display: block;
    width: 5rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.125rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    box-shadow: 0 0.125rem 0.5rem rgba(102, 126, 234, 0.4);
}

.fellow-list-section .section-subtitle {
    font-size: 1.05em;
    color: #5a6c7d;
    margin: 1rem 0 0;
}

.fellow-list-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fellow-list-card .laos-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0.125rem solid #e8ecf1;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.fellow-list-card .card-inner {
    display: flex;
    align-items: stretch;
    flex: 1;
    padding: 0;
    min-height: 0;
}

.fellow-list-card .fellow-avatar-col {
    flex: 0 0 15.5rem;
    width: 15.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fellow-list-card .fellow-avatar.fellow-avatar-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    color: #ffffff;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
}

.fellow-list-card .fellow-avatar:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fellow-list-card .fellow-avatar-link {
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.fellow-list-card .fellow-avatar-link:hover,
.fellow-list-card .fellow-avatar-link:focus-visible {
    opacity: 0.92;
}

.fellow-list-card .fellow-avatar-link:focus-visible {
    outline: 0.125rem solid rgba(102, 126, 234, 0.6);
    outline-offset: -0.125rem;
}

.fellow-list-card .fellow-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.fellow-list-card .card-body {
    flex: 1;
    padding: 1.4rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fellow-list-card .card-badge {
    margin-bottom: 0.5rem;
}

.fellow-list-card .card-badge span {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 62.4375rem;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fellow-list-card .card-title {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.fellow-list-card .card-title-link {
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.fellow-list-card .card-title-link:hover,
.fellow-list-card .card-title-link:focus-visible {
    color: #667eea;
}

.fellow-list-card .card-role {
    font-weight: 500;
    color: #5a6c7d;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fellow-list-card .card-meta {
    font-size: 0.95em;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.fellow-list-card .card-summary {
    color: #4a5568;
    line-height: 1.65;
    font-size: 0.95em;
    margin-bottom: 1rem;
    flex: 1;
}

.fellow-list-card .card-summary.yz-text-three-line-ellipsis {
    max-height: calc(1.65em * 3);
    flex: 0 1 auto;
}

.fellow-list-card .fellow-card-action {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eef1f6;
}

.fellow-list-card .read-more {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.fellow-list-card .read-more i {
    font-size: 0.85em;
    transition: transform 0.3s ease;
}

.fellow-list-card .read-more:hover,
.fellow-list-card .read-more:focus-visible {
    color: #764ba2;
}

.fellow-list-card .read-more:hover i,
.fellow-list-card .read-more:focus-visible i {
    transform: translateX(0.25rem);
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state .empty-icon i {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 1rem;
}

.empty-state .empty-title {
    color: #2c3e50;
}

.empty-state .empty-text {
    color: #5a6c7d;
}

.fellow-detail-empty {
    padding: 5rem 1rem 4rem;
}

.fellow-empty-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fellow-empty-link:hover {
    color: #764ba2;
}

.fellow-empty-link i {
    transition: transform 0.3s ease;
}

.fellow-empty-link:hover i {
    transform: translateX(0.25rem);
}

@media (max-width: 768px) {
    .fellow-list-hero .hero-icon {
        width: 5rem;
        height: 5rem;
    }

    .fellow-list-card .fellow-avatar-col {
        flex: 0 0 10.5rem;
        width: 10.5rem;
    }

    .fellow-list-card .card-body {
        padding: 0.9rem 0.9rem 0.85rem 0.85rem;
    }
}

/* Fellow detail */

.fellow-detail-section {
    background-color: #f8f9fa;
    padding: 2.5rem 0 5rem 0;
    min-height: 60vh;
}

.fellow-detail-breadcrumb {
    margin-bottom: 2rem;
}

.fellow-detail-breadcrumb .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.fellow-detail-breadcrumb .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fellow-detail-breadcrumb .breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.fellow-detail-breadcrumb .breadcrumb-item.active {
    color: #5a6c7d;
}

.fellow-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    padding: 0 0.5rem;
}

.fellow-detail-header {
    display: flex;
    align-items: stretch;
    margin-bottom: 2rem;
    background: #ffffff;
    border: 0.125rem solid #e8ecf1;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
}

.fellow-detail-avatar {
    flex: 0 0 16rem;
    width: 16rem;
    min-height: 20rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.fellow-detail-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.fellow-detail-intro {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fellow-detail-badge {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0.7rem;
    border-radius: 62.4375rem;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fellow-detail-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.0312rem;
    line-height: 1.25;
}

.fellow-detail-role {
    font-size: 1.05rem;
    font-weight: 500;
    color: #5a6c7d;
    margin-bottom: 0.75rem;
}

.fellow-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 0;
    color: #667eea;
    font-weight: 500;
}

.fellow-detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
}

.fellow-detail-meta .meta-item i {
    color: #667eea;
}

.fellow-detail-main {
    background: #ffffff;
    border: 0.125rem solid #e8ecf1;
    border-radius: 1.25rem;
    padding: 2rem 2.1rem 1.5rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
    height: 100%;
}

.fellow-detail-block {
    margin-bottom: 2rem;
}

.fellow-detail-block:last-child {
    margin-bottom: 0;
}

.fellow-detail-block .block-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.fellow-detail-block .block-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.125rem;
    box-shadow: 0 0.125rem 0.5rem rgba(102, 126, 234, 0.4);
}

.fellow-detail-block .fellow-biography {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4a5568;
    white-space: pre-line;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.research-tag {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border-radius: 62.4375rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
}

.fellow-profile-card {
    background: #ffffff;
    border: 0.125rem solid #e8ecf1;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
}

.profile-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.95rem 1.35rem;
}

.profile-card-body {
    padding: 0.5rem 1.35rem 1.5rem;
}

.profile-field {
    padding: 1rem 0;
    border-bottom: 1px solid #eef1f6;
}

.profile-field:last-of-type {
    margin-bottom: 0.5rem;
}

.profile-field .field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.profile-field .field-value {
    color: #1a1a1a;
    font-weight: 600;
}

.profile-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-field-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(102, 126, 234, 0.08);
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.btn-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(102, 126, 234, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-official:hover {
    color: #ffffff;
    opacity: 0.92;
    transform: translateY(-0.125rem);
}

.fellow-detail-section .fellow-detail-note {
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .fellow-profile-card {
        position: sticky;
        top: 6rem;
    }
}

@media (max-width: 768px) {
    .fellow-detail-avatar {
        flex: 0 0 10.5rem;
        width: 10.5rem;
        min-height: 12.75rem;
        font-size: 2rem;
    }

    .fellow-detail-intro {
        padding: 1.15rem 1rem 1.2rem 0.9rem;
    }

    .fellow-detail-name {
        font-size: 1.45rem;
    }

    .fellow-detail-role {
        font-size: 0.95rem;
    }

    .fellow-detail-main {
        padding: 1.5rem;
    }
}
