/*
 * eGov tartalomblokkok (eb-*)
 *
 * A szolgáltatások CKEditorral szerkesztett tartalmában használható dobozok stílusa.
 * Ugyanezt a fájlt tölti be a frontend (AppAsset) és az admin CKEditor (contentsCss),
 * így a szerkesztőben is nagyjából úgy látszik a tartalom, ahogy az oldalon.
 * A blokkokat a backend/web/js/egovblocks CKEditor plugin szúrja be.
 *
 * Szín: narancs #fc7f00, sötét narancs #c25a00, tinta #1f1d1a, szöveg #494949,
 * halvány #7a776f, vonal #e2e1da, sáv #f3f2ef, kő #59564c.
 */

/* ---- Alcím narancs vonallal ---- */
.eb-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 12px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f1d1a;
}
.eb-sub::before {
    content: "";
    flex: none;
    width: 26px;
    height: 5px;
    background: #fc7f00;
}
.eb-sub:first-child {
    margin-top: 10px;
}

/* ---- Narancs négyzetes lista (önállóan és a kártyákban) ---- */
.eb-list,
.eb-card-body ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eb-card-body ul {
    gap: 7px;
}
.eb-list > li,
.eb-card-body li {
    position: relative;
    padding-left: 20px;
}
.eb-list > li::before,
.eb-card-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    display: block;
    width: 8px;
    height: 8px;
    margin: 0; /* a site.css "section ul li::before" pöttye -1em-mel kitolná */
    background: #fc7f00;
}

/* ---- Címkék (pirulák) ---- */
.eb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.eb-tags > li::before {
    content: none; /* a site.css listajelét a címkéken nem kérjük */
    display: none;
}
.eb-tags > li {
    padding: 6px 16px;
    border: 1px solid #e2e1da;
    border-radius: 999px;
    background: #fff;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.4;
    color: #1f1d1a;
}

/* ---- Lépések (számozott dobozok, a szám CSS-ből jön) ---- */
.eb-steps {
    counter-reset: eb-step;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 20px;
    margin: 0;
}
.eb-step {
    counter-increment: eb-step;
    padding: 18px 22px 22px;
    border-top: 5px solid #fc7f00;
    background: #fff;
}
.eb-step::before {
    content: counter(eb-step);
    display: block;
    margin-bottom: 8px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 34px;
    line-height: 1;
    color: #c25a00;
}
.eb-step h4 {
    margin: 0 0 8px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #1f1d1a;
}
.eb-step-meta {
    margin: 0 0 8px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7a776f;
}
.eb-step-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Kártyák (pl. workshop szintek) ---- */
.eb-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}
.eb-card {
    border: 1px solid #e2e1da;
    background: #fff;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.eb-card:hover {
    border-color: #fc7f00;
    box-shadow: 0 22px 40px -30px rgba(0, 0, 0, .45);
    transform: translateY(-3px);
}
.eb-card-head {
    padding: 20px 24px 18px;
    border-bottom: 1px solid #e2e1da;
    background: #f3f2ef;
}
.eb-card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7a776f;
}
/* szintjelző: világos kártya = 1. szint, sötét kártya = 2. szint */
.eb-card-label::before {
    content: "";
    flex: none;
    width: 30px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cg stroke='%237a776f' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath fill='%237a776f' d='M1 19V11H11V19Z'/%3E%3Cpath fill='none' d='M11 19V3H29V19Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.eb-card h4 {
    margin: 0 0 8px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #1f1d1a;
}
.eb-card-desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}
.eb-card-body {
    padding: 20px 24px;
    line-height: 1.6;
}
.eb-card-body p {
    margin: 0 0 8px;
}
.eb-card--dark .eb-card-head {
    border-bottom-color: #59564c;
    background: #59564c;
}
.eb-card--dark .eb-card-label {
    color: rgba(255, 255, 255, .8);
}
.eb-card--dark .eb-card-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' opacity='.8'%3E%3Cpath d='M1 19V11H11V19Z'/%3E%3Cpath d='M11 19V3H29V19Z'/%3E%3C/g%3E%3C/svg%3E");
}
.eb-card--dark h4 {
    color: #fff;
}
.eb-card--dark .eb-card-desc {
    color: rgba(255, 255, 255, .85);
}

/* ---- Megjegyzés ---- */
.eb-note {
    margin: 12px 0 0;
    font-size: 14.5px;
}

