/* Goltes Events 1.0.0 – vsi selektorji so omejeni na .goltes-events / .goltes-event* / body.goltes-event-single */

.goltes-events,
.goltes-event-single {
	--ge-green: #7dcb43;
	--ge-ink: #111;
	--ge-card: #232323;
	--ge-border: #5f5f5f;
	--ge-text: #ececec;
	--ge-font: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Seznam ---------- */
.goltes-events {
	max-width: 1226px;
	margin: 0 auto;
	font-family: var(--ge-font);
}

.goltes-events ul.goltes-events__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.goltes-event {
	display: grid;
	grid-template-columns: clamp(240px, 25%, 300px) 1fr auto;
	align-items: stretch;
	min-height: 148px;
	margin: 0;
	padding: 0;
	background: var(--ge-card);
	border: 1px solid var(--ge-border);
	border-radius: 6px;
	overflow: hidden;
}

.goltes-event__date {
	display: flex;
	align-items: center;
	padding: 20px 20px 20px 36px;
	background: var(--ge-green);
	color: var(--ge-ink);
	font-size: 36px;
	font-weight: 900;
	line-height: 1.08;
	text-transform: uppercase;
	letter-spacing: 0;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.goltes-event__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 18px 24px 18px 42px;
	min-width: 0;
}

.goltes-events .goltes-event__title {
	margin: 0 0 2px;
	padding: 0;
	font-family: var(--ge-font);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
}

.goltes-events .goltes-event__title a {
	color: inherit;
	text-decoration: none;
}

.goltes-events .goltes-event__title a:hover,
.goltes-events .goltes-event__title a:focus-visible {
	color: var(--ge-green);
}

.goltes-events ul.goltes-event__meta,
.goltes-event-info ul.goltes-event__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.goltes-event__meta li {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	color: var(--ge-text);
	font-family: var(--ge-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.goltes-event__meta svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	fill: var(--ge-green);
}

.goltes-event__action {
	display: flex;
	align-items: center;
	padding: 18px 34px 18px 0;
}

.goltes-events .goltes-event__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 50px;
	padding: 12px 22px 12px 26px;
	border: 2px solid var(--ge-green);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-family: var(--ge-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}

.goltes-events .goltes-event__btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	transition: transform .2s ease;
}

.goltes-events .goltes-event__btn:hover,
.goltes-events .goltes-event__btn:focus-visible {
	background: var(--ge-green);
	color: var(--ge-ink);
}

.goltes-events .goltes-event__btn:hover svg,
.goltes-events .goltes-event__btn:focus-visible svg {
	transform: translateX(3px);
}

.goltes-events a:focus-visible {
	outline: 2px solid var(--ge-green);
	outline-offset: 3px;
}

.goltes-events__empty {
	margin: 0;
	padding: 28px 32px;
	border: 1px solid var(--ge-border);
	border-radius: 6px;
	background: var(--ge-card);
	color: var(--ge-text);
	font-family: var(--ge-font);
	font-size: 20px;
}

/* Tablica */
@media (max-width: 1024px) {
	.goltes-event {
		grid-template-columns: clamp(200px, 30%, 260px) 1fr;
	}
	.goltes-event__date {
		grid-row: span 2;
		font-size: 30px;
		padding: 20px 18px 20px 26px;
	}
	.goltes-event__body {
		padding: 20px 24px 8px 28px;
	}
	.goltes-event__action {
		padding: 8px 24px 22px 28px;
	}
	.goltes-events .goltes-event__title {
		font-size: 30px;
	}
	.goltes-event__meta li {
		font-size: 18px;
	}
}

/* Telefon */
@media (max-width: 640px) {
	.goltes-events ul.goltes-events__list {
		gap: 14px;
	}
	.goltes-event {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.goltes-event__date {
		grid-row: auto;
		padding: 16px 20px;
		font-size: 26px;
	}
	.goltes-event__body {
		padding: 18px 20px 6px;
	}
	.goltes-events .goltes-event__title {
		font-size: 24px;
	}
	.goltes-event__meta li {
		font-size: 16px;
		gap: 12px;
	}
	.goltes-event__meta svg {
		width: 20px;
		height: 20px;
	}
	.goltes-event__action {
		padding: 14px 20px 20px;
	}
	.goltes-events .goltes-event__btn {
		width: 100%;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.goltes-events .goltes-event__btn,
	.goltes-events .goltes-event__btn svg {
		transition: none;
	}
}

/* ---------- Uvod strani TEST EVENTS (Elementor sekcija z razredom goltes-events-hero) ---------- */
.goltes-events-hero .elementor-heading-title {
	margin: 0;
}

.goltes-events-hero .elementor-heading-title .ge-slash {
	color: #7dcb43;
	font-style: italic;
	margin-right: 0.12em;
}

/* ---------- Posamezen dogodek (tema Sloway/Kadence) ---------- */
/* Postavitev: PHP preklopi Kadence na normalno širino (1290 px) brez okvirja; spodnji CSS velja samo za body.goltes-event-single. */

/* Ozadje kot na /kontakt/ in /test-events/: ista slika, velikost contain, levo zgoraj, prosojnost 0.31,
   čez celotno vsebinsko območje (od vrha strani, za absolutno glavo). Najmanjša višina = razmerje slike (2560×1403),
   da slika vedno sega čez celo širino. */
body.goltes-event-single #primary {
	position: relative;
	min-height: calc(100vw / 1.825);
}

body.goltes-event-single #primary::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--ge-bg, none);
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: contain;
	opacity: 0.31;
	pointer-events: none;
	z-index: 0;
}

body.goltes-event-single #primary > * {
	position: relative;
	z-index: 1;
}

