@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem!important;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}




/* === Showcase: uniform card sizing === */

/* Image: every showcase image renders at exactly the same dimensions */
/* .showcase-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: center;
    display: block;
} */
.showcase-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #f8f9fa;
}

/* Force every showcase grid item to the same fixed height */
.grid-item {
    margin-bottom: 1.5rem;
}



.grid-item > .card,
.grid-item > div {
    height: 500px !important; /*card project height*/
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    border: 1.1px solid #000 !important;
    border-radius: 0.8rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover: subtle lift + stronger shadow */
.grid-item > .card:hover,
.grid-item > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

/* Inner content area takes the remaining space below the image */
.grid-item .card-body {
    flex: 1;
    overflow: hidden;
    padding: 1rem 1.25rem;
}

/* Description text — clamp to 4 lines max */
.grid-item .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

/* body .container-md,
body .container-lg,
body .container-xl {
    max-width: 50% !important; /*Make full website wider, just change the percentage*/
/* } */

/* On mobile, let cards be their natural height */
@media (max-width: 768px) {
    .grid-item > .card,
    .grid-item > div {
        height: auto !important;
    }
}