/* =========================================================================
   Correção de aspect-ratio das imagens — sem remover nada do existente.
   Cada bloco usa seletor específico ao contexto para não vazar para outras
   páginas.
   ========================================================================= */

/* 1) Carrossel principal da home (#carouselNews) --------------------------
   Tratamento editorial: imagem com crop travado por breakpoint (sem stretch),
   gradiente legível por trás do título, badge de destaque e indicadores
   minimalistas. Sobrescreve o "background-color:#A9A9A9; opacity:0.8" antigo
   da .carousel-caption — aquele estilo deixava o próprio texto translúcido.
   ---------------------------------------------------------------------- */

#carouselNews {
    position: relative;
    background: #071129;            /* fallback escuro para letterbox */
    box-shadow: 0 18px 40px -20px rgba(7, 17, 41, 0.45);
    overflow: hidden;
}

#carouselNews .carousel-inner,
#carouselNews .carousel-item {
    background: #071129;
}

#carouselNews .carousel-item {
    position: relative;
    overflow: hidden;
}

/* --- Imagem: altura fixa por breakpoint + cover (resolve o "esticando") -- */
#carouselNews .carousel-item img {
    width: 100%;
    height: 460px;
    max-height: 460px;
    min-height: 460px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 9s ease-out;
    will-change: transform;
}
#carouselNews .carousel-item.active img {
    transform: scale(1.05);          /* ken-burns sutil no slide ativo */
}

/* --- Gradiente legibilidade (cobre apenas o terço inferior) -------------- */
#carouselNews .carousel-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 40%;
    background: linear-gradient(
        to top,
        rgba(7, 17, 41, 0.94) 0%,
        rgba(7, 17, 41, 0.82) 22%,
        rgba(7, 17, 41, 0.45) 55%,
        rgba(7, 17, 41, 0.10) 82%,
        rgba(7, 17, 41, 0)   100%
    );
    pointer-events: none;
    z-index: 1;
}

/* --- Caption: zera os estilos antigos e re-estiliza --------------------- */
#carouselNews .carousel-caption {
    background: transparent !important;   /* mata o cinza antigo */
    opacity: 1 !important;                /* mata o opacity:0.8 que afetava o texto */
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 56px 44px;
    text-align: left;
    z-index: 2;
}

/* Badge âmbar — "NOTÍCIA EM DESTAQUE" */
#carouselNews .carousel-caption::before {
    content: 'NOTÍCIA EM DESTAQUE';
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #1a1208;
    background: linear-gradient(135deg, #f4c145 0%, #d99815 100%);
    padding: 7px 13px 6px;
    margin-bottom: 16px;
    border-radius: 2px;
    box-shadow: 0 4px 14px -4px rgba(217, 152, 21, 0.55);
}

/* Título — serif editorial em mixed case (sobrescreve o uppercase global) */
#carouselNews .carousel-caption h3 {
    color: #ffffff;
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    font-size: 1.85rem;
    line-height: 1.22;
    font-weight: 700;
    margin: 0;
    max-width: 78%;
    text-transform: none;             /* sobrescreve pref.css */
    letter-spacing: -0.005em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Linha de acento dourada abaixo do título */
#carouselNews .carousel-caption h3::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: #f4c145;
    margin-top: 16px;
    border-radius: 2px;
}

/* Link cobre toda a área e remove sublinhado */
#carouselNews .carousel-item > a {
    display: block;
    text-decoration: none;
}
#carouselNews .carousel-item > a:hover,
#carouselNews .carousel-item > a:focus {
    text-decoration: none;
    outline: none;
}

/* --- Indicadores: barras finas, dourado no ativo ----------------------- */
#carouselNews .carousel-indicators {
    z-index: 3;
    margin-bottom: 14px;
    align-items: center;
}
#carouselNews .carousel-indicators li {
    width: 26px;
    height: 3px;
    margin: 0 4px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.38);
    border: none;
    opacity: 1;
    transition: background 0.35s ease, width 0.35s ease;
}
#carouselNews .carousel-indicators li:hover {
    background: rgba(255, 255, 255, 0.7);
}
#carouselNews .carousel-indicators .active {
    background: #f4c145;
    width: 44px;
}

/* --- Setas com mais contraste e área de clique maior ------------------- */
#carouselNews .carousel-control-prev,
#carouselNews .carousel-control-next {
    z-index: 3;
    width: 7%;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}
