/* Početna strana: hero (global-templates/est-pocetna-hero.php) i prednosti (loop-templates/est-home-page.php). */

.est-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 84vh, 860px);
	overflow: hidden;
	background: #223e54;
	color: #f0f4f7;
}

.est-hero__slika,
.est-hero__slika img,
.est-hero__slika picture {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.est-hero__slika img {
	object-fit: cover;
	object-position: 52% 62%;
}

/* Tamniji levi deo, da se tekst čita preko svake slike. */
.est-hero__slika::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(34, 62, 84, 0.78) 0%, rgba(34, 62, 84, 0.45) 45%, rgba(34, 62, 84, 0) 75%),
		linear-gradient(180deg, rgba(34, 62, 84, 0.35) 0%, rgba(34, 62, 84, 0) 30%);
}

.est-hero__sadrzaj {
	position: relative;
	z-index: 2;
	padding-top: 4rem;
	padding-bottom: 9rem;
}

.est-hero__nadnaslov {
	margin: 0 0 1rem;
	color: rgba(240, 244, 247, 0.85);
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.est-hero__naslov {
	max-width: 12ch;
	margin: 0 0 1.25rem;
	color: #fff;
	font-family: "Kanit ExtraBold", Arial, Helvetica, sans-serif;
	font-size: clamp(2.6rem, 6vw, 5rem);
	line-height: 1.02;
	text-shadow: 0 2px 24px rgba(34, 62, 84, 0.35);
}

.est-hero__podnaslov {
	max-width: 34rem;
	margin: 0 0 2rem;
	color: #f0f4f7;
	font-family: "Raleway Medium", Arial, Helvetica, sans-serif;
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	line-height: 1.5;
}

.est-hero__dugmad {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.est-hero__dugme,
.est-hero__dugme:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.6rem;
	border: 2px solid rgba(240, 244, 247, 0.8);
	border-radius: 50px;
	color: #fff;
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.est-hero__dugme:hover,
.est-hero__dugme:focus {
	background: rgba(240, 244, 247, 0.15);
	color: #fff;
	text-decoration: none;
}

.est-hero__dugme--glavno,
.est-hero__dugme--glavno:visited {
	border-color: #3097e2;
	background: #3097e2;
}

.est-hero__dugme--glavno:hover,
.est-hero__dugme--glavno:focus {
	border-color: #2376ab;
	background: #2376ab;
}

/* Oblaci prelaze u pozadinu strane. */
.est-hero__oblaci {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	z-index: 1;
	pointer-events: none;
}

.est-hero__oblaci img {
	display: block;
	width: 100%;
	height: clamp(60px, 9vw, 140px);
	object-fit: cover;
	object-position: center top;
}

/* Poslednji pojas utapa sliku u boju pozadine strane, bez oštre ivice. */
.est-hero__oblaci::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 35%;
	background: linear-gradient(180deg, rgba(240, 244, 247, 0) 0%, #f0f4f7 100%);
}

/* Prednosti agencije. */
.est-prednosti {
	position: relative;
	z-index: 3;
	margin: -2rem 0 0;
}

/* Sekcija „Popularne avanture“ iz editora: počinje ispod kartica prednosti, a gornji deo njene slike
   (oblaci) se utapa u boju strane, pa hero, prednosti i avanture izgledaju kao jedna celina. */
.home .home-adventures {
	position: relative;
	margin-top: -9rem;
	padding-top: 12rem;
}

.home .home-adventures::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 22rem;
	background: linear-gradient(180deg, #f0f4f7 0%, #f0f4f7 35%, rgba(240, 244, 247, 0) 100%);
	pointer-events: none;
}

.home .home-adventures > * {
	position: relative;
	z-index: 1;
}

@media screen and (max-width: 767.98px) {
	.home .home-adventures {
		margin-top: -4rem;
		padding-top: 6.5rem;
	}

	.home .home-adventures::before {
		height: 12rem;
	}
}


.est-prednosti__lista {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.est-prednost {
	padding: 1.5rem 1.25rem 1.6rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 6px 24px rgba(34, 62, 84, 0.08);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	text-align: center;
}

.est-prednost__ikona svg {
	display: block;
	width: 110px;
	height: auto;
	margin: 0 auto 0.5rem;
}

.est-prednost__naslov {
	margin: 0 0 0.5rem;
	color: #223e54;
	font-family: "Kanit Bold", Arial, Helvetica, sans-serif;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.est-prednost__opis {
	margin: 0;
	color: #4d6375;
	font-size: 15px;
	line-height: 1.55;
}

@media (max-width: 991.98px) {
	.est-prednosti__lista {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767.98px) {
	.est-hero {
		align-items: flex-end;
		min-height: clamp(520px, 86svh, 720px);
	}

	.est-hero__slika::after {
		background: linear-gradient(0deg, rgba(34, 62, 84, 0.85) 0%, rgba(34, 62, 84, 0.55) 45%, rgba(34, 62, 84, 0.1) 80%);
	}

	.est-hero__sadrzaj {
		padding-top: 6rem;
		padding-bottom: 6.5rem;
	}

	.est-hero__nadnaslov {
		font-size: 12px;
	}

	.est-hero__dugme {
		flex: 1 1 100%;
	}

	.est-hero__oblaci img {
		height: 70px;
	}

	.est-prednosti {
		margin-top: -1.5rem;
	}

	.est-prednosti__lista {
		gap: 0.75rem;
	}

	.est-prednost {
		padding: 1rem 0.75rem 1.1rem;
	}

	.est-prednost__ikona svg {
		width: 72px;
	}

	.est-prednost__naslov {
		font-size: 0.9rem;
	}

	.est-prednost__opis {
		font-size: 13.5px;
	}
}

/* Last minute ponude (loop-templates/est-home-page.php), samo kada ih ima. */

.est-lm-pocetna {
	position: relative;
	z-index: 2;
	padding: 3rem 0 1rem;
}

.est-lm-pocetna__vrh {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 1.5rem;
}

.est-lm-pocetna__nadnaslov {
	margin: 0 0 0.5rem;
}

.est-lm-pocetna__naslov {
	margin: 0 0 0.35rem;
	color: #223e54;
	font-family: "Kanit Bold", Arial, Helvetica, sans-serif;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.est-lm-pocetna__opis {
	margin: 0;
	color: #4d6375;
	font-size: 1.05rem;
}

.est-lm-pocetna__sve,
.est-lm-pocetna__sve:visited {
	color: #c2410c;
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	text-decoration: none;
}

.est-lm-pocetna__mreza {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
}

@media (max-width: 991.98px) {
	.est-lm-pocetna__mreza {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.est-lm-pocetna {
		padding-top: 2rem;
	}

	.est-lm-pocetna__mreza {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Na telefonu je slika isečak oko planinara (img/home-header-splash-mobil.webp). */
@media (max-width: 600px) {
	.est-hero__slika picture img {
		object-position: 50% 62%;
	}
}

/* ===== Prelaz hero → prednosti → avanture (čist, bez oblaka i izmaglice) =====
   Velika slika se završava ravnom ivicom sa blagim zatamnjenjem; prednosti su jedna bela traka sa četiri
   kolone koja prelazi preko donje ivice slike; avanture su na mirnoj pozadini strane. */

.est-hero__oblaci {
	display: none;
}

.est-hero {
	min-height: clamp(560px, 82vh, 820px);
}

.est-hero__slika::after {
	background:
		linear-gradient(90deg, rgba(23, 43, 59, 0.72) 0%, rgba(23, 43, 59, 0.38) 45%, rgba(23, 43, 59, 0) 72%),
		linear-gradient(0deg, rgba(23, 43, 59, 0.55) 0%, rgba(23, 43, 59, 0) 32%),
		linear-gradient(180deg, rgba(23, 43, 59, 0.35) 0%, rgba(23, 43, 59, 0) 25%);
}

.est-hero__sadrzaj {
	padding-bottom: 10rem;
}

.est-prednosti {
	margin: -5.5rem 0 0;
}

.est-prednosti__lista {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(23, 43, 59, 0.18), 0 4px 14px rgba(23, 43, 59, 0.06);
}

.est-prednost {
	position: relative;
	padding: 2rem 1.75rem 2.1rem;
	border-radius: 0;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.est-prednost + .est-prednost::before {
	content: "";
	position: absolute;
	top: 1.75rem;
	bottom: 1.75rem;
	left: 0;
	width: 1px;
	background: #e3eaf0;
}

.est-prednost__ikona svg {
	width: 76px;
	margin-bottom: 0.75rem;
}

.est-prednost__naslov {
	font-size: 0.98rem;
	letter-spacing: 0.06em;
}

.est-prednost__opis {
	font-size: 14.5px;
}

/* Avanture: mirna pozadina strane, bez slike iza i bez preklapanja sa prednostima. */
.home .home-adventures {
	margin-top: 0;
	padding-top: 4.5rem;
	background-image: none;
}

.home .home-adventures::before {
	content: none;
}

@media (max-width: 991.98px) {
	.est-prednosti__lista {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.est-prednost:nth-child(3)::before {
		content: none;
	}

	.est-prednost:nth-child(n+3)::after {
		content: "";
		position: absolute;
		top: 0;
		right: 1.5rem;
		left: 1.5rem;
		height: 1px;
		background: #e3eaf0;
	}
}

@media (max-width: 767.98px) {
	.est-hero__sadrzaj {
		padding-bottom: 7.5rem;
	}

	.est-hero__slika::after {
		background: linear-gradient(0deg, rgba(23, 43, 59, 0.88) 0%, rgba(23, 43, 59, 0.55) 45%, rgba(23, 43, 59, 0.12) 80%);
	}

	.est-prednosti {
		margin-top: -4rem;
	}

	.est-prednost {
		padding: 1.4rem 0.9rem 1.5rem;
	}

	.est-prednost__ikona svg {
		width: 56px;
	}

	.est-prednost__naslov {
		font-size: 0.85rem;
	}

	.est-prednost__opis {
		font-size: 13.5px;
	}

	.home .home-adventures {
		margin-top: 0;
		padding-top: 3rem;
	}
}

/* ===== Početna: naslovi sekcija, Tim bilding traka, partneri ===== */

/* Naslovi (underline_hl iz editora): u sredini, kratka plava linija umesto pune crte. */
.home .entry-content h2.underline_hl {
	width: auto;
	margin: 0 auto 0.6rem;
	padding: 0;
	color: #223e54;
	font-family: "Kanit Bold", Arial, Helvetica, sans-serif;
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	line-height: 1.15;
	text-align: center;
}

.home .entry-content h2.underline_hl::after {
	width: 52px;
	height: 4px;
	margin: 0.8rem auto 0;
	border-radius: 4px;
	background-color: #3097e2;
}

.home .home-adventures h5 {
	color: #4d6375;
	font-family: "Raleway Medium", Arial, Helvetica, sans-serif;
	font-size: 1.1rem;
}

/* Tim bilding: tamna kartica, tekst i dugmad levo, video desno; bez fotografija stena u pozadini. */
.home .home-team {
	display: block;
	padding: 1.5rem 0 3.5rem;
	background-image: none !important;
}

.home .home-team section::before {
	content: none !important;
	display: none !important;
}

.home .home-team > .container > section:first-child {
	padding: 3rem;
	border-radius: 24px;
	background:
		radial-gradient(800px 380px at 90% 0%, rgba(48, 151, 226, 0.32), rgba(48, 151, 226, 0) 70%),
		#1f3a4f;
	box-shadow: 0 24px 60px rgba(23, 43, 59, 0.18);
}

.home .home-team > .container > section:first-child > .row {
	margin: 0;
}

.home .home-team > .container > section:first-child > .row > [class*="col-"] {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	column-gap: 3rem;
	align-content: center;
	align-items: center;
	flex: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.home .home-team section:first-child [class*="col-"] > * {
	grid-column: 1;
}

.home .home-team section:first-child h2.underline_hl {
	margin: 0 0 1rem;
	color: #fff;
	text-align: left;
}

.home .home-team section:first-child h2.underline_hl::after {
	margin-left: 0;
}

.home .home-team section:first-child h5 {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.86);
	font-family: "Raleway Medium", Arial, Helvetica, sans-serif;
	font-size: 1.05rem;
	line-height: 1.6;
}

.home .home-team section:first-child .youtube-slider {
	grid-column: 2;
	grid-row: 1 / span 4;
	margin: 0 !important;
}

.home .home-team section:first-child .carousel-item {
	padding: 0 !important;
}

.home .home-team .est-yt {
	max-width: none;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home .home-team .offer-links {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	justify-content: flex-start !important;
	gap: 0.75rem;
	width: auto !important;
	max-width: none;
	margin: 0.5rem 0 0;
}

.home .home-team .offer-links br {
	display: none;
}

.home .home-team .offer-links .pill-button,
.home .home-team .offer-links .pill-button:visited {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	margin: 0;
	padding: 0.8rem 1.5rem;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50px;
	background: transparent;
	color: #fff;
	font-family: "Raleway Bold", Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.2;
}

.home .home-team .offer-links .pill-button:last-child {
	border-color: #3097e2;
	background: #3097e2;
}

.home .home-team .offer-links .pill-button:hover,
.home .home-team .offer-links .pill-button:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.home .home-team .offer-links .pill-button:last-child:hover,
.home .home-team .offer-links .pill-button:last-child:focus {
	border-color: #2376ab;
	background: #2376ab;
}

/* Partneri na početnoj. */
.home .home-team > .container > section + section {
	padding-top: 3rem;
}

.home .home-team > .container > section + section > p {
	margin: 0;
}

@media (max-width: 991.98px) {
	.home .home-team > .container > section:first-child {
		padding: 2rem 1.25rem;
	}

	.home .home-team > .container > section:first-child > .row > [class*="col-"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.home .home-team section:first-child .youtube-slider {
		grid-column: 1;
		grid-row: auto;
		margin: 0.5rem 0 1.25rem !important;
	}
}

@media (max-width: 575.98px) {
	.home .home-team .offer-links .pill-button {
		flex: 1 1 100%;
		justify-content: center;
	}
}

.home .home-team section:first-child h5,
.home .home-team section:first-child h2.underline_hl {
	text-align: left !important;
}

.home .home-team .offer-links .pill-button {
	font-size: 15px;
	padding: 0.75rem 1.3rem;
}

@media (min-width: 992px) {
	.home .home-team > .container > section:first-child > .row > [class*="col-"] {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 2.5rem;
	}
}
