/* =========================================================
   V11 — degradê do carrossel, notícia premium e formulários
   ========================================================= */

/* Carrossel: transição suave entre a área editorial e a imagem */
.hero-news .hero-slide {
    overflow: hidden;
    background: #063b75 !important;
}

.hero-news .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(5, 76, 151, .98) 0%,
            rgba(5, 76, 151, .95) 28%,
            rgba(4, 57, 112, .82) 43%,
            rgba(3, 43, 86, .38) 57%,
            rgba(2, 25, 52, .08) 73%,
            rgba(2, 22, 45, .15) 100%),
        linear-gradient(180deg, rgba(0, 20, 42, .05), rgba(0, 20, 42, .2));
}

.hero-news .hero-overlay {
    z-index: 2;
}

.hero-news .hero-overlay::before {
    width: 55% !important;
    opacity: .9;
    background: linear-gradient(118deg,
        rgba(9, 92, 181, .98) 0%,
        rgba(6, 75, 151, .95) 52%,
        rgba(3, 51, 104, .7) 78%,
        rgba(3, 45, 91, 0) 100%) !important;
    clip-path: polygon(0 0, 72% 0, 100% 100%, 0 100%) !important;
}

.hero-news .hero-overlay::after {
    z-index: 1;
    filter: saturate(1.08);
    box-shadow: -25px 0 48px rgba(1, 41, 82, .18);
}

.hero-news .hero-content,
.hero-news .slider-arrow,
.hero-news .slider-panel {
    z-index: 4;
}

.hero-news .hero-copy {
    text-shadow: 0 2px 18px rgba(0, 28, 60, .18);
}

.hero-news .hero-copy .eyebrow {
    box-shadow: 0 10px 24px rgba(0, 25, 51, .18);
}

/* Página interna de notícia */
.news-article-page {
    background: #fff;
}

.news-article-masthead {
    position: relative;
    overflow: hidden;
    padding: 58px 0 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(32, 123, 211, .12), transparent 28%),
        linear-gradient(180deg, #eef7ff 0%, #f8fbfe 56%, #fff 100%);
}

.news-article-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.news-article-decoration::before,
.news-article-decoration::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(15, 102, 194, .08);
}

.news-article-decoration::before {
    width: 420px;
    height: 420px;
    right: -160px;
    top: -210px;
}

.news-article-decoration::after {
    width: 230px;
    height: 230px;
    right: 60px;
    top: -120px;
}

.news-article-shell {
    position: relative;
    z-index: 1;
}

.news-article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
    color: #6f8295;
    font-size: 12px;
    font-weight: 750;
}

.news-article-breadcrumbs span {
    display: inline-grid;
    place-items: center;
    color: #a1b3c3;
}

.news-article-breadcrumbs span svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.news-article-breadcrumbs strong {
    color: #0c5ba9;
}

.news-article-heading {
    max-width: 960px;
    margin: 0 auto 42px;
    text-align: center;
}

.news-article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 22px;
    color: #60778d;
    font-size: 12px;
    font-weight: 800;
}

.news-article-meta-top > span:not(.news-category-pill) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-article-meta-top svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.news-category-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #157d35;
    background: #e8f8ed;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.news-article-heading h1 {
    max-width: 930px;
    margin: 0 auto;
    color: #082f5d;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -.052em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.news-article-lead {
    max-width: 760px;
    margin: 24px auto 0;
    color: #5c7186;
    font-size: clamp(17px, 1.55vw, 21px);
    line-height: 1.65;
    text-wrap: pretty;
}

.news-article-byline {
    max-width: 770px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 13px;
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid #dce7f0;
    text-align: left;
}

.news-author-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0e6cc9, #07396f);
    box-shadow: 0 10px 24px rgba(7, 57, 111, .2);
    font-size: 13px;
    font-weight: 950;
}

.news-article-byline > div:nth-child(2) {
    display: grid;
    gap: 2px;
}

.news-article-byline strong {
    color: #143a61;
    font-size: 13px;
}

.news-article-byline > div:nth-child(2) span {
    color: #788b9d;
    font-size: 11px;
}

.news-article-share-inline {
    display: flex;
    align-items: center;
    gap: 7px;
}

.news-article-share-inline > span {
    margin-right: 3px;
    color: #718499;
    font-size: 11px;
    font-weight: 850;
}

.news-article-cover {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7.6;
    margin: 0;
    border: 1px solid rgba(7, 57, 111, .09);
    border-radius: 26px 26px 0 0;
    background: #dce8f2;
    box-shadow: 0 28px 65px rgba(4, 43, 88, .17);
}

.news-article-cover::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(180deg, transparent, rgba(2, 27, 56, .72));
    pointer-events: none;
}

.news-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-article-cover figcaption {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: 22px;
    left: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
}

.news-article-cover figcaption span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(3, 47, 96, .48);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-article-cover figcaption small {
    color: rgba(255,255,255,.8);
}

.news-article-body-section {
    padding: 64px 0 90px;
    background: #fff;
}

.news-article-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 790px);
    justify-content: center;
    gap: clamp(38px, 6vw, 82px);
    align-items: start;
}

.news-article-sidebar {
    position: sticky;
    top: 105px;
    display: grid;
    gap: 14px;
}

.news-article-sidebar-card {
    display: grid;
    gap: 8px;
    padding: 21px;
    border: 1px solid #dce7f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    box-shadow: 0 12px 32px rgba(7, 57, 111, .07);
}