#carouselNews .carousel-control-prev:hover,
#carouselNews .carousel-control-next:hover {
    opacity: 1;
}
#carouselNews .carousel-control-prev-icon,
#carouselNews .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* --- Responsivo --------------------------------------------------------- */
@media (max-width: 1199px) {
    #carouselNews .carousel-item img {
        height: 420px;
        max-height: 420px;
        min-height: 420px;
    }
    #carouselNews .carousel-caption h3 { font-size: 1.6rem; }
}

/* --- Equal height: carrossel acompanha a altura de #section-services ----
   Só no lg+ (lado a lado). A row do Bootstrap já é flex com align-items:
   stretch, então a col-lg-8 (#section-news1) tende a esticar até a altura
   da col-lg-4 (serviços). Mas a imagem do carrossel tem altura intrínseca
   e empurra a coluna para cima — por isso usamos flex-basis:0 no carrossel
   (não contribui com altura) e .carousel-inner em position:absolute (fica
   preso ao retângulo dimensionado pelo flex, sem propagar o tamanho da
   imagem para o pai). */
@media (min-width: 992px) {
    #section-padding2 > .container > .row {
        align-items: stretch;
    }
    #section-news1 {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    #section-news1 > #carouselNews {
        flex: 1 1 0;            /* basis 0 = não puxa altura do conteúdo */
        min-height: 0;
        position: relative;
        overflow: hidden;
    }
    #carouselNews > .carousel-inner {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: auto;
    }
    #carouselNews .carousel-item,
    #carouselNews .carousel-item > a {
        height: 100%;
    }
    #carouselNews .carousel-item img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 991px) {
    #carouselNews .carousel-item img {
        height: 360px;
        max-height: 360px;
        min-height: 360px;
    }
    #carouselNews .carousel-caption {
        padding: 24px 40px 32px;
    }
    #carouselNews .carousel-caption h3 {
        font-size: 1.35rem;
        max-width: 92%;
    }
    #carouselNews .carousel-caption::before {
        font-size: 9.5px;
        padding: 6px 11px 5px;
        margin-bottom: 12px;
    }
}

@media (max-width: 575px) {
    /* Bootstrap mantém d-none aqui (caption oculta);
       reduzimos só a imagem para não dar stretch vertical no celular. */
    #carouselNews .carousel-item img {
        height: 240px;
        max-height: 240px;
        min-height: 240px;
    }
    #carouselNews .carousel-control-prev,
    #carouselNews .carousel-control-next { width: 12%; }
}

/* 2) Página interna da notícia (#img_principal) --------------------------- */
#img_principal {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 3) Thumbnail nos resultados de busca ------------------------------------ */
/* search.ctp tem style inline (height:7.2em;width:11em). Inline vence
   stylesheet, então !important escopado a .media evita o stretch sem
   alterar o retângulo. */
.media .img-responsive {
    object-fit: cover !important;
    object-position: center !important;
}

/* 4) Cards .fh5co_*_img (View/Noticias/index.ctp) ------------------------- */
.fh5co_suceefh5co_height > img,
.fh5co_suceefh5co_height_2 > img,
.fh5co_latest_trading_img > img,
.fh5co_news_img > img,
.fh5co_hover_news_img_video_tag_position_absolute > img {
    object-fit: cover;
    object-position: center;
}

/* 5) Vereadores e galeria estática da home -------------------------------- */
.blog-area .single-blog .blog-img img,
.gallery-area .gallery-box .single-gallery .gallery-img img {
    height: auto;
    object-fit: cover;
}

/* =========================================================================
   6) Página /noticias — listagem editorial de notícias
   Paleta institucional já presente no site:
     navy   #255572   navy escuro #071129   indigo #112957
     gold   #f4c145   ocre  #d99815   marfim #faf7f2
   Tipografia: Georgia (display) + sistema sans (corpo)
   ========================================================================= */

