/* ==========================================================================
   DigiStep — Editorial European Theme
   Stable, institutional, Erasmus+ flavored.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap');

:root {
    /* Brand */
    --primary-blue:      #0a1f44;
    --ink:               #0a1f44;
    --ink-soft:          #1e2c52;
    --accent-blue:       #2563eb;
    --accent-blue-deep:  #1d4ed8;
    --accent-gold:       #f5b400;
    --accent-gold-soft:  #fcd34d;

    /* Backwards compatibility aliases (old variable names still used inline) */
    --secondary-green:   #2563eb;
    --accent-magenta:    #f5b400;
    --accent-glow:       rgba(37, 99, 235, 0.18);
    --primary-gradient:  linear-gradient(135deg, #0a1f44 0%, #1d4ed8 100%);
    --green-gradient:    linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    --accent-gradient:   linear-gradient(135deg, #0a1f44 0%, #2563eb 100%);
    --hero-gradient:     linear-gradient(160deg, #061634 0%, #0a1f44 50%, #122c66 100%);

    /* Surfaces */
    --bg-page:    #f6f8fc;
    --bg-light:   #f6f8fc;
    --bg-white:   #ffffff;
    --bg-soft:    #eef2f9;
    --bg-deep:    #0a1f44;

    /* Text */
    --text-main:      #0f172a;
    --text-secondary: #334155;
    --text-muted:     #64748b;
    --text-inverse:   #ffffff;

    /* Borders */
    --border-subtle: #e5e9f2;
    --border-strong: #cfd6e4;

    /* Glass (kept for back-compat) */
    --glass-bg:     rgba(255, 255, 255, 0.94);
    --glass-border: rgba(15, 23, 42, 0.06);
    --glass-shadow: 0 12px 32px -16px rgba(10, 31, 68, 0.18);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(10, 31, 68, 0.04);
    --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.05), 0 1px 3px rgba(10, 31, 68, 0.04);
    --shadow-md: 0 4px 12px -4px rgba(10, 31, 68, 0.10), 0 2px 4px -2px rgba(10, 31, 68, 0.06);
    --shadow-lg: 0 14px 30px -12px rgba(10, 31, 68, 0.14), 0 6px 14px -6px rgba(10, 31, 68, 0.08);
    --shadow-xl: 0 28px 60px -24px rgba(10, 31, 68, 0.22);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    /* Motion */
    --transition-fast:   180ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Type */
    --font-sans:   'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif:  'Source Serif 4', Georgia, serif;
}

/* Dark mode — applies when html has data-theme="dark" */
html[data-theme="dark"] {
    --bg-page:    #0b1426;
    --bg-light:   #0b1426;
    --bg-white:   #131e36;
    --bg-soft:    #1a2540;
    --text-main:      #e6ebf5;
    --text-secondary: #b6c0d4;
    --text-muted:     #8b97b1;
    --border-subtle: #1f2a44;
    --border-strong: #2a3a5c;
    --ink:           #e6ebf5;
    --ink-soft:      #cbd5e7;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 14px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 28px 60px -20px rgba(0, 0, 0, 0.6);
    --hero-gradient: linear-gradient(160deg, #050d1f 0%, #0b1932 50%, #0e244d 100%);
    --primary-blue: #cfd8eb;
    --glass-bg: rgba(19, 30, 54, 0.92);
}
html[data-theme="dark"] .main-header {
    background: rgba(11, 20, 38, 0.92);
    border-bottom-color: var(--border-subtle);
}
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .doc-card,
html[data-theme="dark"] .meeting-card,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .news-link-card,
html[data-theme="dark"] .timeline-content,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .stats-bar,
html[data-theme="dark"] .impact-counter,
html[data-theme="dark"] .output-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .quick-link,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .resource-item,
html[data-theme="dark"] .partner-detail-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .sidebar { background: var(--bg-white); }

html[data-theme="dark"] .breadcrumb { background: var(--bg-soft); }
html[data-theme="dark"] img { filter: brightness(0.95); }
html[data-theme="dark"] .footer-logos { background: rgba(255,255,255,0.92); }
html[data-theme="dark"] .form-input {
    background: var(--bg-soft);
    color: var(--text-main);
    border-color: var(--border-strong);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-blue-deep); }

::selection { background: rgba(37, 99, 235, 0.18); color: var(--ink); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container { width: min(92%, 1240px); margin: 0 auto; }
.section-padding { padding: 6rem 0; }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }
.text-center { text-align: center; }

/* ==========================================================================
   Section Header
   ========================================================================== */

.section-header { text-align: center; margin-bottom: 4rem; max-width: 780px; margin-left: auto; margin-right: auto; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    margin-bottom: 1rem;
    position: relative;
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.06rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* gradient text helper */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--ink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header
   ========================================================================== */

.main-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.9rem 0;
    transition: padding var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.main-header.scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 8px 24px -16px rgba(10, 31, 68, 0.12);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--ink);
}
.logo .logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--accent-blue-deep) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 16px -6px rgba(29, 78, 216, 0.5);
    position: relative;
    flex-shrink: 0;
}
.logo .logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 50%);
    pointer-events: none;
}
/* Backwards compat: hide old emoji flag if still present */
.logo .eu-flag { display: none; }
.logo-text h1 {
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.project-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: block;
    margin-top: 0.25rem;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.nav-active {
    color: var(--ink);
    background: rgba(37, 99, 235, 0.08);
}
.nav-icon-only {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
}
.nav-icon-only:hover { color: var(--ink) !important; }
.nav-links a.nav-active::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 18px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
    transform: translateX(-50%);
}

