*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --deep-blue: #1F5F8B;
    --light-blue: #7EC8E3;
    --lime-green: #B8D94A;
    --soft-lime: #E7F6B8;
    --off-white: #F7FCF2;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --border-light: #e0e8f0;
    --font-sans: Helvetica, Arial;
    --container-max: 1200px;
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans), sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--deep-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--light-blue);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--off-white);
}

.section-lime {
    background-color: var(--soft-lime);
}

.section-blue {
    background-color: var(--light-blue);
}

.section-dark {
    background-color: var(--deep-blue);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 48px;
    line-height: 1.5;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--deep-blue);
    background: var(--off-white);
}

.nav-link.active {
    color: var(--deep-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--lime-green);
    border-radius: 1px;
}

.nav-chevron {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--white);
    min-width: 220px;
    padding: 8px 0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(31, 95, 139, 0.15);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 200;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: all 0.15s ease;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: var(--off-white);
    color: var(--deep-blue);
}

.nav-dropdown-item.active {
    color: var(--deep-blue);
    font-weight: 600;
    background: var(--soft-lime);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--deep-blue);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--deep-blue);
    color: var(--white);
}

/* Language switcher */
.lang-switcher {
    position: relative;
    margin-left: 12px;
}

.lang-flag {
    display: block;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-sans), sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    background: var(--off-white);
    border-color: var(--light-blue);
    box-shadow: 0 2px 8px rgba(31, 95, 139, 0.08);
}

.lang-switcher-btn .nav-chevron {
    margin-left: 2px;
    transition: transform 0.2s ease;
}

/* Forms */
.contact-form {
    margin-top: 32px;
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-field-full {
    grid-column: span 2;
}

.form-field-half {
    grid-column: span 1;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-field-half {
        grid-column: span 1;
    }
    .form-field-full {
        grid-column: span 1;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: var(--font-sans), sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--light-blue);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: 24px;
}

.form-submit button,
.form-submit input[type="submit"] {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-submit button:hover,
.form-submit input[type="submit"]:hover {
    background-color: var(--light-blue);
}

.form-errors {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 4px;
    list-style: none;
}

.lang-switcher:hover .lang-switcher-menu,
.lang-switcher:focus-within .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
}

.lang-switcher:hover .lang-switcher-btn .nav-chevron {
    transform: rotate(180deg);
}

.lang-switcher-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    width: max-content;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(31, 95, 139, 0.15);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.2s ease;
    z-index: 200;
}

.lang-switcher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.lang-switcher-item:hover {
    background: var(--off-white);
    color: var(--deep-blue);
}

.lang-switcher-item:active {
    background: var(--soft-lime);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--deep-blue);
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--deep-blue) 0%, #143c5c 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: 400px 400px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M200 0L400 100L400 300L200 400L0 300L0 100Z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--lime-green);
    color: var(--deep-blue);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: var(--font-sans), sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--lime-green);
    color: var(--deep-blue);
}

.btn-primary:hover {
    background: #a8cb3f;
    color: var(--deep-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 217, 74, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--lime-green);
    color: var(--lime-green);
    transform: translateY(-1px);
}

/* Overview section */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-visual {
    background: var(--soft-lime);
    border-radius: 12px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.overview-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(184, 217, 74, 0.2);
    border-radius: 50%;
    top: -40px;
    right: -40px;
}

.overview-visual::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(31, 95, 139, 0.08);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

.overview-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.overview-visual-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.overview-visual-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.overview-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.overview-text p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Objectives / Features grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.objective-card {
    background: var(--white);
    border-radius: 12px;
    padding: 36px 28px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 95, 139, 0.1);
    border-color: var(--light-blue);
}

.objective-icon {
    width: 56px;
    height: 56px;
    background: var(--soft-lime);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.objective-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.objective-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--lime-green);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Partners */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-logo {
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    filter: grayscale(1);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* News preview */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    background: var(--white);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 95, 139, 0.1);
}

.news-card-image {
    height: 200px;
    background: var(--soft-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 0.875rem;
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-link:hover .news-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(31, 95, 139, 0.1);
}

/* Article detail image */
.article-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--deep-blue);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lime-green);
    margin-bottom: 20px;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--lime-green);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-social .social-link:hover {
    background: var(--lime-green);
    color: var(--deep-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logos img {
    height: 50px;
}

.footer-bottom-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
}

.footer-bottom-text a {
    color: var(--lime-green);
}

/* Page header for inner pages */
.page-header {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #143c5c 100%);
    color: var(--white);
    padding: 80px 0 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Content area */
.content-area {
    padding: 64px 0;
}

.content-area h1, .content-area h2, .content-area h3, .content-area h4 {
    color: var(--deep-blue);
    margin-bottom: 16px;
}

.content-area h2 { font-size: 1.75rem; margin-top: 40px; }
.content-area h3 { font-size: 1.375rem; margin-top: 32px; }

.content-area p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.content-area ul, .content-area ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-muted);
}

.content-area li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* EU disclaimer */
.eu-disclaimer {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .objectives-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: var(--soft-lime);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        min-width: auto;
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-item {
        padding: 10px 16px;
    }

    .lang-switcher {
        margin-left: 0;
        width: 100%;
    }

    .lang-switcher-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .lang-switcher-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        min-width: auto;
    }

    .lang-switcher:hover .lang-switcher-menu,
    .lang-switcher:focus-within .lang-switcher-menu {
        display: block;
    }

    .lang-switcher-item {
        padding: 10px 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero {
        padding: 80px 0 64px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .objectives-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-logos {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* Resource Accordion Styles */
.resource-accordion {
    margin-bottom: 24px;
    background-color: transparent;
    overflow: hidden;
}
.resource-accordion summary {
    padding: 20px 24px;
    background-color: var(--deep-blue);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    list-style: none; /* Hide default triangle in FF/Chrome */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.resource-accordion summary::-webkit-details-marker {
    display: none; /* Hide default triangle in WebKit */
}
.resource-accordion summary:hover {
    background-color: #143c5c;
}
.resource-accordion summary::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    transition: transform 0.2s ease, background-color 0.2s ease;
    line-height: 1;
}
.resource-accordion[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--deep-blue);
    color: var(--white);
}
.resource-accordion[open] summary {
    background-color: var(--white);
    color: var(--deep-blue);
    border: 1px solid var(--border-light);
    border-bottom: none;
}
.resource-accordion-content {
    padding: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-top: none;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
