@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;
}


/* --- Member Grid Layout --- */
.container {
    max-width: 1200px;
    margin: 20px auto 60px auto; 
    padding: 0 20px;
}

.section-title {
    color: #1B2B3A;
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: none;
    font-weight: 700;
    border-bottom: 2px solid #33D9EF;
    display: inline-block;
    padding-bottom: 5px;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 20px;
}

.member-card {
    flex: 0 0 calc(25% - 30px); /* 4 members per row like the reference */
    text-align: left;
}

.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: none;
    transition: filter 0.5s ease;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.member-photo:hover {
member-card    filter: grayscale(0%);
}

.member-card h3 {
   font-size: 16px;
   font-weight: 700;
   color: #1B2B3A;
   margin: 0 0 5px 0;
}

.member-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.section-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}
/* --- 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;
}
/* --- Consortium Header Layout --- */
.institution-header {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

/* Alternating layout for a fresh look */
.institution-header.reversed {
    flex-direction: row-reverse;
}

.institution-text {
    flex: 2;
}

.institution-logo {
    flex: 1;
    text-align: center;
}

.institution-logo img {
    max-height: 100px;
    width: auto;
    max-width: 100%;
}

.institution-logo-other {
    flex: 1;
    text-align: center;
}

.institution-logo-other img {
    max-height: 160px;
    width: auto;
    max-width: 100%;
}

.logo-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.logo-stack img {
    max-height: 60px;
}

.plaintext {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-top: 15px;
}

/* Section Title Refinement */
.section-title-iasa {
    margin-bottom: 10px;
    border-bottom: 3px solid #2D329D; /* Matches Home objectives style */
    display: inline-block;
    padding-bottom: 5px;
}

.section-title-patras {
    margin-bottom: 10px;
    border-bottom: 3px solid #9D2222; 
    
    display: inline-block;
    padding-bottom: 5px; 
}

.section-title-democritos {
    margin-bottom: 10px;
    border-bottom: 3px solid #1A4B8F; 
    display: inline-block;
    padding-bottom: 5px;
}

.section-title-insa {
    margin-bottom: 10px;
    border-bottom: 3px solid #D11E1E; 
    display: inline-block;
    padding-bottom: 5px;
}

.section-title-cnr {
    margin-bottom: 10px;
    border-bottom: 3px solid #1FB0E5; 
    display: inline-block;
    padding-bottom: 5px;
}
/* --- Professional Consortium Styling --- */
.consortium-wrapper { margin-top: 120px; }

.institution-block {
    margin-bottom: 100px;
    padding: 40px;
    background: #fff;
}

.inst-info {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
}

.inst-info.reversed { flex-direction: row-reverse; }

.inst-text { flex: 2; }

.inst-label {
    color: #33D9EF; /* Cyan accent */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.inst-name {
    font-size: 26px;
    color: #1B2B3A; /* Navy blue */
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.inst-logo-box { flex: 1; text-align: center; }
.inst-logo { max-height: 90px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }

/* Member Grid Styling */
.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.member-card {
    flex: 0 0 calc(25% - 23px);
    background: #fcfcfc;
    border-bottom: 3px solid transparent;
   transition: all 0.3s ease;
}

.member-card:hover {
    border-bottom-color: #33D9EF;
    transform: translateY(-5px);
}


/*.member-card:hover .member-photo { filter: grayscale(0%); }

.member-info { padding: 15px; }
.member-info h3 { font-size: 15px; margin: 0; color: #1B2B3A; }
.member-info p { font-size: 13px; color: #777; margin-top: 5px; }

/* Large Group Photos */
.group-visual-container {
    margin-top: 40px;
    text-align: center;
}

.group-action-photo {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.img-caption {
    font-size: 13px;
    font-style: italic;
    color: #888;
    margin-top: 15px;
}
/* --- Collaborating Institutions Section (Colorful Version) --- */
.logos-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.logos-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1B2B3A;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.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: 90px; /* 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 */
}
html {
    scroll-behavior: smooth;
}

/* Offset for the sticky header so text doesn't hide behind it */
.consortium-section {
    scroll-margin-top: 120px; 
}
/* --- Integrated Full-Width Objectives Bar --- */

.objectives-header-box-wrapper {
    width: 100%;
    background-color: #1B2B3A; /* Matches the dark-bg sections */
    text-align: center;
    padding: 20px 0;
    /* Creates the subtle shadow seen in your references */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); 
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 5;
}

.objectives-box {
    display: inline-block;
}

.modern-title-header.boxed-text {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF !important;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
}

/* Adjust the intro panel to remove extra bottom space */
.intro-panel {
    padding-bottom: 40px; 
}

/* Ensure the first innovation row has no top padding so it hits the bar */
.innovation-row:first-of-type .innovation-text {
    padding-top: 40px;
}