.page-blog {
    background-color: #fff;
}

/* =========================
   PÍLULAS (cards do topo)
========================= */
.pills-section {
    padding-top: 10px;
}

.pills-section .section-title {
    color: #000;
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background-color: #fff;
    border: 1px solid #000000;
    border-radius: 30px;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
}

.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.6rem;
    color: #000;
}

.card-content p {
    font-family: 'Lato', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.btn-card {
    display: inline-block;
    background: #fa680a;
    border: none;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-card:hover {
    background: #e85a00;
}

/* =========================
   FILTROS
========================= */
.blog-filters {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0;

    /* isso deixa “PC-like” e só quebra quando realmente precisa */
    flex-wrap: wrap;
}

.search-bar,
.category-select {
    position: relative;

    /* quando der espaço ficam lado a lado; se não, quebram sem ficar esquisito */
    flex: 1 1 340px;
}

/* Input e Select */
.search-bar input,
.category-select select {
    width: 100%;
    height: 50px;
    border: 2px solid #000000;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    background-color: #fff;
    box-sizing: border-box;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Padding específico (pra não “grudar” no botão/na setinha) */
.search-bar input {
    padding: 0 56px 0 20px;
}

.category-select select {
    padding: 0 52px 0 20px;
}

/* Botão de busca */
.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    line-height: 1;
}

/* Seta do dropdown */
.category-select::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* =========================
   LISTA DE POSTS
========================= */
.blog-list {
    margin-bottom: 60px;
}

.post-item {
    display: flex;
    gap: 26px;
    align-items: stretch;
    border: 1px solid #000000;
    border-radius: 30px;
    margin-bottom: 20px;
    background-color: #fff;

    /* garante que borda arredondada funcione sempre */
    overflow: hidden;
}

.post-image {
    flex: 0 0 360px;
}

.post-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 14px 22px 18px 0;
    box-sizing: border-box;
}

.post-content h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.post-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

/* aqui estava o maior problema do layout: width:50% */
.post-content p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    width: min(640px, 100%);
    text-transform: uppercase;
    text-align: justify;
    font-weight: 500;
    margin: 0 0 14px 0;
}

/* botão continua “na direita” no PC sem gambi */
.btn-post {
    background-color: #fa680a;
    color: #fff;
    padding: 10px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;

    /* joga pra direita dentro do flex-column */
    margin-left: auto;

    transition: background-color 0.3s;
}

.btn-post:hover {
    background-color: #e85a00;
}

/* =========================
   RESPONSIVO (SEM “MUDAR DEMAIS”)
========================= */

/* Tablet/notebook menor: mantém aparência de PC, só reduz */
@media (max-width: 992px) {
    .post-image {
        flex: 0 0 320px;
    }

    .post-content {
        padding: 14px 18px 18px 0;
    }

    .post-content h2 {
        font-size: 1.8rem;
    }

    .post-content h3 {
        font-size: 1.5rem;
    }

    .search-bar input,
    .category-select select {
        font-size: 1.05rem;
    }
}

/* Celular: aí sim empilha */
@media (max-width: 768px) {
    .pills-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card img {
        height: 200px;
    }

    .search-bar input,
    .category-select select {
        height: 46px;
        font-size: 1rem;
    }

    .post-item {
        flex-direction: column;
        gap: 0;
    }

    .post-image {
        flex: none;
        width: 100%;
    }

    .post-image img {
        height: 220px;
        min-height: 220px;
    }

    .post-content {
        padding: 16px 18px 18px;
    }

    .post-content h2 {
        font-size: 1.55rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-content p {
        font-size: 0.95rem;
        width: 100%;
    }

    .btn-post {
        margin-left: 0;
        margin-top: 8px;
        align-self: flex-start;
    }
}

/* Celular pequeno: botão full width */
@media (max-width: 480px) {
    .post-image img {
        height: 200px;
        min-height: 200px;
    }

    .btn-post {
        width: 100%;
        text-align: center;
        padding: 10px 18px;
    }
}
