/*
 * ebsz.hu — Egyetemes Béke Szövetsége (UPF Magyarország)
 * A Hadron téma testreszabása (ebsz gyerektéma). Ez a fájl töltődik be utolsóként.
 *
 * Színvilág a upf.org alapján (2026-09-30-i állapot):
 *   #1A467D  UPF-kék – menüsáv, címsorok, kiemelő szín
 *   #002E5D  mélykék – lábléc, sötét sávok
 *   #0F4D6B  kékeszöld – átmenetekhez
 *   #0068B7  linkkék
 *   #2B9BD7 / #5BC4EE / #7CCBD6  a „három kör” (küldetés-ábra) égszínkékjei
 *   #6A8DC3 / #AEC8D6  halvány kékek (keretek, díszítés)
 *   #975735  réz – kiemelt gomb / felhívás (a upf.org meleg kiegészítő színe)
 *   #F4F6F8  világosszürke szakaszháttér
 * Betűk: Cinzel (a UPF-logó Trajan-szerű, talpas nagybetűihez) a logóhoz és a szakaszcímekhez,
 *        Inter (a Quark 2 része) minden máshoz.
 */

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url('../fonts/cinzel-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url('../fonts/cinzel-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root, :root[data-theme=light], :root[data-theme=dark] {
    --ebsz-navy: #1A467D;
    --ebsz-deep: #002E5D;
    --ebsz-teal: #0F4D6B;
    --ebsz-link: #0068B7;
    --ebsz-sky: #2B9BD7;
    --ebsz-sky-2: #5BC4EE;
    --ebsz-aqua: #7CCBD6;
    --ebsz-periwinkle: #6A8DC3;
    --ebsz-mist: #AEC8D6;
    --ebsz-copper: #975735;
    --ebsz-copper-dark: #7A4428;
    --ebsz-grey: #F4F6F8;
    --ebsz-line: #DCE3EA;
    --ebsz-serif: 'Cinzel', 'Trajan Pro', Georgia, serif;

    --q2-bg: #ffffff;
    --q2-bg-elev: #ffffff;
    --q2-bg-muted: #EEF2F6;
    --q2-text: #1F2933;
    --q2-text-strong: #10202F;
    --q2-text-muted: #5B6B7A;
    --q2-link: var(--ebsz-link);
    --q2-accent: var(--ebsz-navy);
    --q2-divider: var(--ebsz-line);
    --q2-nav-bg: #ffffff;
    --q2-radius: 6px;
    --q2-radius-md: 8px;
    color-scheme: light;
}

body { background: #fff; color: var(--q2-text); }
a { color: var(--ebsz-link); }
.container { max-width: 1200px; }

/* ================================================================ fejléc */
body #header.ebsz-header {
    padding: 0;
    background: #fff;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
}
.ebsz-topbar { background: #fff; }
.ebsz-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
}
.ebsz-brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.ebsz-brand:hover { text-decoration: none; }
.ebsz-brand .ebsz-brand-img { height: 76px; width: auto; flex: 0 0 auto; }
.ebsz-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ebsz-brand-title {
    font-family: var(--ebsz-serif);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
    color: var(--ebsz-navy);
}
.ebsz-brand-sub {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ebsz-periwinkle);
    margin-top: 0.2rem;
}
.ebsz-toplinks a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ebsz-navy);
    text-decoration: none;
    border: 1px solid var(--ebsz-mist);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}
.ebsz-toplinks a:hover { background: var(--ebsz-grey); }