/* Language Switcher */
.lang-switcher-container { position: relative; display: flex; align-items: center; margin-left: 0.5rem; }
.lang-toggle {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.04em;
}
.lang-toggle:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    margin-top: 0.5rem;
    z-index: 1001;
    border: 1px solid var(--border-subtle);
}
.lang-dropdown.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
    font-size: 0.92rem;
}
.lang-option:hover { background: var(--bg-soft); color: var(--ink); }
.lang-option.active {
    background: var(--ink);
    color: #fff;
}
.lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-name { line-height: 1; }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--ink);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 7rem 0 6rem;
    text-align: center;
    color: #fff;
    background: var(--hero-gradient);
    overflow: hidden;
    isolation: isolate;
}
/* subtle dot grid */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
/* soft ambient glow */
.hero-section::after {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.32) 0%, transparent 60%);
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
/* Hide legacy floating orbs entirely — they don't fit the new aesthetic */
.hero-orb { display: none !important; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}
.hero-badge i { color: var(--accent-gold-soft); }
.hero-content h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.4rem;
    letter-spacing: -0.025em;
    color: #fff;
}
.hero-content h2 .highlight {
    color: #fff;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(120deg, var(--accent-gold-soft) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}
.hero-content p {
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 2.4rem;
    line-height: 1.7;
    max-width: 640px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sub-page hero (smaller variant) */
.subhero {
    padding: 5rem 0 4rem;
    text-align: center;
}
.subhero .hero-content h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 0.85rem;
}
.subhero .hero-content p { font-size: 1rem; margin-bottom: 0; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    margin: -3.5rem auto 0;
    max-width: 920px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--border-subtle);
}
.stat-icon {
    font-size: 1.1rem;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}
.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
                background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast);
    line-height: 1.2;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}
