/* --- Global Styles --- */
.BaseBody {
    font-family: 'Maven Pro', "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
}

.HeroBannerContainer {
    background-color: #1a1a1a !important;
    background-image: url('images/banner.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px;
    width: 100%;
    border-bottom: 1px solid #333;
}

/* --- Navbar Styles --- */
.NavBarCustom {
    background-color: transparent !important;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.ScrolledNavbar {
    background-color: black !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.NavBarCustom .nav-link {
    color: #e0e0e0 !important;
    font-weight: 400;
    margin-left: 20px;
}

/* --- Profile & Layout --- */
.ProfileImage {
    border: 5px solid #fff;
    max-width: 90%;
}

.PageContainerSpacing {
    margin-top: 120px;
    margin-bottom: 80px;
}

.NewsContent {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Cards & Thumbnails --- */
.WorkCard {
    transition: transform 0.2s ease-in-out;
    background-color: transparent;
}

.WorkCard:hover {
    transform: scale(1.03);
}

.WorkThumbnail {
    border: 1px solid #ddd;
    padding: 6px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* --- Embed Wrappers (CV & Teaching) --- */
.CvViewerWrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    height: 80vh;
    overflow: hidden;
    background-color: #fff;
}

.CvIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.SpreadsheetWrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 100vh;
    overflow: hidden;
    background-color: #fff;
}

.SpreadsheetIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Lab Page Styles --- */
.CarouselContainer {
    max-width: 50%;
    margin: 0 auto;
    position: relative;
}

.CarouselImage {
    height: 450px;
    object-fit: cover;
}

.SlideCounterBadge {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.LabMemberImage {
    width: 180px;
    height: 240px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	border-radius: 4px;
}

.LabMemberInfo p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

/* --- Publications Page --- */
.PublicationsSection .CvViewerWrapper {
    height: calc(100vh - 200px);
    max-width: 100%;
}

/* --- Footer --- */
.FundingSection p {
    font-size: 0.95rem;
    color: #333;
}

.LabFooter {
    background-color: #fbf9d6;
    color: #000;
    font-size: 0.95rem;
    border-top: 1px solid #eaeaea;
}


/* Media Queries */
@media (max-width: 768px) {
    
    .PageContainerSpacing {
        margin-top: 80px;
        margin-bottom: 40px;
    }

    .HeroBannerContainer {
        height: 280px;
        background-position: top center;
    }

    .CarouselContainer {
        max-width: 100%; 
        padding: 0 15px; 
    }

    .CarouselImage {
        height: 250px; 
    }

    .LabMemberImage {
        width: 150px;
        height: 200px;
        margin-bottom: 15px; 
    }
    .CvViewerWrapper {
        height: 88vh;
        width: 100vw;
        max-width: none;
        margin-left: calc(-50vw + 50%);
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
    }

    .CvIframe {
        width: 600px;
        height: calc(100% / 0.62);
        transform: scale(0.62);
        transform-origin: top left;
    }

    .SpreadsheetWrapper {
        height: 80vh;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        overflow-x: auto !important;
    }
}
