/* --- 1. VARIABLES & RESET --- */
:root {
    --unicef-blue: #1CABE2;
    --nlu-red: #800000;
    --clc-navy: #0F1E32;
    --clc-gold: #E6D8AD;
    
    --text-dark: #222222;
    --text-light: #f4f4f4;
    --bg-cream: #FDFBF7;
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1250px; /* Increased slightly to give header more room */
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. HEADER & NAVIGATION --- */
nav {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 110px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevents wrapping */
}

/* --- BRANDING (LEFT SIDE) --- */
.nav-branding { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0; /* Prevents branding area from shrinking */
}

.nav-logos { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    flex-shrink: 0; /* Keeps logos from squishing */
}

/* Uniform Logo Size */
.header-logo { 
    height: 75px;  /* Slightly adjusted to fit perfectly in 110px header */
    width: auto; 
    object-fit: contain; 
}

.sep { 
    font-size: 2rem; 
    color: #ddd; 
    font-weight: 300; 
    line-height: 1;
}

/* Text Stack */
.nav-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #eee;
    padding-left: 15px;
    line-height: 1.3;
    flex-shrink: 0; /* Ensures text block doesn't collapse */
}

/* Uniform Text Styling */
.org-line {
    font-family: var(--font-head);
    color: var(--nlu-red); 
    font-weight: 700;
    font-size: 0.85rem; /* Adjusted to fit layout perfectly */
    white-space: nowrap; /* Prevents wrapping */
}

/* --- LINKS (RIGHT SIDE) --- */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    flex-shrink: 0; /* Prevents menu from collapsing */
}

.nav-links a { 
    color: #444; 
    font-weight: 600; 
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-links a:hover { 
    color: var(--unicef-blue); 
}

/* --- FIXED SUBMIT BUTTON --- */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--nlu-red);
    color: white !important;
    
    /* Strict Sizing to prevent "screwed up" size */
    padding: 12px 28px;
    min-width: 140px; /* Forces minimum width */
    height: 48px;     /* Forces fixed height */
    
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    border: 2px solid var(--nlu-red);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0; /* CRITICAL: Prevents button from squishing */
}

.nav-btn:hover {
    background-color: transparent;
    color: var(--nlu-red) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: #333; margin: 5px; transition: 0.3s; }

/* --- 3. HERO SECTION --- */
#hero {
    background: linear-gradient(rgba(15, 30, 50, 0.65), rgba(15, 30, 50, 0.65)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90vh;
}

.comp-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: var(--font-head);
    font-size: 6rem;
    margin-bottom: 0;
    line-height: 1.0;
    text-shadow: 4px 4px 20px rgba(0,0,0,0.8);
    letter-spacing: -2px;
}

/* --- 4. SECTIONS COMMON --- */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h3 { font-family: var(--font-head); font-size: 2.2rem; color: var(--nlu-red); margin-bottom: 10px; }
.title-bar { width: 60px; height: 4px; background: var(--unicef-blue); margin: 0 auto; }
.bg-offwhite { background-color: var(--bg-cream); }

