.box-news {
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
}

.box-search-news {
    width: 100%;
    background: var(--primary-color);
    padding: 6rem 0;
}

.tagline-news {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: var(--fonttext-montserrat);
    margin: 0 auto;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.card-search-news {
    display: flex;
    align-items: center;
    max-width: 80%;
    width: 100%;
    margin: 0 auto;
    background: var(--secondary-color);
    overflow: hidden;
    border-radius: 23px;
    -webkit-border-radius: 23px;
    -moz-border-radius: 23px;
    -ms-border-radius: 23px;
    -o-border-radius: 23px;
}

.card-search-news input {
    font-size: 14.5px;
    font-family: var(--fonttext-poppins);
    background: none;
    width: 100%;
    padding: 16px;
    border: none;
    outline: none;
}

.card-search-news button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: none;
    outline: none;
    color: var(--secondary-color);
    font-size: 14.5px;
    letter-spacing: .2px;
    font-family: var(--fonttext-poppins);
    text-align: center;
    white-space: nowrap;
    background: var(--third-color);
    cursor: pointer;
}

.card-search-news button:hover {
    filter: brightness(95%);
    -webkit-filter: brightness(95%);
}

.box-list-news {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 14px;
}

.card-news {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    overflow: hidden;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.card-news a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-detail-news {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
    margin-top: 11px;
}

.card-detail-news h4 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--fonttext-poppins);
    color: var(--five-color);
    line-height: 1.32em;
    letter-spacing: .2px;
}

.card-detail-news p {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--fonttext-poppins);
    font-size: 14px;
    color: var(--fourth-color);
    letter-spacing: .2px;
    line-height: 1.32em;
}

.card-news a:hover img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transition: .2s all;
    -webkit-transition: .2s all;
    -moz-transition: .2s all;
    -ms-transition: .2s all;
    -o-transition: .2s all;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 14px;
    gap: 11px;
}

.pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 5px;
    font-size: 14.5px;
    font-family: var(--fonttext-poppins);
    color: var(--fourth-color);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: none;
    overflow: hidden;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.pagination button.active {
    background: var(--third-color);
    border: none;
    color: var(--secondary-color);
}

.no-data-found {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    font-size: 14.5px;
    font-family: var(--fonttext-poppins);
    color: var(--fourth-color);
    text-align: center;
}

@media (max-width: 768px) {
    .box-list-news {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .box-search-news {
        padding: 4rem 0;
    }

    .card-search-news {
        max-width: 95%;
    }

    .tagline-news {
        font-size: 1.5rem;
        padding: 0 14px;
    }

    .box-news {
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    .card-news a img {
        height: 140px;
    }

    .box-search-news {
        padding: 3rem 0;
    }
}