/**
 * CSS exclusivo do blog.
 * Carregado depois de style/style.css, que continua responsável por
 * header, formulário (#contact) e footer — aqui só ajustamos o que o blog
 * precisa de diferente (fundo claro em vez do vídeo do hero) e a tipografia
 * de listagem e artigo. Nada aqui altera a home.
 */

.blog-body {
    background: #fff;
    color: #1a1a1a;
}

.blog-main {
    padding-bottom: 40px;
}

/* header ------------------------------------------------------------------ */

.blog-header {
    align-items: center;
    padding-top: 28px;
    padding-bottom: 28px;
}

.blog-header .box__image img {
    display: block;
    width: 130px;
    height: auto;
}

.blog-header nav a {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.blog-header nav a:hover,
.blog-header nav a.is-active {
    color: #FF0066;
    font-weight: 600;
}

.blog-header .button {
    width: auto;
    padding: 14px 26px;
    font-size: 16px;
    animation: none;
    box-shadow: 0 0 8px rgba(255, 0, 102, 0.35);
}

.blog-header .button:hover {
    padding: 13px 25px;
    color: #FF0066;
}

/* listagem: intro e filtros ---------------------------------------------- */

.blog-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 40px;
}

.blog-intro h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.blog-filters {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.blog-filters__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
}

.blog-filters__icon {
    display: block;
    flex-shrink: 0;
}

.blog-filters__options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-filter {
    padding: 10px 22px;
    border: 1px solid #E6E6E6;
    border-radius: 999px;
    background: #fff;
    color: #8a8a8a;
    font-family: 'Montserrat';
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.blog-filter:hover {
    border-color: #FF0066;
    color: #FF0066;
}

.blog-filter.is-active {
    background: #fff;
    border-color: #FF0066;
    color: #FF0066;
    font-weight: 600;
}

/* listagem: grid e cards -------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
    row-gap: 56px;
    align-items: start;
}

.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    background: #fff;
}

.post-card[hidden],
.blog-empty[hidden] {
    display: none !important;
}

.post-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1440 / 418;
    background: #d7eaf8;
}

.post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
    transform: scale(1.03);
}

.post-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px 22px;
}

.post-tag {
    align-self: flex-start;
    padding: 5px 10px;
    border: 1px solid #FF0066;
    border-radius: 4px;
    color: #FF0066;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-card__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.post-card__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card__title a:hover {
    color: #FF0066;
}

.post-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.6;
}

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.post-card__link {
    color: #FF0066;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.post-card__link:hover {
    text-decoration: underline;
}

.post-card__footer time {
    color: #9a9aa5;
    font-size: 13px;
}

.blog-empty {
    padding: 48px 0;
    color: #6b6b6b;
    font-size: 16px;
    text-align: center;
}

/* listagem: paginação ---------------------------------------------------- */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 64px 0 16px;
}

.blog-pagination__pages {
    display: flex;
    gap: 10px;
    list-style: none;
}

.blog-pagination__page {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E6E6E6;
    border-radius: 50%;
    color: #6b6b6b;
    font-size: 14px;
    text-decoration: none;
}

.blog-pagination__page:hover {
    border-color: #FF0066;
    color: #FF0066;
}

.blog-pagination__page.is-active {
    background: #FF0066;
    border-color: #FF0066;
    color: #fff;
    font-weight: 700;
}

.blog-pagination__arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #1a1a1a;
    text-decoration: none;
}

.blog-pagination__arrow:hover {
    color: #FF0066;
}

.blog-pagination__arrow.is-disabled {
    color: #d0d0d0;
    pointer-events: none;
}

.blog-pagination__arrow svg {
    display: block;
}

/* post: breadcrumb, banner, cabeçalho ------------------------------------ */

.breadcrumb {
    padding: 8px 0 24px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    color: #1a1a1a;
    font-size: 14px;
}

.breadcrumb li:not(:first-child)::before {
    content: "›";
    margin-right: 8px;
    color: #c9c9c9;
}

.breadcrumb a {
    color: #6b6b6b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #FF0066;
}

.post-banner {
    width: 100%;
    margin: 0;
    background: #d7eaf8;
}

.post-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * O style.css da home aplica display:flex e justify-content:space-between em
 * QUALQUER <header>, porque lá existe só o do topo. Sem neutralizar isso aqui,
 * a tag, o H1 e o resumo do artigo viram três colunas lado a lado.
 */
.post-header {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 0 8px;
}

.post-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.post-header__meta time {
    color: #9a9aa5;
    font-size: 14px;
}

.post-header h1 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

.post-excerpt {
    margin-top: 20px;
    color: #5b5b5b;
    font-size: 18px;
    line-height: 1.7;
}

/* post: layout com relacionados ------------------------------------------ */

.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
    padding-top: 36px;
}

.post-layout.has-related {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.post-main {
    min-width: 0;
    padding: 36px 40px 40px;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    background: #fff;
}

.post-content {
    color: #333;
    font-size: 17px;
    line-height: 1.75;
}

.post-overview {
    margin: 8px 0 36px;
    padding: 24px 28px 22px;
    border: 1px solid #FF0066;
    border-radius: 12px;
    background: #fff;
}

.post-overview__title {
    margin: 0 0 16px;
    color: #FF0066;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.post-overview ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-overview li {
    position: relative;
    padding-left: 18px;
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.55;
}

.post-overview li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a1a1a;
}

.post-related {
    position: sticky;
    top: 24px;
    padding: 28px 24px 24px;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    background: #fff;
}

