@import url('https://fonts.googleapis.com/css2?family=Merriweather&display=swap');

.oldheader, .noneNewHome{
    display: none ;
}

.newheader{
    width: auto ;
    border: none !important;
    margin-bottom: 0 !important;
}

.line-header{
	border: none !important;
    bottom: 0 !important;
}

/*-----------------------------------------------------------  ARTICLES   ----------------------*/
@media screen and (min-width:1320px) {
    #hm_other_articles dl {
        position: relative;
        margin: 0 0 8px 6px;
        float: left;
        width: calc(25% - 6px);
        height: 244px;
    }

    #hm_other_articles a:nth-child(1) dl {
        width: 350px;
        height: 350px;
        margin-left: 0;
    }

    #hm_other_articles a:nth-child(1) dl dd.show_info h1 { font-size: 20px;  }
    
    #hm_other_articles a:nth-child(1) dl dd.show_info p {
        font-size: 14px;
        line-height: 20px;
    }

     #hm_other_articles dl dd.show_info {
        position: absolute;
        bottom: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        font-family: 'Noto Sans', sans-serif;
        color: #fff;
        padding: 5px 10px 10px;
        height: 35px;
        -webkit-transition: height .25s linear;
        transition: height .25s linear;
        width: calc(100% - 54px);
    }

    #hm_other_articles dl dt {
        background-size: cover;
        background-position: center;
        width: 316px;
        height: 300px;
    }
}

@media screen and (min-width:1150px) and (max-width:1319px) {
    #hm_other_articles dl {
        position: relative;
        margin: 0 0 8px 6px;
        float: left;
        width: calc(25% - 6px);
        height: 244px;
    }

    #hm_other_articles a:nth-child(1) dl {
        width: 50%;
        height: 496px;
        margin-left: 0;
    }

    #hm_other_articles a:nth-child(1) dl dd.show_info h1 { font-size: 20px; }
    
    #hm_other_articles a:nth-child(1) dl dd.show_info p { 
        font-size: 14px; 
        line-height: 20px;
    }

     #hm_other_articles dl dd.show_info {
        position: absolute;
        bottom: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        font-family: 'Noto Sans', sans-serif;
        color: #fff;
        padding: 5px 10px 10px;
        height: 35px;
        -webkit-transition: height .25s linear;
        transition: height .25s linear;
        width: calc(100% - 54px);
    }
    #hm_other_articles dl dt {
        background-size: cover;
        background-position: center;
        width: 316px;
        height: 300px;
    }
} 

@media screen and (min-width:800px) and (max-width:1149px) {
    #hm_other_articles dl {
        position: relative;
        margin: 0 3px 8px 3px;
        float: left;
        width: calc(100%/3 - 6px);
        height: 205px;
    }

    #hm_other_articles a:nth-child(1) dl,
    #hm_other_articles a:nth-child(2) dl {
        width: calc(50% - 6px);
        height: 309px;
    } 
    
     #hm_other_articles dl dd.show_info {
        position: absolute;
        bottom: 50px;
        background-color: rgba(0, 0, 0, 0.5);
        font-family: 'Noto Sans', sans-serif;
        color: #fff;
        padding: 5px 10px 10px;
        height: 35px;
        -webkit-transition: height .25s linear;
        transition: height .25s linear;
        width: calc(100% - 54px);
    }

    #hm_other_articles dl dt {
        background-size: cover;
        background-position: center;
        width: 316px;
        height: 300px;
    }
}    

@media screen and (min-width:800px) {
    #hm_other_articles dl dd.categ {
        background-color: #f2663a;
        color: #fff;
        padding: 3px 10px;
        font-size: 13px;
        font-style: italic;
        margin: 0;
        position: absolute;
        display: inline-block;
        top: 5px;
        left: 5px;
    }

    #hm_other_articles dl:hover .show_info { height: 130px; }    

    #hm_other_articles dl dd.show_info p {
        opacity: 0;
        -webkit-transition: opacity 0.5s;
        transition: opacity 0.5s;
        margin: 0;
        font-size: 12px;
        line-height: 16px;
    }

    #hm_other_articles dl dd.show_info h1 {
        font-size: 18px;
    }

    #hm_other_articles dl:hover dd.show_info p { opacity: 1; }

    #hm_other_articles dl dd.show_info h1 { white-space: nowrap; }

    

}