.news-article-sidebar-card .sidebar-label {
    color: #299347;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.news-article-sidebar-card strong {
    color: #0b3b70;
    font-size: 18px;
}

.news-article-sidebar-card > span:not(.sidebar-label) {
    color: #74889c;
    font-size: 11px;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 3px;
    color: #0e65bb;
    font-size: 12px;
    font-weight: 850;
}

.news-back-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform: rotate(180deg);
}

.news-article-content {
    min-width: 0;
    color: #29445f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.86;
}

.news-article-content > p:first-child::first-letter {
    float: left;
    margin: 7px 10px 0 0;
    color: #0d61b5;
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 68px;
    font-weight: 900;
    line-height: .78;
}

.news-article-content p {
    margin: 0 0 1.45em;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
    color: #0a3868;
    font-family: Inter, "Segoe UI", sans-serif;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.news-article-content h2 {
    margin: 1.8em 0 .65em;
    font-size: 31px;
}

.news-article-content h3 {
    margin: 1.6em 0 .6em;
    font-size: 24px;
}

.news-article-content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    border-left: 5px solid #39a852;
    border-radius: 0 14px 14px 0;
    color: #17446f;
    background: #eef8f1;
    font-size: 21px;
    font-style: italic;
}

.news-article-content ul,
.news-article-content ol {
    padding-left: 1.4em;
}

.news-article-content a {
    color: #0e65bb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-article-end-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 56px;
    padding: 28px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(65, 188, 94, .3), transparent 34%),
        linear-gradient(135deg, #0a5baa, #05366b);
    box-shadow: 0 18px 45px rgba(5, 54, 107, .2);
    font-family: Inter, "Segoe UI", sans-serif;
}

.news-article-end-card span {
    color: #9ee3ad;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.news-article-end-card h2 {
    margin: 5px 0 7px;
    color: #fff;
    font-size: 24px;
}

.news-article-end-card p {
    margin: 0;
    color: #d5e6f7;
    font-size: 13px;
    line-height: 1.55;
}

.news-article-end-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.news-article-end-actions .btn svg,
.news-article-end-actions .social-svg {
    width: 17px;
    height: 17px;
}

.news-article-end-actions .social-svg {
    fill: currentColor;
}

/* Mensagem do formulário mais visível */
.flash.success {
    background: linear-gradient(90deg, #217c3b, #2ba650);
}

.flash.error {
    background: linear-gradient(90deg, #a92e3e, #c94756);
}

@media (max-width: 1080px) {
    .hero-news .hero-overlay::before {
        width: 68% !important;
    }

    .news-article-layout {
        grid-template-columns: 180px minmax(0, 720px);
        gap: 42px;
    }
}

@media (max-width: 820px) {
    .news-article-masthead {
        padding-top: 38px;
    }

    .news-article-heading {
        text-align: left;
    }

    .news-article-meta-top {
        justify-content: flex-start;
    }

    .news-article-heading h1 {
        font-size: clamp(37px, 8.5vw, 56px);
        text-wrap: pretty;
    }

    .news-article-lead {
        margin-left: 0;
    }

    .news-article-byline {
        grid-template-columns: 46px 1fr;
    }

    .news-article-share-inline {
        grid-column: 1 / -1;
        padding-top: 12px;
    }

    .news-article-cover {
        aspect-ratio: 16 / 9;
        border-radius: 20px 20px 0 0;
    }

    .news-article-layout {
        grid-template-columns: 1fr;
        max-width: 790px;
    }

    .news-article-sidebar {
        position: static;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .news-article-sidebar-card {
        grid-template-columns: repeat(3, auto);
        align-items: center;
        gap: 10px 18px;
    }

    .news-article-sidebar-card .sidebar-label {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .hero-news .hero-slide::after {
        background:
            linear-gradient(180deg,
                rgba(1, 22, 45, .02) 0%,
                rgba(1, 31, 63, .12) 28%,
                rgba(4, 60, 119, .84) 44%,
                rgba(5, 70, 139, .98) 58%,
                rgba(3, 50, 101, 1) 100%);
    }

    .hero-news .hero-overlay::before {
        width: 100% !important;
        opacity: .78;
        background: linear-gradient(180deg, rgba(5, 81, 162, 0), rgba(5, 76, 151, .96) 34%, #043468 100%) !important;
        clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%) !important;
    }

    .news-article-breadcrumbs {
        margin-bottom: 26px;
    }

    .news-article-heading h1 {
        font-size: clamp(34px, 10.4vw, 46px);
        letter-spacing: -.043em;
    }

    .news-article-lead {
        font-size: 16px;
    }

    .news-article-cover figcaption {
        right: 15px;
        bottom: 14px;
        left: 15px;
    }

    .news-article-cover figcaption small {
        display: none;
    }

    .news-article-body-section {
        padding: 42px 0 62px;
    }

    .news-article-sidebar {
        display: none;
    }

    .news-article-content {
        font-size: 17px;
        line-height: 1.78;
    }

    .news-article-content > p:first-child::first-letter {
        font-size: 58px;
    }

    .news-article-content h2 {
        font-size: 27px;
    }

    .news-article-end-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .news-article-end-actions {
        justify-content: flex-start;
    }

    .news-article-end-actions .btn {
        width: 100%;
    }
}