/* --- 5. ABOUT SECTION --- */
.about-grid { display: flex; flex-direction: column; gap: 40px; max-width: 900px; margin: 0 auto; }
.about-card { background: white; padding: 35px; border-left: 6px solid var(--unicef-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 4px; }
.about-card h4 { color: var(--nlu-red); margin-bottom: 15px; font-size: 1.4rem; font-family: var(--font-head); border-bottom: 1px solid #eee; padding-bottom: 10px; }
.about-card p { font-size: 1rem; color: #444; line-height: 1.8; text-align: justify; }

/* --- 6. THEMES --- */
.themes-grid { display: grid; gap: 20px; max-width: 1100px; margin: 0 auto; }
.three-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } 

.theme-card { background: white; padding: 30px; border-radius: 6px; display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: 0.3s; border-bottom: 4px solid transparent; }
.theme-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom-color: var(--nlu-red); }
.theme-num { font-size: 2rem; font-weight: 700; color: var(--nlu-red); opacity: 0.15; line-height: 1; }
.theme-card p { font-weight: 600; color: #222; font-size: 1.1rem; line-height: 1.4; }

/* --- 7. TIMELINE --- */
.timeline-center {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto;
    border-top: 4px solid var(--nlu-red);
}
.timeline-item { text-align: center; }
.t-label { display: block; font-size: 1rem; color: #666; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.t-date { display: block; font-size: 1.8rem; font-weight: 700; color: var(--clc-navy); font-family: var(--font-head); }
.t-date.highlight { color: var(--nlu-red); }

/* --- 8. GUIDELINES --- */
.bg-dark { background-color: var(--clc-navy); color: white; }
.white-text h3 { color: white; }
.guidelines-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1100px; margin: 0 auto; }
.guide-block h4 { color: var(--unicef-blue); margin-bottom: 20px; font-size: 1.2rem; }
.guide-block ul li { margin-bottom: 10px; position: relative; padding-left: 20px; font-size: 0.95rem; color: #ddd; }
.guide-block ul li::before { content: "•"; color: var(--unicef-blue); position: absolute; left: 0; }

/* --- 9. AWARDS --- */
.prizes-box-center { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.prize-card { background: white; padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); min-width: 250px; border-top: 4px solid #ddd; }
.prize-card.gold { border-color: #FFD700; }
.prize-card.silver { border-color: #C0C0C0; }
.prize-card.bronze { border-color: #CD7F32; }

.prize-card .icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.prize-card strong { display: block; font-size: 1.2rem; color: var(--clc-navy); margin-bottom: 5px; }
.prize-card p { font-size: 1.1rem; color: #555; }

.publication-box {
    background: linear-gradient(135deg, #fff 0%, #fdfbf7 100%);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.publication-box h4 { color: var(--nlu-red); font-size: 1.3rem; font-family: var(--font-head); margin-bottom: 10px; }
.publication-box p { font-size: 1.1rem; color: var(--clc-navy); font-weight: 600; }

.center-btn { text-align: center; }
.main-submit-btn {
    display: inline-block;
    background-color: var(--unicef-blue);
    color: white !important;
    padding: 18px 45px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(28, 171, 226, 0.4);
    border: 2px solid var(--unicef-blue);
}
.main-submit-btn:hover { background-color: #158dbd; border-color: #158dbd; transform: translateY(-2px); }

/* --- 10. FOOTER --- */
footer { background: #0a1525; color: white; padding: 60px 0 30px; text-align: center; }
.contact-info h4 { color: var(--clc-gold); margin-bottom: 15px; font-family: var(--font-head); }
.contact-info p { margin-bottom: 8px; font-size: 0.95rem; color: #ccc; }
.contact-info a { color: var(--unicef-blue); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 0.8rem; opacity: 0.5; }

/* --- 11. RESPONSIVE --- */
/* Tablet & Small Desktop (prevent Header break) */
@media (max-width: 1150px) {
    /* Hide text stack on medium screens to keep button/links visible */
    .nav-text-stack { display: none; }
}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .nav-links {
        position: fixed; right: -100%; top: 0; height: 100vh; width: 75%;
        background: white; flex-direction: column; justify-content: center;
        transition: 0.3s; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    
    .nav-branding { gap: 10px; }
    .nav-text-stack { display: none; } /* Hide text on mobile */
    .header-logo { height: 40px; }
    .sep { display: none; }
    
    .hero-title { font-size: 3.5rem; }
    .comp-badge { font-size: 1rem; padding: 10px 20px; }
    
    .timeline-center { flex-direction: column; gap: 30px; }
    .prizes-box-center { flex-direction: column; }
    .main-submit-btn { width: 100%; }
    
    /* Ensure button looks good in mobile menu */
    .nav-btn {
        width: 80%;
        margin-top: 10px;
    }
}