@media screen and (max-width:799px) {

    .carousel-wrapper {
        overflow: hidden;
        width: 100%;
        height: 570px;
    }

    #hm_other_articles a:nth-child(1) dl dd.show_info h1 {         
        color: black !important;
        padding-bottom: 10px;
        text-overflow: clip;
        overflow: visible;
        white-space: normal;
    }

    #hm_other_articles div.content_wide {
        display: flex;
        flex-wrap: wrap;        
    }
    
    #hm_other_articles a {
        width: calc(100%/2 - 22px);
        margin: 0 5px 20px 5px;
        border: 1px solid white;
        padding: 5px;
    }

    #hm_other_articles a:hover { 
        border: 1px solid #BDBCBC;
        color: #000;
    }
    
    #hm_other_articles dl {
        position: relative;
        margin: 0 auto 30px auto;
    }    

    #hm_other_articles dl dd.categ {
        color: #f2663a;
        padding: 0;
        font-style: italic;
        margin: 0;
    }

    #hm_other_articles dl dd.show_info h1 {
        font-size: 20px;
    }
    
    #hm_other_articles dl dd.show_info p { line-height: 20px; }

     /* #hm_other_articles dl dd.show_info {
        position: absolute;
        bottom: 44px;
        background-color: rgba(0, 0, 0, 0.5);
        font-family: 'Noto Sans', sans-serif;
        color: #fff;
        padding: 5px 10px 10px;
        height: 35px;
        -webkit-transition: height .25s linear;
        transition: height .25s linear;
        width: 100%;
    } */

     #hm_other_articles dl dt {
      background-size: cover;
        background-position: center;
        width: auto;
        height: 308px;
    }

 
}

@media screen and (max-width:589px) {
    #hm_other_articles a {
        width: calc(100% - 10px);
        margin: 0 0 20px 0;
        border: 1px solid white;
    }    
}



#hm_other_articles dl dd.show_info h1 {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

#hm_other_articles a:nth-child(1) dl dd.show_info h1 { color: white; padding-bottom: 10px;}
.posted{display: none;}


   /* ===== ESTILOS GERAIS ===== */
.news-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.news-slider {
    display: flex;
    overflow: hidden;
    height: 100vh;
    min-height: 500px;
    max-height: 860px;
    position: relative;
}

.news-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    /* background: #414141; */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ===== ESTADOS DO SLIDE ===== */
.news-slide:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.news-slide.active {
    opacity: 1;
    z-index: 1;
}

/* ===== ELEMENTOS DO SLIDE ===== */
.slide-content {
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-image-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    animation: subtleMovement 20s infinite ease-in-out;
    will-change: transform;
}

.category {
    background-color: #f2663a;
    color: #fff;
    padding: 7px 12px;
    font-size: 18px;
    font-style: italic;
    margin: 0 auto;
    position: absolute;
    display: inline-block;
    z-index: 2;
    text-align: center;
}

.slide-title {
    margin: 0 0 44px 0;
    line-height: 1.2;
    color: #ffffff;
}

.slide-summary {
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 30px;
}

.slide-number {
    position: absolute;
    right: 40px;
    bottom: 40px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(0,0,0,0.05);
}

.line-bottom {
    border-bottom: 1px solid white;
}

/* ===== NAVEGAÇÃO ===== */
.news-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 0px;
    z-index: 2;
    position: absolute;
    bottom: 2px;
    left: 165px;
    color: #dcdcdc;
    font-size: 16px;
}

.news-slider-nav button {
    background: none;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0 1px;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid #ffffff;
}

.news-slider-nav button:hover {
    color: white;
    transition: all 0.3s;
    background-color: #9b9b9b;
}

.slide-pagination {
    display: flex;
    align-items: center;
    margin: 0 0px;
    gap: 5px;
    position: relative;
}

.slide-title {
    font-size: clamp(23px, 3.2vw, 77px);
    font-family: 'Merriweather', serif;
    font-weight: normal;
}

.slide-summary {
    font-size: clamp(14px, 1.4vw, 35px);
}

.category {
    font-size: clamp(14px, 1.3vw, 18px);
}

/* ===== BARRA DE PROGRESSO ===== */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #f2663a;
    transition: width 0.1s linear;
}

/* ===== ANIMAÇÕES ===== */
@keyframes subtleMovement {
    0% {
        transform: scale(1);
        background-position: 50% 50%;
    }
    100% {
        transform: scale(1.08);
        background-position: 50% 40%;
    }
}

@keyframes slideContentEnterNext {
    to { transform: translateX(0); }
}

@keyframes slideImageEnterNext {
    to { transform: translateX(0); }
}

@keyframes slideContentEnterPrev {
    to { transform: translateX(0); }
}

