:root {
    --primary: #0b5ed7;
    --secondary: #198754;
    --accent: #d4a017;
    --dark: #111827;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #f5f7fb;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 18px 45px rgba(0,0,0,0.12);
    --max: 1200px;
}

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

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; cursor: pointer }
button { font: inherit }

/* NAV */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav {
    max-width: var(--max);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.logo { font-weight: 800; letter-spacing: 2px; font-size: 20px; color: var(--dark) }
.flag-text {
    background: url('../public/Flag_of_the_Romani_people.svg') center/cover no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-center { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.nav ul { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; transition: 0.2s ease }
.nav a:hover { background: #f3f4f6 }

.lang { display: flex; gap: 6px }
.lang button {
    border: none;
    padding: 7px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    background: #eef2f7;
    color: #374151;
    transition: 0.2s ease;
}
.lang button.active-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* PAGES */
.page { display: none }
.page.active { display: block }
.lang-block { display: none }

/* HERO */
.hero {
    max-width: var(--max);
    margin: 28px auto;
    padding: 56px 40px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -45px;
    top: -45px;
    width: 180px;
    height: 180px;
    border: 12px solid rgba(255,255,255,0.14);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    right: 110px;
    bottom: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

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

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 { font-size: 44px; line-height: 1.08; margin-bottom: 14px }
.hero span { color: #ffe7a8 }
.hero p { max-width: 820px; font-size: 16px; opacity: 0.97 }

.hero-buttons { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-white { background: white; color: black }
.btn-outline { border: 1px solid white; color: white; background: rgba(255,255,255,0.06) }
.btn-dark { background: var(--dark); color: white }
.btn:hover { transform: translateY(-1px) }

/* SECTIONS */
.section { max-width: var(--max); margin: 42px auto; padding: 0 20px }
.title { font-size: 28px; font-weight: 800; margin-bottom: 10px; color: var(--dark) }
.subtitle { color: var(--muted); margin-bottom: 22px; max-width: 900px; font-size: 15px }

/* GRID */
.grid { display: grid; gap: 16px }
.grid-3 { grid-template-columns: repeat(3, 1fr) }
.grid-2 { grid-template-columns: repeat(2, 1fr) }

/* CARD */
.card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: 0.2s ease;
}
.card:hover { transform: translateY(-2px) }
.card h3 { margin-bottom: 8px; font-size: 18px; color: var(--dark); line-height: 1.3 }
.card p { color: var(--muted); font-size: 15px }
.card a { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 700; font-size: 14px }

/* META */
.meta { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: #374151 }
.meta div { display: flex; align-items: center; gap: 6px }

.pill-row { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap }
.pill { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; padding: 4px 10px; font-size: 12px; border-radius: 999px }

.region-block { margin-bottom: 30px }
.region-title { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 8px }

/* CTA */
.cta {
    max-width: var(--max);
    margin: 42px auto;
    background: #111827;
    color: white;
    padding: 32px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
}
.cta h3 { margin-bottom: 8px; font-size: 24px }
.cta p { opacity: 0.92; max-width: 900px }

.back-link { display: inline-block; margin-top: 18px; color: var(--primary); font-weight: 700; font-size: 14px }

/* MEDIA */
.media-box { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 22px; background: #f8fafc }

.download-list { display: grid; gap: 10px; margin-top: 10px }
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}

/* EVENTS */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px }
.event-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}
.event-card:hover { transform: translateY(-3px) }
.event-image { width: 100%; height: 460px; object-fit: cover; display: block; background: #e5e7eb }
.event-body { padding: 20px }
.event-date {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.event-body h3 { font-size: 20px; margin-bottom: 8px; color: var(--dark) }
.event-body p { color: var(--muted); margin-bottom: 10px }
.event-meta { display: grid; gap: 6px; font-size: 14px; color: #374151; margin-top: 10px }

/* FORM */
form { display: grid; gap: 14px; margin-top: 18px }
.form-row { display: grid; gap: 8px }
label { font-weight: 600; font-size: 14px; color: var(--dark) }
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font: inherit;
    background: white;
}
textarea { min-height: 140px; resize: vertical }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px }

/* SCROLLABLE */
.scrollable { max-height: 400px; overflow-y: auto; padding-right: 10px }
.scrollable::-webkit-scrollbar { width: 6px }
.scrollable::-webkit-scrollbar-thumb { background: #888; border-radius: 4px }
.scrollable::-webkit-scrollbar-thumb:hover { background: #555 }

/* ORG ICONS */
#org .meta i[data-lucide] { width: 12px; height: 12px; min-width: 12px; min-height: 12px; flex-shrink: 0 }
#org .meta svg { width: 12px !important; height: 12px !important }
#org a { margin-top: 0 !important }

/* FOOTER */
footer {
    margin-top: 50px;
    padding: 22px;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid-3, .grid-2, .contact-grid, .event-grid { grid-template-columns: 1fr }
    .hero h1 { font-size: 34px }
    .nav { flex-direction: column; align-items: flex-start }
    .nav-center { width: 100%; justify-content: space-between }
    .event-image { height: 330px }
}

@media (max-width: 600px) {
    .hero { padding: 38px 24px }
    .download-item { flex-direction: column; align-items: flex-start }
}