.nws-hero {
    position: relative;
    color: #f5f1e8;
    padding: 96px 0 64px;
    overflow: hidden;
    isolation: isolate;
    margin-top: -1px;             /* encosta no carrossel global do layout */
}
.nws-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 380px at 12% 10%, rgba(244, 193, 69, 0.16), transparent 60%),
        radial-gradient(900px 420px at 92% 90%, rgba(37, 85, 114, 0.55), transparent 65%),
        linear-gradient(135deg, #071129 0%, #0d1e3a 55%, #112957 100%);
}
.nws-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
    pointer-events: none;
    opacity: 0.6;
}
.nws-hero__inner {
    position: relative;
    max-width: 880px;
}
.nws-hero__kicker {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    font-weight: 700;
    color: #f4c145;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.nws-hero__kicker::before {
    content: '';
    width: 36px;
    height: 2px;
    background: #f4c145;
    display: inline-block;
}
.nws-hero__title {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 22px;
    text-transform: none;
}
.nws-hero__title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, #f4c145, #d99815);
    margin-top: 18px;
    border-radius: 2px;
}
.nws-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(245, 241, 232, 0.82);
    max-width: 620px;
    margin: 0 0 36px;
}

/* Search bar — fica "embutida" num cartão claro contrastando com a hero --- */
.nws-search {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-radius: 4px;
    padding: 6px 6px 6px 18px;
    box-shadow:
        0 18px 40px -22px rgba(7, 17, 41, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    max-width: 640px;
    margin-bottom: 0 !important;     /* sobrescreve .form-control's mb */
}
.nws-search__icon {
    display: inline-flex;
    align-items: center;
    color: #255572;
    font-size: 15px;
    margin-right: 12px;
}
.nws-search__input {
    flex: 1;
    border: 0 !important;
    background: transparent !important;
    outline: none;
    font-family: Georgia, "Iowan Old Style", serif;
    font-size: 1.05rem !important;
    color: #112957;
    padding: 12px 6px !important;
    height: auto !important;
    margin: 0 !important;
    min-width: 0;
}
.nws-search__input::placeholder {
    color: #6c7891;
    font-style: italic;
}
.nws-search__btn {
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, #255572 0%, #112957 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 22px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nws-search__btn:hover,
.nws-search__btn:focus {
    background: linear-gradient(135deg, #d99815 0%, #f4c145 100%);
    color: #1a1208;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgba(217, 152, 21, 0.7);
    outline: none;
}
.nws-search__btn i { font-size: 12px; }

.nws-hero__meta {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.nws-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 193, 69, 0.12);
    border: 1px solid rgba(244, 193, 69, 0.4);
    color: #f4c145;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
}
.nws-hero__chip strong { color: #ffffff; font-weight: 700; }
.nws-hero__chip--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(245, 241, 232, 0.85);
}
.nws-hero__clear {
    color: rgba(245, 241, 232, 0.75);
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nws-hero__clear:hover { color: #f4c145; }

/* Lista ------------------------------------------------------------------- */
.nws-list {
    background: #faf7f2;
    padding: 72px 0 96px;
    position: relative;
}
.nws-list::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 85, 114, 0.15), transparent);
}

/* Featured card --- imagem grande + corpo serif ao lado ------------------- */
.nws-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    background: #ffffff;
    border: 1px solid rgba(17, 41, 87, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 64px;
    box-shadow:
        0 1px 0 rgba(17, 41, 87, 0.04),
        0 30px 60px -40px rgba(7, 17, 41, 0.25);
    position: relative;
}
.nws-featured::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f4c145, #d99815);
    z-index: 2;
}
.nws-featured__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #071129;
    aspect-ratio: 16 / 11;
    min-height: 280px;
}
.nws-featured__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s ease;
}
.nws-featured__media:hover .nws-featured__img { transform: scale(1.04); }
.nws-featured__badge {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
    background: linear-gradient(135deg, #f4c145 0%, #d99815 100%);
    color: #1a1208;
    padding: 7px 13px 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    border-radius: 2px;
    box-shadow: 0 6px 16px -6px rgba(217, 152, 21, 0.6);
}
.nws-featured__body {
    padding: 48px 56px 48px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.nws-featured__date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6c7891;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nws-featured__date i { color: #d99815; }
.nws-featured__title {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    line-height: 1.18;
    color: #071129;
    margin: 0 0 18px;
    text-transform: none;
    letter-spacing: -0.005em;
}
.nws-featured__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(transparent 60%, rgba(244, 193, 69, 0.32) 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.5s ease;
}
.nws-featured__title a:hover { background-size: 100% 100%; }
.nws-featured__excerpt {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #4a5468;
    margin: 0 0 28px;
    max-width: 56ch;
}
.nws-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #112957;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 2px solid #112957;
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.nws-featured__cta:hover,
.nws-featured__cta:focus {
    color: #d99815;
    border-color: #d99815;
    gap: 18px;
    text-decoration: none;
}

/* Grid --------------------------------------------------------------------- */
.nws-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
.nws-card {
    background: #ffffff;
    border: 1px solid rgba(17, 41, 87, 0.07);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.nws-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f4c145, #d99815);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
}
.nws-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -28px rgba(7, 17, 41, 0.28);
    border-color: rgba(17, 41, 87, 0.16);
}
.nws-card:hover::after { transform: scaleX(1); }

.nws-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d1e3a;
}
.nws-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease, filter 0.4s ease;
    filter: saturate(0.96);
}
.nws-card:hover .nws-card__img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.nws-card__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nws-card__date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6c7891;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nws-card__date i { color: #d99815; font-size: 12px; }

.nws-card__title {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    font-size: 1.28rem;
    line-height: 1.28;
    color: #071129;
    margin: 0 0 14px;
    text-transform: none;
    letter-spacing: -0.003em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nws-card__title a {
    color: inherit;
    text-decoration: none;
}
.nws-card__title a:hover { color: #255572; }

.nws-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a6478;
    margin: 0 0 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.nws-card__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #255572;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1.5px solid rgba(37, 85, 114, 0.3);
    transition: gap 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nws-card__cta:hover,
.nws-card__cta:focus {
    color: #d99815;
    border-color: #d99815;
    gap: 14px;
    text-decoration: none;
}

/* Estado vazio ----------------------------------------------------------- */
.nws-empty {
    text-align: center;
    padding: 64px 24px;
    background: #ffffff;
    border: 1px dashed rgba(37, 85, 114, 0.25);
    border-radius: 6px;
    max-width: 640px;
    margin: 0 auto;
}
.nws-empty__mark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c145 0%, #d99815 100%);
    color: #1a1208;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 26px -14px rgba(217, 152, 21, 0.7);
}
.nws-empty__title {
    font-family: Georgia, "Iowan Old Style", serif;
    font-size: 1.45rem;
    color: #071129;
    margin: 0 0 10px;
    text-transform: none;
}
.nws-empty__hint {
    color: #5a6478;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}
.nws-empty__hint a {
    color: #255572;
    font-weight: 700;
    border-bottom: 1px solid rgba(37, 85, 114, 0.4);
}
.nws-empty__hint a:hover { color: #d99815; border-color: #d99815; }

/* Pagination ------------------------------------------------------------- */
.nws-pager {
    margin: 64px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nws-pager__edge,
.nws-pager__num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(17, 41, 87, 0.12);
    color: #255572;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.nws-pager__edge a,
.nws-pager__num a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nws-pager__edge:hover,
.nws-pager__num:hover {
    background: #112957;
    color: #ffffff;
    border-color: #112957;
    transform: translateY(-1px);
}
.nws-pager__num.is-current {
    background: linear-gradient(135deg, #f4c145, #d99815);
    color: #1a1208;
    border-color: transparent;
    cursor: default;
    transform: none;
}
.nws-pager__edge--off {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
    color: #6c7891;
}
.nws-pager__edge--off:hover {
    background: transparent;
    color: #6c7891;
    border-color: rgba(17, 41, 87, 0.12);
    transform: none;
}
.nws-pager__nums {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.nws-pager__counter {
    width: 100%;
    text-align: center;
    color: #6c7891;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* sr-only utilitário (caso o BS4 do projeto não o defina globalmente) ---- */
.nws-hero .sr-only,
.nws-list .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsivo ------------------------------------------------------------- */
@media (max-width: 991px) {
    .nws-hero { padding: 72px 0 56px; }
    .nws-featured {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .nws-featured__media { aspect-ratio: 16 / 9; min-height: 0; }
    .nws-featured__body {
        padding: 32px 36px 40px;
    }
    .nws-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .nws-hero { padding: 56px 0 44px; }
    .nws-hero__title { letter-spacing: -0.005em; }
    .nws-search {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    .nws-search__icon { display: none; }
    .nws-search__input { padding: 12px 8px !important; }
    .nws-search__btn {
        padding: 14px 16px;
        justify-content: center;
        width: 100%;
    }
    .nws-list { padding: 48px 0 64px; }
    .nws-featured__body { padding: 26px 22px 30px; }
    .nws-featured__title { font-size: 1.5rem; }
    .nws-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .nws-card__body { padding: 20px 22px 24px; }
}
