@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

/* --- Global Settings --- */
html, body {
    margin: 0; padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- Fixed Navigation --- */
.sticky-nav-container {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 100000;
    background-color: #1B2B3A; 
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
}

/* Three-part layout: Logo Left | Menu Center | Spacer Right */
.nav-content-wrapper {
    width: 100%; 
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0 30px; 
    box-sizing: border-box;
    justify-content: space-between;
}

/* 1. Logo Section (Pinned Left) */
.logo-box {
    flex: 1; 
    display: flex;
    align-items: center;
    min-width: 429px; /*Force an identical width for both sides */
    justify-content: flex-start;
}

.logo-box a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-box img {
    height: 45px; 
    width: auto;
    margin-right: 12px;
}

.logo-text {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 20px;
    text-transform: none;
    white-space: nowrap;
}

/* 2. Menu Section (Centered) */
#sddm {
    flex: 1; 
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center; 
}

/* 3. Logo-HFRI*/
.logo-hfri-box {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 429px;

}

.logo-hfri-box a {
    display: flex;
    align-items: center;
    text-decoration: none;  
}

.logo-hfri-box img {
    height: 45px; 
    width: auto;
    margin-right: 12px;
}

/* --- Menu Links (Large Font & Padding) --- */
#sddm li { position: relative; }
#sddm li a {
    display: block; 
    padding: 20px 30px; 
    color: #FFFFFF !important;
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 700; 
    text-transform: uppercase;
    white-space: nowrap;
}

#sddm li a:hover, #sddm li a.active {
    background-color: #33D9EF !important; 
    color: #1B2B3A !important;
}

/* Dropdowns */
#sddm div {
    position: absolute;
    top: 100%;
    left: 0;
    visibility: hidden;
    background: #1B2B3A; 
    border-top: 3px solid #33D9EF;
    min-width: 250px;
    z-index: 100001;
}

#sddm div a {
    padding: 12px 20px;
    display: block;
    color: #FFFFFF !important;
    font-size: 13px !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: none;
}

/* --- Publications Grid & Analysis Container --- */
.container, .analysis-container {
    max-width: 1200px;
    margin: 100px auto 60px auto; /* 100px top margin to leave room for the fixed menu */
    padding: 0 20px;
}

.section-title {
    color: #1B2B3A; font-size: 28px; font-weight: 700;
    margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px;
}

.pub-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.pub-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards per row */
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Subtle shadow against white background */
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0; /* Slight border since background is now white */
}

.pub-card:hover {
    transform: translateY(-5px);
}

/* Thumbnail with Hover Overlay */
.pub-thumb {
    position: relative;
    width: 100%;
    height: 250px;
    background: #eee;
    overflow: hidden;
}

.pub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.pub-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 43, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pub-thumb:hover .pub-overlay {
    opacity: 1;
}

.pub-overlay a {
    color: #33D9EF;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #33D9EF;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Info Section */
.pub-info {
    padding: 20px;
}

.pub-label {
    font-size: 11px;
    font-weight: 700;
    color: #33D9EF;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.pub-info h3, .paper-title {
    font-size: 16px;
    color: #1B2B3A;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 700;
}

/* Analysis Page specific title sizing */
.paper-title {
    font-size: 28px;
    margin-bottom: 25px;
}

.pub-authors, .meta-data p {
    font-size: 13px;
    color: #555;
    margin: 0 0 5px 0;
}

.pub-journal {
    font-size: 12px;
    font-style: italic;
    color: #888;
}

/* Analysis Page Image */
.highlight-img {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: 40px 0;
    border: 1px solid #eee;
}

.doi-link {
    display: inline-block;
    margin-top: 15px;
    color: #33D9EF;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #33D9EF;
}
/* --- Footer Styles --- */
footer {
    background-color: #1B2B3A; 
    color: #ffffff;
    padding: 60px 0; /* Increased padding for a more "airy" feel like the reference */
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1); /* Subtle line for professional detail */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Spreads the three sections across the bar */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Left: ELIDEK Logos */
.footer-left {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.funding-logo {
    height: 80px; /* Adjust based on logo clarity */
    width: auto;
}

/* Middle: Project Branding */
.footer-middle {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-logo-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-main-logo {
    height: 120px; /* Increased size significantly to make the letters at the bottom readable */
    width: auto;
    margin-bottom: 5px; /* Tightened space between logo and circles */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3)); /* Optional: makes the logo pop against the dark blue */
}

/*.footer-logo-box p {
/*    font-weight: 700;
/*    text-transform: uppercase;
/*    margin: 0;
 /*   letter-spacing: 1px;
/*}

/* Right: Info & Copyright */
.footer-right {
    flex: 1;
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
}

.footer-right p {
    margin: 5px 0;
}

.copyright {
    margin-top: 15px !important;
    opacity: 0.7;
    font-size: 11px;
}
/* --- Social Media Circles --- */
.social-circles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.circle-link {
    width: 35px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent grey circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.circle-link:hover {
    background-color: #33D9EF; /* Cyan hover to match active menu */
    transform: scale(1.1);
    color: #1B2B3A;
}

/* Ensure scrolling breathing room */
.container, .analysis-container { min-height: 80vh; }
/* --- No Publications Notification --- */
.no-pubs-box {
    background-color: #f8f9fa; /* Light grey background */
    padding: 60px 40px;
    text-align: center;
    border-radius: 4px;
    border-left: 5px solid #33D9EF; /* Signature Cyan Accent */
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.no-pubs-box h3 {
    font-size: 22px;
    color: #1B2B3A; /* Project Navy */
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-pubs-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}