.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(10, 31, 68, 0.4);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-blue-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(29, 78, 216, 0.45);
}
/* Hero variant: lighter so it pops on dark background */
.btn-primary-hero {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.4);
}
.btn-primary-hero:hover, .btn-primary-hero:focus {
    background: var(--accent-gold);
    color: var(--ink);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
/* When btn-secondary is on a light background, swap to dark text */
.bg-light .btn-secondary,
.bg-white .btn-secondary,
.feature-card .btn-secondary,
.news-card .btn-secondary,
.doc-card .btn-secondary,
.meeting-card .btn-secondary,
.section-padding .btn-secondary {
    color: var(--ink);
    border-color: var(--border-strong);
    background: #fff;
}
.bg-light .btn-secondary:hover,
.bg-white .btn-secondary:hover,
.feature-card .btn-secondary:hover,
.news-card .btn-secondary:hover,
.doc-card .btn-secondary:hover,
.meeting-card .btn-secondary:hover,
.section-padding .btn-secondary:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.btn-alt {
    background: #fff;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-alt:hover { background: var(--bg-soft); }

/* ==========================================================================
   Cards: Feature
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth),
                box-shadow var(--transition-smooth),
                border-color var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.feature-card:hover::before { transform: scaleY(1); }

.feature-card .icon-wrapper {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.16));
    color: var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
    transition: background var(--transition-smooth), color var(--transition-smooth);
}
.feature-card:hover .icon-wrapper {
    background: var(--ink);
    color: #fff;
}
.feature-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

/* ==========================================================================
   Cards: News
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-img {
    height: 220px;
    overflow: hidden;
    background: var(--bg-soft);
}
.news-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 1rem;
}
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.7rem;
    width: fit-content;
}
.news-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 0.7rem;
    letter-spacing: -0.01em;
}
.news-desc {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.94rem;
}
.news-rich p { margin: 0 0 0.7rem; }
.news-rich p:last-child { margin-bottom: 0; }
.news-rich h2, .news-rich h3, .news-rich h4 {
    color: var(--ink); margin: 0.85rem 0 0.4rem; font-weight: 700;
    font-size: 1.05rem; line-height: 1.3;
}
.news-rich ul, .news-rich ol { margin: 0 0 0.7rem 1.4rem; }
.news-rich a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 2px; }
.news-rich blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 0.85rem; margin: 0.7rem 0;
    color: var(--text-secondary); font-style: italic;
}

/* Share row */
.share-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
.share-label {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.3rem;
}
.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 180ms, color 180ms, transform 180ms;
    font-family: inherit;
}
.share-btn:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-1px);
}
.share-btn.copied {
    background: #10b981;
    color: #fff;
}

/* ==========================================================================
   Cards: News Links (press)
   ========================================================================== */

.news-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.news-link-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    display: block;
    position: relative;
}
.news-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.news-link-source {
    background: var(--bg-soft);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.news-link-read {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition-fast);
}
.news-link-card:hover .news-link-read { gap: 0.6rem; }

.news-link-title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    letter-spacing: -0.005em;
}
.news-link-title i {
    color: var(--accent-blue);
    font-size: 0.78rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
    opacity: 0.85;
}
.news-link-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.news-link-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Documents
   ========================================================================== */

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.doc-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
}
.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.doc-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(245, 180, 0, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

/* ==========================================================================
   Meetings
   ========================================================================== */

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.meeting-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}
.meeting-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.meeting-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--accent-blue-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}
.meeting-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 22px 22px;
}
.meeting-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.meeting-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.meeting-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline-wrapper {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 0.5rem;
}
.timeline-line {
    position: absolute;
    left: 26px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--border-strong);
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.timeline-dot-wrap {
    width: 54px;
    min-width: 54px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.75rem;
}
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 0 4px var(--bg-page);
    z-index: 1;
}
.timeline-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    flex: 1;
    border: 1px solid var(--border-subtle);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
    box-shadow: var(--shadow-xs);
}
.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.timeline-phase {
    background: rgba(10, 31, 68, 0.06);
    color: var(--ink);
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.timeline-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   Partners
   ========================================================================== */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}
