/* Dogodki — v slogu strani (product-page.css: --accent, --alt, --text-2, --r-lg, --pill, --font). */
.ev-head { padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.ev-head .h-xl { margin: 8px 0 16px; }
.ev-head .lede { max-width: 640px; margin: 0 auto; }

/* koledar + agenda */
.ev-calwrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; background: #fff; border-radius: var(--r-lg); padding: 40px; }
.ev-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ev-cal__head h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; text-transform: capitalize; }
.ev-cal__nav { display: flex; gap: 8px; }
.ev-cal__nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--alt); cursor: pointer; font: 600 18px var(--font); color: var(--text); }
.ev-cal__nav button:hover { background: #e8e8ed; }
.ev-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ev-dow { font-size: 12px; font-weight: 700; color: var(--text-3); padding-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.ev-day { width: min(100%, 46px); height: 46px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: var(--text); text-decoration: none; }
.ev-day.is-out { color: #c7c7cc; }
.ev-day.is-today { box-shadow: inset 0 0 0 1.5px var(--text); }
.ev-day.has-ev { background: var(--accent); color: #fff; font-weight: 700; }
.ev-day.has-ev:hover { background: var(--accent-hover); }
.ev-day.has-ev.is-past { background: #d5dcf5; color: var(--brand, #26358b); }
.ev-agenda h3 { margin: 4px 0 16px; font-size: 17px; font-weight: 700; }
.ev-agenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-agenda a { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--alt); color: var(--text); text-decoration: none; transition: background .2s; }
.ev-agenda a:hover { background: #e8e8ed; }
.ev-agenda strong { display: block; font-size: 16px; line-height: 1.3; }
.ev-agenda small { color: var(--text-2); font-size: 14px; }
.ev-muted { color: var(--text-2); }
.ev-ico { flex: none; width: 60px; border-radius: 14px; overflow: hidden; background: #fff; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ev-ico span { display: block; background: var(--brand, #26358b); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 0; }
.ev-ico b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; padding: 4px 0 6px; color: var(--text); }

/* filter + kartice */
.ev-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; }
.ev-chips button { min-height: 36px; padding: 0 16px; border-radius: var(--pill); border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 15px var(--font); color: var(--text); cursor: pointer; }
.ev-chips button[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: none; }
.ev-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-sub { grid-column: 1 / -1; margin: 12px 0 0; }
.ev-sub + .ev-card, .ev-list .ev-sub ~ .ev-sub { margin-top: 0; }
.ev-list .ev-sub:not(:first-child) { margin-top: 36px; }
.ev-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.25); }
.ev-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--alt); }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card__txt { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ev-card__txt h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ev-card__type { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); display: flex; gap: 8px; align-items: center; }
.ev-card__meta { margin: auto 0 0; padding-top: 10px; font-size: 15px; color: var(--text-2); }
.ev-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); background: #e6ecfe; color: var(--accent); }
.ev-badge--past { background: #ececf0; color: var(--text-2); }

/* stran dogodka */
.ev-hero { padding: clamp(64px, 8vw, 104px) 0 0; text-align: center; }
.ev-hero .h-xl { max-width: 900px; margin: 8px auto 20px; }
.ev-hero .lede { max-width: 720px; margin: 0 auto; }
.ev-meta { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin: 36px auto 0; max-width: 980px; text-align: left; }
.ev-meta div { background: #fff; padding: 18px 22px; }
.ev-meta dt { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.ev-meta dd { margin: 0; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.ev-hero__img { margin: 48px auto 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; }
.ev-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; }
.ev-prose p { font-size: 19px; line-height: 1.6; margin: 0 0 16px; }
.ev-body .h-md { margin: 0 0 8px; }
.ev-ticks { list-style: none; margin: 0; padding: 0; }
.ev-ticks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ev-ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.ev-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ev-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); display: block; }
.ev-dark { background: var(--brand-deep, #141c4a); color: #fff; }
.ev-dark .h-lg { color: #fff; margin: 0 0 40px; }
.ev-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; }
.ev-stats b { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ev-stats span { color: rgba(255,255,255,.7); }
.ev-reg { background: #fff; border-radius: var(--r-lg); padding: 48px; max-width: 760px; margin: 0 auto; }
.ev-reg .h-lg { margin: 0 0 6px; }
.ev-reg > .ev-muted { margin: 0 0 28px; }
.ev-form { display: grid; gap: 14px; }
.ev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ev-field { position: relative; display: block; }
.ev-field span { position: absolute; left: 16px; top: 9px; font-size: 12px; color: var(--text-3); pointer-events: none; }
.ev-field input, .ev-field textarea, .ev-field select { width: 100%; box-sizing: border-box; min-height: 58px; padding: 26px 16px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 17px var(--font); color: var(--text); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.ev-field textarea { min-height: 120px; }
.ev-field input:focus, .ev-field textarea:focus, .ev-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10,60,240,.14); }
.ev-field.is-bad input, .ev-field.is-bad textarea, .ev-field.is-bad select { border-color: #e30000; }
.ev-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.ev-check input { margin-top: 3px; accent-color: var(--accent); }
.ev-check.is-bad { color: #e30000; }
.ev-form .btn { justify-self: start; margin-top: 6px; }
.ev-ok { background: #e9f6ec; color: #0b6b2c; border-radius: 12px; padding: 16px 20px; font-weight: 500; }
.ev-note { background: var(--alt); border-radius: var(--r-md); padding: 18px 22px; margin: 0; }

/* preklop jezika v meniju */
.gnav__lang { font-weight: 700 !important; letter-spacing: .04em; }

@media (max-width: 1068px) {
  .ev-calwrap { grid-template-columns: 1fr; padding: 24px; }
  .ev-list { grid-template-columns: 1fr 1fr; }
  .ev-body { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 734px) {
  .ev-list, .ev-gallery { grid-template-columns: 1fr; }
  .ev-meta { grid-template-columns: 1fr 1fr; }
  .ev-stats { grid-template-columns: 1fr 1fr; }
  .ev-row { grid-template-columns: 1fr; }
  .ev-reg { padding: 28px 20px; }
  .ev-hero__img { aspect-ratio: 4 / 3; }
  .ev-day { height: 40px; }
}
/* stran dogodka: naslov, podatki in slika v en zaslon */
@media (min-width: 900px) {
  .ev-hero { padding-top: clamp(40px, 5vw, 72px); }
  .ev-hero__img { aspect-ratio: auto; height: min(40svh, 28rem); margin-top: 32px; }
}

/* partnerji dogodka: trak logotipov (kot reference na naslovnici); brez partnerjev sekcije ni */
.ev-partners { padding-block: 3.5rem; }
.ev-partners h2 { margin-bottom: 1.5rem; }
.ev-partners__wall { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding-inline: 1.25rem; }
.ev-partners__wall span, .ev-partners__wall a { flex: none; display: grid; place-items: center; width: 11rem; height: 5.5rem; margin-right: .75rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line, #e5e5ea); border-radius: 1rem; }
.ev-partners__wall img { max-width: 100%; max-height: 2.5rem; width: auto; object-fit: contain; }
.ev-partners__wall a:hover { border-color: var(--blue, #0071e3); }
@media (max-width: 699px) { .ev-partners__wall span, .ev-partners__wall a { width: 8.5rem; height: 4.5rem; } }

/* številke dogodka: 1–4, vedno na sredini (ena ali dve ne stojita levo s praznino ob sebi) */
.ev-dark .wrap { text-align: center; }
.ev-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 16px; }
.ev-stats > div { flex: 1 1 0; min-width: 9rem; max-width: 18rem; }
@media (max-width: 700px) { .ev-stats > div { flex: 1 1 40%; } }

/* trak partnerjev ne sme razširiti strani na telefonu */
.ev-partners { overflow: hidden; }
.ev-partners .wall--marq { margin-inline: 0; }

/* koledar: dan z dogodkom je gumb, klik odpre okence (Toni, 15. 10.) */
button.ev-day { border: 0; font: inherit; cursor: pointer; }
.ev-day.has-ev { box-shadow: 0 0 0 4px rgba(0,83,190,.12); transition: transform .15s, box-shadow .15s; }
.ev-day.has-ev:hover, .ev-day.has-ev.is-open { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(0,83,190,.2); }
.ev-pop { position: absolute; z-index: 20; width: min(20rem, 100%); padding: 1.1rem 1.2rem 1.2rem; border-radius: 1.1rem; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1.25rem 2.5rem -1rem rgba(0,0,0,.35); }
.ev-pop__ev + .ev-pop__ev { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e5ea; }
.ev-pop__type { margin: 0 2rem .3rem 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ev-pop h4 { margin: 0 0 .35rem; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ev-pop__meta { margin: 0 0 .9rem; font-size: 14px; line-height: 1.45; color: #6e6e73; }
.ev-pop__btn { min-height: 2.4rem; padding: 0 1.1rem; font-size: 14px; }
.ev-pop__x { position: absolute; top: .55rem; right: .6rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--alt, #f5f5f7); cursor: pointer; font-size: 18px; line-height: 1; color: #1d1d1f; }

/* izbira iz seznama v obrazcu za prijavo */
.ev-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center; }