@keyframes slideImageEnterPrev {
    to { transform: translateX(0); }
}

@keyframes lineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ===== RESPONSIVIDADE ===== */

/* TELAS GRANDES (1710px+) */
@media screen and (min-width: 1710px) {
    .category {
        padding: 7px 12px;
        font-size: 16px;
        margin: 0;
        position: absolute;
        display: inline-block;
        top: 0; 
        left: 13%; 
        width: auto; 
        max-width: 80%; 
        text-align: center;
    }
    
    .news-slider-nav {
        left: 12% !important;
    }
}

/* TELAS MÉDIAS-GRANDES (1180px) */
@media screen and (min-width: 1180px)  {
    #hm_articles {
        width: 100%;
    }
    
    .slide-content {
        width: 35%;
        padding: 30px;
        margin-top: 65px;
    }
    
    .slide-image-container {
        width: 65%;
    }
    
    .category {
        padding: 7px 12px;
        font-size: 16px;
        margin: 0;
        position: absolute;
        display: inline-block;
        top: 0; 
        left: 11%; 
        width: 155px; 
        max-width: 90%; 
        text-align: center;
    }
    
    .news-slider-nav {
        left: 9%;
        gap: 36px;
        bottom: 20px;
    }
    
    .line-bottom {
        width: 35%;
        position: absolute;
        bottom: 76px;
        z-index: 2;
        transform-origin: left center;
        transform: scaleX(1);
        transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .t-custom {
        position: relative;
        width: 100%;
        height: 50px;
        margin: 80px 0 35px;
    }
}

/* TELAS MÉDIAS (1148px-1179px) */
@media screen and (min-width: 1148px) and (max-width: 1179px) {

      #hm_articles {
        width: 100%;
    }
    .slide-content {
        width: 40%;
        padding: 20px;
        margin-top: 60px;
    }
    
    .slide-image-container {
        width: 60%;
    }
 
    
    .category {
        padding: 7px 12px;
        font-size: 16px;
        margin: 0;
        position: absolute;
        display: inline-block;
        top: 0px;
        left: 11%; 
        z-index: 2;
        width: 151px;
        text-align: center;
    }
    
    .news-slider-nav {
        left: 130px;
        bottom: 20px;
        gap: 20px;
    }
    
    .line-bottom {
        width: 40%;
        position: absolute;
        bottom: 76px;
        z-index: 2;
        transform-origin: left center;
        transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    }
}

/* TELAS PEQUENAS (879px-1147px) */
@media screen and (min-width: 879px) and (max-width: 1147px) {
    
    #hm_articles, .content_wide {
        width: 100% ;
    }
    .slide-content {
        width: 40%;
        padding: 20px;
        margin-top: 60px;
    }
    
    .slide-image-container {
        width: 60%;
    }
    

    
    .category {
        padding: 7px 12px;
        font-size: 16px;
        margin: 0;
        position: absolute;
        display: inline-block;
        top: 0px;
        left: 76px;
        z-index: 2;
        width: 151px;
        text-align: center;
    }
    
    .news-slider-nav {
        left: 89px;
        bottom: 14px;
        gap: 20px;
    }
    
    .line-bottom {
        width: 40%;
        position: absolute;
        bottom: 64px;
        left: 0;
        z-index: 5;
        transform-origin: left center;
        transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .t-custom {
        position: relative;
        width: 100%;
        height: 50px;
        margin: 80px 0 35px;
    }
}

/* MOBILE (até 878px) */
@media screen and (max-width: 878px) {
    .news-slider {
        height: 600px;
        flex-direction: column;
    }
    
    .news-slide {
        flex-direction: column;
    }
    
    .slide-content {
        width: 100%;
        padding: 20px;
        order: 2;
        height: 65%;
    }
    
    .slide-image-container {
        width: 100%;
        height: 60%;
        min-height: 300px;
        order: 1;
    }
    
    .category {
        width: auto;
        padding: 5px 10px;
        font-size: 14px;
        display: flex;
        justify-content: center;
    }
    
    .slide-title {
        /* font-size: 22px; */
        margin-bottom: 15px;
    }
    
    .slide-summary {
        /* font-size: 14px; */
        margin-bottom: 20px;
    }
    
    .slide-number {
        right: 20px;
        bottom: 20px;
        font-size: 18px;
    }
    
    .news-slider-nav {
        position: relative;
        left: auto;
        bottom: auto;
        top: 526px;
        margin: 21px auto;
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 30px;
    }
    
    .line-bottom {
        width: 100%;
        position: absolute;
        bottom: 72px;
    }

    .t-custom {
        position: relative;
        width: 100%;
        height: 50px;
        margin: 80px 0 35px;
    }
}

