   

/* News Header Section */
.noticias-header-section {
    width: 100%;
    background-color: #fff;
    padding: 60px 20px 40px 20px;
    max-width: 1217px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.noticias-header-container {
    max-width: 1216px;
    width: 100%;
    /* height: 100%; */
    margin: 0 auto;
}

.noticias-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* height: 100%; */
    border-bottom: 1px solid #E4DEC0;
    padding-bottom: 38px;
    gap: 20px;
}

.noticias-main-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 96px;
    line-height: 90%;
    letter-spacing: 2%;
    text-transform: uppercase;
    background: linear-gradient(111.33deg, #F04247 11.06%, #782B90 73.94%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.search-icon:hover {
    transform: scale(1.1);
}

.search-icon img {
    width: 32px;
    height: 32px;
}

.search-input-container {
    position: relative;
    opacity: 0;
    visibility: hidden;
    width: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-container.active {
    opacity: 1;
    visibility: visible;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 32px;
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #071F2C;
    background-color: #fff;
    transition: border-color 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #F04247;
}

.search-input::placeholder {
    color: #52636C;
}

/* Featured News Section */
.featured-news-section {
    width: 100%;
    padding: 60px 20px;
}

.featured-news-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
}

.featured-news-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid #E4DEC0;
    padding-bottom: 89px;
}


.featured-news-content {
    flex: 1;
    max-width: 600px;
    height: 100%;
    min-height: 397px;
    padding-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

/* Show/hide desktop and mobile versions */
.featured-news-content-mobile {
    display: none;
}

.featured-news-content-desktop {
    display: flex;
}

@media (max-width: 768px) {
    .featured-news-content {
        padding-top: 0;
        height: auto;
        min-height: auto;
        width: 100%;
        justify-content: flex-start;
    }

    .featured-news-content-desktop {
        display: none;
    }

    .featured-news-content-mobile {
        display: flex;
        align-items: center;
    }

    .featured-news-content-mobile .featured-news-date {
        align-self: center;
        text-align: center;
    }

    .featured-news-content-mobile .featured-news-link {
        align-self: center;
    }
}

.featured-news-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 64px;
    line-height: 90%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 0 0 24px 0;
}

.featured-news-description {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0 0 32px 0;
    max-width: 413px;
}

.featured-news-date {
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #52636C;
    margin: 0 0 24px 0;
}

.featured-news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.featured-news-link:hover {
    transform: scale(1.1);
}

.featured-news-link img {
    width: 50px;
    height: 50px;
    object-fit: scale-down;
}

.featured-news-image {
    flex-shrink: 0;
    align-self: flex-start;
}

.featured-news-image img {
    width: 607px;
    height: 397px;
    left: 961px;
    border-radius: 12px;
    object-fit: cover;
}

/* News Grid Section */
.news-grid-section {
    width: 100%;
    padding: 60px 20px 120px 20px;
    background-color: #fff;
}

.news-grid-container {
    max-width: 1216px;
    width: 100%;
    margin: 0 auto;
}

.news-grid-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 48px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
    margin-top: 37px;
}

.noticias-noticia-item {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.noticias-noticia-item:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-title {
    font-family: Londrina Solid;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #071F2C;
    margin: 0;
    max-width: 253px;
}

.news-description-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.news-description {
    font-family: Londrina Solid;
    font-weight: 300;
    font-style: Light;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 1%;
    text-transform: uppercase;
    color: #52636C;
    margin: 0;
    flex-grow: 1;
    max-width: 253px;

}

.news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.news-link:hover {
    transform: scale(1.1);
}

.news-link img {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .noticias-main-title {
        font-size: 72px;
    }
    
    .featured-news-card {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .featured-news-title {
        font-size: 36px;
    }
    
    .featured-news-description {
        font-size: 20px;
    }
    
    .featured-news-image img {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .news-grid-title {
        font-size: 48px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 24px;
    }
}

@media (max-width: 1658px) and (min-width: 1026px) {
    .noticias-header-section {
        max-width: calc(100vw - 450px);
    }
}

@media (max-width: 1024px) {
    .noticias-header-section {
        padding: 140px 16px 40px 16px;
    }
    
    .noticias-header-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        align-items: center;
    }
    
    .noticias-main-title {
        font-size: 72px;
    }
    
    .search-icon {
        width: 56px;
        height: 56px;
    }
    
    .search-icon img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .noticias-header-section {
        padding: 41px 16px 32px 16px;
    }
    
    .noticias-header-content {
        flex-direction: row;
        gap: 20px;
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }
    
    .noticias-main-title {
        font-size: 48px;
        margin-top: 0px;
    }
    
    .featured-news-section {
        padding: 40px 16px;
    }
    
    .featured-news-card {
        padding-bottom: 30px;
        gap: 20px;
    }
    
    .featured-news-title {
        font-size: 28px;
    }
    
    .featured-news-description {
        font-size: 18px;
    }

    .featured-news-image {
        width: 100%;
    }

    .featured-news-image img {
        max-width: 100%;
        height: 250px; 
        width: 100%;
    }
    
    .news-grid-section {
        padding: 40px 16px 80px 16px;
    }
    
    .news-grid-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .noticias-header-section {
        padding: 50px 16px 32px 16px;
    }
    
    .noticias-header-content {
        gap: 20px;
    }
    
    .noticias-main-title {
        font-size: 40px;
    }
    
    .search-icon {
        width: 56px;
        height: 56px;
    }
    
    .search-icon img {
        width: 28px;
        height: 28px;
    }
    
    .search-input-container.active {
        width: 200px;
    }
    
    .search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .featured-news-section {
        padding: 32px 16px;
    }
    
    .featured-news-card {
        /* padding: 16px; */
    }
    
    .featured-news-title {
        font-size: 24px;
    }
    
    .featured-news-description {
        font-size: 16px;
    }
    
    .news-grid-section {
        padding: 32px 16px 60px 16px;
    }
    
    .news-grid-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-description {
        font-size: 14px;
    }
    
    .news-content {
        padding: 16px;
    }
}

/* Search Results Styles */
.search-results-info {
    margin: 20px 0;
    padding: 16px;
    background-color: #F8F4DF;
    border-radius: 8px;
    border-left: 4px solid #F04247;
}

.search-results-info p {
    margin: 0;
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    color: #071F2C;
}

.no-search-results {
    text-align: center;
    padding: 60px 20px;
    background-color: #F8F4DF;
    border-radius: 12px;
    margin: 20px 0;
}

.no-search-results p {
    margin: 0;
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 24px;
    color: #52636C;
    text-transform: uppercase;
}

/* Loading States */
.news-grid-section.searching .news-grid {
    opacity: 0.6;
    pointer-events: none;
}

.news-grid.loading {
    position: relative;
}

.news-grid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-grid.loading::before {
    content: 'Procurando...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Londrina Solid;
    font-weight: 400;
    font-size: 20px;
    color: #F04247;
    z-index: 11;
}

/* Responsive padding for containers with max-width 1216px */
@media (max-width: 1216px) {
    .noticias-header-container,
    .featured-news-container,
    .news-grid-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 1216px) {
    
    .news-grid-container {
        padding-left: 0;
        padding-right: 0;
    }
}