/* Blog: listing + article. Generowane strony korzystają z tych samych reguł. */

.blog-cat { display: inline-block; background: var(--iq-accent-teal); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .25rem .65rem; border-radius: 999px; }
.blog-meta { font-size: .85rem; color: #6c757d; }

/* Listing */
.blog-card { transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .1); }
.blog-card:focus-within { outline: 2px solid var(--iq-accent-teal); outline-offset: 2px; }
.blog-card .blog-img-wrap { overflow: hidden; height: 220px; background: #f1f1ec; }
.blog-card .blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.06); }
.blog-card .blog-img-wrap.is-illustration img { object-fit: contain; background: #fff; padding: .5rem; }
.blog-card .blog-img-wrap.is-illustration:hover img,
.blog-card:hover .blog-img-wrap.is-illustration img { transform: none; }
.blog-card-title, .blog-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-title { -webkit-line-clamp: 3; }
.blog-card-excerpt { -webkit-line-clamp: 4; }

/* Article */
.article-title { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.25; overflow-wrap: break-word; }
.article-body { font-size: 1.075rem; line-height: 1.8; color: #333; overflow-wrap: break-word; }
.article-body h2 { color: var(--iq-primary-navy); font-weight: 700; margin-top: 2.25rem; margin-bottom: .75rem; font-size: 1.5rem; }
.article-body h3 { color: var(--iq-primary-navy); font-weight: 600; margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.2rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: .35rem; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-lead p { font-size: 1.2rem; line-height: 1.7; color: #2b2b2b; }

.article-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #f1f1ec; }
.article-hero.is-illustration { object-fit: contain; background: #fff; border: 1px solid #e6e6e1; padding: .5rem; }

.project-details { background: var(--iq-background-light); border-left: 4px solid var(--iq-accent-teal); border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.75rem 0; }
.project-details h2 { font-size: 1.1rem; font-weight: 700; color: var(--iq-primary-navy); margin: 0 0 .85rem; }
.project-details dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem 1.5rem; margin: 0; }
.project-details dt { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #565e64; }
.project-details dd { margin: 0; font-weight: 600; color: #222; overflow-wrap: anywhere; }

.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .article-gallery { grid-template-columns: repeat(3, 1fr); } }
.article-gallery a { display: block; border-radius: 8px; overflow: hidden; }
.article-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; background: #f1f1ec; }
.article-gallery a:hover img { transform: scale(1.04); }

.article-video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; }

.article-related { margin-top: 2rem; }
.article-related ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.article-related a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 575.98px) {
  .article-lead p { font-size: 1.1rem; }
  .project-details { padding: 1rem 1.15rem; }
}

.article-video-item { margin: 0 0 1.5rem; }
.article-video-item:last-child { margin-bottom: 0; }
.article-video-caption { font-size: .9rem; font-weight: 600; color: #5c6770; margin-bottom: .5rem; }