.partner-card {
    background: #fff;
    text-align: center;
    padding: 2.2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.partner-flag {
    font-size: 2.6rem;
    line-height: 1;
    margin: 0 auto 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(10, 31, 68, 0.15));
}
.partner-label {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
/* Old structure kept too */
.partner-card div { font-size: 2.6rem; }
.partner-card p { font-weight: 700; color: var(--ink); margin-top: 0.7rem; }

/* ==========================================================================
   Impact Banner
   ========================================================================== */

.impact-banner {
    background: var(--ink);
    color: #fff;
    padding: 4.5rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.impact-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: -1;
}
.impact-banner::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 60%);
    bottom: -240px;
    right: -120px;
    filter: blur(40px);
    z-index: -1;
}
.impact-banner h3 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.impact-banner p {
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   Resources
   ========================================================================== */

.resource-list {
    display: grid;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}
.resource-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.resource-item:hover {
    border-color: var(--accent-blue);
    transform: translateX(2px);
    box-shadow: var(--shadow-md);
}
.resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--accent-blue);
}
.resource-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
    letter-spacing: -0.005em;
}
.resource-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.25rem;
}
.resource-download {
    margin-left: auto;
    color: var(--accent-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.gallery-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gallery-card-media {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover .gallery-card-media { transform: scale(1.03); }
.gallery-card-caption {
    padding: 0.95rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
    line-height: 1.5;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 68, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(6px);
    padding: 2rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1.2rem;
    font-size: 0.95rem;
    text-align: center;
    max-width: 70ch;
}

/* ==========================================================================
   Contact / Forms
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}
/* Removed glass background — flat contact panels look cleaner */
.contact-grid.card-glass { background: transparent; box-shadow: none; border: none; backdrop-filter: none; }

.contact-info {
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.contact-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 22px 22px;
    z-index: -1;
}
.contact-info h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.contact-info p { color: rgba(255, 255, 255, 0.75); line-height: 1.7; }

.contact-detail { margin-bottom: 1.2rem; }
.contact-detail strong {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-detail span { color: #fff; font-size: 1rem; font-weight: 500; }

.erasmus-badge {
    background: rgba(255, 255, 255, 0.07);
    padding: 1.3rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.5rem;
}
.erasmus-badge-flag { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.erasmus-badge strong {
    color: #fff;
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.erasmus-badge p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.55; }

.form-card {
    padding: 2.4rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}
.contact-form { display: grid; gap: 1.25rem; }
.contact-form .form-group, .form-field { display: grid; gap: 0.45rem; }
.form-field { margin-bottom: 0; }
.contact-form .btn { width: 100%; padding: 1rem 1.5rem; }

.form-label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}
.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text-main);
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.55;
    border: 1px solid transparent;
}
.form-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #6ee7b7;
}
.form-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* ==========================================================================
   Section Panel & Glass card (back-compat)
   ========================================================================== */

.section-panel {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
}
.section-panel-inner { display: grid; gap: 2rem; }

.card-glass {
    background: #fff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 4.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 28px 28px;
    z-index: -1;
}
.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}
.footer-brand h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}
.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.94rem;
    line-height: 1.75;
    max-width: 480px;
}
.footer-main-logo {
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) opacity(0.85);
}

.footer-quick-links-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
}
.footer-quick-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}
.footer-quick-link:hover { color: var(--accent-gold-soft); }
.footer-quick-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.eu-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
}
.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
}
.footer-logo {
    max-height: 56px;
    object-fit: contain;
}
.eu-disclaimer p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.admin-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.admin-link:hover { color: var(--accent-gold-soft); }

/* ==========================================================================
   Cookie Notice (refined toast)
   ========================================================================== */

.cookie-notice {
    position: fixed;
    bottom: -260px;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 1.2rem 1.4rem;
    background: #fff;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 50px -16px rgba(10, 31, 68, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 9999;
    transition: bottom 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-body strong { color: var(--ink); font-size: 0.95rem; display: block; margin-bottom: 0.3rem; }
.cookie-body p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }
.cookie-body a { color: var(--accent-blue); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-notice .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; flex-shrink: 0; }
.cookie-notice.show { bottom: 1.5rem; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-wrapper { display: flex; min-height: 100vh; background: var(--bg-page); }
.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--border-subtle);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.sidebar-logo {
    padding: 0 1.75rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-align: left;
}
.sidebar a {
    display: block;
    padding: 0.7rem 1.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}
.sidebar a:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar a.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ink);
    border-left-color: var(--accent-blue);
}
.admin-main { flex: 1; padding: 2.5rem 3rem; overflow-y: auto; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    background: #fff;
    padding: 1.2rem 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
}
.admin-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.75rem;
}
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; }
.admin-table th {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.85rem 1rem;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-subtle);
}
.admin-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    font-size: 0.93rem;
}
.admin-table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .nav-links { gap: 0.2rem; }
    .nav-links a { padding: 0.5rem 0.7rem; font-size: 0.9rem; }
    .lang-dropdown { right: auto; left: 0; }
}

@media (max-width: 960px) {
    .section-padding { padding: 4.5rem 0; }
    .section-header { margin-bottom: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-bar { margin-top: -2.5rem; }
    .impact-banner { padding: 3rem 1.5rem; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85%);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        transition: right var(--transition-smooth);
        z-index: 999;
        box-shadow: -20px 0 40px -10px rgba(10, 31, 68, 0.15);
        overflow-y: auto;
    }
    .main-nav.active { right: 0; }
    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
        width: 100%;
    }
    .nav-links a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        text-align: left;
        border-radius: var(--radius-md);
    }
    .nav-links a.nav-active::before { display: none; }
    .nav-links a.nav-active { background: var(--ink); color: #fff; }
    .mobile-toggle { display: inline-flex; }

    .lang-switcher-container {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-subtle);
    }
    .lang-toggle {
        width: 100%;
        justify-content: center;
    }
    .lang-dropdown {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        margin-top: 0.5rem;
        box-shadow: none;
        background: var(--bg-soft);
        min-width: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        padding: 0.6rem;
        border: none;
    }
    .lang-option { padding: 0.7rem; justify-content: center; }

    .admin-wrapper { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .admin-main { padding: 1.5rem; }
}

