/* =========================================================
   PWW Theme - main.css
   Custom stilovi preko Bootstrap 5.
   Paleta: primarno plava, neutrali (belo/sivo/tamno), akcenat tamno.
   ========================================================= */

:root {
	--pww-primary: #45cf63;        /* plava (ikonice / naslovi kartica) */
	--pww-primary-dark: #4b978c;
	--pww-ink: #45cf63;            /* tamni tekst / aktivni tab */
	--pww-muted: #6b7280;          /* sekundarni tekst */
	--pww-bg: #ffffff;             /* pozadina panela */
	--pww-surface: #ffffff;        /* kartice */
	--pww-border: #e2e5ea;
	--pww-radius: 6px;
	--pww-tekst: #312f2f; 
}

body {
	background-color: var(--pww-bg);
	color: var(--pww-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
}

a {
	text-decoration: none;
}

.pww-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--pww-ink);
	margin-bottom: 1.5rem;
}

/* ---------- NASLOVNA (Landing) ---------- */

.home-logo {
	text-align: center;
	margin-top: 4.5rem;
}

.pww-naslov-home {
    font-size: 5.35rem;
    font-weight: 700;
    color: var(--pww-ink);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .pww-naslov-home {
        font-size: 4rem;
    }
}

/* Mobilni */
@media (max-width: 767px) {
    .pww-naslov-home {
        font-size: 2rem;
    }
}

.pww-landing {
	min-height: 100vh;
}

.pww-banner {
	width: 100%;
	background-color: var(--pww-surface);
	
}

.pww-banner__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 660px;
	object-fit: cover;
	border-radius: 50px 0px 50px 0px;
	margin-top: 50px;
}

.pww-banner__placeholder {
	min-height: 260px;
	background: linear-gradient(135deg, var(--pww-primary), var(--pww-primary-dark));
	color: #fff;
}

.pww-banner__logo {
	max-height: 120px;
	width: auto;
}

/* Grid organizacionih jedinica */
.pww-oj-card {
	display: flex;
	flex-direction: column;
	background: var(--pww-surface);
	border: 1px solid var(--pww-border);
	border-radius: 0 50px;
	overflow: hidden;
	height: 100%;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.pww-oj-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(31, 35, 40, .12);
	color: inherit;
}

.pww-oj-card__media {
	aspect-ratio: 4 / 3;
	background: #f5f6f8;
	overflow: hidden;
}

.pww-oj-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pww-oj-card__media-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 3rem;
	color: var(--pww-primary);
}

.pww-oj-card__body {
	padding: 1rem 1.25rem;
	text-align: center;
	border-top: 1px solid var(--pww-border);
}

.pww-oj-card__title {
	    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 20px;
    color: var(--pww-ink);
    text-align: left;
}

.pww-oj-card__desc {
	padding: 0 20px 20px 20px ;
	color: var(--pww-tekst);
	font-style: italic;
}

/* Mobilni */
@media (max-width: 767px) {
    .pww-oj-card__desc {
        font-size: 0.62rem;
    }
}


/* Tablet */
@media (max-width: 1024px) {
    .pww-oj-card__title {
        font-size: 0.9rem;
    }
}

/* Mobilni */
@media (max-width: 767px) {
    .pww-oj-card__title {
        font-size: 0.82rem;
    }
}

/* ---------- HEADER ORGANIZACIONE JEDINICE ---------- */

.pww-oj-header {
	background: var(--pww-surface);
	border-bottom: 1px solid var(--pww-border);
	padding: 1.5rem 0;
	text-align: center;
}

.pww-oj-header__logo {
	display: inline-block;
	margin-bottom: .75rem;
}

.pww-oj-header__logo img {
	max-height: 70px;
	width: auto;
}

.pww-oj-header__logo-text {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--pww-ink);
}

.pww-oj-header__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--pww-primary-dark);
}

/* ---------- MENI OJ ---------- */

.pww-oj-nav {
	background: var(--pww-surface);
	border-bottom: 1px solid var(--pww-border);
	padding: .25rem 0;
}

.pww-oj-nav__list {
	gap: .25rem;
}

.pww-oj-nav .nav-link {
	font-weight: 600;
	font-size: .9rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--pww-muted);
	padding: .65rem 1rem;
	border-radius: var(--pww-radius);
}

.pww-oj-nav .nav-link:hover {
	color: var(--pww-ink);
	background: var(--pww-bg);
}

.pww-oj-nav .nav-link.active {
	color: #fff;
	background: var(--pww-ink);
}

/* ---------- SADRZAJ ---------- */

.pww-oj-content {
	background: var(--pww-bg);
}

/* O nama */
.pww-about__media {
	margin-bottom: 1.5rem;
}

.pww-about__media img {
	max-width: 100%;
	height: auto;
	border-radius: var(--pww-radius);
}

.pww-about__text {
	color: #2a2f36;
}

.pww-standardi img {
	max-width: 220px;
	height: auto;
}

.pww-about__media img {
    border-radius: 50px 0;
	margin-bottom: 20px;
}

/* ---------- DOKUMENTI / FILTER / KARTICE ---------- */

.pww-docs {
	position: relative;
}

.pww-docs__filter {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: center;
	margin-bottom: 2rem;
}

