/* ── EventMaster Heritage Widget ─────────────────────────────────────── */

.em-her { font-family: inherit; box-sizing: border-box; }
.em-her *, .em-her *::before, .em-her *::after { box-sizing: inherit; }

/* ── Shared header ── */
.em-her__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.em-her__title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
}
.em-her__divider {
    width: 56px; height: 3px;
    border-radius: 2px;
    margin-bottom: 20px;
}
.em-her__desc {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 32px;
}

/* ── 2-col bottom ── */
.em-her__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}
@media (max-width: 768px) {
    .em-her__bottom { grid-template-columns: 1fr; }
}

/* ── Video (shared) ── */
.em-her__video {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.em-her__video iframe {
    width: 100%; height: 100%;
    display: block; border: none;
}

/* ════════════════════════════════════════════════════════════════════
   LAYOUT 1 – Meleg népi accordion  (krém háttér, amber)
   ════════════════════════════════════════════════════════════════════ */
.em-her--warm {
    background: #F5EDE0;
    padding: 56px 40px;
    border-radius: 20px;
}
.em-her--warm .em-her__title { color: #5c3d1e; }
.em-her--warm .em-her__desc  { color: #6b4f2e; }

.em-her__acc-item {
    border-left: 4px solid var(--her-accent, #c9974a);
    background: rgba(255,255,255,.75);
    border-radius: 0 10px 10px 0;
    margin-bottom: 8px;
    overflow: hidden;
}
.em-her__acc-hdr {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; cursor: pointer; user-select: none;
    color: #5c3d1e; transition: background .15s;
}
.em-her__acc-hdr:hover { background: rgba(201,151,74,.1); }
.em-her__acc-img { width: 66px; height: 46px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.em-her__acc-name { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.3; }
.em-her__acc-arr  { color: var(--her-accent,#c9974a); font-size: 11px; flex-shrink: 0; transition: transform .3s; }
.em-her__acc-item.open .em-her__acc-arr { transform: rotate(180deg); }
.em-her__acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.em-her__acc-item.open .em-her__acc-body { max-height: 70px; }
.em-her__acc-link {
    display: inline-block;
    margin: 7px 14px 12px;
    padding: 6px 18px;
    border-radius: 20px;
    background: var(--her-accent, #c9974a);
    color: #fff !important;
    text-decoration: none; font-size: 13px; font-weight: 600;
    transition: opacity .2s;
}
.em-her__acc-link:hover { opacity: .82; }

/* ════════════════════════════════════════════════════════════════════
   LAYOUT 2 – Modern kártyák  (fehér/zöld)
   ════════════════════════════════════════════════════════════════════ */
.em-her--cards {
    background: #F2F6F2;
    padding: 56px 40px;
    border-radius: 20px;
}
.em-her--cards .em-her__title { color: #1a2e1a; }
.em-her--cards .em-her__desc  { color: #3d4a3d; }

.em-her__cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.em-her__card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(74,123,90,.09);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.em-her__card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(74,123,90,.17); }
.em-her__card-imgwrap { overflow: hidden; }
.em-her__card-imgwrap img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform .4s; }
.em-her__card:hover .em-her__card-imgwrap img { transform: scale(1.06); }
.em-her__card-body { padding: 12px 14px 15px; flex: 1; display: flex; flex-direction: column; }
.em-her__card-name { font-size: 13px; font-weight: 700; color: #1a2e1a; line-height: 1.4; margin: 0 0 10px; flex: 1; }
.em-her__card-link {
    display: inline-block; padding: 6px 14px;
    background: var(--her-accent, #4a7b5a);
    color: #fff !important; border-radius: 7px;
    text-decoration: none; font-size: 12px; font-weight: 700;
    align-self: flex-start; transition: opacity .2s;
}
.em-her__card-link:hover { opacity: .85; }

/* ════════════════════════════════════════════════════════════════════
   LAYOUT 3 – Sötét elegáns strips  (erdőzöld, arany)
   ════════════════════════════════════════════════════════════════════ */
.em-her--dark {
    background: #1E2F24;
    padding: 56px 40px;
    border-radius: 20px;
}
.em-her--dark .em-her__title { color: #f5e8c8; }
.em-her--dark .em-her__desc  { color: #a8bca8; }

.em-her__strips { display: flex; flex-direction: column; gap: 8px; }
.em-her__strip {
    display: flex; align-items: stretch;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; overflow: hidden;
    cursor: pointer; transition: background .2s;
}
.em-her__strip:hover { background: rgba(255,255,255,.09); }
.em-her__strip-imgwrap { width: 120px; flex-shrink: 0; overflow: hidden; }
.em-her__strip-imgwrap img { width: 100%; height: 74px; object-fit: cover; display: block; transition: transform .4s; }
.em-her__strip:hover .em-her__strip-imgwrap img { transform: scale(1.08); }
@media (max-width: 500px) { .em-her__strip-imgwrap { display: none; } }
.em-her__strip-content { flex: 1; padding: 11px 14px; display: flex; flex-direction: column; justify-content: center; }
.em-her__strip-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.em-her__strip-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.em-her__strip.open .em-her__strip-body { max-height: 50px; margin-top: 7px; }
.em-her__strip-link {
    display: inline-block; padding: 4px 13px;
    border: 1.5px solid var(--her-accent, #d4aa60);
    color: var(--her-accent, #d4aa60) !important;
    border-radius: 20px; text-decoration: none;
    font-size: 12px; font-weight: 600;
    transition: background .2s, color .2s;
}
.em-her__strip-link:hover { background: var(--her-accent,#d4aa60); color: #1e2f24 !important; }
.em-her__strip-arrow { align-self: center; margin-right: 14px; color: var(--her-accent,#d4aa60); font-size: 11px; flex-shrink: 0; transition: transform .3s; }
.em-her__strip.open .em-her__strip-arrow { transform: rotate(180deg); }

/* ════════════════════════════════════════════════════════════════════
   LAYOUT 4 – Fotólista  (fehér, képek bal, szöveg jobb)
   ════════════════════════════════════════════════════════════════════ */
.em-her--photolist {
    background: #fff;
    padding: 56px 40px;
    border-radius: 20px;
    border: 1px solid #ebebeb;
}
.em-her--photolist .em-her__title { color: #1a1a2e; }
.em-her--photolist .em-her__desc  { color: #4a4a5a; }

.em-her__pl-list { display: flex; flex-direction: column; gap: 8px; }
.em-her__pl-item {
    display: flex; gap: 16px; align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background .15s;
    border-radius: 8px;
    background: #f7f9fc;
}
.em-her__pl-item:last-child { border-bottom: none; }
.em-her__pl-item:hover { background: #eef2f7; padding-left: 16px; }
.em-her__pl-img { width: 80px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.em-her__pl-no-img { width: 80px; height: 58px; background: #f0f4f8; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.em-her__pl-text { flex: 1; }
.em-her__pl-name { font-size: 15px; font-weight: 700; color: #1a1a2e; line-height: 1.3; margin: 0 0 5px; }
.em-her__pl-btn {
    display: inline-block; padding: 4px 12px;
    background: var(--her-accent, #4a6fa5);
    color: #fff !important; border-radius: 5px;
    font-size: 11px; font-weight: 700;
    text-decoration: none; transition: opacity .2s;
}
.em-her__pl-btn:hover { opacity: .85; }
.em-her__pl-arrow { color: #ccc; font-size: 14px; margin-right: 4px; }

/* ════════════════════════════════════════════════════════════════════
   LAYOUT 5 – Timeline  (lila/slate, függőleges vonal)
   ════════════════════════════════════════════════════════════════════ */
.em-her--timeline {
    background: linear-gradient(135deg, #2d2b55 0%, #1a1a3e 100%);
    padding: 56px 40px;
    border-radius: 20px;
}
.em-her--timeline .em-her__title { color: #e8e4ff; }
.em-her--timeline .em-her__desc  { color: #a09ec8; }

.em-her__tl { position: relative; padding-left: 28px; }
.em-her__tl::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 0; width: 2px; background: rgba(255,255,255,.15); border-radius: 2px; }

.em-her__tl-item { position: relative; margin-bottom: 24px; }
.em-her__tl-item:last-child { margin-bottom: 0; }
.em-her__tl-dot {
    position: absolute; left: -24px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--her-accent, #9b8ee8);
    border: 2px solid rgba(255,255,255,.3);
    transition: transform .2s;
}
.em-her__tl-item:hover .em-her__tl-dot { transform: scale(1.4); }
.em-her__tl-body { background: rgba(255,255,255,.07); border-radius: 10px; overflow: hidden; }
.em-her__tl-inner { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.em-her__tl-img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; opacity: .9; }
.em-her__tl-name { flex: 1; font-size: 14px; font-weight: 700; color: #e8e4ff; line-height: 1.3; }
.em-her__tl-link {
    display: inline-block; padding: 4px 12px;
    background: var(--her-accent, #9b8ee8);
    color: #fff !important; border-radius: 20px;
    text-decoration: none; font-size: 12px; font-weight: 600;
    white-space: nowrap; transition: opacity .2s;
}
.em-her__tl-link:hover { opacity: .82; }

/* ════════════════════════════════════════════════════════════════════
   LAYOUT 6 – Mozaik kártyák  (terrakotta/tégla)
   ════════════════════════════════════════════════════════════════════ */
.em-her--mosaic {
    background: #fdf6f0;
    padding: 56px 40px;
    border-radius: 20px;
}
.em-her--mosaic .em-her__title { color: #3d1f0f; }
.em-her--mosaic .em-her__desc  { color: #6b3d2a; }

.em-her__mosaic { display: flex; flex-direction: column; gap: 12px; }
.em-her__mos-item {
    position: relative; overflow: hidden; border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(140,60,20,.1);
    transition: box-shadow .25s;
}
.em-her__mos-item:hover { box-shadow: 0 6px 20px rgba(140,60,20,.18); }
.em-her__mos-img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform .5s; }
.em-her__mos-item:hover .em-her__mos-img { transform: scale(1.04); }
.em-her__mos-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(40,15,5,.75) 0%, transparent 55%);
    display: flex; align-items: flex-end;
    padding: 14px 16px;
    gap: 12px;
}
.em-her__mos-name { flex: 1; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.em-her__mos-link {
    display: inline-block; padding: 5px 14px;
    background: var(--her-accent, #c05a28);
    color: #fff !important; border-radius: 20px;
    text-decoration: none; font-size: 12px; font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
    transition: opacity .2s;
}
.em-her__mos-link:hover { opacity: .85; }

/* ── Responsive padding ── */
@media (max-width: 768px) {
    .em-her--warm, .em-her--cards, .em-her--dark,
    .em-her--photolist, .em-her--timeline, .em-her--mosaic {
        padding: 40px 20px;
    }
}
