/* ==========================================================================
   FFA — Estilos do módulo de Notícias (mobile-first)
   ========================================================================== */

.news-wrap { --ffa: #ffbf00; }

/* --- Barra de filtros / busca --- */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.news-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.news-cats a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #444;
    font-size: 14px;
    transition: background .2s, color .2s;
}
.news-cats a:hover, .news-cats a.active { background: var(--ffa); color: #1a1a1a; }
.news-search { display: flex; max-width: 320px; width: 100%; }
.news-search input {
    flex: 1 1 auto; width: auto !important; min-width: 0;
    min-height: 44px; padding: 0 14px;
    border: 1px solid #ddd; border-radius: 8px 0 0 8px; outline: none;
}
.news-search button {
    min-height: 44px; padding: 0 16px; border: none;
    background: var(--ffa); color: #1a1a1a; border-radius: 0 8px 8px 0; font-weight: 600;
}

/* --- Grid de cards --- */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 576px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #eef0f4; border-radius: 14px;
    overflow: hidden; transition: box-shadow .3s, transform .3s;
}
.news-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.09); transform: translateY(-4px); }
.news-card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #f4f5f7; overflow: hidden; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__thumb img { transform: scale(1.05); }
.news-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; color: #c9ccd2; }
.news-card__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--ffa); color: #1a1a1a; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
}
.news-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #8a8f98; margin-bottom: 10px; }
.news-card__cat { background: #1a1a1a; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.news-card__title { font-size: 1.2rem; line-height: 1.35; margin: 0 0 10px; }
.news-card__title a { color: #1a1a1a; }
.news-card__title a:hover { color: #d9a400; }
.news-card__excerpt { color: #666; font-size: .95rem; margin-bottom: 16px; }
.news-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #8a8f98; }
.news-card__more { color: #d9a400; font-weight: 600; }

/* --- Destaque grande --- */
.news-hero { margin-bottom: 40px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .news-hero { grid-template-columns: 2fr 1fr; } }
.news-hero .news-card__thumb { aspect-ratio: 16 / 9; }
@media (min-width: 992px) { .news-hero__main .news-card__thumb { aspect-ratio: 16 / 10; } .news-hero__side { display: grid; gap: 20px; } }

/* --- Post individual --- */
.post-hero { max-width: 820px; margin: 0 auto 30px; }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #8a8f98; font-size: 14px; margin-bottom: 14px; }
.post-hero__title { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.2; margin-bottom: 14px; }
.post-hero__excerpt { font-size: 1.15rem; color: #555; }
.post-cover { max-width: 960px; margin: 0 auto 36px; }
.post-cover img { width: 100%; border-radius: 16px; }

.post-content { max-width: 820px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: #333; }
.post-content > * { margin-bottom: 1.4rem; }
.post-heading { margin: 2rem 0 1rem; line-height: 1.25; }
.post-richtext p { margin-bottom: 1.2rem; }
.post-figure { margin: 1.8rem 0; }
.post-figure figcaption, .post-caption { text-align: center; font-size: .9rem; color: #8a8f98; margin-top: 8px; }
.post-quote { border-left: 4px solid var(--ffa); padding: 6px 0 6px 20px; font-size: 1.25rem; font-style: italic; color: #444; }
.post-quote cite { display: block; font-size: .95rem; font-style: normal; color: #8a8f98; margin-top: 8px; }
.post-list { padding-left: 1.4rem; }
.post-list li { margin-bottom: .5rem; }
.post-list.ffa ul { list-style: disc; }
.post-divider { border: 0; border-top: 2px dashed #e6e8ec; margin: 2.4rem 0; }
.post-cta { text-align: center; margin: 2rem 0; }
.post-file {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff8e5; border: 1px solid #ffe9a8; border-left: 5px solid var(--ffa);
    padding: 14px 20px; border-radius: 10px; color: #1a1a1a; font-weight: 600;
}
.post-file:hover { background: #fff2cc; color: #1a1a1a; }

/* Vídeo responsivo 16:9 */
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galeria */
.post-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 576px) { .post-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); } .post-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.post-gallery .gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.post-gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-gallery .gallery-item:hover img { transform: scale(1.06); }

/* Tags + compartilhar */
.post-footer { max-width: 820px; margin: 40px auto 0; }
.post-tags a { display: inline-block; background: #f1f2f4; color: #555; padding: 5px 12px; border-radius: 999px; font-size: 13px; margin: 0 6px 6px 0; }
.post-tags a:hover { background: var(--ffa); color: #1a1a1a; }
.post-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-share a, .post-share button {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #1a1a1a; color: #fff; border: none; cursor: pointer; transition: background .2s;
}
.post-share a:hover, .post-share button:hover { background: var(--ffa); color: #1a1a1a; }

/* Sumário */
.post-toc { background: #f7f8fa; border: 1px solid #eef0f4; border-radius: 12px; padding: 18px 22px; margin: 0 auto 30px; max-width: 820px; }
.post-toc strong { display: block; margin-bottom: 8px; }
.post-toc a { display: block; color: #555; padding: 3px 0; }
.post-toc a:hover { color: #d9a400; }

/* Barra de progresso de leitura */
#read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ffa); z-index: 9999; transition: width .1s; }

/* Estado vazio */
.news-empty { text-align: center; padding: 60px 20px; color: #8a8f98; }
.news-empty i { font-size: 3rem; color: #d7dbe0; margin-bottom: 16px; }
