@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;
}

/* --- News Grid Feed (For news.html) --- */
.container {
    max-width: 1200px; 
    margin: 120px auto 0 auto; /* Removed bottom margin since footer handles it */
    padding: 0 20px 60px 20px; /* Added bottom padding for space before footer */
    box-sizing: border-box;
    
    /* This forces the page to be long enough to scroll, even with one news item */
    min-height: 80vh; 
}
.section-title {
    color: #1B2B3A; font-size: 28px; font-weight: 700;
    margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px;
}

.news-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.news-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 boxes per row */
    background: #fff; 
    border-radius: 4px; 
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover { transform: translateY(-5px); }
.news-link-wrapper { text-decoration: none; color: inherit; display: block; }

.news-thumb { 
    position: relative; 
    width: 100%; 
    height: 200px; 
    overflow: hidden; 
}

.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

.date-badge {
    position: absolute; bottom: 0; left: 0; background: #33D9EF;
    color: #1B2B3A; padding: 8px 12px; font-weight: 700; font-size: 12px;
}

.news-info { padding: 20px; }
.news-info h3 { font-size: 16px; color: #1B2B3A; margin: 0 0 10px 0; font-weight: 700; line-height: 1.4; }
.news-info p { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 15px; }
.read-more { color: #33D9EF; font-weight: 700; font-size: 12px; text-transform: uppercase; }

/* --- News Analysis Page (For project_launch.html) --- */
.analysis-container {
    max-width: 900px; /* Centered column layout */
    margin: 140px auto 60px auto; 
    padding: 0 20px;
}

.analysis-container h1 { 
    font-size: 32px; 
    color: #1B2B3A; 
    margin-bottom: 30px; 
    line-height: 1.2;
    text-align: left;
}

.news-full-img { 
    width: 100%; 
    height: auto; 
    max-height: 600px; 
    object-fit: cover; 
    margin-bottom: 40px; 
    border: 1px solid #eee; 
}

.news-body { 
    font-size: 17px; 
    line-height: 1.8; 
    color: #333; 
    text-align: justify; 
}
/* --- 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;
}
