/* ─── Leitura de notícia e comunicado ───────────────────── */
.post-breadcrumb-section {
    padding: 1rem 0;
    background: #f5f7fa;
    border-bottom: 1px solid rgba(20, 43, 70, .06);
}

.post-breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    color: #768397;
    font-size: .82rem;
}

.post-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #287f83;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}

.post-breadcrumb-link:hover {
    color: #15575e;
}

.post-breadcrumb-separator {
    font-size: .65rem;
    color: #aab3c0;
}

.post-breadcrumb-current {
    max-width: min(55vw, 540px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-section {
    min-height: 65vh;
    padding: clamp(2rem, 5vw, 4.25rem) 0 5rem;
    background: #f5f7fa;
}

.post-container {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4.5rem);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(25, 48, 72, .07);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(28, 47, 68, .075);
}

.post-header {
    margin-bottom: 2.25rem;
}

.post-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.post-badge.news-card-badge-teal {
    background: #287f83;
}

.post-badge.news-card-badge-navy {
    background: #253b60;
}

.post-title {
    max-width: 780px;
    margin: 1.25rem 0 1.75rem;
    color: #1c3454;
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.11;
    overflow-wrap: anywhere;
}

.post-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 2rem;
    color: #657487;
    font-size: .9rem;
}

.post-meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: .65rem;
}

.post-meta-item>.bi {
    margin-top: .18rem;
    color: #287f83;
    font-size: 1rem;
}

.post-meta-item span {
    display: grid;
    gap: .12rem;
}

.post-info-label {
    color: #354b66;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.post-image-container {
    position: relative;
    margin: 0 0 2.5rem;
    overflow: hidden;
    background: #eef2f5;
    border-radius: 18px;
}

.post-image-container img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.post-image-container figcaption {
    padding: .7rem 1rem;
    color: #78869a;
    font-size: .78rem;
}

.post-content {
    color: #34465d;
    font-size: 1.075rem;
    line-height: 1.88;
    overflow-wrap: anywhere;
}

.post-content> :first-child {
    margin-top: 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2.4rem 0 .85rem;
    color: #1c3454;
    font-weight: 720;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.post-content h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
}

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

.post-content p {
    margin: 0 0 1.25rem;
}

.post-content a {
    color: #20777c;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: #15575e;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.4rem;
    padding-left: 1.5rem;
}

.post-content li {
    padding-left: .25rem;
    margin: .35rem 0;
}

.post-content blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.35rem;
    border-left: 4px solid #3d9292;
    border-radius: 0 12px 12px 0;
    background: #f1f7f7;
    color: #53667a;
}

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: .7rem .85rem;
    border: 1px solid #e2e8ee;
}

.post-content th {
    background: #f5f7fa;
    color: #1c3454;
}

.post-video-container {
    margin: 2.5rem 0;
    overflow: hidden;
    border-radius: 16px;
    background: #14243a;
}

.post-video-container iframe,
.post-video-container video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.post-link-container {
    margin: 2.25rem 0;
}

.post-external-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #dce9e9;
    border-radius: 15px;
    background: #f5fafa;
    color: #1d4256;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.post-external-link:hover {
    transform: translateY(-2px);
    border-color: #8dbabb;
    box-shadow: 0 10px 25px rgba(32, 105, 110, .1);
    color: #1d4256;
}

.post-external-link-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 12px;
    background: #dff0ef;
    color: #287f83;
    font-size: 1.15rem;
}

.post-external-link>span:nth-child(2) {
    display: grid;
    gap: .2rem;
}

.post-external-link small {
    color: #718093;
}

.post-external-link>.bi:last-child {
    margin-left: auto;
    color: #568b8e;
}

.post-attachments {
    margin-top: 2.5rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid #e4eaf0;
    border-radius: 17px;
    background: #f8fafc;
}

.post-gallery {
    margin-top: 2.5rem;
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid #e4eaf0;
    border-radius: 17px;
    background: #f8fafc;
}

.post-gallery-list {
    display: flex;
    gap: .85rem;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.post-gallery-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
}

.post-gallery-viewport {
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    outline-offset: 4px;
}

.post-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.post-gallery-item {
    flex: 0 0 calc((100% - 1.7rem) / 3);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5ebf1;
    border-radius: 13px;
    background: #fff;
    scroll-snap-align: start;
}

.post-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #eef2f5;
    cursor: zoom-in;
}

.post-gallery-item img {
    display: block;
    width: 100%;
    max-height: 520px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #eef2f5;
    transition: transform .2s ease;
}

.post-gallery-open:hover img {
    transform: scale(1.035);
}

.post-lightbox {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(96vw, 1400px);
    max-width: none;
    max-height: 94dvh;
    margin: 0;
    padding: .75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: #101820;
    color: #fff;
    transform: translate(-50%, -50%);
}

.post-lightbox::backdrop {
    background: rgba(5, 12, 22, .88);
    backdrop-filter: blur(4px);
}

.post-lightbox-toolbar {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.post-lightbox-count {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
}

.post-lightbox-close,
.post-lightbox-nav {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
}

.post-lightbox-nav[hidden] {
    display: none;
}

.post-lightbox-close:hover,
.post-lightbox-nav:hover {
    background: rgba(255, 255, 255, .22);
}

.post-lightbox-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: clamp(.4rem, 2vw, 1rem);
}