/* MOBILE PEQUENO (até 480px) */
@media screen and (max-width: 480px) {
    .news-slider {
        height: 550px;
    }
    
    .slide-image-container {
        min-height: 250px;
    }
    
    .slide-content {
        height: 65%;
    }
    
    .news-slider-nav {
        top: 478px;
        gap: 26px;
    }
}

/* ===== EFEITOS DE TRANSIÇÃO ===== */
.news-slide.next-exit .slide-content,
.news-slide.prev-exit .slide-content,
.news-slide.next-enter .slide-content,
.news-slide.prev-enter .slide-content,
.news-slide.next-exit .slide-image-container,
.news-slide.prev-exit .slide-image-container,
.news-slide.next-enter .slide-image-container,
.news-slide.prev-enter .slide-image-container,
.news-slide.next-exit .line-bottom,
.news-slide.prev-exit .line-bottom,
.news-slide.next-enter .line-bottom,
.news-slide.prev-enter .line-bottom {
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.news-slide.next-exit .slide-content {
    transform: translateX(100%);
}

.news-slide.next-exit .slide-image-container {
    transform: translateX(-100%);
}

.news-slide.prev-exit .slide-content {
    transform: translateX(-100%);
}

.news-slide.prev-exit .slide-image-container {
    transform: translateX(100%);
}

.news-slide.next-enter .slide-content {
    transform: translateX(-100%);
    animation: slideContentEnterNext 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.news-slide.next-enter .slide-image-container {
    transform: translateX(100%);
    animation: slideImageEnterNext 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.news-slide.prev-enter .slide-content {
    transform: translateX(100%);
    animation: slideContentEnterPrev 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.news-slide.prev-enter .slide-image-container {
    transform: translateX(-100%);
    animation: slideImageEnterPrev 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.news-slide.next-exit .line-bottom,
.news-slide.prev-exit .line-bottom {
    transform: scaleX(0);
}

.news-slide.next-enter .line-bottom,
.news-slide.prev-enter .line-bottom {
    transform: scaleX(0);
    animation: lineGrow 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.3s;
}

.news-slide.active .line-bottom {
    transform: scaleX(1);
}

/* ===== ELEMENTOS DE OVERLAY/LINK ===== */
.slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
}

.image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* OTHER NEWS */


/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-item {
    /* flex: 0 0 25%; */
    padding: 0 0px;
    box-sizing: border-box;
    width: 320px;
    height: 300px;
}

.carousel-controls {
    text-align: center;
    margin-top: 15px;
}

.carousel-controls button {
    background: none;
    color: #d3d3d3;
    border: none;
    padding: 8px 15px;
    margin: 0 1px;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid #d3d3d3;
}

.carousel-controls button:hover {
    background: #f2f2f2;
}

/* Estilo dos itens do carrossel */
.carousel-item .fx_3 {
    display: block;
    height: 244px;
    position: relative;
}

.carousel-item .fx_3 dl {
    position: relative;
    height: 100%;
    margin: 0;
}

.carousel-item .fx_3 dl dt {
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-item .fx_3 dl dd.show_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
}

.carousel-item .fx_3 dl dd.show_info h1 {
    font-size: 18px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-item .fx_3 dl dd.show_info p {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

.carousel-item .fx_3 dl dd.categ {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f2663a;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    z-index: 10;
}

/* Responsividade */
@media screen and (max-width: 1149px) {
    .carousel-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media screen and (max-width: 799px) {
    .carousel-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .carousel-item .fx_3 {
        height: 205px;
    }
}

@media screen and (max-width: 589px) {
    .carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .carousel-item .fx_3 {
        height: 300px;
    }
}

@media screen and (max-width: 879px) {
    .carousel-item dl {
        display: flex;
        flex-direction: column;
    }

    .carousel-item dl dt {
        order: 0;
        height: 200px;
    }

    .carousel-item dl dd.show_info {
        order: 1;
        position: static;
        background: none;
        color: #000;
        padding: 10px 0;
    }

    .carousel-item dl dd.show_info h1,
    .carousel-item dl dd.show_info p {
        color: #000; 
        white-space: normal;
        overflow: visible;
    }
}

  .carousel {
        cursor: grab;
        user-select: none;
    }
    
    .carousel.grabbing {
        cursor: grabbing;
    }
    
    .carousel-item {
        touch-action: pan-y;
    }
