/* =========================================================
   ALFA TRANSPORTES - NOTÍCIAS
   Arquivo: static/website/css/news.css
   ========================================================= */

   .news-page {
    background: #ffffff;
    color: var(--alfa-neutra-clara);
}

/* =========================================================
   HERO LISTAGEM
   ========================================================= */

.news-hero {
    padding: 2.5rem 0 1.5rem;
    background: #ffffff;
}

.news-hero-card {
    padding: 2rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.news-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.news-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.news-hero p {
    max-width: 640px;
    margin: 1rem 0 0;
    color: var(--alfa-neutra-clara);
    font-size: var(--fs-base, .92rem);
    line-height: 1.65;
}

/* Busca */

.news-search-card {
    padding: 1.25rem;
    border-radius: 24px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.news-search-card .form-label {
    margin-bottom: .55rem;
    color: var(--alfa-neutra-escura);
    font-weight: 850;
}

.news-search-group {
    display: flex;
    gap: .65rem;
}

.news-search-group .form-control {
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .14);
}

.news-search-group .form-control:focus {
    border-color: var(--alfa-destaque);
    box-shadow: 0 0 0 .18rem rgba(222, 30, 62, .16);
}

.news-search-group .btn {
    min-height: 46px;
    white-space: nowrap;
}

/* =========================================================
   LISTAGEM
   ========================================================= */

.news-list-section {
    padding: 1.5rem 0 4rem;
    background: #ffffff;
}

.news-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.25rem;
}

.news-category-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .85rem;
    border-radius: 999px;
    color: var(--alfa-neutra-escura);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .12);
    text-decoration: none;
    font-size: var(--fs-sm, .84rem);
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.news-category-filter a:hover,
.news-category-filter a.active {
    color: #ffffff;
    background: var(--alfa-destaque);
    border-color: var(--alfa-destaque);
}

.news-filter-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border-radius: 18px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
    color: var(--alfa-neutra-clara);
}

.news-filter-summary a {
    color: var(--alfa-destaque);
    font-weight: 850;
    text-decoration: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 230px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(222, 30, 62, .25);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.news-card-media {
    display: block;
    min-height: 100%;
    background: var(--alfa-background);
    overflow: hidden;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.035);
}

.news-card-placeholder {
    height: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alfa-destaque);
    background: #fff5f6;
}

.news-card-placeholder i {
    font-size: 2.6rem;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .58rem;
    border-radius: 999px;
    color: var(--alfa-neutra-clara);
    background: var(--alfa-background);
    font-size: var(--fs-xs, .76rem);
    font-weight: 750;
}

.news-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.news-card h2 a {
    color: var(--alfa-neutra-escura);
    text-decoration: none;
}

.news-card h2 a:hover {
    color: var(--alfa-destaque);
}

