.fellows-section { 
    background-color: #F2F4F5;

}

.fellows-section .container { 
padding-block: 80px;
}

.fellows-section .container .title-container { 
    margin-bottom: 64px;
}

.fellows-section .container .title-container .pre-title { 
    margin-bottom: 8px;
}

.fellows-section .container .title-container h2 { 
    text-align: center;
}


.fellows-section .container .fellows-container { 
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: calc(450px * 3 + 40px * 2);
    margin-inline: auto;

    justify-content: center;
    padding-inline: 20px;
}

.fellows-section .container .fellows-container .single-fellow { 
    background-color: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    width: 450px;
    min-height: 542px;
    border: 1px solid #C4CCD1;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fellows-section .container .fellows-container .single-fellow.single-fellow-image { 
        width: 294px;
        height: 294px;
        min-height: unset;
    }
}


.fellows-section .container .fellows-container .single-fellow .fellow-image-and-name { 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 270px;
    position: relative;
}

.fellows-section .container .fellows-container .single-fellow .fellow-image-and-name .fellow-image-overlay { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180.16deg, rgba(12, 25, 55, 0) 0.14%, rgba(12, 25, 55, 0.1) 47.63%, rgba(12, 25, 55, 0.7) 99.86%);
    z-index: 1;
}

.fellows-section .container .fellows-container .single-fellow .fellow-image-and-name .fellow-icon { 
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 2;
}

.fellows-section .container .fellows-container .single-fellow .fellow-image-and-name .name-and-university { 
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    z-index: 2;
}

.fellows-section .container .fellows-container .single-fellow .fellow-image-and-name .name-and-university h3 { 
    font-family: CircularXX TT, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 140%;
}

.fellows-section .container .fellows-container .single-fellow .fellow-image-and-name .name-and-university p { 
    font-family: CircularXX TT, sans-serif;
    font-weight: 450;
    font-size: 16px;
    line-height: 150%;
}

.fellows-section .container .fellows-container .single-fellow .fellow-content { 
    min-height: 272px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 8px;
}

.fellows-section .container .fellows-container .single-fellow .fellow-content .fellow-content-container { 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fellows-section .container .fellows-container .single-fellow .fellow-content .fellow-content-container .content-title { 
    font-family: CircularXX TT, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    vertical-align: middle;
    color: #8A93AC;
}

.fellows-section .container .fellows-container .single-fellow .fellow-content .fellow-content-container .content-text { 
    font-family: CircularXX TT, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #0C1937;
}

@media (max-width: 1500px) {
    
    .fellows-section .container .fellows-container { 
        width: calc(350px * 3 + 40px * 2);
    }

    .fellows-section .container .fellows-container .single-fellow { 
        width: 350px;
    }
}

@media (max-width: 1200px) {
    .fellows-section .container .fellows-container { 
        width: calc(300px * 3 + 40px * 2);
    }

    .fellows-section .container .fellows-container .single-fellow { 
        width: 300px;
    }
}

@media (max-width: 992px) {
    .fellows-section .container .fellows-container { 
        width: 100%;
    }

    .fellows-section .container .fellows-container .single-fellow { 
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .fellows-section .container .fellows-container .single-fellow { 
        width: 100%;
        min-height: unset;
        height: auto;
    }

    .fellows-section .container .fellows-container .single-fellow .fellow-content { 
        min-height: unset;
        height: auto;
    }
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 54px;
}

.load-more-fellows-btn {
    background: rgba(0, 15, 53, 1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-family: CircularXX TT, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.load-more-fellows-btn:hover {
    background: rgba(0, 15, 53, 1);
}

.load-more-fellows-btn:active {
    transform: translateY(0);
}

.load-more-fellows-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-fellows-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Loading Spinner */
.fellows-section .loading-spinner {
    display: inline-block;
}

.fellows-section .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.fellows-section .spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments for load more button */
@media (max-width: 768px) {
    .load-more-container {
        margin-top: 40px;
    }
    
    .load-more-fellows-btn {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .load-more-fellows-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }
}

/* Smooth animation for new fellows */
.single-fellow {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for fellows container */
.fellows-container.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Focus styles for accessibility */
.load-more-fellows-btn:focus-visible {
    outline: 2px solid #0C1937;
    outline-offset: 2px;
}


/* Mobile 2 fellows per row */
@media (max-width: 768px) {
    .fellows-section .container .fellows-container {
        padding-inline: 0;
        gap: 16px;
    }
    .fellows-section .container .fellows-container .single-fellow { 
        width: calc(50% - 8px);
        min-height: unset;
        height: auto;
    }
}