/* Blog (web-blog/tools/publish.py): članak je čisti HTML u jednom wp:html bloku; varijable i fontovi iz efs-look.css. */
/* tema već daje #qodef-page-inner 130 px razmaka ispod zaglavlja */
.efs-blog { color: var(--efs-text-2); font-family: var(--efs-body); padding: 0 0 clamp(56px, 7vw, 104px); }
.efs-blog *, .efs-blog *::before, .efs-blog *::after { box-sizing: border-box; }
.efs-blog-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.efs-blog--archive .efs-blog-wrap { width: min(var(--efs-content), calc(100% - 32px)); }
.efs-blog a { color: var(--efs-blue-text); text-decoration: none; }
.efs-blog a:hover { text-decoration: underline; }

.efs-blog p, .efs-blog li { font-size: 17px; line-height: 1.7; color: var(--efs-text-2); }
.efs-blog p { margin: 0 0 18px; }
.efs-blog strong { color: var(--efs-white); font-weight: 600; }
.efs-blog code { font-family: var(--efs-mono); font-size: 0.9em; background: var(--efs-g-850); padding: 1px 5px; border-radius: 4px; }
.efs-blog h1, .efs-blog h2, .efs-blog h3, .efs-blog h4 { font-family: var(--efs-display); color: var(--efs-white); letter-spacing: -0.01em; margin: 0; }
.efs-blog h1 { font-size: clamp(32px, 3.6vw, 48px) !important; line-height: 1.1 !important; font-stretch: 108%; font-weight: 700; margin-bottom: 16px; }
.efs-blog h2 { font-size: clamp(24px, 2.2vw, 30px) !important; line-height: 1.2 !important; font-stretch: 106%; font-weight: 700; margin: 48px 0 16px; }
.efs-blog h3 { font-size: 19px !important; line-height: 1.35 !important; font-weight: 600; margin: 28px 0 10px; }
.efs-blog h4 { font-size: 17px !important; line-height: 1.4 !important; font-weight: 600; margin: 22px 0 8px; }
.efs-blog ul, .efs-blog ol { margin: 0 0 20px; padding-left: 1.3em; }
.efs-blog li { margin: 0 0 8px; }
.efs-blog li::marker { color: var(--efs-text-3); }

/* zaglavlje članka */
.efs-blog-crumb { font-family: var(--efs-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.efs-blog-meta { font-size: 14.5px !important; color: var(--efs-text-3) !important; margin: 0 0 28px !important; }
.efs-blog-meta span + span::before { content: "·"; margin: 0 8px; }
.efs-blog-hero { margin: 0 0 36px; }
.efs-blog-hero img { border-radius: 10px; }

/* slike */
.efs-blog figure { margin: 28px 0; }
.efs-blog figure img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--efs-line); background: #fff; }
.efs-blog figcaption { font-size: 14.5px; line-height: 1.5; color: var(--efs-text-3); margin-top: 10px; }

/* tablice */
.efs-blog .table { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--efs-line-2); border-radius: 8px; }
.efs-blog table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.efs-blog th, .efs-blog td { text-align: left; vertical-align: top; padding: 10px 14px; border: 0; border-right: 1px solid var(--efs-line-2); border-bottom: 1px solid var(--efs-line-2); color: var(--efs-text-2); }
.efs-blog th:last-child, .efs-blog td:last-child { border-right: 0; }
.efs-blog table tr { border: 0; }   /* tema: tr s plavim rubom (--qode-main-color) */
.efs-blog tbody tr:last-child td { border-bottom: 0; }
.efs-blog th { background: var(--efs-g-850); color: var(--efs-white); font-weight: 600; }

/* okvir "U EFS-u" */
.efs-blog aside.efs { margin: 32px 0; padding: 20px 22px 4px; background: var(--efs-g-900); border: 1px solid var(--efs-line); border-left: 3px solid var(--efs-blue); border-radius: 8px; }
.efs-blog aside.efs p { font-size: 16px; }

/* kartica lekcije akademije */
.efs-blog a.lesson { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; margin: 28px 0; padding: 12px; background: var(--efs-g-900); border: 1px solid var(--efs-line); border-radius: 10px; text-decoration: none; }
.efs-blog a.lesson:hover { border-color: var(--efs-line-2); text-decoration: none; }
.efs-blog a.lesson img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
.efs-blog a.lesson span { display: flex; flex-direction: column; gap: 4px; }
.efs-blog a.lesson small { font-family: var(--efs-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--efs-text-3); }
.efs-blog a.lesson b { font-family: var(--efs-display); font-size: 18px; line-height: 1.3; color: var(--efs-white); font-weight: 600; }
.efs-blog a.lesson em { font-style: normal; font-size: 14.5px; color: var(--efs-blue-text); }

/* povezani članci */
.efs-blog-related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--efs-line); }
.efs-blog-related ul { list-style: none; padding: 0; }
.efs-blog-related li { margin: 0 0 10px; }

/* popis članaka */
.efs-blog-head { max-width: 780px; margin-bottom: 40px; }
.efs-blog-lead { font-size: clamp(17px, 1.4vw, 19px) !important; line-height: 1.6 !important; }
.efs-blog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
/* cijela kartica se otvara klikom: poveznica naslova prekriva karticu (::after) */
.efs-blog .efs-blog-card { position: relative; display: flex; flex-direction: column; background: var(--efs-g-900); border: 1px solid var(--efs-line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.efs-blog .efs-blog-card:hover { border-color: var(--efs-line-2); }
.efs-blog .efs-blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 0; border-radius: 0; }
.efs-blog-card-text { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 24px; }
.efs-blog-card-date { font-size: 14px; line-height: 1.4; color: var(--efs-text-3); margin-bottom: -4px; }
.efs-blog .efs-blog-card h2 { font-size: 21px !important; line-height: 1.3 !important; font-stretch: 100%; margin: 0; }
.efs-blog .efs-blog-card h2 a { color: var(--efs-white); text-decoration: none; }
.efs-blog .efs-blog-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.efs-blog .efs-blog-card:hover h2 a { color: #fff; }
.efs-blog .efs-blog-card p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.efs-blog-card-more { font-size: 14.5px; color: var(--efs-blue-text); margin-top: auto; padding-top: 4px; }

@media (max-width: 600px) {
	.efs-blog p, .efs-blog li { font-size: 16.5px; }
	.efs-blog a.lesson { grid-template-columns: 1fr; }
	.efs-blog th { white-space: normal; }
}
