/* ── Blog Page Hero ── */

/* Hide GP Element "Video HERO BG pages" on blog/archive/single post pages */
.blog:not(.woocommerce) .gb-container-813904f8,
.archive:not(.woocommerce):not(.tax-kategoria_przepisu):not(.category-baza-wiedzy) .gb-container-813904f8,
.single-post .gb-container-813904f8 {
    display: none !important;
}

/* Hide GP query loop block on blog/archive pages */
.blog:not(.woocommerce) .gb-grid-wrapper-63db1e47,
.archive:not(.woocommerce):not(.tax-kategoria_przepisu):not(.category-baza-wiedzy) .gb-grid-wrapper-63db1e47 {
    display: none !important;
}

/* Reset GP container spacing */
.blog:not(.woocommerce) .site-content,
.archive:not(.woocommerce):not(.tax-kategoria_przepisu):not(.category-baza-wiedzy) .site-content,
.single-post .site-content {
    padding-top: 0 !important;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 20px 56px;
    text-align: center;
    color: #fff;
}

/* Background — video or image */
.blog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.blog-hero-bg-image {
    background-size: cover;
    background-position: center;
}

/* Dark overlay */
.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

/* Content wrapper */
.blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* SVG icon */
.blog-hero-icon {
    margin-bottom: 16px;
}
.blog-hero-icon svg {
    width: 72px;
    height: 72px;
    color: rgba(255,255,255,0.85);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Title */
.blog-hero-title {
    font-family: Poppins, sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Subtitle */
.blog-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0 0 20px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* Meta: count + category */
.blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}
.blog-hero-count {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.3px;
}
.blog-hero-sep {
    opacity: 0.5;
}
.blog-hero-cat {
    font-weight: 600;
    color: #F6BD4D;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Decorative bottom lines */
.blog-hero-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.blog-hero-line {
    display: block;
    height: 3px;
}
.blog-hero-line:first-child {
    background: #59983E;
}
.blog-hero-line:last-child {
    background: #F6BD4D;
    height: 2px;
}

/* ── Single post hero ── */
.blog-hero--single {
    padding: 100px 20px 84px;
}
.blog-hero--single .blog-hero-title {
    font-size: 36px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.25;
}

/* Hide default post title on single posts (title is in hero) */
.single-post .entry-header,
.single-post .page-header {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .blog-hero {
        padding: 48px 16px 40px;
    }
    .blog-hero-icon svg {
        width: 56px;
        height: 56px;
    }
    .blog-hero-title {
        font-size: 30px;
    }
    .blog-hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 36px 14px 32px;
    }
    .blog-hero-title {
        font-size: 26px;
    }
    .blog-hero-icon svg {
        width: 48px;
        height: 48px;
    }
}
