.news-page{
    padding: var(--size-1) 0;

    .tile-section{
        h1{
            font-family: Inter;
            font-weight: 700;
            font-size: 30px;
            line-height: 36px;
            letter-spacing: 0%;
            text-align: center;
            vertical-align: middle;
            color: var(--color-gray-900);
        }
    }

    .search-filter-blog{
        display: flex;
        gap: 10px;
        margin-bottom: 1.5rem;
        background-color: #F3F8FF;
        width: 686px;
        height: 40px;
        border-radius: 30px;
        align-items: center;
        margin: var(--size-1) auto;
        padding: 10px 20px;
        .search-input-wrapper{
            border-right: 1px solid #BFBFBF;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2.5px;
            padding: 0 10px;
            label{
                font-family: Inter;
                font-weight: 400;
                font-size: 14px;
                line-height: 14px;
                letter-spacing: 0px;
                vertical-align: middle;
                color: var(--color-gray-500);
                margin-bottom: 0;
            }
            input[type="text"], select{
                border: 0;
                background-color: transparent;
                font-family: Inter;
                font-weight: 400;
                font-size: 16px;
                line-height: 14px;
                letter-spacing: 0px;
                vertical-align: middle;
                padding: 5px 0;
                &::placeholder {
                    color: var(--color-gray-300);
                    font-style: italic;
                }
                &:focus{
                    outline: none;
                    border-color: var(--quintary);
                    box-shadow: none;
                }
            }
            input[type="text"]{
                width: 400px;
                padding: 0;
            }
            select{
                width: 150px;
            }
        }
        .search-button-wrapper{
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0 10px;
            button{
                border: none;
                background-color: transparent;
                cursor: pointer;
                &:hover .search-icon{
                    filter: brightness(0.8);
                }
                .search-icon{
                    width: 44px;
                    height: 44px;
                }
            }
        }
    }

    .news-grid{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .news-card {
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        height: 100%;
        display: flex;
        flex-direction: column;
        .card {
            height: 100%;
            border: none;
            border-radius: 8px;
            overflow: hidden;
            background-color: white;
            display: flex;
            flex-direction: column;

            .image-container {
                position: relative;
                height: 180px;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                .placeholder {
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;

                    i {
                        font-size: 2rem;
                        color: #6c757d;
                        margin-bottom: 0.5rem;
                    }

                    span {
                        color: #6c757d;
                        font-size: 0.8rem;
                        text-align: center;
                        padding: 0 1rem;
                    }
                }

                .tag-container{
                    position: absolute;
                    top: 0.5rem;
                    left: 0.5rem;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    gap: 5px;
                }

                .tag {
                    color: white;
                    font-family: Inter;
                    font-weight: 500;
                    font-size: 12px;
                    line-height: 16px;
                    letter-spacing: 0%;
                    text-align: center;
                    vertical-align: middle;
                    padding: 3px 8px;
                    border-radius: 10px;
                }
            }

            .content {
                padding: var(--space-xxl) var(--size-3) 0 var(--size-3);
                /* .summary{
                    padding-bottom: var(--space-lg);
                } */
                h2 {
                    font-family: Inter;
                    font-weight: 600;
                    font-size: 20px;
                    line-height: 22px;
                    letter-spacing: 0%;
                    vertical-align: middle;
                    color: var(--color-gray-900);
                    margin-bottom: var(--space-md);

                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                p {
                    font-family: Inter;
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 20px;
                    vertical-align: middle;
                    color: #4A5565;
                }
            }
            .separador{
                padding: var(--space-md) var(--size-3);
                hr{
                    margin: 0;
                    border: none;
                    border-top: 1px solid #F3F4F6;
                }
            }
            
            .meta {
                display: flex;
                align-items: center;
                justify-content: space-between;
                /* margin-top: var(--space-lg); */
                padding: var(--space-md) var(--size-3);
                span{
                    font-family: Inter;
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 20px;
                    letter-spacing: 0%;
                    vertical-align: middle;
                }
                .info {
                    display: flex;
                    align-items: center;
                    color: #6c757d;
                    font-size: 0.75rem;
                    img{
                        width: 16px;
                        height: 16px;
                        margin-right: 4px;
                    }
                    i {
                        margin-right: 0.25rem;
                    }
                    .separator {
                        margin: 0 0.5rem;
                    }
                }
                .btn-read {
                    font-family: Inter;
                    font-weight: 500;
                    font-size: 14px;
                    line-height: 20px;
                    vertical-align: middle;
                    background-color: transparent;
                    color: var(--primary);
                    transition: background-color 0.2s ease-in-out;
                    text-decoration: none;
                    i {
                        margin-left: 0.25rem;
                    }
                    &:hover {
                        background-color: darken(#007bff, 8%);
                    }
                }
            }
        }
    }

}


@media (max-width: 768px) {
    .news-page {
        padding: var(--space-xxl) var(--space-xs);

        .tile-section {
            h1 {
                font-size: 22px;
                line-height: 26px;
                text-align: center;
            }
        }

        .search-filter-blog {
            flex-direction: column;
            align-items: stretch;
            width: 100%;
            height: auto;
            border-radius: 20px;
            padding: 10px;
            gap: 10px;

            .search-input-wrapper {
                border-right: none;
                border-bottom: 1px solid #BFBFBF;
                width: calc(100% - 20px);
                padding-bottom: 10px;

                input[type="text"],
                select {
                    width: 100%;
                    font-size: 14px;
                }
            }

            .search-button-wrapper {
                justify-content: center;
                padding: 0;

                button {
                    .search-icon {
                        width: 36px;
                        height: 36px;
                    }
                }
            }
        }

        .news-grid {
            grid-template-columns: 1fr;
            gap: var(--space-md);
        }

        .news-card {
            .card {
                .image-container {
                    height: 160px;

                    .tag-container {
                        gap: 3px;
                    }

                    .tag {
                        font-size: 11px;
                        padding: 2px 6px;
                    }
                }

                .content {
                    padding: var(--size-3);

                    h2 {
                        font-size: 18px;
                        line-height: 22px;
                    }

                    p {
                        font-size: 13px;
                        line-height: 18px;
                    }

                    .meta {
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 5px;

                        .btn-read {
                            font-size: 13px;
                        }
                    }
                }
            }
        }
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .news-page {
        padding: var(--size-1);

        .tile-section {
            h1 {
                font-size: 26px;
                line-height: 30px;
            }
        }

        .search-filter-blog {
            /* width: 90%;
            height: auto;
            padding: 10px 15px;
            gap: 8px; */

            /* .search-input-wrapper {
                input[type="text"] {
                    width: 60%;
                }
                select {
                    width: 35%;
                }
            } */

            .search-button-wrapper {
                button {
                    .search-icon {
                        width: 40px;
                        height: 40px;
                    }
                }
            }
        }

        .news-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: var(--space-lg);
        }

        .news-card {
            .card {
                .image-container {
                    height: 200px;
                }

                .content {
                    padding: var(--space-lg);

                    h2 {
                        font-size: 19px;
                        line-height: 24px;
                    }

                    p {
                        font-size: 14px;
                        line-height: 20px;
                    }

                    .meta {
                        .btn-read {
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
}