/* Širina in odmiki kot na /test-events/ (vsebina 1226 px znotraj vsebnika 1290 px). Glava je absolutna (≈168 px). */
body.goltes-event-single .site-main {
	max-width: 1226px;
	margin: 0 auto;
	padding: 228px 0 96px;
}

body.goltes-event-single article.entry {
	background: transparent;
	box-shadow: none;
}

body.goltes-event-single .entry-content-wrap {
	padding: 0;
}

/* Datum objave se uporablja samo za vrstni red; elemente teme izklopi PHP (filtri theme_mod_*), to je rezervni CSS. */
body.goltes-event-single .entry-meta,
body.goltes-event-single .entry-taxonomies,
body.goltes-event-single .entry-footer .entry-tags,
body.goltes-event-single .post-navigation,
body.goltes-event-single .entry-related,
body.goltes-event-single .entry-author {
	display: none;
}

/* Naslov v slogu naslova strani TEST EVENTS. */
body.goltes-event-single .entry-header {
	margin: 0 0 28px;
}

body.goltes-event-single .entry-title {
	margin: 0;
	font-family: var(--ge-font);
	font-size: 64px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #fff;
}

/* Datum, lokacija, trajanje */
body.goltes-event-single .goltes-event-info {
	display: grid;
	gap: 18px;
	margin: 0;
	font-family: var(--ge-font);
}

body.goltes-event-single .goltes-event-info__date {
	justify-self: start;
	padding: 12px 22px;
	border-radius: 6px;
	background: var(--ge-green);
	color: var(--ge-ink);
	font-size: 32px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

body.goltes-event-single .goltes-event-info .goltes-event__meta li {
	font-size: 20px;
}

/* Vsebina prispevka: ločen del, polna širina vsebnika */
body.goltes-event-single .goltes-event-content {
	margin: 40px 0 0;
	padding: 40px 0 0;
	border-top: 1px solid var(--ge-border);
	color: var(--ge-text);
	font-family: var(--ge-font);
	font-size: 18px;
	line-height: 1.65;
}

body.goltes-event-single .goltes-event-content > *:first-child {
	margin-top: 0;
}

body.goltes-event-single .goltes-event-content > *:last-child {
	margin-bottom: 0;
}

body.goltes-event-single .goltes-event-content h2,
body.goltes-event-single .goltes-event-content h3,
body.goltes-event-single .goltes-event-content h4 {
	color: #fff;
	font-family: var(--ge-font);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.2;
}

body.goltes-event-single .goltes-event-content a {
	color: var(--ge-green);
}

body.goltes-event-single .goltes-event-content img,
body.goltes-event-single .goltes-event-content video,
body.goltes-event-single .goltes-event-content iframe {
	max-width: 100%;
	height: auto;
}

body.goltes-event-single .goltes-event-content figure,
body.goltes-event-single .goltes-event-content .wp-block-image,
body.goltes-event-single .goltes-event-content .wp-block-gallery {
	margin: 28px 0;
}

body.goltes-event-single .goltes-event-content figcaption {
	color: #bdbdbd;
	font-size: 14px;
}

/* Povezava nazaj */
body.goltes-event-single .goltes-event-back {
	margin: 40px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--ge-border);
	font-family: var(--ge-font);
}

body.goltes-event-single .goltes-event-back a {
	color: var(--ge-green);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
}

body.goltes-event-single .goltes-event-back a:hover,
body.goltes-event-single .goltes-event-back a:focus-visible {
	text-decoration: underline;
}


/* Berljivost na svetlih delih fotografije (sneg): diskretna senca besedila, ozadje ostane enako kot na /kontakt/. */
body.goltes-event-single .entry-title,
body.goltes-event-single .goltes-event-info .goltes-event__meta li,
body.goltes-event-single .goltes-event-content,
body.goltes-event-single .goltes-event-back a {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 0, 0, 0.45);
}

body.goltes-event-single .goltes-event-content figure,
body.goltes-event-single .goltes-event-content img {
	text-shadow: none;
}

@media (max-width: 1024px) {
	body.goltes-event-single .site-main {
		padding: 200px 0 64px;
	}
	body.goltes-event-single .entry-title {
		font-size: 48px;
	}
	body.goltes-event-single .goltes-event-info__date {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	body.goltes-event-single .site-main {
		padding: 230px 0 48px;
	}
	body.goltes-event-single .entry-header {
		margin-bottom: 20px;
	}
	body.goltes-event-single .entry-title {
		font-size: 32px;
	}
	body.goltes-event-single .goltes-event-info__date {
		font-size: 22px;
		padding: 10px 16px;
	}
	body.goltes-event-single .goltes-event-info .goltes-event__meta li {
		font-size: 16px;
	}
	body.goltes-event-single .goltes-event-content {
		margin-top: 28px;
		padding-top: 28px;
		font-size: 16px;
	}
	body.goltes-event-single .goltes-event-back {
		margin-top: 28px;
		padding-top: 20px;
	}
}