/* ═══════════════════════════════════════════════════
   EkoAudyt – blog.css
   Style dla bloga i artykułów
   ═══════════════════════════════════════════════════ */

/* ── Strona listingowa bloga ────────────────────── */
.blog-header {
    background: linear-gradient(135deg, #1C1B19 0%, #343a40 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 3px solid #01696F;
}

.blog-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.blog-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 600px;
}

/* ── Karty artykułów ────────────────────────────── */
.article-card {
    background: #fff;
    border: 1px solid #D4D1CA;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.article-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    font-size: 0.82rem;
    color: #7A7974;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #28251D;
}

.article-card h2 a {
    color: inherit;
    text-decoration: none;
}

.article-card h2 a:hover {
    color: #01696F;
}

.article-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.article-card-footer {
    padding: 1rem 1.5rem;
    background: #F7F6F2;
    border-top: 1px solid #D4D1CA;
}

.read-more-link {
    color: #01696F;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more-link:hover {
    color: #0C4E54;
    text-decoration: underline;
}

.article-tag {
    display: inline-block;
    background: #E8F4F5;
    color: #01696F;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ── Strona artykułu ────────────────────────────── */
.article-page {
    padding-bottom: 3rem;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #28251D;
}

.article-meta {
    color: #7A7974;
    font-size: 0.9rem;
    border-bottom: 1px solid #D4D1CA;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Treść artykułu ─────────────────────────────── */
.article-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #28251D;
}

.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #01696F;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #E8F4F5;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28251D;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body li {
    margin-bottom: 0.4rem;
}

.article-body a {
    color: #01696F;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

/* Ramki informacyjne */
.info-box {
    background: #E8F4F5;
    border-left: 4px solid #01696F;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.5rem 0;
    font-size: 0.97rem;
}

.warning-box {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.5rem 0;
    font-size: 0.97rem;
}

.summary-box {
    background: #F7F6F2;
    border: 1px solid #D4D1CA;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.summary-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 0 !important;
    color: #28251D;
}

/* Tabele cenowe */
.price-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.price-table table {
    font-size: 0.92rem;
}

/* Wzory */
.formula {
    background: #F0EFE9;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

/* CTA w artykule */
.article-cta {
    background: linear-gradient(135deg, #1C1B19 0%, #343a40 100%);
    border-radius: 8px;
    color: #fff;
    padding: 2rem;
}

.article-cta h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.25rem;
}

.article-cta .btn-outline-dark {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.article-cta .btn-outline-dark:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ── Sidebar ────────────────────────────────────── */
.sidebar-card {
    background: #F7F6F2;
    border: 1px solid #D4D1CA;
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #28251D;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #01696F;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid #D4D1CA;
    padding: 0.5rem 0;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    color: #28251D;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    display: block;
}

.sidebar-links a:hover {
    color: #01696F;
}

.sidebar-card p {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.sidebar-card a:not(.btn) {
    color: #01696F;
    font-weight: 600;
}

/* ── Breadcrumb ─────────────────────────────────── */
.breadcrumb {
    font-size: 0.88rem;
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #01696F;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #7A7974;
}

/* ── Responsywność ──────────────────────────────── */
@media (max-width: 991px) {
    .article-header h1 {
        font-size: 1.6rem;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    aside {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .article-header h1 {
        font-size: 1.35rem;
    }

    .article-body h2 {
        font-size: 1.2rem;
    }

    .article-cta {
        padding: 1.25rem;
    }

    .article-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}
