/* ==========================================================================
   KOVČO – podstranice, sadržaj iz editora, kartice objava, 404
   ========================================================================== */

/* Zaglavlje podstranice -------------------------------------------------- */

.page-header {
	padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
}

.page-header__title {
	position: relative;
	margin: 0;
	padding-bottom: 0.35em;
	font-size: clamp(2.5rem, 7vw, 6rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.page-header__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 1.4em;
	height: 0.09em;
	min-height: 5px;
	background: var(--k-yellow);
	transform: skewX(-20deg);
}

.page-header__subtitle {
	margin-top: 1rem;
	color: var(--k-grey);
	font-family: var(--k-font-mono);
	font-size: 1rem;
}

.page-header__subtitle p:last-child {
	margin-bottom: 0;
}

.entry-thumbnail {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.entry-thumbnail img {
	width: 100%;
	border-radius: calc(var(--k-radius) * 1.6);
}

/* Sadržaj iz blok editora ------------------------------------------------ */

.entry-content {
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.entry-content > * {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignwide {
	max-width: 1200px;
}

.entry-content > .alignfull {
	max-width: none;
	margin-left: calc(-1 * var(--k-gutter));
	margin-right: calc(-1 * var(--k-gutter));
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.entry-content a {
	text-decoration-color: var(--k-yellow);
	text-decoration-thickness: 2px;
}

.entry-content a:hover {
	text-decoration-color: currentColor;
}

.entry-content ul li::marker {
	color: var(--k-yellow-dark);
}

.entry-content blockquote {
	margin-block: 2rem;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 4px solid var(--k-yellow);
	font-size: 1.2rem;
}

.entry-content img {
	border-radius: var(--k-radius);
}

.entry-content .wp-block-button__link {
	border-radius: var(--k-radius);
	font-weight: 600;
	text-decoration: none;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--k-line);
	margin-block: 2.5rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--k-line);
	text-align: left;
}

/* Kartice objava --------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: calc(var(--k-radius) * 1.6);
	background: #fff;
	box-shadow: 0 1px 0 var(--k-line);
	transition: transform 0.25s var(--k-ease), box-shadow 0.25s var(--k-ease);
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.45);
}

.card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.card__meta {
	margin-bottom: 0.5rem;
	color: var(--k-grey);
	font-family: var(--k-font-mono);
	font-size: 0.85rem;
}

.card__title {
	font-size: 1.45rem;
}

.card__title a {
	text-decoration: none;
}

.card__excerpt {
	flex: 1;
	color: var(--k-ink);
	font-size: 0.975rem;
}

.card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
}

.card__more .kovco-icon {
	width: 18px;
	height: 18px;
}

/* Paginacija i navigacija objava ----------------------------------------- */

.pagination,
.post-navigation {
	margin-top: 3rem;
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 0.75rem;
	border-radius: var(--k-radius);
	background: #fff;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--k-black);
	color: #fff;
}

.post-navigation a {
	font-weight: 600;
	text-decoration: none;
}

/* Komentari i obrasci ---------------------------------------------------- */

.comments {
	max-width: 760px;
	margin: 3rem auto 4rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--k-line);
	border-radius: var(--k-radius);
	background: #fff;
	color: var(--k-black);
	font: inherit;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--k-black);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.55);
}

input[type="submit"],
button[type="submit"] {
	min-height: 48px;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: var(--k-radius);
	background: var(--k-yellow);
	color: var(--k-black);
	font-weight: 600;
	cursor: pointer;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 520px;
}

/* 404 -------------------------------------------------------------------- */

.error-404 {
	padding-block: clamp(4rem, 10vw, 8rem);
	text-align: center;
}

.error-404__code {
	margin: 0;
	font-family: var(--k-font-display);
	font-size: clamp(6rem, 22vw, 16rem);
	font-style: italic;
	font-weight: 900;
	line-height: 0.85;
	letter-spacing: -0.04em;
}

.error-404__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}
