@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;
}

/* --- Force Transparency on Initial Load --- */

/* 1. Target the nav container specifically when it has the transparent class */
#main-nav-row.transparent-menu {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 2. Ensure the inner flex-wrapper doesn't inherit a background */
#main-nav-row.transparent-menu .nav-content-wrapper {
    background-color: transparent !important;
}

/* 3. Smooth transition when scrolling */
#main-nav-row {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* 4. Ensure the blue state is solid when scrolled */
#main-nav-row.scrolled-blue {
    background-color: #1B2B3A !important;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4) !important;
}
/* --- Banner & Typography --- */
.main-banner {
    width: 100%;
    height: 500px;
    /* Increase the negative margin to pull it higher under the menu */
    margin-top: 0px; 
    background-image: url('../img/banner.gif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.header-title {
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 5px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
    margin: 0;
}

.header-project-description {
    font-size: 24px;
    color: #FFFFFF;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    padding: 0 20px;
}

/* --- Content Styling --- */
.innertitle { font-size: 22px; font-weight: 700; color: #1B2B3A; margin-bottom: 10px; }
.plaintext { font-size: 15px; line-height: 1.6; color: #333333; text-align: justify; }
.newstext { font-size: 13px; color: #990000; }
.newslink { color: #33D9EF; text-decoration: none; font-weight: 700; }
/* Container for the group content */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: #1B2B3A;
    font-size: 28px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Flexbox Grid */
.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

/* Individual Member Card */
.member-card {
    width: calc(20% - 24px); /* 5 members per row */
    text-align: left;
}

.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps photos square */
    object-fit: cover;
    filter: grayscale(100%); /* B&W effect like reference */
    transition: filter 0.3s ease;
    margin-bottom: 15px;
}

.member-photo:hover {
    filter: grayscale(0%); /* Turns to color on hover */
}

.member-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0;
    color: #1B2B3A;
}

.member-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.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;
}
/* --- Home Layout Adjustments --- */
.home-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.home-section {
    padding: 100px 0;
}

.alt-bg {
    background-color: #f8f9fa;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.section-content.reversed {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
    text-align: center;
}

.home-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modern-title {
    font-size: 32px;
    color: #1B2B3A;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 5px solid #33D9EF;
    padding-left: 15px;
}

/* --- Navigation Fixes --- */
.nav-content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
}


/* --- Professional Split-Screen Layout --- */
.innovation-row {
    display: flex;
    min-height: 600px;
    width: 100%;
    align-items: stretch;
}

.innovation-row.reversed { flex-direction: row-reverse; }

.innovation-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.innovation-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.img-label {
    position: absolute; bottom: 20px; left: 20px;
    background: rgba(255,255,255,0.95); padding: 12px 25px;
    font-size: 13px; font-weight: 700; color: #1B2B3A;
    text-transform: uppercase; letter-spacing: 1px;
}

.innovation-text {
    flex: 1;
    padding: 80px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Color Alternation for Modern Contrast */
.innovation-row.reversed .innovation-text {
    background: #1B2B3A; /* Signature Dark Blue */
    color: #fff;
}

.pillar-subtitle {
    font-size: 14px; color: #33D9EF; margin-bottom: 10px; display: block;
}

.pillar-title {
    font-size: 28px; font-weight: 700; margin-bottom: 30px; line-height: 1.3;
}

.innovation-row.reversed .pillar-title { color: #fff; }

.obj-mini-block { margin-bottom: 30px; }
.obj-mini-block strong { color: #33D9EF; display: block; margin-bottom: 8px; font-size: 18px; }
.obj-mini-block p { font-size: 15px; line-height: 1.8; text-align: justify; margin-bottom: 10px; }

/* Intro Panel specific style */
.intro-panel .innovation-text { background-color: #f8f9fa; }
/* --- High-Tech Innovation Pillars --- */
.home-container {
    width: 100%;
    overflow: hidden;
}

.innovation-row {
    display: flex; /* This is what makes the side-by-side work */
    min-height: 650px; /* Ensures enough room for the text */
    width: 100%;
    align-items: stretch; /* Makes both halves equal height */
}

/* This flips the layout for even rows */
.innovation-row.reversed {
    flex-direction: row-reverse;
}

.innovation-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.innovation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image distortion */
    display: block;
}

.img-label {
    position: absolute; bottom: 30px; left: 30px;
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    font-size: 12px; font-weight: 700; color: #1B2B3A;
    text-transform: uppercase; letter-spacing: 1px;
}

.innovation-text {
    flex: 1;
    padding: 60px 8%; /* Centers text inside its half */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

/* Dark Blue background for alternating rows */
.innovation-row.reversed .innovation-text {
    background-color: #1B2B3A;
    color: #ffffff;
}

.pillar-subtitle {
    font-size: 14px; color: #33D9EF; margin-bottom: 10px; display: block;
}

.pillar-title {
    font-size: 30px; font-weight: 700; margin-bottom: 35px; line-height: 1.2;
}

.innovation-row.reversed .pillar-title { color: #ffffff; }

.obj-mini-block { margin-bottom: 30px; }
.obj-mini-block strong { 
    display: block; margin-bottom: 10px; color: #33D9EF; font-size: 18px; 
}
.obj-mini-block p { 
    font-size: 15px; line-height: 1.7; text-align: justify; margin: 0; 
}
/* --- Intro Section Styles --- */
.intro-panel {
    background-color: #ffffff;
    padding: 80px 0;
}

.larger-intro {
    font-size: 19px !important;
    line-height: 1.8 !important;
    max-width: 1000px !important;
    margin: 30px auto !important;
    font-weight: 300;
}

.centered-text {
    text-align: justify !important;
}

.modern-title.centered {
    text-align: center;
    border-left: none;
    padding-left: 0;
}

/* Ensure Pillar titles are clear in dark mode */
.innovation-row.reversed .pillar-title {
    color: #ffffff;
}

/* Fix for potential text overlap in pillars */
.obj-mini-block p {
    margin-bottom: 15px;
    text-align: justify;
}
/* --- Split-Screen Innovation Rows --- */
.innovation-row {
    display: flex;
    min-height: 800px; /* Increased height to accommodate vertical image stack */
    width: 100%;
}

.innovation-row.reversed {
    flex-direction: row-reverse;
}

.innovation-text, .innovation-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 8%;
    box-sizing: border-box;
}

/* Left/Dark Side */
.dark-bg {
    background-color: #1B2B3A;
    color: #ffffff;
}

/* Right/Visual Side - Vertical Stack Setup */
.light-blue-bg {
    background-color: #e3f2fd;
    text-align: center;
    gap: 40px; /* Space between the two image-text pairs */
}

.visual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.split-img {
    width: 100%;
    height: auto;
    max-width: 450px; /* Adjusted size for stacking */
    margin: 0 auto 10px auto;
    display: block;
    /* Removed box-shadow and border to prevent shaded areas */
    box-shadow: none; 
    border: none;
}

.split-caption {
    font-size: 13px;
    font-style: italic;
    color: #1B2B3A;
    margin: 0;
    line-height: 1.4;
    max-width: 450px;
}
    max-width: 500px;
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.split-caption {
    font-size: 13px;
    font-style: italic;
    color: #1B2B3A;
    margin: 0;
    line-height: 1.4;
}
/* --- Intro Section Styles --- */
.intro-panel {
    background-color: #ffffff;
    padding: 100px 0 60px 0;
}

.larger-intro {
    font-size: 19px !important;
    line-height: 1.8 !important;
    max-width: 1100px !important;
    margin: 0 auto 50px auto !important;
    text-align: justify !important;
    font-weight: 400;
    color: #444;
}

.modern-title.centered {
    text-align: center;
    border-left: none;
    padding-left: 0;
    font-size: 32px;
    color: #1B2B3A;
    text-transform: uppercase;
}

/* --- Visual Area Stack spacing --- */
.innovation-visual.light-blue-bg {
    background-color: #e3f2fd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px; /* Adjust this to control vertical space between images */
}

.visual-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.split-img {
    width: 100%;
    height: auto;
    max-width: 480px;
    display: block;
    box-shadow: none; /* Removed shadow per request */
}

.split-caption {
    font-size: 13px;
    font-style: italic;
    color: #1B2B3A;
    margin-top: 15px;
    line-height: 1.5;
    max-width: 480px;
    text-align: center;
}
/* --- Professional Institution Home Styling --- */

/* 1. Introductory Typography */
.intro-panel {
    background-color: #ffffff;
    padding: 120px 0 80px 0;
    text-align: center;
}

.larger-intro {
    font-size: 18px !important;
    line-height: 1.8 !important;
    max-width: 1000px !important;
    margin: 0 auto 60px auto !important;
    font-weight: 400;
    color: #555;
    letter-spacing: 0.2px;
}

.modern-title-header {
    font-size: 32px;
    font-weight: 700;
    color: #1B2B3A;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 40px;
}

/* 2. Alternating Scientific Pillars */
.innovation-row {
    display: flex;
    min-height: 850px; /* Increased to allow stacked images breathing room */
    width: 100%;
}

.innovation-row.reversed {
    flex-direction: row-reverse;
}

.innovation-text, .innovation-visual {
    flex: 1; /* Ensures 50/50 split exactly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 7%;
    box-sizing: border-box;
}

/* 3. Dark Side Refinements */
.dark-bg {
    background-color: #1B2B3A;
    color: #ffffff;
}

.pillar-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #33D9EF;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.pillar-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

.obj-mini-block {
    margin-bottom: 35px;
}

.obj-header {
    font-size: 17px;
    font-weight: 700;
    color: #33D9EF;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.obj-mini-block p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #d1d1d1; /* Softer white for readability */
    text-align: justify;
    margin: 0;
}

/* 4. Light Blue Visual Side & Image Stacking */
.light-blue-bg {
    background-color: #f1f8ff; /* Extremely sophisticated light blue tint */
    gap: 60px; /* Vertical gap between stacked image items */
}

.visual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110%;
}

.visual-item-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
}
.split-img {
    width: 100%;
    height: auto;
    max-width: 520px;
    border: none;
    box-shadow: none; /* Removed shadow per request */
    margin-bottom: 15px;
}

.split-caption {
    font-size: 13px;
    font-style: italic;
    color: #1B2B3A;
    max-width: 520px;
    line-height: 1.5;
    text-align: center;
    opacity: 0.85;
}
.cyan-underline {
    width: 30%;
    height: 4px;
    background-color: #33D9EF; /* Signature Cyan */
    margin: 10px auto 0 auto;
}
/* --- Professional Header with Short Underline & Shadow --- */
.objectives-header-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 60px;
}

.modern-title-header {
    font-size: 32px;
    font-weight: 700;
    color: #1B2B3A; /* Matches the project navy blue */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    padding-bottom: 10px;
}

.stylish-line {
    width: 550px; /* Small, fixed width as requested */
    height: 3px;
    background-color: #33D9EF; /* Signature Cyan */
    margin: 0 auto;
    border-radius: 2px;
    
    /* Subtle shadow below the line */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Optional: Slight adjustment to the intro text for better flow */
.larger-intro {
    font-size: 19px !important;
    line-height: 1.8 !important;
    max-width: 1050px !important;
    margin: 0 auto 40px auto !important;
    color: #444;
    padding-bottom: 50px; 
}

/* --- Prominent Funding Section --- */
.funding-header-container {
    text-align: center;
    margin: 40px auto 60px auto;
}

.modern-title-header.small {
    font-size: 24px; /* Slightly smaller than main page headers */
    letter-spacing: 2px;
}

.funding-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Space between Greek and English logos */
    margin-top: 30px;
}

.primary-funding-logo {
    height: 80px; /* Increased height for visibility */
    width: auto;
    filter: none; /* Ensure full color visibility */
    transition: transform 0.3s ease;
}

.primary-funding-logo:hover {
    transform: scale(1.05);
}

/* Adjusting margins for the Proposal Objectives to accommodate the new section */
.objectives-header-container {
    text-align: center;
    margin-top: 80px; /* Added space between Funding and Objectives */
    margin-bottom: 60px;
}
/* --- 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;
}

.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 */
}

/* --- 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;
    padding-top: 5px;
    padding-bottom: 5px; 
}

/* 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;
}