/*
 * Zlecenie 16/12/2025/3 (SMART Agency): wspólne style nowych elementów bloga.
 * Granatowy przycisk CTA „Zobacz więcej wpisów” (makieta: 380x42, promień 21, #1b115c, Ambit SemiBold 16, biały).
 * Paginacja bloga zostaje linkami - tak pokazuje makieta strony wyników wyszukiwania.
 */

.tuiblog-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.tuiblog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 24px;
    border-radius: 21px;
    background-color: #1b115c;
    font-family: 'ambit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    opacity: 1;
    transition: background-color .2s ease;
}
.tuiblog-cta {
    width: 380px;
    max-width: 100%;
}
.tuiblog-cta:hover,
.tuiblog-cta:focus-visible {
    background-color: #2e2385;
    color: #fff;
    text-decoration: none;
}
.tuiblog-cta:focus-visible {
    outline: 2px solid #1b115c;
    outline-offset: 3px;
}

/* sekcje kategorii pod ofertami */
.tuiblog-sekcja .tuiblog-cta-wrap {
    margin-top: 20px;
}
.tuiblog-sekcja + .tuiblog-sekcja {
    margin-top: 34px;
}

@media (max-width: 767px) {
    .tuiblog-cta {
        width: 100%;
    }
}

/* strona główna: nagłówek sekcji → karty 15 px (makieta 1200: „Najnowsze wpisy” i sekcje kategorii) */
.blog .postslist .section-heading,
.tuiblog-sekcja .section-heading {
    margin-bottom: 15px;
}

/* ===== „Oczami eksperta” (blok w treści wpisu; makieta 1200: kolumna 770, 450: 420) ===== */
.tuiblog-ekspert {
    margin: 24px 0;
}
.thepost__content .tuiblog-ekspert__title,
.tuiblog-ekspert__title {
    margin: 0 0 14px;
    font-family: 'ambit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #1b115c;
}
.tuiblog-ekspert__box {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 130px;
    margin: 0;
    border: 2px solid #e3f3ff;
    border-radius: 16px;
    background-color: #fff;
}
.tuiblog-ekspert__person {
    flex: 0 0 254px;
    display: flex;
    align-items: flex-start;
    padding: 26px 22px 20px 20px;
    border-radius: 14px 0 0 14px;
    background-color: #e3f3ff;
}
.tuiblog-ekspert__photo {
    flex: 0 0 67px;
    width: 67px;
    height: 67px;
    overflow: hidden;
    border-radius: 50%;
}
.thepost__content .tuiblog-ekspert__photo img,
.tuiblog-ekspert__photo img {
    display: block;
    width: 67px;
    height: 67px;
    object-fit: cover;
    border-radius: 50%;
}
.tuiblog-ekspert__who {
    display: flex;
    flex-direction: column;
    margin: -3px 0 0 15px;
}
.tuiblog-ekspert__name {
    font-family: 'tui', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #1b115c;
}
.tuiblog-ekspert__role {
    margin-top: 9px;
    font-family: 'tui', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    color: rgba(0, 0, 0, .85);
}
.tuiblog-ekspert__quote {
    position: relative;
    flex: 1 1 auto;
    margin: 0;
    padding: 15px 47px 20px 43px;
    border: 0;
    font-family: 'tui', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.15;
    color: rgba(0, 0, 0, .85);
}
.tuiblog-ekspert__quote p {
    margin: 0;
    font: inherit;
    color: inherit;
}
.tuiblog-ekspert__quote p + p {
    margin-top: 8px;
}
.tuiblog-ekspert__mark {
    position: absolute;
    width: 17px;
    font-family: 'tui', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 55px;
    color: #e3f3ff;
    text-align: center;
    pointer-events: none;
    user-select: none;
}
.tuiblog-ekspert__mark--open {
    top: -25px;
    left: 12px;
}
.tuiblog-ekspert__mark--close {
    right: 14px;
    bottom: 8px;
}
.tuiblog-ekspert__empty {
    padding: 16px;
    border: 2px dashed #e3f3ff;
    border-radius: 16px;
    color: #1b115c;
}

