/* =====================================================
   DETALHE DA NOTÍCIA
===================================================== */

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

.news-detail-header {
    /* max-width: 920px; */
    margin: 4rem auto 2rem;
    text-align: justify;
}

.news-detail-title {
    color: #1a1a1a;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
    color: #777;
    font-size: 0.9rem;
}

.news-detail-meta i {
    margin-right: 0.35rem;
    color: #B8781C;
}

.news-cover-wrapper {
    /* max-width: 1100px; */
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

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

.news-detail-layout {
    /* max-width: 1100px; */
    margin: 0 auto;
}

.news-detail-body {
    color: #333;
    font-size: 1rem;
    line-height: 1.85;
    text-align: justify;
}

.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.news-detail-body p {
    margin-bottom: 1.2rem;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.news-detail-body a {
    color: #B8781C;
}

.news-gallery-title,
.related-news-title {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-size: 1.7rem;
    font-weight: 700;
}

.news-gallery {
    margin-top: 3rem;
}

.news-gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.news-gallery-image:hover {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.related-news {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #ededed;
}

/* =====================================================
   GALERIA COM SWIPER
===================================================== */

.news-gallery-swiper {
    position: relative;
    padding: 0 48px 3rem;
}

.news-gallery-swiper .swiper-slide {
    height: auto;
}

.news-gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: transparent;
    cursor: zoom-in;
}

.news-gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.news-gallery-trigger:hover .news-gallery-image {
    transform: scale(1.06);
    filter: brightness(0.86);
}

.news-gallery-swiper .swiper-button-next,
.news-gallery-swiper .swiper-button-prev {
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border: 1px solid #333;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
}

.news-gallery-swiper .swiper-button-next::after,
.news-gallery-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}


.news-gallery-swiper .swiper-button-next svg,
.news-gallery-swiper .swiper-button-prev svg {
    display: none;
}

.news-gallery-swiper .swiper-button-next::after,
.news-gallery-swiper .swiper-button-prev::after {
    content: "";
    display: none;
}


.news-gallery-swiper .swiper-button-prev {
    background-image: url('../../img/v2/left-arrow.png');
}

.news-gallery-swiper .swiper-button-next {
    background-image: url('../../img/v2/right-arrow.png');
}

.news-gallery-swiper .swiper-button-next:hover,
.news-gallery-swiper .swiper-button-prev:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Modal da imagem ampliada */
#newsGalleryModal .modal-content {
    border: 0;
    background: #111;
}

#newsGalleryModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 0.75rem;
}

#newsGalleryModalImage {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
}

#newsGalleryModal .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 0.6rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 1;
}

@media (max-width: 575.98px) {
    .news-detail-header {
        margin-top: 2.5rem;
        text-align: center;
    }

    .news-cover-wrapper {
        border-radius: 16px;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-gallery-swiper {
        padding-right: 40px;
        padding-left: 40px;
    }

    .news-gallery-swiper .swiper-button-next,
    .news-gallery-swiper .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .news-gallery-swiper .swiper-button-next::after,
    .news-gallery-swiper .swiper-button-prev::after {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-gallery-image {
        transition: none;
    }
}
