/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --color-dark-blue: #0057B8;
    --color-yellow: #FFD700;
    --color-green-light: #76FF03;
    --color-orange-dynamic: #FF8C00;
    --color-dark-text: #2c3e50;
    --color-light-bg: #f9f9f9;
    --color-footer-bg: #1e2a38;
    --font-primary: 'Montserrat', sans-serif;
    --font-size-base: 0.95rem; 
    --header-height-desktop: 70px; 
    --header-height-mobile: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark-text);
    background: #ffffff;
    font-size: var(--font-size-base);
    text-align: left;
}

a {
    color: var(--color-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

/* --- HEADER & NAVIGATION --- */
#header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height-desktop);
}

#header nav {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

#header nav a {
    margin: 0 18px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    color: var(--color-dark-text);
}

#header nav a:hover {
    color: var(--color-dark-blue);
}

/* --- SECTION PADDING AND OFFSETS --- */
section {
    padding: 80px 5%;
}

#home { padding-top: calc(var(--header-height-desktop) + 40px); } 
#about, #mandate, #sdgs, #partnerships, #contact { 
    padding-top: calc(var(--header-height-desktop) + 40px); 
    margin-top: calc(var(--header-height-desktop) * -1); 
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--color-dark-blue);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--color-yellow);
    border-radius: 2px;
}

/* --- HERO SECTION (NOW CONTAINS LARGE LOGO) --- */
.hero {
    min-height: 90vh;
    text-align: center;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-logo {
    display: block;
    margin: 0 auto 30px;
    height: 210px; /* НОВИЙ РОЗМІР: 150% від 70px */
    max-width: 100%;
    object-fit: contain;
    background-color: #ffffff;
}

.hero-content {
    max-width: 900px;
    margin-top: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero-content .slogan {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-orange-dynamic);
    margin: 10px 0 25px;
}

.hero-content .mission-short {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.button {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--color-dark-blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.button:hover {
    transform: translateY(-5px);
    background-color: #004499;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* --- ABOUT SECTION --- */
#about {
    background-color: #ffffff;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.about-block {
    background: var(--color-light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: left;
}

.about-block h3 {
    font-size: 1.5rem;
    color: var(--color-dark-blue);
    margin-bottom: 20px;
}

.about-block ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.about-block ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.about-block ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

/* --- MANDATE SECTION (NEW) --- */
#mandate {
    background: var(--color-dark-blue);
    color: #fff;
}

#mandate h2 {
    color: #fff;
}

.mandate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.mandate-point {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mandate-point h3 {
    color: var(--color-yellow);
    font-size: 1.4rem;
    margin-top: 10px;
}

.mandate-point .icon {
    font-size: 2.5rem;
    display: block;
    color: var(--color-green-light);
}

.mandate-point ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
}

.mandate-point ul li {
    margin-bottom: 8px;
}


/* --- SDGs SECTION --- */
#sdgs {
    background: linear-gradient(145deg, var(--color-light-bg) 0%, #e0e0e0 100%);
    text-align: center;
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.sdg-card {
    background-color: #ffffff;
    padding: 15px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.sdg-card:hover {
    transform: translateY(-5px);
}

.sdg-card img {
    width: 70px; /* Base size for SDG icon */
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}

.sdg-card p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark-text);
}

.european-integration {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: var(--color-dark-text);
    color: #fff;
    border-radius: 10px;
    margin-top: 50px;
    text-align: left;
}

.european-integration h3 {
    color: var(--color-yellow);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

/* --- PARTNERSHIPS SECTION --- */
#partnerships {
    background-color: #ffffff;
    text-align: center;
}

.partnerships-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: left;
    font-style: italic;
    font-size: 1.1rem;
}

.partnership-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}

.partnership-block {
    background: var(--color-light-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--color-orange-dynamic);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.partnership-block h4 {
    color: var(--color-dark-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.partnership-block ul {
    list-style: disc;
    margin-left: 20px;
    padding: 5px 0;
}

.cta-box {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 40px;
    background: var(--color-dark-blue);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-box .button {
    background-color: var(--color-yellow);
    color: var(--color-dark-text);
}
.cta-box .button:hover {
    background-color: #ffd000;
}

/* --- CONTACT SECTION --- */
#contact {
    background: var(--color-dark-text);
    color: #fff;
}

#contact h2 {
    color: #fff;
    border-color: var(--color-yellow);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: #34495e;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--color-yellow);
    margin-bottom: 10px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--color-green-light);
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #92FF47;
}

hr {
    border: 0;
    height: 1px;
    background: var(--color-yellow);
    margin: 25px 0;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px 5%;
    background-color: var(--color-footer-bg);
    color: #ccc;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN (FINAL OPTIMIZATION) --- */
@media (max-width: 1100px) {
    .sdg-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-content .slogan { font-size: 1.2rem; }
    
    #header { padding: 10px 5%; height: var(--header-height-mobile); }
    #header nav a {
        margin: 3px 5px;
        font-size: 0.8rem;
    }

    #home { padding-top: calc(var(--header-height-mobile) + 30px); } 
    #about, #mandate, #sdgs, #partnerships, #contact { 
        padding-top: calc(var(--header-height-mobile) + 30px); 
        margin-top: calc(var(--header-height-mobile) * -1); 
    }

    .hero-logo {
        height: 180px; /* НОВИЙ РОЗМІР: 150% від 60px (мобільний розмір SDG) */
        margin-bottom: 20px;
    }

    .sdg-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    .sdg-card img {
        width: 60px;
        height: 60px;
    }
    .sdg-card p {
        font-size: 0.75rem;
    }

    .about-container, .mandate-container, .partnership-container {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 5%;
    }

    .cta-box {
        padding: 30px;
    }

    .contact-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .hero-content .slogan { font-size: 1rem; }
    .hero-content .mission-short { font-size: 0.9rem; }
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    #header nav a {
        margin: 2px 3px;
        font-size: 0.75rem;
    }
    .hero-logo {
        height: 80px; /* Трохи менший розмір для найменших екранів */
    }
}

