/* ========================================
   Subportal - Design System
   Paleta: #125c75 (azul), #e85d04 (laranja)
   Bootstrap 5.3.8 + FontAwesome 5.3.1
   ======================================== */

/* ---- Cores Customizadas ---- */
.logo {
    display: flex;
    flex-direction: column;
}

.logo .h2 {
    color: #125c75;
}

.text-blue {
    color: #125c75;
}

.text-blue a {
    color: #125c75;
}

.text-bg-orange {
    color: #fff !important;
    background-color: #e85d04 !important;
}

/* ---- Navbar ---- */
.navbar-nav .nav-link {
    border-bottom: 4px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    border-bottom: 4px solid #164362;
}

/* ---- Manchetes (Carousel) ---- */
.linear-background-manchete {
    background: linear-gradient(to top, rgba(18, 92, 117, 0.85) 11%, rgba(18, 92, 117, 0.4) 36%, transparent 100%);
    border-radius: 0 0 1rem 1rem;
}

.titulo_multimidia_destaque {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 30px 40px;
    overflow: hidden;
}

/* ---- Títulos de Seção ---- */
.title {
    display: flex;
    align-items: center;
    color: #125c75;
    font-weight: bold;
    font-size: 24px;
}

/* ---- Backgrounds e Sombras ---- */
.bg-custom {
    background-color: #F8FAFC;
}

.shadow-soft {
    box-shadow: 0 10px 25px rgba(18, 92, 117, 0.05);
}

/* ---- Footer ---- */
.footer {
    background-color: #125c75;
}

.font-10 {
    font-size: 10px;
}

/* ---- Listagem de Notícias ---- */
.row_lista {
    display: flex;
    flex-direction: column;
    margin-right: -15px;
    margin-left: -15px;
}

.item_busca {
    border-top: 1px solid #e3e3e3;
    padding: 25px 0;
    display: flex;
    transition: color 0.2s ease;
    position: relative;
}

.item_busca p {
    color: #666;
}

.item_busca:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.item_busca:hover h4 {
    color: #007AC4;
}

.item_busca:hover p {
    color: #000;
}

.item_busca_img {
    overflow: hidden;
    position: relative;
    flex: 0 0 25%;
    min-width: 170px;
    margin-right: 14px;
    display: flex;
    align-items: center;
}

.img-responsive {
    width: 100%;
    height: auto;
}

.item_busca_img img {
    transition: transform 0.2s ease-out;
    border-radius: 4px;
}

.item_busca:hover img {
    transform: scale(1.05);
}

.item_busca_caption {
    flex: 1 0 0;
    position: relative;
}

.item_busca_data,
.item_busca_data_xs {
    position: absolute;
    color: #a7a7a7;
    font-size: 0.8rem;
    bottom: -5px;
}

.item_busca h4 {
    color: #000;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.item_busca h5 {
    color: #004a78;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

/* ---- Paginação ---- */
.pagination-subportal .page-link {
    color: #125c75;
}

.pagination-subportal .page-item.active .page-link {
    background-color: #125c75;
    border-color: #125c75;
    color: #fff;
}

/* ---- Responsivo ---- */
@media (max-width: 575px) {
    .item_busca_data {
        display: none;
    }

    .item_busca {
        background-color: #fff;
        padding: 15px 15px 30px;
        box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.2);
        border: 0;
        margin-bottom: 12px;
        border-radius: 3px;
        margin-top: 2px;
    }

    .item_busca:hover {
        background-color: #fff;
    }

    .item_busca_caption {
        font-size: 90%;
    }

    .item_busca_caption h5 {
        font-size: .7rem;
    }

    .item_busca_caption h4 {
        font-size: 1.25rem;
    }

    .item_busca_caption p {
        font-size: 1rem;
    }

    .item_busca_data_xs {
        bottom: 5px;
    }

    .item_busca_img {
        max-height: calc((100vw - 60px) / 1.4);
        margin: 0;
    }

    .item_busca {
        flex-direction: column-reverse;
    }

    .item_busca_caption {
        padding: 0;
    }
}

@media (min-width: 576px) {
    .item_busca_data_xs {
        display: none;
    }

    .item_busca_img {
        max-height: 160px;
    }
}

@media (min-width: 1200px) {
    .item_busca_img {
        flex: 0 0 20% !important;
    }
}

/* ---- Breadcrumb ---- */
.breadcrumb.bg-primary {
    background-color: transparent !important;
    padding: 0;
}

.breadcrumb.bg-primary .breadcrumb-item a {
    color: #125c75;
    text-decoration: none;
}

.breadcrumb.bg-primary .breadcrumb-item.active {
    color: #666;
}

/* ---- Institucional ---- */
.gestor_detalhe {
    margin-bottom: 8px;
}

