/*
 * Blog postovi: tipografija teksta, potpis, "Key takeaways", tabele, primer obračuna, poziv na akciju.
 * Markup dolazi iz sadržaja posta i iz inc/blog.php. Boje su iz teme (--theme-color).
 */

.post-details-content {
	font-size: 18px;
	line-height: 1.7;
	color: #2a2f38;
}
.post-details-content > p,
.post-details-content > ul,
.post-details-content > ol { margin: 0 0 22px; }
.post-details-content h2 {
	margin: 56px 0 18px;
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.15;
}
.post-details-content h3 {
	margin: 36px 0 12px;
	font-size: clamp(21px, 2.4vw, 26px);
	line-height: 1.2;
}
.post-details-content ul,
.post-details-content ol { padding-left: 1.3em; }
.post-details-content li { margin-bottom: 8px; list-style: inherit; }
.post-details-content ul { list-style: disc; }
.post-details-content ol { list-style: decimal; }
.post-details-content a { color: var(--theme-color); text-decoration: underline; text-underline-offset: 3px; }
.post-details-content figure { margin: 36px 0; }
.post-details-content figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.post-details-content figcaption { margin-top: 8px; font-size: 14px; color: #6b7385; }

/* Datumi objave i izmene */
.mdm-byline {
	margin: 0 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
	font-size: 14px;
	color: #6b7385;
}

/* Key takeaways */
.mdm-takeaways {
	margin: 0 0 40px;
	padding: 26px 28px 20px;
	border-left: 5px solid var(--theme-color);
	background: #f3f5f9;
}
.mdm-takeaways__title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--theme-color);
}
.post-details-content .mdm-takeaways ul { margin: 0; }

/* Pitanje za recruitera i "How MDM handles it" ispod svakog kriterijuma */
.mdm-ask,
.mdm-handles {
	margin: 0 0 14px;
	padding: 14px 18px;
	font-size: 17px;
}
.mdm-ask { background: #f3f5f9; }
.mdm-handles { border: 1px solid var(--theme-color); }
.mdm-ask strong,
.mdm-handles strong {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--theme-color);
}

/* Tabele: omotač dodaje inc/blog.php, na telefonu skroluju vodoravno */
.mdm-table { margin: 0 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mdm-table table {
	width: 100%;
	min-width: 480px;
	margin: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.45;
}
/* .post-details-content u selektoru: tema ćelije centrira i ne prelama, a ovde tekst ide levo i prelama se */
.post-details-content .mdm-table th,
.post-details-content .mdm-table td {
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, .12);
	text-align: left;
	vertical-align: top;
	white-space: normal;
}
.mdm-table thead th {
	border-color: var(--theme-color);
	background: var(--theme-color);
	color: #fff;
	font-weight: 700;
}
.mdm-table tbody th { background: #f3f5f9; font-weight: 700; }
.mdm-table tr.is-total td,
.mdm-table tr.is-total th { background: #eaf1ff; font-weight: 700; }
.post-details-content .mdm-table td.num,
.post-details-content .mdm-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mdm-note { margin: -14px 0 28px; font-size: 14px; color: #6b7385; }

/* Poziv na akciju: [mdm_apply] */
.mdm-cta {
	margin: 44px 0;
	padding: 34px 32px;
	background: #09152f;
	color: #fff;
	text-align: center;
}
.post-details-content .mdm-cta p { margin: 0; }
.post-details-content .mdm-cta .mdm-cta__title {
	font-size: clamp(26px, 3.6vw, 38px);
	line-height: 1.1;
	font-weight: 800;
	text-transform: uppercase;
	color: #fff;
}
.post-details-content .mdm-cta .mdm-cta__line { margin-top: 8px; font-size: 18px; color: #b9c5dc; }
.post-details-content .mdm-cta .mdm-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 22px;
	margin-top: 22px;
}
.post-details-content .mdm-cta__btn {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 36px;
	border-radius: 999px;
	background: var(--theme-color);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .2s, background-color .2s;
}
.post-details-content .mdm-cta__btn:hover { background: #fff; color: #09152f; transform: translateY(-2px); }
.post-details-content .mdm-cta__phone { color: #fff; font-size: 18px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .post-details-content .mdm-cta__btn { transition: none; } }

.post-details-content #faq + .mdm-faq { margin-top: 24px; }
.post-details-content .mdm-faq__a p { margin-bottom: 0; }

/* "Keep reading": linkovi ka ostalim tekstovima klastera */
.mdm-related {
	margin-top: 48px;
	padding: 26px 28px 14px;
	border-top: 5px solid var(--theme-color);
	background: #f3f5f9;
}
.post-details-content .mdm-related__title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--theme-color);
}
.post-details-content .mdm-related ul { margin: 0; padding: 0; list-style: none; }
.post-details-content .mdm-related li { margin: 0; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .1); list-style: none; }
.post-details-content .mdm-related a { font-size: 20px; font-weight: 700; line-height: 1.3; text-decoration: none; color: #14181f; }
.post-details-content .mdm-related a:hover { color: var(--theme-color); text-decoration: underline; }

@media (max-width: 600px) {
	.post-details-content { font-size: 17px; }
	.mdm-takeaways { padding: 20px 18px 14px; }
	.mdm-cta { padding: 28px 18px; }
}