.news-card p {
    display: -webkit-box;
    margin: .75rem 0 1rem;
    color: var(--alfa-neutra-clara);
    line-height: 1.55;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-read-more {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    color: var(--alfa-destaque);
    text-decoration: none;
    font-weight: 700;
}

.news-read-more:hover {
    color: var(--alfa-interacao-hover);
}

/* Empty */

.news-empty {
    max-width: 620px;
    margin: 2rem auto 0;
    padding: 2rem;
    border-radius: 28px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.news-empty i {
    color: var(--alfa-destaque);
    font-size: 2.4rem;
}

.news-empty h2 {
    margin: .75rem 0 .5rem;
    color: var(--alfa-neutra-escura);
    font-weight: 700;
}

.news-empty p {
    color: var(--alfa-neutra-clara);
}

/* Paginação */

.news-pagination {
    margin-top: 2rem;
}

.news-pagination .page-link {
    color: var(--alfa-destaque);
    border-color: rgba(15, 23, 42, .12);
    font-weight: 700;
}

.news-pagination .page-link:hover {
    color: #ffffff;
    background: var(--alfa-destaque);
    border-color: var(--alfa-destaque);
}

/* =========================================================
   DETALHE
   ========================================================= */

.news-detail-hero {
    padding: 2.5rem 0 1.5rem;
    background: #ffffff;
}

.news-detail-hero-content {
    max-width: 940px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
    color: var(--alfa-destaque);
    font-weight: 700;
    text-decoration: none;
}

.news-back-link:hover {
    color: var(--alfa-interacao-hover);
}

.news-detail-meta {
    margin-bottom: 1rem;
}

.news-detail-hero h1 {
    max-width: 860px;
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.news-detail-hero p {
    max-width: 780px;
    margin: 1rem 0 0;
    color: var(--alfa-neutra-clara);
    font-size: var(--fs-md, 1rem);
    line-height: 1.7;
}

.news-detail-section {
    padding: 1rem 0 4rem;
}

.news-detail-card {
    max-width: 940px;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.news-detail-cover {
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: 24px;
    background: var(--alfa-background);
}

.news-detail-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.news-detail-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--alfa-neutra-clara);
    font-size: var(--fs-base, .92rem);
    line-height: 1.85;
}

.news-detail-content p {
    margin-bottom: 1.1rem;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 1.8rem;
    margin-bottom: .8rem;
    color: var(--alfa-neutra-escura);
    font-weight: 700;
    letter-spacing: -.025em;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 20px;
}

.news-detail-content a {
    color: var(--alfa-destaque);
    font-weight: 700;
}

.news-video-block {
    max-width: 820px;
    margin: 2rem auto 0;
    padding: 1rem;
    border-radius: 28px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.news-video-header {
    margin-bottom: .8rem;
}

.news-video-header span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.news-video-block iframe {
    border: 0;
    border-radius: 20px;
}

.news-detail-footer {
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, .10);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1199.98px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .news-hero,
    .news-detail-hero {
        padding: 1.25rem 0 .75rem;
    }

    .news-hero-card,
    .news-detail-hero-content {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .news-search-group {
        flex-direction: column;
    }

    .news-search-group .btn {
        width: 100%;
    }

    .news-list-section {
        padding-top: .75rem;
    }

    .news-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 24px;
    }

    .news-card-media img,
    .news-card-placeholder {
        min-height: 190px;
        max-height: 230px;
    }

    .news-card-body {
        padding: 1rem;
    }

    .news-card h2 {
        font-size: 1.05rem;
    }

    .news-category-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .35rem;
    }

    .news-category-filter a {
        white-space: nowrap;
    }

    .news-detail-card {
        padding: 1rem;
        border-radius: 24px;
    }

    .news-detail-cover {
        border-radius: 20px;
    }

    .news-detail-cover img {
        max-height: 320px;
    }

    .news-detail-content {
        line-height: 1.72;
    }

    .news-video-block {
        padding: .75rem;
        border-radius: 22px;
    }

    .news-detail-footer {
        flex-direction: column;
    }

    .news-detail-footer .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .news-hero-card,
    .news-detail-hero-content,
    .news-detail-card {
        border-radius: 20px;
    }

    .news-card-media img,
    .news-card-placeholder {
        min-height: 170px;
        max-height: 210px;
    }

    .news-card-body {
        padding: .9rem;
    }
}

/* =========================================================
   DETALHE DA NOTÍCIA - RESPIRO PARA MENU RÁPIDO
   ========================================================= */

   .news-detail-page .news-detail-section {
    padding-bottom: 9rem;
}

@media (max-width: 991.98px) {
    .news-detail-page .news-detail-section {
        padding-bottom: 8rem;
    }
}

@media (max-width: 575.98px) {
    .news-detail-page .news-detail-section {
        padding-bottom: 7.5rem;
    }
}


/* =========================================================
   DETALHE DA NOTÍCIA - LINK RELACIONADO
   ========================================================= */

   .news-related-link-block {
    max-width: 820px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem auto 0;
    padding: 1.25rem;
    border-radius: 26px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.news-related-link-content {
    min-width: 0;
}

.news-related-link-content span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.news-related-link-content h2 {
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.news-related-link-content p {
    margin: .45rem 0 0;
    color: var(--alfa-neutra-clara);
    line-height: 1.55;
}

.news-related-link-block .btn {
    flex: 0 0 auto;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 850;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .news-related-link-block {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 22px;
    }

    .news-related-link-block .btn {
        width: 100%;
    }
}

/* Reorganizacao da listagem e do detalhe para aproveitar a largura util. */
.news-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.news-list-heading .news-kicker {
    margin-bottom: .4rem;
}

.news-list-heading h2 {
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.news-result-count {
    flex: 0 0 auto;
    padding: .5rem .8rem;
    border-radius: 999px;
    color: var(--alfa-destaque);
    background: var(--alfa-destaque-soft);
    font-size: var(--fs-sm, .84rem);
    font-weight: 700;
}

.news-card:only-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
}

.news-card:only-child .news-card-body {
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.news-card:only-child h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.news-detail-hero-content,
.news-detail-card {
    max-width: 1180px;
}

.news-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.news-detail-toolbar .news-back-link,
.news-detail-toolbar .news-detail-meta {
    margin-bottom: 0;
}

.news-detail-toolbar .news-detail-meta {
    justify-content: flex-end;
}

.news-detail-cover img {
    max-height: none;
    aspect-ratio: 16 / 7;
}

.news-detail-content,
.news-detail-footer {
    max-width: 860px;
}

@media (max-width: 767.98px) {
    .news-list-heading,
    .news-detail-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-detail-toolbar .news-detail-meta {
        justify-content: flex-start;
    }

    .news-card:only-child {
        grid-template-columns: 1fr;
    }

    .news-detail-cover img {
        aspect-ratio: 16 / 10;
    }
}

/* Capa completa ao lado do cabecalho; corpo preserva largura de leitura. */
.news-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.news-detail-hero-grid.without-cover {
    grid-template-columns: minmax(0, 1fr);
}

.news-detail-heading {
    min-width: 0;
}

.news-detail-heading .news-detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
}

.news-detail-heading .news-detail-meta {
    justify-content: flex-start;
}

.news-detail-hero-cover {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: .75rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    background: var(--alfa-background);
}

.news-detail-hero-cover img {
    width: 100%;
    height: auto;
    max-height: 480px;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

.news-detail-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 991.98px) {
    .news-detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-hero-cover img {
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .news-detail-hero-cover {
        padding: .5rem;
        border-radius: 18px;
    }

    .news-detail-hero-cover img {
        border-radius: 12px;
    }
}
