.news {
    padding: 100px 0;
}

.news-container {
    padding: 0 5%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media screen and (min-width: 750px) {
    .news-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .news-main {
        flex: 1;
        min-width: 0;
    }
}

.news-list {
    display: flex;
    flex-wrap: wrap;
}

.news-item-box {
    width: 100%;
    padding: 16px;
}

@media screen and (min-width:840px) {
    .news-item-box {
        width: 50%;
    }
}

@media screen and (min-width: 1200px) {
    .news-item-box {
        width: calc(100% / 3);
    }
}

/*  */

.news-item {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.news-item:hover {
    border-color: var(--secondary);
}

.news-item:hover .news-item-image img {
    transform: scale(1.1);
}

.news-item-image {
    height: 200px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    padding: 8px 24px 24px 24px;
    gap: 8px;
}

.news-item-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.news-item-date i{
    color: var(--secondary);
}

.news-item-content .category {
    background: rgba(0, 206, 201, 0.15);
    color: var(--secondary);
    font-weight: 500;
    display: block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.news-item-content h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 2rem;
    height: 4rem;
}

.news-item:hover .news-item-content h4 {
    color: var(--secondary);
}

.news-item-content p {
    color: var(--gray);
}

.news-item-content .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--secondary);
    font-size: 0.8rem;
}

.news-item-content .meta span {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.news-item-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.news-item:hover .news-item-link {
    transform: translateX(5px);
}

.news-item-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.news-item:hover .news-item-link i {
    transform: translateX(5px);
}