/*-----------------------------------------------------------------------------------

    JW Design Page CSS: blog
    -------------------------------------------------------------------------------
    Archive/listagem futura de Posts.
    Este arquivo é editável diretamente e será carregado somente nesta página/template.
    Não usa SCSS e não depende de build.

-----------------------------------------------------------------------------------*/

@import url("../global.css");
@import url("../sections/page-hero.css");
@import url("../sections/blog.css");
@import url("../sections/system.css");
@import url("../base/responsive.css");
@import url("../components/header-overrides.css");
@import url("../components/buttons.css");
@import url("../base/jw-responsive.css");

/* Ajustes específicos desta página/template devem entrar abaixo deste ponto.
   Mantenha regras globais fora daqui sempre que possível. */

/* Fase 17 — Blog dinâmico */
.jw-main--blog .pg-hero .max-w-720px {
    max-width: 720px;
}

.jw-post-card__media a:first-child {
    display: block;
    height: 100%;
}

.jw-post-card__media img,
.jw-blog-hero__image img {
    display: block;
}

.jw-post-card__excerpt {
    max-width: 720px;
}

.jw-blog-search {
    position: relative;
}

.jw-blog-search button.icon {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.jw-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.jw-pagination a,
.jw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    line-height: 1;
}

.jw-pagination .current {
    background: var(--jw-primary, #FAB518);
    color: #111;
    border-color: var(--jw-primary, #FAB518);
}

@media (max-width: 991.98px) {
    .jw-main--blog .sidebar {
        margin-top: 20px;
    }

    .jw-post-card .h-450px {
        height: clamp(260px, 55vw, 420px) !important;
    }
}

/* Fase 18.2 — ícone SVG no campo de busca do blog, sem Pe Icon font. */
.jw-blog-search button.icon.jw-icon--search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
}
.jw-blog-search button.icon.jw-icon--search svg {
    width: 19px;
    height: 19px;
}
