/* Styl artykułu blogowego (wpisy dodawane zwykłym HTML-em / automatem).
   Układ dwukolumnowy jak wzorcowe artykuły w Elementorze:
   główna karta 70% + sidebar "Polecane wpisy".
   Typografia z globalnego kitu: body Montserrat #7A7A7A, nagłówki Roboto #54595F. */

.blog-article-section {
    padding: 44px 0 66px;
    background: #f4f7fa;
}
.blog-article-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-layout {
    display: flex;
    gap: 34px;
    align-items: flex-start;
}

/* --- kolumna główna (karta) --- */
.blog-main {
    flex: 1 1 70%;
    min-width: 0; /* pozwala treści/tabelom zawijać się zamiast rozpychać layout */
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 8px 34px rgba(20, 40, 80, .10);
    padding: 44px 46px;
}
.blog-main .article-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #54595F;
    font-size: 34px;
    line-height: 1.22;
    margin: 0 0 26px;
}
.article-featured {
    margin: 0 0 30px;
}
.article-featured img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* --- typografia treści --- */
.entry-content {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #7A7A7A;
    font-size: 17px;
    line-height: 1.75;
}
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #54595F;
    font-size: 27px;
    line-height: 1.3;
    margin: 1.8em 0 .55em;
}
.entry-content h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #54595F;
    font-size: 22px;
    line-height: 1.3;
    margin: 1.6em 0 .5em;
}
.entry-content h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #54595F;
    font-size: 19px;
    line-height: 1.35;
    margin: 1.4em 0 .5em;
}
.entry-content ul,
.entry-content ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.entry-content li { margin: 0 0 .5em; }
.entry-content li > p { margin: 0 0 .3em; } /* treść z automatu pakuje <li> w <p> */
.entry-content a { color: #3B66E8; text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: #2749b8; }
.entry-content strong,
.entry-content b { color: #54595F; font-weight: 600; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content blockquote {
    border-left: 4px solid #6EC1E4;
    margin: 1.6em 0;
    padding: .5em 1.2em;
    color: #54595F;
    font-style: italic;
    background: #f7fbfd;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.entry-content th,
.entry-content td { border: 1px solid #e3e6ea; padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th {
    background: #f4f6f8; color: #54595F;
    font-family: 'Roboto', sans-serif; font-weight: 600;
}

/* --- sidebar --- */
.blog-sidebar {
    flex: 0 0 27%;
    align-self: flex-start;      /* nie rozciągaj na wysokość artykułu */
    position: sticky;            /* podąża przy przewijaniu (sidebar jest niski, więc mieści się na ekranie) */
    top: 130px;                  /* omija przyklejony (fixed) nagłówek strony + odstęp, żeby nie był za blisko */
}

/* osobny blok oceny (gwiazdki kk-star) pod artykułem */
.article-rating {
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid #e6ebf0;
    text-align: center;
}
.sidebar-widget {
    background: #fff;
    border: 1px solid #e9edf1;
    border-radius: 22px;
    padding: 26px 24px;
    box-shadow: 0 6px 24px rgba(20, 40, 80, .06);
}
.sidebar-widget + .sidebar-widget {
    margin-top: 22px;
}

/* box autorki */
.author-box {
    text-align: left;
}
.author-box .author-photo {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 0 0 14px;
}
.author-box .author-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #3B66E8;
    font-size: 22px;
    margin: 0 0 12px;
}
.author-box .author-bio {
    font-family: 'Montserrat', sans-serif;
    color: #54595F;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 1em;
}
.author-box .author-bio:last-child {
    margin-bottom: 0;
}
.author-box .author-phone {
    display: block;
    margin-top: 16px;
    padding: 12px 14px;
    background: #eef4ff;
    border: 1px solid #d6e2fb;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease;
}
.author-box .author-phone:hover {
    background: #dfeaff;
}
.author-box .author-phone .author-phone-q {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #7A7A7A;
    margin-bottom: 3px;
}
.author-box .author-phone .author-phone-num {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #2749b8 !important;
    white-space: nowrap;
}

/* box CTA sklepu */
.cta-box {
    background: linear-gradient(150deg, #3B66E8 0%, #6EC1E4 100%);
    border: 0;
    color: #fff;
    text-align: center;
}
.cta-box .cta-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 12px;
}
.cta-box .cta-text {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
}
.cta-box .cta-button {
    display: block;
    background: #fff;
    color: #2749b8 !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cta-box .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.sidebar-widget .widget-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #54595F;
    font-size: 20px;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid #6EC1E4;
}
.recent-posts-list { list-style: none; margin: 0; padding: 0; }
.recent-posts-list li { border-bottom: 1px solid #eef1f4; }
.recent-posts-list li:last-child { border-bottom: 0; }
.recent-posts-list a {
    display: block;
    padding: 12px 0;
    color: #54595F;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.45;
    transition: color .15s ease;
}
.recent-posts-list a:hover { color: #2E63C8; }

/* --- baner CTA w środku artykułu (delikatny, wąski pasek) --- */
.inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2em 0;
    padding: 15px 22px;
    border-radius: 14px;
    background: #eef4ff;
    border: 1px solid #d6e2fb;
    border-left: 4px solid #3B66E8;
}
.inline-cta .inline-cta-text {
    font-family: 'Montserrat', sans-serif;
    color: #54595F;
    font-size: 16px;
    line-height: 1.5;
}
.inline-cta .inline-cta-text strong {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #2749b8;
}
.inline-cta .inline-cta-btn {
    flex: 0 0 auto;
    background: #3B66E8;
    color: #fff !important;   /* motyw nadpisywał kolor linku na hover -> tekst znikał */
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .15s ease;
}
.inline-cta .inline-cta-btn:hover {
    background: #2749b8;
    color: #fff !important;
}
@media (max-width: 600px) {
    .inline-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --- FAQ: rozwijana harmonijka --- */
.faq-accordion {
    margin: 1.3em 0 0;
}
.faq-item {
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    margin: 0 0 12px;
    background: #fff;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 48px 16px 20px;
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #54595F;
    font-size: 18px;
    line-height: 1.4;
    transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    line-height: 1;
    color: #6EC1E4;
    font-weight: 400;
}
.faq-item[open] summary::after { content: "\2013"; } /* – */
.faq-item summary:hover { color: #2E63C8; }
.faq-item summary:focus-visible { outline: 2px solid #6EC1E4; outline-offset: 2px; }
.faq-item .faq-answer {
    padding: 2px 20px 18px;
    color: #7A7A7A;
    font-size: 16px;
    line-height: 1.7;
}
.faq-item .faq-answer p { margin: 0 0 .8em; }
.faq-item .faq-answer p:last-child { margin: 0; }

/* --- responsywność --- */
@media (max-width: 991px) {
    .blog-layout { flex-direction: column; }
    .blog-main { flex-basis: auto; width: 100%; padding: 30px 24px; }
    .blog-sidebar { position: static; flex-basis: auto; width: 100%; }
}
@media (max-width: 600px) {
    .blog-article-section { padding: 26px 0 46px; }
    .blog-main { padding: 24px 18px; border-radius: 20px; }
    .blog-main .article-title { font-size: 26px; }
    .entry-content { font-size: 16px; }
    .entry-content h2 { font-size: 22px; }
    .entry-content h3 { font-size: 20px; }
}

/* --- karta z dopisanymi sekcjami + FAQ pod wpisami z Elementora --- */
.meta-extras-card { max-width: 920px; margin: 0 auto; }
.meta-extras-card > .meta-extra-content > h2:first-child,
.meta-extras-card > h2:first-child { margin-top: 0; }