/* ---- EU-zászlós sor (a zászló CSS-ből jön, akadálymentes névvel) ---- */
.eb-eu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 0;
    font-size: 14px;
    color: #7a776f;
}
.eb-eu::before {
    flex: none;
    width: 22px;
    height: 22px;
    line-height: 0;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='31' fill='%23039'/%3E%3Cpath fill='%23fc0' d='M32.0,9.9L32.7,11.9L34.9,12.0L33.1,13.3L33.8,15.5L32.0,14.2L30.1,15.5L30.8,13.3L29.0,12.0L31.2,11.9ZM41.5,12.4L42.2,14.5L44.4,14.5L42.6,15.9L43.3,18.0L41.5,16.8L39.6,18.0L40.3,15.9L38.5,14.5L40.7,14.5ZM48.4,19.4L49.1,21.4L51.4,21.5L49.6,22.8L50.2,25.0L48.4,23.7L46.6,25.0L47.2,22.8L45.5,21.5L47.7,21.4ZM51.0,28.9L51.7,30.9L53.9,31.0L52.1,32.3L52.8,34.5L51.0,33.2L49.1,34.5L49.8,32.3L48.0,31.0L50.2,30.9ZM48.4,38.4L49.1,40.4L51.4,40.5L49.6,41.8L50.2,44.0L48.4,42.7L46.6,44.0L47.2,41.8L45.5,40.5L47.7,40.4ZM41.5,45.3L42.2,47.4L44.4,47.5L42.6,48.8L43.3,50.9L41.5,49.7L39.6,50.9L40.3,48.8L38.5,47.5L40.7,47.4ZM32.0,47.9L32.7,49.9L34.9,50.0L33.1,51.3L33.8,53.5L32.0,52.2L30.1,53.5L30.8,51.3L29.0,50.0L31.2,49.9ZM22.5,45.3L23.2,47.4L25.4,47.5L23.6,48.8L24.3,50.9L22.5,49.7L20.6,50.9L21.3,48.8L19.5,47.5L21.7,47.4ZM15.5,38.4L16.2,40.4L18.4,40.5L16.7,41.8L17.3,44.0L15.5,42.7L13.7,44.0L14.3,41.8L12.6,40.5L14.8,40.4ZM13.0,28.9L13.7,30.9L15.9,31.0L14.1,32.3L14.8,34.5L13.0,33.2L11.1,34.5L11.8,32.3L10.0,31.0L12.2,30.9ZM15.5,19.4L16.2,21.4L18.4,21.5L16.7,22.8L17.3,25.0L15.5,23.7L13.7,25.0L14.3,22.8L12.6,21.5L14.8,21.4ZM22.5,12.4L23.2,14.5L25.4,14.5L23.6,15.9L24.3,18.0L22.5,16.8L20.6,18.0L21.3,15.9L19.5,14.5L21.7,14.5Z'/%3E%3C/svg%3E");
    /* ahol támogatott, a zászló akadálymentes nevet is kap */
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='31' fill='%23039'/%3E%3Cpath fill='%23fc0' d='M32.0,9.9L32.7,11.9L34.9,12.0L33.1,13.3L33.8,15.5L32.0,14.2L30.1,15.5L30.8,13.3L29.0,12.0L31.2,11.9ZM41.5,12.4L42.2,14.5L44.4,14.5L42.6,15.9L43.3,18.0L41.5,16.8L39.6,18.0L40.3,15.9L38.5,14.5L40.7,14.5ZM48.4,19.4L49.1,21.4L51.4,21.5L49.6,22.8L50.2,25.0L48.4,23.7L46.6,25.0L47.2,22.8L45.5,21.5L47.7,21.4ZM51.0,28.9L51.7,30.9L53.9,31.0L52.1,32.3L52.8,34.5L51.0,33.2L49.1,34.5L49.8,32.3L48.0,31.0L50.2,30.9ZM48.4,38.4L49.1,40.4L51.4,40.5L49.6,41.8L50.2,44.0L48.4,42.7L46.6,44.0L47.2,41.8L45.5,40.5L47.7,40.4ZM41.5,45.3L42.2,47.4L44.4,47.5L42.6,48.8L43.3,50.9L41.5,49.7L39.6,50.9L40.3,48.8L38.5,47.5L40.7,47.4ZM32.0,47.9L32.7,49.9L34.9,50.0L33.1,51.3L33.8,53.5L32.0,52.2L30.1,53.5L30.8,51.3L29.0,50.0L31.2,49.9ZM22.5,45.3L23.2,47.4L25.4,47.5L23.6,48.8L24.3,50.9L22.5,49.7L20.6,50.9L21.3,48.8L19.5,47.5L21.7,47.4ZM15.5,38.4L16.2,40.4L18.4,40.5L16.7,41.8L17.3,44.0L15.5,42.7L13.7,44.0L14.3,41.8L12.6,40.5L14.8,40.4ZM13.0,28.9L13.7,30.9L15.9,31.0L14.1,32.3L14.8,34.5L13.0,33.2L11.1,34.5L11.8,32.3L10.0,31.0L12.2,30.9ZM15.5,19.4L16.2,21.4L18.4,21.5L16.7,22.8L17.3,25.0L15.5,23.7L13.7,25.0L14.3,22.8L12.6,21.5L14.8,21.4ZM22.5,12.4L23.2,14.5L25.4,14.5L23.6,15.9L24.3,18.0L22.5,16.8L20.6,18.0L21.3,15.9L19.5,14.5L21.7,14.5Z'/%3E%3C/svg%3E") / "Európai Unió";
}
:lang(en) .eb-eu::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='31' fill='%23039'/%3E%3Cpath fill='%23fc0' d='M32.0,9.9L32.7,11.9L34.9,12.0L33.1,13.3L33.8,15.5L32.0,14.2L30.1,15.5L30.8,13.3L29.0,12.0L31.2,11.9ZM41.5,12.4L42.2,14.5L44.4,14.5L42.6,15.9L43.3,18.0L41.5,16.8L39.6,18.0L40.3,15.9L38.5,14.5L40.7,14.5ZM48.4,19.4L49.1,21.4L51.4,21.5L49.6,22.8L50.2,25.0L48.4,23.7L46.6,25.0L47.2,22.8L45.5,21.5L47.7,21.4ZM51.0,28.9L51.7,30.9L53.9,31.0L52.1,32.3L52.8,34.5L51.0,33.2L49.1,34.5L49.8,32.3L48.0,31.0L50.2,30.9ZM48.4,38.4L49.1,40.4L51.4,40.5L49.6,41.8L50.2,44.0L48.4,42.7L46.6,44.0L47.2,41.8L45.5,40.5L47.7,40.4ZM41.5,45.3L42.2,47.4L44.4,47.5L42.6,48.8L43.3,50.9L41.5,49.7L39.6,50.9L40.3,48.8L38.5,47.5L40.7,47.4ZM32.0,47.9L32.7,49.9L34.9,50.0L33.1,51.3L33.8,53.5L32.0,52.2L30.1,53.5L30.8,51.3L29.0,50.0L31.2,49.9ZM22.5,45.3L23.2,47.4L25.4,47.5L23.6,48.8L24.3,50.9L22.5,49.7L20.6,50.9L21.3,48.8L19.5,47.5L21.7,47.4ZM15.5,38.4L16.2,40.4L18.4,40.5L16.7,41.8L17.3,44.0L15.5,42.7L13.7,44.0L14.3,41.8L12.6,40.5L14.8,40.4ZM13.0,28.9L13.7,30.9L15.9,31.0L14.1,32.3L14.8,34.5L13.0,33.2L11.1,34.5L11.8,32.3L10.0,31.0L12.2,30.9ZM15.5,19.4L16.2,21.4L18.4,21.5L16.7,22.8L17.3,25.0L15.5,23.7L13.7,25.0L14.3,22.8L12.6,21.5L14.8,21.4ZM22.5,12.4L23.2,14.5L25.4,14.5L23.6,15.9L24.3,18.0L22.5,16.8L20.6,18.0L21.3,15.9L19.5,14.5L21.7,14.5Z'/%3E%3C/svg%3E") / "European Union";
}