.post-lightbox-image {
    display: block;
    width: 100%;
    height: min(82dvh, 900px);
    object-fit: contain;
}

.post-gallery-control {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid #dce4eb;
    border-radius: 50%;
    background: #fff;
    color: #287f83;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.post-gallery-control:hover:not(:disabled) {
    border-color: #b7d2d2;
    background: #edf5f5;
}

.post-gallery-control:disabled {
    color: #aab3c0;
    cursor: default;
}

.post-attachments-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.2rem;
}

.post-attachments-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: #e7f1f1;
    color: #287f83;
    font-size: 1.15rem;
}

.post-attachments-heading p {
    margin: .15rem 0 0;
    color: #78869a;
    font-size: .83rem;
}

.post-attachments-title {
    margin: 0;
    color: #1c3454;
    font-size: 1.1rem;
    font-weight: 730;
}

.post-attachments-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.post-attachment-link {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: .7rem;
    padding: .8rem .9rem;
    border: 1px solid #e5ebf1;
    border-radius: 12px;
    background: #fff;
    color: #304760;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

a.post-attachment-link:hover {
    transform: translateY(-1px);
    border-color: #b7d2d2;
    background: #fbfefe;
    color: #1c3454;
}

.post-attachment-link>.bi:first-child {
    color: #318184;
    font-size: 1.25rem;
}

.post-attachment-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .88rem;
    font-weight: 650;
}

.post-attachment-size {
    margin-left: auto;
    color: #8591a0;
    font-size: .76rem;
    white-space: nowrap;
}

.post-attachment-download {
    margin-left: auto;
    color: #71879a;
}

.post-share {
    margin-top: 2.5rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid #e4eaf0;
    border-radius: 16px;
    background: #f8fafc;
}

.post-share-heading h2 {
    margin: 0;
    color: #1c3454;
    font-size: 1.05rem;
    font-weight: 730;
}

.post-share-heading p {
    margin: .25rem 0 1rem;
    color: #78869a;
    font-size: .85rem;
}

.post-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.post-share-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem .85rem;
    border: 1px solid #dce4eb;
    border-radius: 999px;
    background: #fff;
    color: #304760;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.post-share-button:hover {
    transform: translateY(-1px);
    border-color: #b7d2d2;
    box-shadow: 0 5px 14px rgba(28, 47, 68, .08);
    color: #1c3454;
}

.post-share-button .bi {
    font-size: 1rem;
}

.post-share-whatsapp .bi { color: #159447; }
.post-share-facebook .bi { color: #1877f2; }
.post-share-x .bi { color: #111; }
.post-share-linkedin .bi { color: #0a66c2; }
.post-share-copy .bi { color: #287f83; }

.post-share-feedback {
    display: block;
    min-height: 1.2em;
    margin-top: .65rem;
    color: #287f83;
    font-size: .82rem;
}

.post-nav-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8edf2;
}

.post-nav-link {
    display: grid;
    gap: .55rem;
    min-width: 0;
    padding: 1.2rem;
    border: 1px solid #e6ebf0;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.post-nav-link:hover {
    transform: translateY(-2px);
    border-color: #c2d9d9;
    background: #f8fbfb;
}

.post-nav-link-next {
    text-align: right;
}

.post-nav-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #287f83;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-nav-link-next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-title {
    color: #263e5a;
    font-weight: 680;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.post-back-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 0;
    background: transparent;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: #edf5f5;
    color: #236e73;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.post-back-link:hover {
    background: #dceeee;
    color: #174f55;
}

@media (max-width: 640px) {
    .post-breadcrumb-current {
        max-width: 42vw;
    }

    .post-section {
        padding: 1.5rem 0 3rem;
    }

    .post-container {
        padding: 1.4rem 1.1rem;
        border-radius: 18px;
    }

    .post-header {
        margin-bottom: 1.75rem;
    }

    .post-title {
        margin: 1rem 0 1.35rem;
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .post-info-container {
        display: grid;
        gap: .8rem;
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .post-image-container {
        margin-bottom: 1.8rem;
        border-radius: 13px;
    }

    .post-image-container img {
        max-height: 340px;
    }

    .post-attachments-list,
    .post-nav-container {
        grid-template-columns: 1fr;
    }

    .post-nav-link-next {
        text-align: left;
    }

    .post-nav-link-next .post-nav-label {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    .post-breadcrumb-link,
    .post-external-link,
    .post-attachment-link,
    .post-gallery-item img,
    .post-gallery-control,
    .post-gallery-open,
    .post-lightbox-close,
    .post-lightbox-nav,
    .post-nav-link,
    .post-back-link,
    .post-share-button {
        transition: none;
    }
}

@media (max-width: 480px) {
    .post-gallery {
        padding: 1rem .7rem;
    }

    .post-gallery-carousel {
        gap: .4rem;
    }

    .post-gallery-control {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .post-gallery-item {
        flex-basis: 78%;
    }

    .post-lightbox {
        width: 100vw;
        max-height: 100dvh;
        padding: .5rem;
        border-radius: 0;
    }

    .post-lightbox-image {
        height: 78dvh;
    }

    .post-lightbox-close,
    .post-lightbox-nav {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

@media (min-width: 481px) and (max-width: 760px) {
    .post-gallery-item {
        flex-basis: calc((100% - .85rem) / 2);
    }
}