@media (max-width: 640px) {
    .container { width: 92%; }
    .hero-section { padding: 5rem 0 4.5rem; }
    .stats-bar { border-radius: var(--radius-lg); margin: -2rem 1rem 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { padding: 1.4rem 1rem; }
    .stat-item:not(:last-child)::after { display: none; }
    .stat-item:not(:last-child) { border-bottom: 1px solid var(--border-subtle); }
    .feature-grid, .news-grid, .doc-grid, .meetings-grid, .gallery-grid, .news-links-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-notice .btn { width: 100%; }
    .timeline-wrapper { padding-left: 0; }
    .timeline-line { left: 18px; }
    .timeline-dot-wrap { width: 40px; min-width: 40px; }
    .form-card { padding: 1.5rem; }
    .contact-info { padding: 1.6rem; }
    .impact-banner { padding: 2.5rem 1.25rem; }
    .lang-dropdown { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Impact Counter Grid
   ========================================================================== */
.impact-counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}
.impact-counter {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.impact-counter:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.ic-number {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--ink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
}
.ic-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ==========================================================================
   Project Outputs
   ========================================================================== */
.outputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.output-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.output-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.output-code {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: var(--bg-soft);
    color: var(--accent-blue);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.08em;
}
.output-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--ink) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 18px -8px rgba(29,78,216,0.45);
}
.output-card h4 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}
.output-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}
.output-link {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition-fast);
}
.output-link:hover { gap: 0.6rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.testimonial-mark {
    color: var(--accent-gold);
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    display: block;
    opacity: 0.85;
}
.testimonial-card blockquote {
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1.4rem;
    quotes: none;
}
.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}
.testimonial-card figcaption strong {
    display: block;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}
.testimonial-card figcaption span {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-subtle);
}
.testimonial-avatar-placeholder {
    background: linear-gradient(135deg, var(--accent-blue), var(--ink));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Accessibility — skip link & focus
   ========================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 700;
    font-size: 0.92rem;
    z-index: 10000;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
main:focus { outline: none; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
    font-size: 0.86rem;
}
.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--border-strong);
    margin-left: 0.4rem;
    font-weight: 600;
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Image lazy-load fade-in
   ========================================================================== */

img[loading="lazy"] {
    transition: opacity 320ms ease, filter 320ms ease;
}
img[loading="lazy"]:not([src]),
img[loading="lazy"][src=""] {
    opacity: 0;
}
picture {
    display: block;
    overflow: hidden;
}

/* ==========================================================================
   Partner strip (under hero)
   ========================================================================== */

.partner-strip {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.partner-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    flex-wrap: wrap;
}
.partner-strip .ps-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 0.5rem;
}
.partner-strip .ps-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}
.partner-strip .ps-item .ps-flag {
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@media (max-width: 640px) {
    .partner-strip .container { gap: 1rem; }
    .partner-strip .ps-label { display: none; }
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    .main-header, .main-footer, .cookie-notice, .breadcrumb,
    .mobile-toggle, .lang-switcher-container,
    .hero-orb, .hero-section::before, .hero-section::after,
    .btn, .skip-link {
        display: none !important;
    }
    body { background: #fff !important; color: #000 !important; }
    .hero-section { background: none !important; color: #000 !important; padding: 1rem 0 !important; }
    .hero-section .hero-content h2,
    .hero-section .hero-content p { color: #000 !important; }
    .section-padding { padding: 1.5rem 0 !important; }
    .container { width: 100% !important; max-width: none !important; }
    .feature-card, .news-card, .doc-card, .meeting-card, .partner-card, .timeline-content {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    a { color: #000; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
    img { max-width: 100% !important; page-break-inside: avoid; }
}

/* ==========================================================================
   Utility
   ========================================================================== */

.flex-center { display: flex; align-items: center; justify-content: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