#caixa_sobreasecreatria {
    margin-top: 20px;
}

#titulo_sobreasecreatria {
    font-size: 1.3rem;
    font-weight: bold;
    color: #125c75;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .gestor {
        flex-direction: column;
    }
}

/* ---- Cards e Microinterações ---- */
.card {
    border-radius: 1rem;
    overflow: hidden;
}

.hover-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -5px rgba(18, 92, 117, 0.15) !important;
    border-color: rgba(18, 92, 117, 0.2);
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

/* ---- Aspect Ratios Images ---- */
.img-manchete {
    width: 100%;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 4 / 3;
    /* Mobile */
}

@media (min-width: 768px) {
    .img-manchete {
        aspect-ratio: 16 / 8;
        /* Desktop */
    }
}

.img-noticia-galeria {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 4 / 3;
}

/*//////// NOTÍCIA //////////*/

/*//////// CREDÍTOS FIXOS NA FOTO //////*/
.w3cgWrapper {
    position: relative
}

.credito_foto {
    position: absolute;
    top: 0;
    right: 4px;
    color: #ffffffde;
    font-size: 10px;
    text-shadow: #222 1px 1px 1px;
}

.w3cgLegenda:empty {
    display: none;
}

blockquote {
    border-left: 0.3em solid #EB2939;
    padding-left: 1rem
}

blockquote p {
    font-size: 1.3rem !important;
    font-weight: bold !important;
    line-height: 1.5 !important
}

.titulo {
    color: #128db4;
    font-weight: 500;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

@media (max-width: 575px) {
    .titulo {
        font-size: 1.5rem !important
    }
}

.texto-noticia {
    font-size: 1.24rem;
}

.texto-noticia p {
    line-height: 1.7;
    font-weight: normal;
    margin-bottom: 30px
}

.texto-noticia img {
    max-width: 100%;
    height: auto
}

/*<<<<< RETIRAR*/

/*//////////////////////// CONTROLES DE MIDIAS DENTRO DO TEXTO ///////////////////////////////*/
.w3cgWrapper {
    background-color: #f1f3f4;
    margin-bottom: 16px;
    display: block;
    max-width: 100%
}

.w3cgLegenda {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
    padding: 4px 8px;
    display: block;
    background-color: #323232
}

.w3cgLegenda:empty {
    display: none;
}

.w3cgWrapper img {
    width: 100%;
    height: auto
}

.w3cgAlignLeft video,
.w3cgAlignRight video {
    width: 400px;
    height: 225px;
    margin-bottom: -5px
}

.w3cgAlignCenter video {
    width: 100%;
    margin-bottom: -5px
}

.w3cgAlignLeft audio,
.w3cgAlignRight audio {
    width: 400px;
    margin-bottom: -5px
}

.w3cgAlignCenter audio {
    width: 100%;
    margin-bottom: -5px
}

.w3cgAlignLeft iframe,
.w3cgAlignRight iframe {
    width: 400px;
    height: 225px;
    margin-bottom: -5px
}

.w3cgAlignCenter iframe {
    width: 900px;
    height: 374px;
    margin-bottom: -5px
}

/*Youtube Ratio: 1,77777778 - ALTERAR A LARGURA AQUI TAMBÉM*/

.w3cgAlignLeft {
    float: left;
    width: 400px;
    margin-right: 15px;
}

.w3cgAlignCenter {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 15px;
}

.w3cgAlignRight {
    float: right;
    width: 400px;
    margin-left: 15px;
}


@media (min-width: 576px) {

    .w3cgAlignLeft,
    .w3cgAlignRight {
        width: 49%
    }

    .w3cgAlignCenter iframe {
        height: calc((100vw / 1.6) - 60px);
    }

    .w3cgAlignLeft iframe,
    .w3cgAlignRight iframe {
        height: calc(((100vw / 1.5) - 80px) / 1.9);
    }
}

@media (min-width: 768px) {
    .w3cgAlignCenter iframe {
        height: 405px;
    }
}

@media (min-width: 992px) {
    .w3cgAlignCenter iframe {
        height: 308px;
    }

    .w3cgAlignLeft,
    .w3cgAlignRight {
        width: 400px;
    }

    .w3cgAlignCenter iframe {
        height: 374px;
    }
}

@media (min-width: 1200px) {}

@media (max-width: 575px) {

    .w3cgAlignLeft,
    .w3cgAlignRight {
        width: 100%
    }

    .w3cgAlignCenter iframe {
        height: calc((100vw / 1.7777) - 30px)
    }

    .w3cgAlignLeft iframe,
    .w3cgAlignRight iframe {
        height: calc(((100vw / 1.5) - 80px) / 1.9);
    }
}