/* ---- Felhívás sáv gombbal ---- */
.eb-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    margin: 30px 0 0;
    padding: 24px 26px;
    background: #59564c;
    color: #fff;
}
.eb-cta-text {
    flex: 1 1 320px;
    min-width: 0;
}
.eb-cta h4 {
    margin: 0 0 4px;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
}
.eb-cta-text p {
    max-width: 60ch;
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}
.eb-cta-action {
    flex: none;
    margin: 0;
}

/* gomb: a felhívás sávban minden link gomb, máshol az eb-btn osztály adja */
a.eb-btn,
.eb-cta-action a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 160px;
    height: 44px;
    padding: 0 24px 0 30px;
    border-radius: 22px;
    background: #c25a00;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none !important;
    transition: background .3s ease-out;
}
a.eb-btn::after,
.eb-cta-action a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform .3s ease-out;
}
a.eb-btn:hover,
a.eb-btn:focus,
.eb-cta-action a:hover,
.eb-cta-action a:focus {
    background: #1f1d1a;
}
a.eb-btn:hover::after,
.eb-cta-action a:hover::after {
    transform: translateX(4px) rotate(45deg);
}
a.eb-btn:focus-visible,
.eb-cta-action a:focus-visible {
    outline: 3px solid #fc7f00;
    outline-offset: 2px;
}

/* ---- Keskeny nézet ---- */
@media (max-width: 991px) {
    .eb-steps {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
}
@media (max-width: 767px) {
    .eb-cards {
        grid-template-columns: minmax(0, 1fr);
    }
    .eb-cta {
        padding: 20px 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .eb-card,
    a.eb-btn,
    a.eb-btn::after,
    .eb-cta-action a,
    .eb-cta-action a::after {
        transition: none;
    }
    .eb-card:hover {
        transform: none;
    }
}