.post-related__heading {
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ECECEC;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.post-related__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #ECECEC;
}

.post-related__card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-related__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #d7eaf8;
}

.post-related__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-related__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.post-related__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-related__title a:hover {
    color: #FF0066;
}

.post-related__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.55;
}

.post-related__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-related__link {
    color: #FF0066;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-related__link:hover {
    text-decoration: none;
}

.post-related__footer time {
    color: #9a9aa5;
    font-size: 13px;
}

/* post: tipografia do corpo ---------------------------------------------- */

.post-content a {
    color: #FF0066;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.post-paragraph {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.75;
}

.post-paragraph.is-lead {
    color: #1a1a1a;
    font-size: 19px;
}

.post-heading {
    margin: 46px 0 18px;
    color: #111;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    scroll-margin-top: 24px;
}

.post-subheading {
    margin: 28px 0 12px;
    font-size: 20px;
    font-weight: 600;
    scroll-margin-top: 24px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.post-list li {
    position: relative;
    padding-left: 26px;
    font-size: 17px;
    line-height: 1.65;
}

.post-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF0066;
}

.post-list.is-ordered {
    counter-reset: item;
}

.post-list.is-ordered li {
    counter-increment: item;
}

.post-list.is-ordered li::before {
    content: counter(item);
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #FF0066;
    font-weight: 700;
}

.post-highlight {
    margin: 34px 0;
    padding: 24px 26px;
    border: 1px solid #FF0066;
    border-left-width: 4px;
    border-radius: 12px;
    background: #FFF5F9;
}

.post-highlight__title {
    display: block;
    margin-bottom: 10px;
    color: #FF0066;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-highlight p,
.post-highlight li {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.post-highlight ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-left: 20px;
}

.post-quote {
    margin: 34px 0;
    padding-left: 22px;
    border-left: 4px solid #FF0066;
}

.post-quote blockquote p {
    color: #1a1a1a;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
}

.post-quote figcaption {
    margin-top: 10px;
    color: #9a9aa5;
    font-size: 14px;
}

.post-figure {
    margin: 34px 0;
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-figure figcaption {
    margin-top: 10px;
    color: #9a9aa5;
    font-size: 14px;
    text-align: center;
}

.post-tags {
    margin-top: 44px;
}

.post-tags__title {
    margin: 0 0 16px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.post-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-updated {
    margin: 44px 0 0;
    color: #9a9aa5;
    font-size: 14px;
}

/* post: FAQ e CTA -------------------------------------------------------- */

.post-faq {
    margin-top: 48px;
}

.post-faq__item {
    padding: 18px 0;
    border-bottom: 1px solid #ECECEC;
}

.post-faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.post-faq__item summary::-webkit-details-marker {
    display: none;
}

.post-faq__item summary::after {
    content: "+";
    color: #FF0066;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.post-faq__item[open] summary::after {
    content: "–";
}

.post-faq__item p {
    margin-top: 12px;
    color: #5b5b5b;
    font-size: 16px;
    line-height: 1.7;
}

.post-cta {
    margin-top: 52px;
    padding: 36px;
    border-radius: 16px;
    background: #111;
    color: #fff;
}

.post-cta__title {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.post-cta p {
    margin-bottom: 26px;
    color: #d6d6d6;
    font-size: 16px;
    line-height: 1.7;
}

.post-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.post-cta .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 15px 28px;
    font-size: 16px;
    text-decoration: none;
    animation: none;
    box-shadow: none;
}

.post-cta .button:hover {
    padding: 14px 27px;
}

.button--outline {
    border: 1px solid #fff;
    background: none;
    color: #fff;
}

.button--outline:hover {
    border-color: #FF0066;
    color: #FF0066;
}

/* 404 -------------------------------------------------------------------- */

.blog-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 0 100px;
    text-align: center;
}

.blog-404 h1 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 400;
}

.blog-404 p {
    max-width: 520px;
    color: #6b6b6b;
    font-size: 17px;
}

.blog-404 .button {
    display: inline-block;
    width: auto;
    padding: 16px 32px;
    text-decoration: none;
}

/* formulário reaproveitado da home --------------------------------------- */

.blog-body #contact {
    margin-top: 80px;
}

/* na home o botão de 400px cabe no hero; aqui garantimos que não estoure */
.blog-body #contact .button {
    max-width: 100%;
}

/* responsivo ------------------------------------------------------------- */

@media (max-width: 1240px) {
    .post-layout,
    .post-layout.has-related {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-related {
        position: static;
        order: 2;
    }

    .post-content {
        max-width: none;
    }

    .blog-header {
        flex-direction: column;
        gap: 18px;
        max-width: 90%;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .blog-header .box__image img {
        width: 120px;
    }

    .blog-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 20px;
    }
}

@media (max-width: 760px) {
    .blog-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .post-card__title {
        font-size: 20px;
    }

    .blog-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .blog-filters__options {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .blog-filter {
        white-space: nowrap;
    }

    .post-header {
        padding-top: 24px;
    }

    .post-content,
    .post-paragraph,
    .post-list li {
        font-size: 16px;
    }

    .post-paragraph.is-lead {
        font-size: 18px;
    }

    .post-cta {
        padding: 26px 22px;
    }

    .post-cta .button {
        width: 100%;
    }

    .post-overview {
        padding: 20px 18px;
    }

    .post-main {
        padding: 24px 20px 28px;
    }

    .post-related {
        padding: 22px 18px;
    }

    .blog-pagination {
        gap: 12px;
    }
}