@media (max-width: 767px) {
    .tuiblog-ekspert__box {
        flex-direction: column;
    }
    .tuiblog-ekspert__person {
        flex: 0 0 auto;
        min-height: 88px;
        padding: 10px 20px 11px 23px;
        border-radius: 14px 14px 0 0;
    }
    .tuiblog-ekspert__who {
        margin-top: 0;
    }
    .tuiblog-ekspert__role {
        margin-top: 9px;
    }
    .tuiblog-ekspert__quote {
        padding: 21px 33px 19px 28px;
    }
    .tuiblog-ekspert__mark--open {
        top: -31px;
        left: 7px;
    }
    .tuiblog-ekspert__mark--close {
        right: 2px;
        bottom: 10px;
    }
}

/* ===== FAQ pod wpisem (makieta 1200 / 450) ===== */
.tuiblog-faq {
    margin-top: 24px;
}
.tuiblog-faq__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 0;
    border-bottom: 1px solid #e3f5fd;
}
.tuiblog-faq__title {
    margin: 0;
    padding: 0 0 0;
    font-family: 'ambit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    color: #1b115c;
}
.tuiblog-faq__collapse {
    flex: 0 0 auto;
    width: 32px;
    height: 25px;
    margin: 0 -6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.tuiblog-faq__collapse svg {
    display: block;
    width: 20px;
    height: 11.2px;
    margin: 0 auto;
    transition: transform .2s ease;
}
.tuiblog-faq--collapsed .tuiblog-faq__collapse svg {
    transform: rotate(180deg);
}
.tuiblog-faq--collapsed .tuiblog-faq__list,
.tuiblog-faq--collapsed .tuiblog-faq__more {
    display: none;
}
.tuiblog-faq__list {
    margin-top: 15px;
}
.tuiblog-faq__item {
    margin: 0;
    border-radius: 0;
}
.tuiblog-faq__item:nth-child(odd) {
    background-color: #e3f3ff;
}
.tuiblog-faq__item[open] {
    border-radius: 16px;
}
.tuiblog-faq__q {
    position: relative;
    display: block;
    min-height: 45px;
    padding: 13px 44px 12px 12px;
    font-family: 'tui', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #1b115c;
    list-style: none;
    cursor: pointer;
}
.tuiblog-faq__q::-webkit-details-marker {
    display: none;
}
.tuiblog-faq__q::marker {
    content: '';
}
.tuiblog-faq__item[open] .tuiblog-faq__q {
    padding-top: 10px;
    padding-bottom: 6px;
    min-height: 0;
}
.tuiblog-faq__q:focus-visible {
    outline: 2px solid #1b115c;
    outline-offset: -2px;
    border-radius: 16px;
}
.tuiblog-faq__chevron {
    position: absolute;
    top: 18px;
    right: 11px;
    width: 15px;
    height: 8.4px;
    transition: transform .2s ease;
}
.tuiblog-faq__item[open] .tuiblog-faq__chevron {
    top: 16px;
    transform: rotate(180deg);
}
.tuiblog-faq__a {
    padding: 0 44px 17px 12px;
    font-family: 'tui', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #000;
}
.tuiblog-faq__a p {
    margin: 0;
}
.tuiblog-faq__a p + p,
.tuiblog-faq__a ul,
.tuiblog-faq__a ol {
    margin-top: 8px;
}
.tuiblog-faq__a a {
    color: var(--color-lightblue, #466d8b);
    text-decoration: underline;
}
.tuiblog-faq__more {
    display: inline-block;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: 'ambit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #466d8b;
    text-decoration: underline;
    cursor: pointer;
}
.tuiblog-faq__more:hover {
    color: #1b115c;
}

@media (max-width: 767px) {
    .tuiblog-faq__title {
        font-size: 21px;
        line-height: 25px;
        padding-bottom: 7px;
    }
    .tuiblog-faq__head {
        border-bottom: 0;
        position: relative;
    }
    .tuiblog-faq__head::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 82%;
        height: 1px;
        background-color: #e3f5fd;
    }
    .tuiblog-faq__q {
        padding-right: 40px;
    }
    .tuiblog-faq__a {
        padding-right: 30px;
    }
}
.tuiblog-faq__item[hidden] {
    display: none;
}
