/* Blog: lista és cikk (redesign 13. csomag, terv: #blog, #cikk). */

.blog-page { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
/* a lapozó a kártyáktól a terv szerint 36 px-re: a 28 px-es köz mellé csak a különbség kell */
.blog-page > .pager { margin-top: 8px; }
.blog-head { display: flex; flex-direction: column; gap: 10px; }
.blog-title { margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.blog-head .lead { margin: 0; }

.blog-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.blog-tabs::-webkit-scrollbar { display: none; }
/* terv: halványkék fülek keret nélkül, az aktív kék */
.blog-tab { flex: none; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--surface-soft); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background var(--ease), color var(--ease); }
.blog-tab:hover { background: var(--line); color: var(--ink); }
.blog-tab.is-active { background: var(--primary); color: #fff; }

.blog-filter { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); background: var(--surface-soft); font-size: 14.5px; color: var(--text); }
.blog-filter a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.blog-empty { margin: 0; font-size: 15px; }

/* kiemelt bejegyzés */
.post-featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.post-featured-media { position: relative; display: block; min-height: 300px; background: var(--line-soft); }
/* a kép kitölti a helyét, de nem ő szabja meg a kártya magasságát */
.post-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(24px, 3.5vw, 44px); }
.post-featured-title { margin: 0; font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.post-featured-title a { color: var(--ink); }
.post-featured-title a:hover { color: var(--primary-dark); }
.post-featured-lead { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 860px) { .post-featured { grid-template-columns: minmax(0, 1fr); } .post-featured-media { min-height: 0; aspect-ratio: 16 / 9; } }

.post-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-dark); }
.post-meta { font-size: 13.5px; color: var(--muted); }
.post-meta a { color: var(--primary-dark); font-weight: 600; }

/* kártyák */
/* a terv szerint három hasáb (vizuális összevetés v4) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px 20px; }
.post-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.post-card-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 6px; }
.post-card-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--primary-dark); }

/* cikk */
/* cikk: a terv szerint keskeny szöveghasáb, a nyitókép szélesebb nála (v5) */
.post { display: flex; flex-direction: column; gap: 24px; max-width: 720px; width: 100%; margin: 0 auto; }
.post-head { display: flex; flex-direction: column; gap: 12px; }
.post-author { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.post-author img { width: 36px; height: 36px; border-radius: 999px; background: var(--surface-soft); padding: 6px; }
.post-title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); overflow-wrap: break-word; }
.post-hero { width: min(1000px, 100vw - 2 * var(--gutter)); margin: 0 0 0 50%; transform: translateX(-50%); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-soft); }
/* álló képnél se nyúljon a teljes képernyőnél magasabbra */
.post-hero img { width: 100%; height: auto; max-height: min(560px, 70vh); object-fit: cover; display: block; }
.post-content { font-size: 16.5px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-content iframe, .post-content video { max-width: 100%; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; }
.post-lead { font-size: 18px; font-weight: 600; color: var(--ink); }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { padding: 6px 12px; border-radius: 999px; background: var(--surface-soft); font-size: 13px; font-weight: 600; color: var(--primary-dark); }

/* a terv kék sávja: szöveg balra, gomb jobbra egy sorban (820 px, 36 px belső margó) */
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; max-width: 820px; width: 100%; margin: 0 auto; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--navy); color: #fff; }
.post-cta-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #fff; }
.post-cta p { margin: 0; color: var(--sky); font-size: 15px; line-height: normal; }

.post-related { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.post-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.post-related-title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.post-related-head a { font-size: 14.5px; font-weight: 600; }
