/* =============================================
   Blog Article Styles — sklep.domowaapteczka.pl
   Plik: blog.css
   Lokalizacja na serwerze: /themes/akira_child_theme/assets/css/blog.css

   WARUNEK: treść każdego wpisu blogowego musi być
   owinięta w <article>...</article>
   ============================================= */

/* --- Główny kontener artykułu --- */
article {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.5rem;
    color: #222;
    padding: 1em;
}

/* --- Tytuł wpisu (nadpisuje .blog-single h1.entry-title { font-size: 3.6rem }) --- */
.blog-single h1.entry-title {
    font-size: 2.2rem !important;
    color: #8cc43c !important;
    margin-bottom: 1em !important;
}

/* --- Nagłówki wewnątrz artykułu --- */
article h1 {
    font-size: 2rem;
    margin-bottom: 1em;
    color: #8cc43c;
}

article h2 {
    margin-top: 2em;
    margin-bottom: 0.7em;
    font-size: 1.875rem;
    color: #8cc43c;
}

article h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.5rem;
    color: #333;
}

/* --- Blok CTA (zielony, firmowy) --- */
article .cta {
    background: #f0f8e8;
    border-left: 4px solid #8cc43c;
    padding: 1em 1.2em;
    margin: 1.5em 0;
    border-radius: 4px;
}

article .cta strong {
    color: #5a9a1a;
}

article .cta a {
    color: #5a9a1a !important;
}

article .cta a:hover {
    color: #3d7010 !important;
}

/* --- Tekst i listy --- */
article p {
    margin-bottom: 1.2em;
}

article ul {
    margin: 1em 0 1.5em 1.2em;
    padding-left: 1em;
}

article li {
    margin-bottom: 0.5em;
}

/* --- Listy z zielonymi tickami (użyj klasy "check") --- */
article ul.check {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

article ul.check li {
    padding-left: 1.6em;
    position: relative;
}

article ul.check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8cc43c;
    font-weight: 700;
    font-size: 1.2em;
}

/* --- Tabele --- */
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: inherit;
}

article th {
    background: #8cc43c;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 0.6em 0.8em;
}

article td {
    padding: 0.5em 0.8em;
    border-bottom: 1px solid #e0e0e0;
}

article tr:nth-child(even) {
    background: #f7f7f7;
}

article tr:hover {
    background: #eef7e3;
}

/* --- Linki (widoczne i podkreślone) --- */
/* !important nadpisuje Elementor: .elementor-widget-text-editor a { color: inherit } */
article a {
    color: #1067a1 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

article a:hover {
    color: #0a4d75 !important;
    text-decoration: underline !important;
}

article a:visited {
    color: #7b4fa2 !important;
    text-decoration: underline !important;
}

/* --- Mobile --- */
@media (max-width: 480px) {
    article {
        font-size: 1.375rem;
        padding: 0.5em;
    }

    article h1 {
        font-size: 1.875rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    article h3 {
        font-size: 1.375rem;
    }

    article p,
    article li {
        line-height: 1.6;
    }
}
