@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;
}


/* --- Research Content --- */
.container { padding-top: 120px; min-height: 80vh; }

.main-title { text-align: center; color: #1B2B3A; font-size: 32px; text-transform: uppercase; margin-bottom: 20px; }
.intro-text { max-width: 900px; margin: 0 auto 60px auto; text-align: center; font-size: 18px; line-height: 1.6; color: #555; }

.research-section { padding: 80px 0; width: 100%; }
.alt-bg { background-color: #f9f9f9; }

.research-content {
    max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; padding: 0 20px;
}

.research-content.reversed { flex-direction: row-reverse; }

.text-block { flex: 1; }
/*.text-block h2 { color: #1B2B3A; font-size: 24px; margin-bottom: 20px; border-left: 5px solid #33D9EF; padding-left: 15px; }
.text-block p { font-size: 16px; line-height: 1.8; color: #444; text-align: justify; }

.image-block { flex: 1; text-align: center; }
.image-block img { width: 100%; max-width: 500px; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- 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;
}


/* --- Research Layout --- */
.research-page-layout { display: flex; max-width: 1400px; margin: 120px auto 60px; padding: 0 40px; gap: 60px; }

/* Sticky Sidebar */
.research-sidebar { flex: 0 0 250px; }
.sidebar-box { position: sticky; top: 120px; background: #f8f9fa; padding: 30px; border-left: 4px solid #33D9EF; }
.sidebar-box h4 { margin-top: 0; font-size: 14px; text-transform: uppercase; color: #1B2B3A; letter-spacing: 1px; }
.nav-links { list-style: none; padding: 0; margin-top: 20px; }
.nav-links li { margin-bottom: 15px; }
.nav-links li a { text-decoration: none; color: #666; font-size: 14px; transition: color 0.3s; }
.nav-links li a:hover { color: #33D9EF; }

/* Main Content Area */
.research-main { flex: 1; }
.research-entry { margin-bottom: 80px; scroll-margin-top: 140px; }
.main-title { font-size: 32px; color: #1B2B3A; margin-bottom: 10px; }
.cyan-underline { width: 100px; height: 4px; background: #33D9EF; margin-bottom: 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.intro-block { font-size: 18px; line-height: 1.8; color: #555; text-align: justify; margin-bottom: 40px; }

/* WP & Task Cards */
.wp-heading { background: #1B2B3A; color: #fff; padding: 15px 25px; font-size: 20px; text-transform: uppercase; border-radius: 4px; margin-bottom: 40px; }
.task-card { margin-bottom: 40px; padding-left: 25px; border-left: 1px solid #eee; }
.task-card h3 { font-size: 18px; color: #1B2B3A; margin-bottom: 15px; border-bottom: 2px solid #33D9EF; display: inline-block; padding-bottom: 5px; }
.task-card p { line-height: 1.8; font-size: 15px; text-align: justify; color: #444; }

/* Image Styling */
.visual-placeholder { margin-top: 30px; text-align: center; }
.visual-placeholder img { width: 100%; max-width: 800px; border: 1px solid #ddd; padding: 5px; }
.img-caption { font-size: 12px; color: #888; margin-top: 10px; font-style: italic; }

/* --- Unique Work Package Backgrounds --- */

/* Overview - Minimalist White */
.overview-bg {
    background-color: #ffffff;
    padding: 60px 40px;
}

/* WP2 - Sophisticated Ice Blue */
.wp2-bg {
    background-color: #f1f8ff; 
    padding: 60px 40px;
    border-radius: 8px;
}

/* WP3 - Professional Deep Navy */
.wp3-bg {
    background-color: #1B2B3A;
    padding: 60px 40px;
    border-radius: 8px;
}

.wp3-bg h2, .wp3-bg p, .wp3-bg h3 {
    color: #ffffff !important;
}

/* WP4 - Clean White with Border */
.wp4-bg {
    background-color: #ffffff;
    padding: 60px 40px;
    border-top: 1px solid #eee;
}

/* --- Layout Refinements --- */
.research-entry {
    margin-bottom: 40px; /* Reduced margin to keep backgrounds closer */
    scroll-margin-top: 140px;
}

.wp-heading {
    display: inline-block;
    padding: 10px 0;
    font-size: 24px;
    border-bottom: 3px solid #33D9EF; /* Cyan underline matches Home page style */
    margin-bottom: 40px;
}

.light-text {
    color: #ffffff;
}

.task-card {
    margin-bottom: 35px;
    padding-left: 20px;
    border-left: 2px solid rgba(51, 217, 239, 0.5); /* Subtle cyan left border */
}

/* --- Collaborating Institutions Section (Colorful Version) --- */
.logos-section {
    padding: 80px 0;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.logos-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1B2B3A;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
    margin-top: -20px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px; /* Space between colorful logos */
}

.logo-item img {
    height: 80px; /* Uniform height for professional alignment */
    width: auto;
    
    opacity: 1; /* Removed grayscale filter */
    transition: transform 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.08); /* Keeps a nice interactive effect */
}


.logo-item-iasa img {
    height: 95px; /* Uniform height for professional alignment */
    width: auto;
    
    opacity: 1; /* Removed grayscale filter */
    transition: transform 0.3s ease;
}


.logo-item-iasa img:hover {
    transform: scale(1.08); /* Keeps a nice interactive effect */
}