/* kék menüsáv */
.ebsz-navbar { background: var(--ebsz-navy); border-bottom: 3px solid var(--ebsz-deep); }
#header .ebsz-navbar .navbar { min-height: 0; justify-content: center; }
#header .ebsz-navbar .desktop-menu { justify-content: center; }
#header .ebsz-navbar .dropmenu > ul { gap: 0; }
#header .ebsz-navbar .navigation > li > a {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.95rem 1.05rem;
    border-radius: 0;
}
#header .ebsz-navbar .navigation > li > a:hover,
#header .ebsz-navbar .navigation > li:hover > a,
#header .ebsz-navbar .navigation > li > a:focus-visible { background: var(--ebsz-deep); color: #fff; }
#header .ebsz-navbar .navigation > li > a.active { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--ebsz-aqua); }
#header .ebsz-navbar .navigation > li > a.active:hover { background: var(--ebsz-deep); }
/* lenyíló menü */
#header .ebsz-navbar .dropmenu li > ul {
    top: 100%;
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--ebsz-aqua);
    padding: 0.4rem;
}
#header .ebsz-navbar .dropmenu li > ul a { color: var(--q2-text-strong); font-size: 0.92rem; text-transform: none; letter-spacing: 0; }
#header .ebsz-navbar .dropmenu li > ul a:hover { background: var(--ebsz-grey); color: var(--ebsz-navy); }
#header .ebsz-navbar .dropmenu li > ul a.active { background: var(--ebsz-grey); color: var(--ebsz-navy); font-weight: 600; }

/* mobil */
@media (max-width: 860px) {
    .ebsz-navbar { display: none; }
    .ebsz-topbar-inner { padding-right: 4.5rem; }
    .ebsz-toplinks { display: none; }
    .ebsz-brand .ebsz-brand-img { height: 52px; }
    .ebsz-brand-title { font-size: 1.12rem; }
    .ebsz-brand-sub { font-size: 0.66rem; }
    .mobile-menu { top: 18px; }
    .button_container { background: var(--ebsz-navy); box-shadow: none; }
    .button_container span { background: #fff !important; }
}
.mobile-container .overlay { background: #fff; }
.overlay-menu a { color: var(--q2-text-strong); }
.overlay-menu a.active { color: var(--ebsz-navy); font-weight: 700; }

/* ================================================================ közös elemek */
.ebsz-section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.ebsz-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.ebsz-section-head.ebsz-center { flex-direction: column; align-items: center; text-align: center; }
.ebsz-section-title {
    font-family: var(--ebsz-serif);
    font-weight: 700;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    letter-spacing: 0.03em;
    color: var(--ebsz-navy);
    margin: 0;
    line-height: 1.2;
}
.ebsz-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 0.6rem;
    background: linear-gradient(90deg, var(--ebsz-sky), var(--ebsz-aqua));
    border-radius: 2px;
}
.ebsz-center .ebsz-section-title::after { margin-inline: auto; }
.ebsz-section-lead { color: var(--q2-text-muted); max-width: 42rem; margin: 0.75rem 0 0; }
.ebsz-more {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ebsz-navy);
    text-decoration: none;
    white-space: nowrap;
}
.ebsz-more:hover { color: var(--ebsz-link); text-decoration: underline; }
.ebsz-prose { max-width: 50rem; }
.ebsz-prose h2, .ebsz-prose h3 { color: var(--ebsz-navy); }

.ebsz-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ebsz-btn:hover { text-decoration: none; }
.ebsz-btn-primary { background: #fff; color: var(--ebsz-navy); }
.ebsz-btn-primary:hover { background: var(--ebsz-aqua); color: var(--ebsz-deep); }
.ebsz-btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.ebsz-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.ebsz-btn-copper { background: var(--ebsz-copper); color: #fff; }
.ebsz-btn-copper:hover { background: var(--ebsz-copper-dark); color: #fff; }

.ebsz-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ebsz-navy);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
}

/* ================================================================ főoldal: nyitókép */
.ebsz-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(91,196,238,.28), transparent 55%),
        linear-gradient(120deg, var(--ebsz-deep) 0%, var(--ebsz-navy) 55%, var(--ebsz-teal) 100%);
}
.ebsz-hero.has-image {
    background:
        linear-gradient(90deg, rgba(0,46,93,.92) 0%, rgba(26,70,125,.72) 55%, rgba(26,70,125,.25) 100%),
        var(--ebsz-hero-kep) center / cover no-repeat;
}
.ebsz-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2rem;
    min-height: clamp(360px, 52vh, 520px);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.ebsz-hero-text h1 {
    font-family: var(--ebsz-serif);
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: #fff;
    margin: 0 0 1rem;
}
.ebsz-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ebsz-aqua);
    margin: 0 0 0.9rem;
}
.ebsz-hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.65; color: rgba(255,255,255,.9); max-width: 36rem; margin: 0 0 1.75rem; }
.ebsz-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.ebsz-hero-art { width: 100%; max-width: 400px; justify-self: end; }
@media (max-width: 860px) {
    .ebsz-hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .ebsz-hero-art { display: none; }
}

