.news-banner {
    width: 100%;
    height: 50vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.news-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--news-banner-url);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.news-banner-content {
    position: absolute;
    top: 65%;
    left: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    color: white;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.news-banner-content h2 {
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    word-wrap: break-word;
    hyphens: auto;
    flex-shrink: 1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    color: var(--white);
}

.news-banner-content h3 {
    margin: 0 0 1rem 0;
    word-wrap: break-word;
    flex-shrink: 1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    color: var(--white);
}

.typing-text::after {
    content: '|';
    animation: blink-caret 0.7s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.typing-text.typing-done::after {
    content: none;
}

.news-container {
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    margin-bottom: 8vh;
    margin-top: 8vh;
    align-items: stretch;
}

.column-left,
.column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-left {
    justify-content: center;
}

.column-right {
    cursor: pointer;
}

/* Mantém a proporção 3:2 no card principal */

.image-wrapper {
    width: 100%;
    height: 100%; /* ocupa toda a altura da coluna */
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    border-bottom: 1px solid #ddd;
}

.image-wrapper img,
.image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}


/* Efeito hover só na imagem */
.image-wrapper:hover img {
    transform: scale(1.1);
}


.image-wrapper:hover img {
    transform: scale(1.1);
}

.recent-news-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.recent-news-image:hover img {
    transform: scale(1.1);
}

.recent-news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--red);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: multiply;
    z-index: 2;
}

.recent-news-title span {
    background-color: var(--red);
    display: inline;
    padding: 0 5px;
    color: var(--white);
}

.recent-news-date {
    color: var(--grey-mid);
}

.other-news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; 
    margin: 4vh auto 8vh auto; 
    width: 80%;
    justify-content: flex-start;
}

.card {
    flex: 1 1 calc((100% - 2rem * 2) / 3); 
    max-width: calc((100% - 2rem * 2) / 3);
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.other-news-image-wrapper {
    aspect-ratio: 3 / 2;
    
}

.other-news-image-wrapper img,
.other-news-image-wrapper video {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 3 / 2;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.other-news-image:hover img {
    transform: scale(1.1);
}


.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.other-news-date {
    color: var(--grey-mid);
    margin-top: auto;
}

.hidden-card {
    display: none;
}

.loadBtn {
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    display: block;
    margin-bottom: 4vh;
    border: 1px solid var(--red);
}

.loadBtn:hover {
    background-color: var(--white);
    color: var(--red);
    border: 1px solid var(--red);
}

.load-more-wrapper {
    width: 80%;
    margin: 0 auto;
}

.modal-backdrop {
    z-index: 99998 !important;
}

.modal {
    z-index: 99999 !important;
}

.card-footer {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    background-color: var(--white) !important;
    border-top: none !important;
    padding: 0 !important;
}

.read-more-link {
    color: var(--red); 
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    text-decoration: none;
    color: var(--grey-mid);
    transition: color 0.3s ease;
}

.other-news-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2em; 
    max-height: calc(1.2em * 3);
    -webkit-line-clamp: 3;
    margin-bottom: 1rem;
    word-break: break-word;
}

@media screen and (max-width: 992px) {
    .card {
        flex: 1 1 calc((100% - 2rem) / 2); /* 2 colunas com gap */
        max-width: calc((100% - 2rem) / 2);
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {

    .news-banner-content {
        padding: 0.5rem;
    }

    .news-container {
        display: flex;
        flex-direction: column;
        gap: 0rem;
    }

    .card {
        flex: 1 1 100%; /* 1 coluna */
        max-width: 100%;
    }

    .column-left {
        display: contents;
    }

    /* Agora reordena os elementos que eram filhos do column-left */
    .recent-news-title { 
        order: 0 !important; 
        margin-bottom: 0 !important; 
        margin-top: 4vh !important; 
    }

    .column-right { 
        order: 1 !important; 
        margin-bottom: 4vh !important;
    } 

    .recent-news-content { 
        order: 2 !important; 
    }

    .recent-news-date { 
        order: 3 !important; 
    }

    .read-more-link { 
        order: 4 !important; 
    }
    
}

@media (min-width: 1920px) {
 .news-container {
    max-width: 1890px;
 }

 .other-news-container {
    max-width: 1890px;
 }

 .load-more-wrapper {
    max-width: 1890px;
 }
 
}