.pww-year-btn {
	border: none;
	background: transparent;
	color: var(--pww-muted);
	font-weight: 700;
	font-size: .9rem;
	padding: .5rem 1rem;
	border-radius: var(--pww-radius);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.pww-year-btn:hover {
	background: #e3e6ea;
	color: var(--pww-ink);
}

.pww-year-btn.active {
	background: var(--pww-ink);
	color: #fff;
}

/* Document Card */
.pww-doc-card {
	display: flex;
	flex-direction: column;
	background: var(--pww-surface);
	border: 1px solid var(--pww-border);
	border-radius: var(--pww-radius);
	height: 100%;
	color: inherit;
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

.pww-doc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(31, 35, 40, .12);
	color: inherit;
}

.pww-doc-card--disabled {
	opacity: .7;
	cursor: default;
}

.pww-doc-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1rem;
	font-size: 3.25rem;
	color: var(--pww-primary);
	background: var(--pww-surface);
}

.pww-doc-card__body {
	padding: 1rem 1.25rem 1.25rem;
	background: #f4f5f8;
	border-top: 1px solid var(--pww-border);
	flex-grow: 1;
}

.pww-doc-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--pww-primary-dark);
	margin: 0 0 .5rem;
	line-height: 1.35;
}

.pww-doc-card__date {
	font-size: .85rem;
	color: var(--pww-muted);
	margin: 0;
}

/* Loading */
.pww-docs__loading {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
	color: var(--pww-primary);
}

.pww-docs__empty {
	text-align: center;
	color: var(--pww-muted);
	padding: 3rem 0;
}

/* Paginacija */
.pww-pagination {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.pww-pagination .page-link {
	color: var(--pww-ink);
	border-color: var(--pww-border);
}

.pww-pagination .page-item.active .page-link {
	background: var(--pww-ink);
	border-color: var(--pww-ink);
	color: #fff;
}

/* ---------- KONTAKT ---------- */

.pww-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pww-contact__list li {
	display: flex;
	flex-direction: column;
	padding: 1rem 0;
	border-bottom: 1px solid var(--pww-border);
}

.pww-contact__label {
	font-weight: 700;
	color: var(--pww-ink);
	margin-bottom: .25rem;
}

.pww-contact__value {
	color: var(--pww-muted);
}

.pww-contact__map {
	position: relative;
	width: 100%;
	min-height: 320px;
	height: 100%;
	border-radius: var(--pww-radius);
	overflow: hidden;
	border: 1px solid var(--pww-border);
}

.pww-contact__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- FOOTER ---------- */

.pww-footer {
	background: var(--pww-surface);
	border-top: 1px solid var(--pww-border);
	color: var(--pww-muted);
	font-size: .9rem;
}

.pww-footer__home {
	color: var(--pww-primary-dark);
	font-weight: 600;
}

/* =========================================
   PWW HOME BOTTOM
========================================= */

.pww-home-bottom {
	background: #f5f5f1;
}


/* =========================================
   IMAGE
========================================= */

.pww-home-bottom__image {
	width: 100%;
	overflow: hidden;
}

.pww-home-bottom__image img {
	display: block;
	width: 100%;
	height: auto;
}


/* =========================================
   TIMELINE
========================================= */

.pww-timeline {
	background: #fff;
}

.pww-timeline__item {
	position: relative;
	height: 100%;
}

.pww-timeline__title {
	margin: 0 0 1.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: #42c967;
	line-height: 1.2;
}


/* Horizontalna linija */

.pww-timeline__line {
	position: relative;
	height: 3px;
	background: #42c967;
	margin-bottom: 1.5rem;
}

.pww-timeline__line span {
	position: absolute;
	left: 0;
	top: 50%;
	width: 11px;
	height: 11px;
	background: #42c967;
	border-radius: 50%;
	transform: translateY(-50%);
}


/* Tekst */

.pww-timeline__year,
.pww-timeline__text {
	font-size: 1rem;
	line-height: 1.5;
	font-style: italic;
	color: #171717;
}

.pww-timeline__text {
	max-width: 260px;
}


/* =========================================
   BROJKE
========================================= */

.pww-numbers {
	background: #f5f5f1;
}

.pww-numbers__title {
	font-size: 2.8rem;
	font-weight: 400;
	line-height: 1.2;
	color: #111;
	margin: 0;
}


/* =========================================
   NUMBER BOX
========================================= */

.pww-number-box {
	position: relative;
	min-height: 240px;
	background: #fff;
	padding: 1.5rem 1.5rem 1.75rem;
border-radius: 0 0 50px 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.pww-number-box--border {
	border: 2px solid #42c967;
}

.pww-number-box__number {
	font-size: 2.5rem;
	line-height: 1;
	font-weight: 700;
	color: #42c967;
}

.pww-number-box__text {
	font-size: 1rem;
	line-height: 1.45;
	font-style: italic;
	color: #171717;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 991.98px) {

	.pww-timeline {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.pww-timeline__item {
		padding-bottom: 1.5rem;
	}

	.pww-timeline__title {
		font-size: 1.1rem;
		margin-bottom: 1rem;
	}

	/*
	 * Na mobilnom linija ide preko cele stavke.
	 */
	.pww-timeline__line {
		margin-bottom: 1rem;
	}

	.pww-timeline__text {
		max-width: none;
	}

	.pww-numbers__title {
		font-size: 2rem;
	}

	.pww-number-box {
		min-height: 200px;
	}

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 575.98px) {

	.pww-home-bottom__image img {
		min-height: 220px;
		object-fit: cover;
	}

	.pww-numbers__title {
		font-size: 1.8rem;
	}

	.pww-number-box__number {
		font-size: 2.2rem;
	}

}