/* ================================================================ hírek */
.ebsz-news { background: var(--ebsz-grey); }
.ebsz-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .ebsz-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ebsz-news-grid { grid-template-columns: 1fr; } }
.ebsz-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,32,47,.06), 0 6px 18px -10px rgba(16,32,47,.25);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ebsz-news-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,32,47,.08), 0 14px 28px -12px rgba(16,32,47,.35); }
.ebsz-news-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ebsz-navy); }
.ebsz-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebsz-news-placeholder {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 38%, rgba(43,155,215,.75) 0 22%, transparent 22.5%),
        radial-gradient(circle at 42% 58%, rgba(91,196,238,.55) 0 22%, transparent 22.5%),
        radial-gradient(circle at 58% 58%, rgba(124,203,214,.55) 0 22%, transparent 22.5%),
        linear-gradient(135deg, var(--ebsz-deep), var(--ebsz-navy) 60%, var(--ebsz-teal));
}
.ebsz-news-media .ebsz-tag { position: absolute; left: 0.9rem; top: 0.9rem; background: rgba(0,46,93,.88); }
.ebsz-news-body { padding: 1.1rem 1.25rem 1.35rem; }
.ebsz-news-body time { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--q2-text-muted); }
.ebsz-news-body h3 { font-size: 1.12rem; line-height: 1.35; margin: 0.35rem 0 0.5rem; }
.ebsz-news-body h3 a { color: var(--q2-text-strong); text-decoration: none; }
.ebsz-news-body h3 a:hover { color: var(--ebsz-navy); text-decoration: underline; }
.ebsz-news-body p { font-size: 0.93rem; color: var(--q2-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ================================================================ küldetés */
.ebsz-mission-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ebsz-mission-art { margin: 0; }
.ebsz-mission-art svg { width: 100%; max-width: 360px; display: block; margin-inline: auto; }
.ebsz-mission-text .ebsz-section-title { margin-bottom: 1.25rem; }
.ebsz-mission-text p { font-size: 1.05rem; line-height: 1.7; }
.ebsz-mission-text p:first-of-type { font-family: var(--ebsz-serif); font-size: 1.2rem; line-height: 1.6; color: var(--ebsz-navy); }
@media (max-width: 860px) { .ebsz-mission-inner { grid-template-columns: 1fr; } .ebsz-mission-art svg { max-width: 280px; } }

/* ================================================================ tevékenységi területek */
.ebsz-areas { background: linear-gradient(180deg, #fff 0%, var(--ebsz-grey) 100%); border-top: 1px solid var(--ebsz-line); }
.ebsz-area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .ebsz-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ebsz-area-grid { grid-template-columns: 1fr; } }
.ebsz-sub-grid { margin-top: 2rem; }
.ebsz-area-card {
    display: block;
    background: #fff;
    border: 1px solid var(--ebsz-line);
    border-top: 4px solid var(--ebsz-navy);
    border-radius: 6px;
    padding: 1.4rem 1.4rem 1.5rem;
    text-decoration: none;
    color: var(--q2-text);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ebsz-area-card:hover { text-decoration: none; border-top-color: var(--ebsz-sky); box-shadow: 0 12px 26px -16px rgba(16,32,47,.45); transform: translateY(-2px); }
.ebsz-area-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: #E6F3FA; color: var(--ebsz-navy);
    margin-bottom: 0.9rem;
}
.ebsz-area-card:nth-child(3n+2) .ebsz-area-icon { background: #E3F5FB; }
.ebsz-area-card:nth-child(3n) .ebsz-area-icon { background: #E6F5F6; }
.ebsz-icon { width: 28px; height: 28px; }
.ebsz-area-card h3 { font-size: 1.08rem; color: var(--ebsz-navy); margin: 0 0 0.4rem; }
.ebsz-area-card p { font-size: 0.93rem; color: var(--q2-text-muted); margin: 0; line-height: 1.55; }

/* ================================================================ felhívás */
.ebsz-cta { background: var(--ebsz-deep); color: #fff; }
.ebsz-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.ebsz-cta h2 { font-family: var(--ebsz-serif); color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 0.4rem; }
.ebsz-cta p { color: rgba(255,255,255,.82); margin: 0; max-width: 44rem; }
@media (max-width: 760px) { .ebsz-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ================================================================ aloldalak */
.ebsz-page-head {
    background:
        radial-gradient(ellipse at 90% 0%, rgba(91,196,238,.25), transparent 55%),
        linear-gradient(120deg, var(--ebsz-deep), var(--ebsz-navy));
    color: #fff;
    padding-block: clamp(2rem, 4.5vw, 3.25rem);
}
.ebsz-page-head h1 { font-family: var(--ebsz-serif); color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0; letter-spacing: 0.01em; }
.ebsz-crumb { margin: 0 0 0.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ebsz-crumb a { color: var(--ebsz-aqua); text-decoration: none; }
.ebsz-page-lead { margin: 0.6rem 0 0; color: rgba(255,255,255,.85); max-width: 44rem; }
.ebsz-meta { display: flex; align-items: center; gap: 0.75rem; color: var(--q2-text-muted); font-size: 0.88rem; font-weight: 600; }
.ebsz-tag-inline { font-size: 0.66rem; }
.ebsz-pager { display: flex; justify-content: space-between; margin-top: 2rem; }
.ebsz-note {
    border-left: 4px solid var(--ebsz-sky);
    background: var(--ebsz-grey);
    padding: 0.9rem 1.1rem;
    border-radius: 0 6px 6px 0;
    color: var(--q2-text-muted);
}

/* ================================================================ lábléc */
.ebsz-footer { background: var(--ebsz-deep); color: rgba(255,255,255,.82); font-size: 0.93rem; }
.ebsz-footer-inner { padding-block: 2.75rem 2rem; }
.ebsz-footer a { color: #fff; text-decoration: none; }
.ebsz-footer a:hover { color: var(--ebsz-aqua); text-decoration: underline; }
.ebsz-footer h4 {
    font-family: var(--ebsz-serif);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.8rem;
}
.ebsz-footer ul { list-style: none; padding: 0; margin: 0; }
.ebsz-footer li { padding: 0.18rem 0; list-style: none; }
.ebsz-footer li::before { content: none; }
.ebsz-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .ebsz-footer-cols { grid-template-columns: 1fr; } }
.ebsz-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1rem; font-size: 0.8rem; color: rgba(255,255,255,.6); }

/* ================================================================ h3: ne legyen félkövér (2026-09-30) */
h3, .ebsz-news-body h3, .ebsz-area-card h3 {
    font-family: var(--pico-font-family-sans-serif);
    font-weight: 500;
    letter-spacing: 0;
}

/* A Quark 2 a szakaszok h2-je elé egy kis sötét vonalat tesz; nálunk a cím alatti kék vonal a jel. */
.ebsz-section-title::before, .ebsz-cta h2::before { content: none !important; display: none !important; }

/* Címek elválasztás nélkül (2026-09-30). A Blades a body-ra hyphens:auto-t tesz, emiatt a nyitócím
   („Tartós béke, egy emberi család”) szó közben tört. Címekben, a nyitókép szövegében és a logó
   feliratában nincs elválasztás; a hosszabb címek sorai kiegyensúlyozottan törnek. */
h1, h2, h3, h4, h5, h6,
.ebsz-hero-text, .ebsz-kicker, .ebsz-hero-lead,
.ebsz-brand-text, .ebsz-section-title, .ebsz-page-head, .ebsz-cta h2,
#header .navigation a {
    -webkit-hyphens: manual;
    hyphens: manual;
    overflow-wrap: normal;
    word-break: normal;
}
h1, h2, .ebsz-section-title { text-wrap: balance; }
