/* blog.css — style stron wpisów bloga (/blog/*.html).
   Uzupełnia css/style.css + css/offer.css. */

.post {
    padding-bottom: 20px;
}

.post-hero {
    height: 320px;
    width: 100%;
    background: linear-gradient(135deg, #1a5f7a 0%, #2980b9 100%);
}

.post-head {
    margin-top: -60px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 40px 28px;
    position: relative;
    max-width: 820px;
}

.post-category {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-pale);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 14px;
}

.post-head h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.7;
    border-left: 3px solid var(--primary-pale);
    padding-left: 16px;
}

.post-body {
    max-width: 820px;
    padding-top: 34px;
    padding-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.85;
}

.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 34px 0 14px;
}

.post-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 26px 0 10px;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 18px 22px;
}

.post-body li {
    margin-bottom: 9px;
}

.post-body strong {
    color: var(--text-primary);
}

.post-body a {
    color: var(--primary-light);
    text-decoration: underline;
}

.post-back {
    max-width: 820px;
    padding-top: 12px;
    padding-bottom: 20px;
}

.post-related {
    max-width: 820px;
}

.post-related h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.post-related ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.post-related a {
    display: block;
    padding: 14px 18px;
    background: var(--gray-lightest);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-related a:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
    transform: translateX(3px);
}

/* Kafelki bloga na stronie głównej — linki w tytule i obrazku */
.blog-card-image {
    display: block;
}

.blog-card-content h4 a {
    color: inherit;
    text-decoration: none;
}

.blog-card-content h4 a:hover {
    color: var(--primary);
}

.blog-empty {
    color: var(--text-muted);
    padding: 30px 0;
}

@media (max-width: 768px) {
    .post-hero {
        height: 200px;
    }

    .post-head {
        margin-top: -40px;
        padding: 26px 22px 22px;
    }

    .post-head h1 {
        font-size: 1.7rem;
    }
}
